/* ==============================================
   JAZACASH — Design System v3
   Primary: Green  |  Accent: Gold  |  Bg: Light green tint
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Primary greens (dark → light) */
    --green-950: #0d2b17;
    --green-900: #12391f;
    --green-800: #176b36;
    --green-700: #218a45;
    --green-600: #2e9b51;
    --green-500: #3aac5e;
    --green-light: #e9f8ed;

    /* Gold accent */
    --gold-500: #f4b400;
    --gold-400: #ffc928;
    --gold-light: #fff8e1;

    /* Neutrals */
    --cream:      #f4faf6;
    --cream-dark: #e6f5ec;

    --white:      #ffffff;
    --text: #1a2e22;
    --muted: #4d7a5e;
    --border: #c8e6d2;

    /* Semantic */
    --danger:     #c62828;
    --danger-bg:  #fff0f0;
    --success:    #218a45;
    --success-bg: #e9f8ed;
    --info-bg:    #edf7ff;
    --info-color: #174f7a;

    /* Shadows */
    --shadow-sm: 0 3px 12px rgba(18,57,31,.08);
    --shadow-md: 0 10px 35px rgba(18,57,31,.12);
    --shadow-lg: 0 20px 60px rgba(18,57,31,.16);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    /* Layout */
    --container: 1180px;
    --header-h:  82px;
}

/* ─── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a   { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ─── Container ──────────────────────────── */
.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}
.container.narrow { max-width: 560px; }
.container.wide   { max-width: 1160px; }

/* ==============================================
   HEADER
   ============================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(43,22,9,.06);
}
.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.site-logo { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a,
.nav-logout-btn {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    color: var(--green-900);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .18s, color .18s;
    white-space: nowrap;
}
.main-nav a:hover, .nav-logout-btn:hover {
    background: var(--cream-dark);
    color: var(--green-700);
}
.main-nav a.active { color: var(--green-700); background: var(--cream-dark); }
.nav-apply {
    background: var(--green-800) !important;
    color: #fff !important;
    padding-inline: 18px !important;
    border-radius: var(--radius-sm) !important;
}
.nav-apply:hover {
    background: var(--green-900) !important;
    transform: translateY(-1px);
}
.nav-logout-form { display: inline; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    padding: 10px;
    transition: background .18s;
}
.hamburger:hover { background: var(--cream-dark); }
.hamburger span {
    display: block;
    height: 2px;
    background: var(--green-900);
    border-radius: 2px;
    transition: .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==============================================
   LAYOUT
   ============================================== */
.page-body { padding: 44px 0 80px; }

/* ==============================================
   CARDS
   ============================================== */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.card-body { padding: 28px; }

.section-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.section-card-header {
    padding: 12px 20px;
    background: var(--cream-dark);
    border-bottom: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

/* ==============================================
   FORMS
   ============================================== */
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.form-header {
    padding: 30px 34px;
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: #fff;
}
.form-header h1 { margin: 0 0 6px; font-size: 1.75rem; font-weight: 800; }
.form-header p  { margin: 0; color: rgba(255,255,255,.78); font-size: 0.95rem; }
.form-body { padding: 32px 34px; }

.form-section { margin-bottom: 34px; }
.form-section:last-child { margin-bottom: 0; }
.form-section-title {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
    color: var(--green-900);
    font-size: 1.05rem; font-weight: 800;
}
.form-section-title::before {
    content: '';
    width: 5px; height: 22px;
    border-radius: 10px;
    background: var(--gold-500);
    flex-shrink: 0;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }

label {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--green-900);
    margin-bottom: 0;
}
.required { color: #b42318; }

input[type=text], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=tel],
select, textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    background: #fff;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 4px rgba(105,51,15,.10);
}
input::placeholder, textarea::placeholder { color: #c0b5ab; }
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23706961' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}
textarea { resize: vertical; min-height: 100px; }

.form-help  { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.form-error { color: var(--danger); font-size: .82rem; font-weight: 600; }
.input-error { border-color: var(--danger) !important; }

.form-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding-top: 28px; margin-top: 28px;
    border-top: 1px solid var(--border);
}

/* Checkbox row */
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input[type=checkbox] { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--green-800); cursor: pointer; }
.checkbox-row label { margin: 0; text-transform: none; letter-spacing: 0; color: var(--text); font-size: .93rem; font-weight: 400; cursor: pointer; }

/* File upload */
.upload-box {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 20px;
    background: var(--cream);
    transition: border-color .18s, background .18s;
    cursor: pointer;
}
.upload-box:hover { border-color: var(--green-600); background: #fff; }
.upload-box input[type=file] { width: 100%; cursor: pointer; }
.upload-label { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* KSh prefix inputs */
.input-prefix { position: relative; }
.input-prefix > span {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: .85rem; font-weight: 700;
    pointer-events: none; z-index: 1;
}
.input-prefix input { padding-left: 52px; }

/* Auth split panel */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--header-h));
}
.auth-hero {
    background: linear-gradient(145deg, var(--green-900) 0%, var(--green-700) 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 52px; color: #fff; text-align: center; position: relative; overflow: hidden;
}
.auth-hero::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(244,180,0,.07);
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero-logo { height: 64px; width: auto; margin-bottom: 34px; filter: brightness(0) invert(1); }
.auth-hero h2 { font-size: 1.65rem; font-weight: 800; line-height: 1.22; margin-bottom: 12px; }
.auth-hero p  { font-size: .97rem; opacity: .8; line-height: 1.65; margin-bottom: 34px; }
.auth-hero-features { list-style: none; text-align: left; max-width: 300px; }
.auth-hero-features li {
    display: flex; align-items: center; gap: 12px;
    font-size: .9rem; opacity: .92; margin-bottom: 14px;
}
.auth-hero-features li::before {
    content: '✓';
    min-width: 22px; height: 22px;
    background: rgba(244,180,0,.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; color: var(--gold-400); font-weight: 800; flex-shrink: 0;
}
.auth-panel {
    display: flex; flex-direction: column; justify-content: center;
    padding: 60px 56px; background: #fff; overflow-y: auto;
}
.auth-panel h1 { font-size: 1.75rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.auth-subtitle { color: var(--muted); font-size: .95rem; margin-bottom: 30px; }
.form-footer { margin-top: 22px; text-align: center; font-size: .9rem; color: var(--muted); line-height: 2; }

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 46px; padding: 0 22px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 700; font-size: .92rem;
    cursor: pointer; text-decoration: none;
    transition: transform .18s, box-shadow .18s, background .18s;
    white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-900); box-shadow: var(--shadow-md); color: #fff; }

.btn-gold { background: var(--gold-500); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-400); }

.btn-outline { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn-secondary { background: #fff; color: var(--green-800); border-color: var(--border); }
.btn-secondary:hover { background: var(--cream-dark); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a01e1e; }

.btn.btn-block { display: flex; width: 100%; }
.btn.btn-sm { padding: 0 14px; min-height: 36px; font-size: .82rem; border-radius: 7px; }
.btn.btn-lg { padding: 0 30px; min-height: 52px; font-size: 1rem; }

/* ==============================================
   ALERTS
   ============================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .9rem; font-weight: 500;
    line-height: 1.5; border: 1px solid;
}
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-color: #ffb8b8; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #a8dfb6; }
.alert-info    { background: var(--info-bg);    color: var(--info-color); border-color: #b7ddf8; }
.alert ul { margin: 8px 0 0 16px; }

/* ==============================================
   BADGES / STATUS
   ============================================== */
.badge, .status {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .74rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em;
}
.badge::before, .status::before { content: '●'; font-size: .45rem; }

.badge-pending,  .status-pending  { background: #fff4cc; color: #765700; }
.badge-under-review               { background: #e3efff; color: #175ea8; }
.badge-approved, .status-approved { background: var(--green-light); color: var(--green-700); }
.badge-disbursed, .badge-completed, .status-paid { background: var(--green-light); color: var(--green-700); }
.badge-rejected, .status-rejected { background: var(--danger-bg); color: #a61b1b; }
.badge-overdue { background: var(--danger-bg); color: #a61b1b; }

/* ==============================================
   TABLES
   ============================================== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead tr { border-bottom: 2px solid var(--border); }
th {
    text-align: left; padding: 11px 16px;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
    color: var(--muted); font-weight: 700;
    background: var(--cream-dark); white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--cream); }

.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th {
    text-align: left; padding: 11px 18px;
    font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--muted); font-weight: 700; background: var(--cream-dark);
    width: 170px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.detail-table td { padding: 11px 18px; font-size: .93rem; border-bottom: 1px solid var(--border); }
.detail-table tr:last-child th, .detail-table tr:last-child td { border-bottom: none; }

/* ==============================================
   STAT CARDS
   ============================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 16px; margin-bottom: 28px;
}
.stat-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 14px;
}
.stat-card .num { font-size: 1.75rem; font-weight: 800; color: var(--green-900); line-height: 1; margin-bottom: 5px; }
.stat-card .lbl { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.amount-large { font-size: 1.3rem; font-weight: 800; color: var(--green-700); }

/* ==============================================
   APPLICANT DASHBOARD
   ============================================== */
.dash-greeting { margin-bottom: 28px; }
.dash-greeting h1 { font-size: 1.65rem; font-weight: 800; color: var(--green-900); margin-bottom: 4px; }
.dash-greeting p  { color: var(--muted); font-size: .95rem; }

.application-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.application-card-header {
    background: linear-gradient(90deg, var(--green-900), var(--green-700));
    color: #fff; padding: 20px 26px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.application-card-header h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.application-card-body { padding: 26px; }
.app-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 20px; margin-bottom: 20px; }
.detail-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.detail-value { font-size: .97rem; font-weight: 600; color: var(--text); }

.empty-state { text-align: center; padding: 64px 24px; }
.empty-state-icon { font-size: 3.5rem; margin-bottom: 18px; }
.empty-state h2   { font-size: 1.2rem; color: var(--green-900); margin-bottom: 10px; }
.empty-state p    { color: var(--muted); margin-bottom: 28px; font-size: .95rem; }

/* ==============================================
   ADMIN — SIDEBAR
   ============================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: calc(100vh - var(--header-h));
}
.admin-sidebar { background: var(--green-950); padding: 16px 0 32px; }
.admin-sidebar-section {
    padding: 14px 20px 4px;
    font-size: .62rem; text-transform: uppercase; letter-spacing: .1em;
    color: rgba(255,255,255,.28); font-weight: 700; margin-top: 4px;
}
.admin-sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,.62); font-size: .87rem; font-weight: 500;
    transition: background .18s, color .18s;
    border-left: 3px solid transparent; margin: 1px 0;
}
.admin-sidebar-link:hover  { background: rgba(255,255,255,.07); color: rgba(255,255,255,.92); border-left-color: rgba(255,255,255,.18); }
.admin-sidebar-link.active { background: rgba(244,180,0,.15); color: #fff; border-left-color: var(--gold-500); }
.sl-icon { width: 20px; text-align: center; font-style: normal; }
.admin-content { padding: 36px; background: var(--cream); }
.admin-page-title { font-size: 1.5rem; font-weight: 800; color: var(--green-900); margin-bottom: 26px; }

.filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input[type=text] { width: auto; min-width: 160px; }

/* ==============================================
   TERMS PAGE
   ============================================== */
.terms-card {
    max-width: 900px; margin: 40px auto;
    background: #fff; padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.terms-card h1 { color: var(--green-900); font-size: 1.8rem; margin-bottom: 14px; }
.terms-list { list-style: none; margin: 28px 0; }
.terms-list li {
    position: relative; padding-left: 36px; margin-bottom: 18px;
    color: var(--text); line-height: 1.55;
}
.terms-list li::before {
    content: '✓'; position: absolute; left: 0; top: 2px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--green-light); display: flex;
    align-items: center; justify-content: center;
    color: var(--green-700); font-weight: 900; font-size: .75rem;
}

/* ==============================================
   PAYMENT PAGE
   ============================================== */
.payment-hero {
    max-width: 720px; margin: 40px auto;
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: #fff; border-radius: var(--radius-lg);
    padding: 40px; box-shadow: var(--shadow-lg);
}
.payment-hero h1 { font-size: 1.75rem; margin-bottom: 8px; }
.payment-hero > p { opacity: .8; margin-bottom: 28px; }
.payment-number-box {
    background: rgba(255,255,255,.1);
    border-radius: 14px; padding: 30px;
    text-align: center; margin-bottom: 28px;
}
.payment-number-box .label { opacity: .75; font-size: .9rem; margin-bottom: 10px; }
.payment-number-box strong { display: block; font-size: 3.5rem; line-height: 1; letter-spacing: 2px; color: #fff; }
.payment-number-box .biz   { margin-top: 10px; opacity: .8; font-weight: 700; }
.payment-steps { list-style: none; }
.payment-steps li {
    display: flex; gap: 14px; margin-bottom: 16px;
    color: rgba(255,255,255,.92);
}
.payment-steps li::before {
    content: '✓'; flex-shrink: 0; margin-top: 2px;
    font-weight: 900; color: var(--gold-400);
}

/* ==============================================
   MISC
   ============================================== */
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--muted); font-size: .88rem; font-weight: 600;
    margin-bottom: 20px; transition: color .18s;
}
.back-link:hover { color: var(--green-800); }
.help-text  { color: var(--muted); font-size: .82rem; margin-top: 5px; line-height: 1.4; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: 5px; font-weight: 600; }

.error-page { min-height: 70vh; display: grid; place-items: center; padding: 30px; }
.error-card {
    max-width: 500px; background: #fff;
    border-radius: var(--radius-lg); padding: 40px;
    text-align: center; box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.error-card h1 { color: var(--green-900); margin-bottom: 14px; }

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
    background: var(--green-950);
    color: rgba(255,255,255,.72);
    padding: 64px 0 0;
    margin-top: 70px;
}

/* 5-column grid: brand takes more space */
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}

/* Brand column */
.footer-brand-col { display: flex; flex-direction: column; gap: 14px; }
.footer-logo {
    height: 46px; width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 4px;
}
.footer-tagline {
    font-size: .9rem; line-height: 1.6;
    color: rgba(255,255,255,.75);
}
.footer-legal-note {
    font-size: .78rem; line-height: 1.55;
    color: rgba(255,255,255,.42);
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 14px;
    margin-top: 4px;
}

/* Link columns */
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-title {
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.95);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links {
    display: flex; flex-direction: column; gap: 9px;
}
.footer-links a {
    color: rgba(255,255,255,.62);
    font-size: .875rem;
    transition: color .18s, padding-left .18s;
    line-height: 1.3;
}
.footer-links a:hover {
    color: var(--gold-400);
    padding-left: 4px;
}

/* Contact list */
.footer-contact {
    list-style: none;
    display: flex; flex-direction: column; gap: 12px;
}
.footer-contact li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .875rem; color: rgba(255,255,255,.65);
    line-height: 1.4;
}
.fc-icon { flex-shrink: 0; font-size: .95rem; margin-top: 1px; }
.footer-contact a {
    color: rgba(255,255,255,.65);
    transition: color .18s;
}
.footer-contact a:hover { color: var(--gold-400); }

/* Divider */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.1);
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.footer-bottom-left {
    font-size: .82rem;
    color: rgba(255,255,255,.4);
}
.footer-bottom-legal {
    display: flex; gap: 20px; flex-wrap: wrap;
}
.footer-bottom-legal a {
    font-size: .78rem;
    color: rgba(255,255,255,.38);
    transition: color .18s;
}
.footer-bottom-legal a:hover { color: rgba(255,255,255,.75); }

/* ── Footer responsive ───────────────────────── */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }
    .footer-brand-col {
        grid-column: 1 / -1;   /* full width on mid breakpoint */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .footer-brand-col .footer-legal-note { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .site-footer { padding-top: 48px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .footer-bottom-legal { justify-content: center; }
}
@media (max-width: 420px) {
    .footer-grid { grid-template-columns: 1fr; }
}


/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .main-nav {
        display: none;
        position: absolute; left: 16px; right: 16px; top: calc(100% + 8px);
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 12px; background: #fff;
        border: 1px solid var(--border); border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg); z-index: 999;
    }
    .main-nav.open { display: flex; }
    .main-nav a, .nav-logout-btn { width: 100%; text-align: left; padding: 12px 14px; }
    .nav-logout-form { width: 100%; }
    .nav-apply { text-align: center !important; }

    .auth-split { grid-template-columns: 1fr; }
    .auth-hero  { display: none; }
    .auth-panel { padding: 48px 36px; max-width: 560px; margin: 0 auto; width: 100%; }

    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-content { padding: 24px 20px; }

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

@media (max-width: 640px) {
    .form-grid   { grid-template-columns: 1fr; }
    .form-group.full { grid-column: auto; }
    .form-body   { padding: 22px 20px; }
    .form-header { padding: 24px 20px; }
    .form-actions { flex-direction: column-reverse; align-items: stretch; }
    .form-actions .btn { width: 100%; justify-content: center; }

    .stat-grid   { grid-template-columns: 1fr 1fr; }
    .auth-panel  { padding: 36px 24px; }
    .terms-card, .payment-hero { padding: 26px 20px; margin: 20px auto; }
    .footer-grid { grid-template-columns: 1fr; }
}
