:root {
    --brand-navy: #d9b24c;
    --brand-blue: #e6c15a;
    --brand-gold: #e6c15a;
    --brand-bg: #f4f7fb;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-soft: #667085;
    --border-soft: #e5e7eb;
    --success-bg: #eaf7ed;
    --success-border: #2f9e44;
    --error-bg: #fff1f2;
    --error-border: #e03131;
    --warning-bg: #fff8e1;
    --warning-border: #f59f00;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-header: 0 6px 20px rgba(15, 23, 42, 0.18);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: linear-gradient(180deg, #eef4fb 0%, var(--brand-bg) 100%);
    color: var(--text-main);
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #d4b04f, #e6c15a);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(31, 41, 55, 0.06);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.brand-wrap {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 6px 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.main-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link,
.nav-button {
    appearance: none;
    border: none;
    background: transparent;
    color: #1f2937;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.nav-link-highlight {
    background: rgba(255, 255, 255, 0.45);
}

.nav-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 992px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
    }

    .main-nav {
        width: 100%;
        overflow: visible;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .brand-logo {
        height: 48px;
        max-width: 200px;
    }
}

/* Page layout */
.page-body {
    padding: 34px 0 56px;
}

.message-stack {
    margin-bottom: 20px;
}

.page-intro {
    margin-bottom: 24px;
}

.page-intro-inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.intro-badge,
.auth-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(230, 193, 90, 0.16);
    color: var(--brand-navy);
    border: 1px solid rgba(230, 193, 90, 0.38);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.intro-badge {
    margin-bottom: 10px;
}

.page-intro h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
}

.page-intro p {
    margin: 0;
    max-width: 760px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.65;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.04);
    margin-bottom: 20px;
}

.card-lg {
    padding: 28px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.stat-label {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-navy);
}

/* Sections */
.section-header {
    margin-bottom: 16px;
}

.section-header h2 {
    margin: 0 0 6px;
}

.section-description {
    color: var(--text-soft);
    margin: 0;
    line-height: 1.6;
}

/* Forms */
.form-section {
    border-top: 1px solid var(--border-soft);
    padding-top: 24px;
    margin-top: 24px;
}

.form-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-card-field {
    background: #fbfcfe;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 700;
    margin-bottom: 8px;
    color: #243447;
}

.form-input input:not([type="radio"]):not([type="checkbox"]),
.form-input textarea,
.form-input select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d6dde8;
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input input[type="radio"],
.form-input input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    accent-color: var(--brand-navy);
}

.form-input ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.form-input ul li {
    margin-bottom: 12px;
}

.form-input ul li label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
}

.choice-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-input input:focus,
.form-input textarea:focus,
.form-input select:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(22, 93, 147, 0.12);
}

.form-input textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.form-input ul li {
    margin-bottom: 8px;
}

.form-checkbox {
    width: auto !important;
}

.help-text {
    color: var(--text-soft);
    font-size: 13px;
    margin-top: 7px;
    line-height: 1.5;
}

.error-text {
    color: #c92a2a;
    font-size: 13px;
    margin-top: 7px;
}

.required {
    color: #c92a2a;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue));
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(22, 93, 147, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(22, 93, 147, 0.2);
}

.button-full {
    width: 100%;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 600;
}

.alert-success {
    background: var(--success-bg);
    border-left: 4px solid var(--success-border);
}

.alert-error {
    background: var(--error-bg);
    border-left: 4px solid var(--error-border);
}

.alert-warning {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
}

/* Tables */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.table th,
.table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}

.table th {
    color: var(--text-soft);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table-strong {
    font-weight: 700;
}

.table-subtext {
    color: var(--text-soft);
    font-size: 13px;
    margin-top: 4px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(22, 93, 147, 0.1);
    color: var(--brand-blue);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.action-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-links a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
}

.action-links a:hover {
    text-decoration: underline;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 26px 12px;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0;
    color: var(--text-soft);
}

/* Auth */
.auth-shell {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(480px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 32px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.auth-hero {
    margin-bottom: 22px;
}

.auth-badge {
    margin-bottom: 12px;
}

.auth-hero h1 {
    margin: 0 0 10px;
}

.auth-hero p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .stats-grid,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}


/* Campaign Pages */
.campaigns-shell,
.campaign-detail-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.page-header {
    margin-bottom: 26px;
}

.page-header h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
}

.page-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.65;
    max-width: 760px;
}

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.campaign-list-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campaign-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.campaign-list-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.campaign-list-image-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f4e4a8, #f8f2de);
}

.campaign-list-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-list-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a6b33;
    font-weight: 700;
}

.campaign-list-body {
    padding: 22px;
}

.campaign-list-badge,
.campaign-detail-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(230, 193, 90, 0.18);
    color: #7a5a00;
    border: 1px solid rgba(230, 193, 90, 0.4);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.campaign-list-body h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
    color: var(--text-main);
}

.campaign-list-summary {
    margin: 0 0 16px;
    color: var(--text-soft);
    line-height: 1.6;
    min-height: 52px;
}

.campaign-list-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.campaign-meta-item {
    background: #fafbfe;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 12px;
}

.campaign-meta-label {
    display: block;
    font-size: 12px;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.campaign-meta-value {
    display: block;
    font-weight: 700;
    color: var(--text-main);
}

.campaign-list-footer {
    padding-top: 4px;
}

.campaign-view-link {
    color: var(--brand-navy);
    font-weight: 700;
}

.campaign-hero-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.campaign-hero-image-wrap {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    background: linear-gradient(135deg, #f4e4a8, #f8f2de);
}

.campaign-hero-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.campaign-hero-body {
    padding: 30px;
}

.campaign-hero-body h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
}

.campaign-summary {
    margin: 0 0 24px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.75;
}

.campaign-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.info-item {
    background: #fafbfe;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 16px;
}

.info-label {
    display: block;
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 6px;
}

.info-value {
    display: block;
    font-weight: 700;
    color: var(--text-main);
}

@media (max-width: 900px) {
    .campaign-info-grid,
    .campaign-list-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .campaign-list-image-wrap {
        height: 190px;
    }

    .campaign-hero-image {
        height: 240px;
    }

    .campaign-hero-body,
    .campaign-list-body {
        padding: 20px;
    }
}
/* Detail Pages */
.detail-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kv-card {
    background: #fafbfe;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 16px;
}

.kv-key {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.kv-value {
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.6;
    word-break: break-word;
}

.timeline-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    align-items: flex-start;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue));
    box-shadow: 0 0 0 6px rgba(230, 193, 90, 0.18);
}

.timeline-content {
    background: #fafbfe;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 16px;
}

.timeline-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-soft);
    font-size: 14px;
}

.timeline-actions {
    margin-top: 12px;
}

.timeline-actions a {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
}

.timeline-actions a:hover {
    text-decoration: underline;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #fafbfe;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    flex-wrap: wrap;
}

.file-card-main {
    min-width: 0;
    flex: 1;
}

.file-card-name {
    font-weight: 700;
    margin-bottom: 6px;
    word-break: break-word;
}

.file-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-soft);
    font-size: 13px;
}

.button-secondary {
    background: #ffffff;
    color: var(--brand-navy);
    border: 1px solid rgba(31, 79, 130, 0.16);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.button-sm {
    padding: 10px 14px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .detail-grid,
    .info-grid,
    .kv-grid {
        grid-template-columns: 1fr;
    }
}

.kv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kv-card {
    background: #fafbfe;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 16px;
}

.kv-key {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.kv-value {
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.6;
}

.bulk-errors-wrap {
    margin-top: 8px;
    padding: 12px 0 4px;
}

.bulk-errors-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.bulk-error-card {
    background: #fff7f7;
    border: 1px solid #f1c9c9;
    border-left: 4px solid var(--error-border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.bulk-error-head {
    font-weight: 800;
    color: #9b2226;
    margin-bottom: 6px;
}

.bulk-error-message {
    color: #7f1d1d;
    font-weight: 600;
    margin-bottom: 8px;
}

.bulk-error-data {
    display: grid;
    gap: 4px;
    color: var(--text-main);
    font-size: 13px;
}
.bulk-errors-wrap {
    margin-top: 8px;
    padding: 12px 0 4px;
}

.bulk-errors-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.bulk-error-card {
    background: #fff7f7;
    border: 1px solid #f1c9c9;
    border-left: 4px solid var(--error-border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.bulk-error-head {
    font-weight: 800;
    color: #9b2226;
    margin-bottom: 6px;
}

.bulk-error-message {
    color: #7f1d1d;
    font-weight: 600;
    margin-bottom: 8px;
}

.bulk-error-data {
    display: grid;
    gap: 4px;
    color: var(--text-main);
    font-size: 13px;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #7a5a00;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

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