* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: #2b2b2b;
    background: #eef2f8;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(90deg, #0e2439, #13344f);
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 12px 24px rgba(10, 26, 41, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand img {
    width: 34px;
    height: 34px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.nav a {
    color: #dbe7f3;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.nav-user {
    color: #b9c9db;
    font-weight: 600;
}

.nav a.active,
.nav a:hover {
    color: #fff;
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: #f6b356;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
}

.hero {
    background: linear-gradient(180deg, #f7f9fe 0%, #ffffff 60%);
    padding: 50px 0 70px;
    border-bottom: 1px solid #e6ebf4;
}

.home-hero {
    background: linear-gradient(180deg, #f7f9fe 0%, #ffffff 60%);
    padding: 50px 0 70px;
    border-bottom: 1px solid #e6ebf4;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-copy {
    max-width: 520px;
}

.hero-copy h1 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    color: #2a62a8;
}

.subtitle {
    margin: 0 0 24px;
    color: #65758a;
    font-size: 16px;
}

.progress-wrap {
    margin-bottom: 24px;
    max-width: 420px;
}

.progress-bar {
    background: #e2e7f0;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f39c3a, #f2c35b);
    border-radius: 999px;
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.45);
}

.progress-text {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-weight: 600;
    color: #334257;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.vote-btn {
    background: linear-gradient(180deg, #f7a43b, #f1821a);
    border: 2px solid #e57d1b;
    color: #fff;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 12px 22px rgba(243, 139, 43, 0.3);
    cursor: pointer;
    min-width: 280px;
}

.vote-btn .icon-heart {
    margin-right: 8px;
}

.socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.socials button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: #e5e9f1;
    color: #4b5a6d;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 12px rgba(15, 36, 57, 0.08);
}

.manufacturer {
    margin: 0;
    font-size: 13px;
    color: #748198;
}

.story {
    padding: 40px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.story-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 28px rgba(15, 36, 57, 0.08);
    border: 1px solid #eef1f6;
}

.story-card h2,
.story-card h3 {
    margin-top: 0;
}

.story-content {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
}

.story-content img {
    border-radius: 16px;
}

.notice {
    border: 2px dashed #c6ccd7;
    background: #fbfcfe;
}

.rally {
    text-align: center;
    margin: 22px 0 0;
    font-weight: 600;
    color: #6a6f7a;
}

.comments {
    padding: 10px 0 40px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.comment-btn {
    background: #f39c3a;
    color: #fff;
    border: 0;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.comment-form {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(15, 36, 57, 0.06);
    margin-bottom: 16px;
    display: grid;
    gap: 12px;
}

.comment-form textarea {
    width: 100%;
    border: 1px solid #d7dce6;
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
    resize: vertical;
}

.socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: #e5e9f1;
    color: #4b5a6d;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(15, 36, 57, 0.08);
}

.socials a:hover {
    background: #d7dde8;
}

.hero-media img {
    filter: drop-shadow(0 20px 30px rgba(15, 36, 57, 0.18));
    border-radius: 28px;
    background: #f2f5fb;
    padding: 16px;
}

.vote-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.comment-list {
    display: grid;
    gap: 12px;
}

.comment {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 18px rgba(15, 36, 57, 0.06);
    border: 1px solid #eef1f6;
}

.comment strong {
    color: #2a3f5f;
}

.comment p {
    margin: 6px 0 0;
    color: #5f6c80;
}

.list-hero {
    padding: 40px 0;
    background: #f7f9fe;
    border-bottom: 1px solid #e6ebf4;
}

.list-section {
    padding: 30px 0 60px;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.petition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.petition-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef1f6;
    box-shadow: 0 14px 24px rgba(15, 36, 57, 0.08);
    display: grid;
}

.petition-card img {
    height: 170px;
    width: 100%;
    object-fit: cover;
}

.petition-body {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.petition-body h3 {
    margin: 0;
    color: #2a62a8;
    font-size: 18px;
}

.petition-subtitle {
    margin: 0;
    color: #65758a;
    font-size: 14px;
}

.petition-meta {
    margin: 0;
    color: #8894a7;
    font-size: 13px;
}

.petition-progress {
    height: 10px;
    background: #e2e7f0;
    border-radius: 999px;
    overflow: hidden;
}

.petition-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f39c3a, #f2c35b);
}

.petition-votes {
    font-size: 13px;
    color: #6f7b8f;
}

.petition-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.small-vote.outline {
    background: #fff;
    color: #2c6db2;
    border: 2px solid #c7d6e8;
}

.small-vote.outline:hover {
    background: #f0f5fb;
}

.comment img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.related {
    padding: 20px 0 60px;
}

.admin-section {
    padding: 50px 0;
}

.admin-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 20px;
}

.admin-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(15, 36, 57, 0.08);
}

.admin-card strong {
    font-size: 28px;
    color: #2a62a8;
}

.admin-actions {
    margin-top: 28px;
}

.stat-card h3 {
    margin-bottom: 12px;
}

.action-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #eef1f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 36, 57, 0.12);
}

.action-card h3 {
    margin-top: 0;
    color: #2a62a8;
}

.action-card p {
    color: #64758a;
}

.action-link {
    display: inline-block;
    margin-top: 10px;
    color: #f38b2b;
    font-weight: 700;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.admin-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
    width: 100%;
    border: 1px solid #d7dce6;
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #e4e9f2;
    font-size: 14px;
}

.form-card {
    margin-bottom: 20px;
}

.inline-form {
    display: inline;
}

.admin-action-btn {
    background: #2c6db2;
    color: #fff;
    border: 0;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
}

.admin-action-btn.danger {
    background: #d54b3d;
}

.admin-form input[type="file"] {
    margin-top: 8px;
}

.admin-link {
    color: #2a62a8;
    font-weight: 700;
    text-decoration: none;
}

.admin-link:hover {
    text-decoration: underline;
}

.admin-secondary {
    color: #64758a;
    text-decoration: none;
    font-weight: 600;
}

.form-help {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b778a;
}

.logo-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    background: #f3f5fa;
    padding: 6px;
}

.logo-preview {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    background: #f3f5fa;
    padding: 10px;
    margin-top: 10px;
    display: none;
}

.admin-actions-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-section {
    padding: 60px 0;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 24px rgba(15, 36, 57, 0.1);
}

.auth-card h1 {
    margin-top: 0;
    color: #2a62a8;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d7dce6;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-submit {
    background: #2c6db2;
    color: #fff;
    border: 0;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffeceb;
    color: #b53c2f;
    font-weight: 600;
}

.alert.success {
    background: #e6f6ec;
    color: #2d7a44;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.related-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 10px;
    text-align: center;
    box-shadow: 0 14px 24px rgba(15, 36, 57, 0.08);
    border: 1px solid #eef1f6;
}

.related-card img {
    height: 90px;
    object-fit: contain;
    margin: 0 auto;
}

.related-card strong {
    color: #2a3f5f;
}

.related-card span {
    color: #6d7a8e;
    font-size: 13px;
}

.small-vote {
    background: #2c6db2;
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .vote-btn {
        min-width: 220px;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-content {
        grid-template-columns: 1fr;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
