:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-300: #6ee7b7;
    --emerald-200: #a7f3d0;
    --emerald-100: #d1fae5;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
    --amber-200: #fde68a;
    --amber-50: #fffbeb;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --rose-900: #881337;
    --rose-700: #be123c;
    --rose-600: #e11d48;
    --rose-300: #fda4af;
    --rose-200: #fecdd3;
    --rose-50: #fff1f2;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-50: #eff6ff;
    --blue-200: #bfdbfe;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--slate-50);
    color: var(--slate-900);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.45;
}

/* Top banner */
.top-banner {
    background: var(--emerald-950);
    color: var(--amber-300);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 16px;
    text-align: center;
    border-bottom: 1px solid var(--emerald-900);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Header */
header {
    background: var(--emerald-900);
    border-bottom: 2px solid var(--amber-400);
    color: white;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    /* background: linear-gradient(135deg, #059669, #064e3b);
    border: 2px solid var(--amber-400); */
    background: linear-gradient(135deg, #f8fafc, #f8fafc);
    border: 2px solid #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-style: italic;
    color: var(--amber-300);
    font-size: 18px;
}
.brand-title {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.02em;
}
.brand-badge {
    font-size: 10px;
    background: var(--amber-400);
    color: var(--slate-950);
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.brand-sub {
    font-size: 11px;
    color: var(--emerald-200);
}

nav.desktop-nav {
    display: none;
    align-items: center;
    gap: 4px;
}
@media (min-width: 768px) {
    nav.desktop-nav { display: flex; }
}
.nav-btns {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--emerald-100);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-btns:hover { background: var(--emerald-800); color: white; }
.nav-btns.active {
    background: var(--amber-400);
    color: var(--slate-950);
}

.portal-btn {
    padding: 8px 16px;
    background: var(--amber-400);
    color: var(--slate-950);
    font-weight: 900;
    font-size: 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}
.portal-btn:hover { background: var(--amber-300); }

/* Mobile nav */
.mobile-nav {
    display: flex;
    background: var(--emerald-950);
    border-top: 1px solid var(--emerald-800);
    padding: 6px 8px;
    overflow-x: auto;
    gap: 8px;
    font-size: 11px;
}
@media (min-width: 768px) {
    .mobile-nav { display: none; }
}
.mobile-nav button {
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--emerald-200);
    white-space: nowrap;
    cursor: pointer;
}
.mobile-nav button.active {
    background: var(--amber-400);
    color: var(--slate-950);
}

/* Main content */
main { flex: 1; }
.hidden { display: none !important; }

/* Sections common */
.section-pad { padding: 40px 16px; }
.max-w { max-width: 1280px; margin: 0 auto; }
.max-w-md { max-width: 28rem; margin: 0 auto; }
.max-w-5xl { max-width: 64rem; margin: 0 auto; }

/* Hero */
.hero {
    background: linear-gradient(to bottom, var(--emerald-900), var(--emerald-950), var(--slate-900));
    color: white;
    padding: 48px 16px;
    border-bottom: 4px solid var(--amber-400);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    gap: 32px;
    align-items: center;
}
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 7fr 5fr; }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251,191,36,0.2);
    border: 1px solid rgba(251,191,36,0.4);
    color: var(--amber-300);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}
.hero h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 16px 0;
}
.hero p {
    font-size: 14px;
    color: rgba(167,243,208,0.9);
    max-width: 36rem;
    margin-bottom: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-primary {
    padding: 12px 24px;
    background: var(--amber-400);
    color: var(--slate-950);
    font-weight: 800;
    font-size: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-primary:hover { background: var(--amber-300); }
.btn-secondary {
    padding: 12px 24px;
    background: var(--emerald-800);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid var(--emerald-700);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-secondary:hover { background: var(--emerald-700); }

/* Timer card */
.timer-card {
    background: rgba(2,44,34,0.9);
    border: 2px solid var(--amber-400);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.timer-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.timer-badge.live {
    background: #10b981;
    color: white;
    animation: pulse 2s infinite;
}
.timer-badge.upcoming {
    background: var(--amber-400);
    color: var(--slate-950);
    font-weight: 700;
}
.timer-badge.closed {
    background: rgba(245,158,11,0.2);
    color: #fcd34d;
    border: 1px solid rgba(245,158,11,0.4);
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.timer-digits {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-family: ui-monospace, monospace;
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 900;
    margin: 12px 0;
}
.timer-box {
    background: var(--emerald-900);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--emerald-700);
    min-width: 65px;
    text-align: center;
}
.timer-box span.unit {
    font-size: 10px;
    color: var(--amber-300);
    font-family: system-ui;
    font-weight: 400;
    margin-left: 4px;
}
.timer-colon { color: var(--amber-400); font-weight: 800; }

@media (max-width: 768px) {
    .timer-card {
        background: rgba(2, 44, 34, 0.9);
        border: 2px solid var(--amber-400);
        padding: 6px;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    .timer-box {
        background: var(--emerald-900);
        padding: 2px 6px;
        border-radius: 12px;
        border: 1px solid var(--emerald-700);
        min-width: 65px;
        text-align: center;
    }
    .timer-digits {
        display: flex;
        justify-content: center;
        gap: 2px;
        font-family: ui-monospace, monospace;
        font-size: clamp(1.5rem, 4vw, 1.875rem);
        font-weight: 900;
        margin: 12px 0;
    }

}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    font-size: 22px;
}
.grid-3 {
    display: grid;
    gap: 24px;
}
@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid-4 {
    display: grid;
    gap: 16px;
}
@media (min-width: 640px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Nomination timer banner */
.nom-timer-banner {
    background: linear-gradient(to right, var(--emerald-950), var(--emerald-900), var(--slate-900));
    color: white;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--amber-400);
    margin-bottom: 24px;
}
.nom-digits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    font-family: ui-monospace, monospace;
    font-weight: 900;
    text-align: center;
}
.nom-digit-box {
    background: var(--emerald-900);
    border: 1px solid var(--emerald-700);
    border-radius: 12px;
    padding: 10px 8px;
}
.nom-digit-box .num { font-size: 1.5rem; color: white; }
.nom-digit-box .lbl {
    font-size: 9px;
    color: var(--amber-300);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
    font-family: system-ui;
}

/* Forms */
label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 4px;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--slate-300);
    border-radius: 12px;
    font-size: 13px;
    background: white;
    color: var(--slate-900);
    outline: none;
    transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--emerald-700);
}
.field { margin-bottom: 14px; }
.input-wrap { position: relative; }
.input-wrap .prefix {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.55;
    pointer-events: none;
}
.pw-toggle {
      position: absolute;
      right: 10px; top: 50%;
      transform: translateY(-50%);
      background: none; border: none;
      cursor: pointer;
      font-size: 13px;
      color: var(--sl-500);
      padding: 4px 6px;
    }
.form-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 768px) {
    .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

/* Step indicator */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.step-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 16px;
    position: relative;
}
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--emerald-800);
    color: var(--amber-300);
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

@media (max-width: 640px) {
    .steps {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 24px;
    } 
}
/* Fee cards */
.fee-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 640px) {
    .fee-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .fee-grid { grid-template-columns: repeat(3, 1fr); }
}
.fee-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 16px;
}

/* Timetable */
.timeline-item {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    background: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}
@media (min-width: 640px) {
    .timeline-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    }
}
.timeline-item.highlight {
    background: var(--emerald-900);
    border: 2px solid var(--amber-400);
    color: white;
}
.timeline-date {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    background: var(--slate-100);
    color: var(--slate-700);
}
.timeline-item.highlight .timeline-date {
    background: var(--amber-400);
    color: var(--slate-950);
}
.status-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
}
.status-active {
    background: var(--amber-400);
    color: var(--slate-950);
    animation: pulse 2s infinite;
}
.status-done {
    background: var(--emerald-100);
    color: var(--emerald-800);
}
.status-up {
    background: var(--slate-100);
    color: var(--slate-600);
}

/* Committee cards */
.officer-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 16px;
}
.officer-role {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Login box */
.auth-box {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}
.auth-header {
    background: var(--emerald-950);
    color: white;
    text-align: center;
    padding: 24px;
    border-bottom: 2px solid var(--amber-400);
}
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--slate-200);
    background: var(--slate-50);
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-600);
}
.auth-tabs button {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.auth-tabs button.active {
    background: white;
    color: var(--emerald-800);
    border-bottom-color: var(--emerald-800);
}
.auth-body { padding: 24px; }

.alert-error {
    padding: 12px;
    background: var(--rose-50);
    border: 1px solid var(--rose-200);
    color: var(--rose-700);
    font-size: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.alert-success {
    padding: 12px;
    background: var(--emerald-100);
    border: 1px solid #6ee7b7;
    color: var(--emerald-800);
    font-size: 12px;
    border-radius: 12px;
    text-align: center;
}

/* Footer */
footer {
    background: var(--emerald-950);
    color: var(--emerald-200);
    border-top: 2px solid var(--amber-400);
    padding: 32px 16px;
    font-size: 12px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    }
}

/* Utility */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-amber { color: var(--amber-300); }
.text-emerald { color: var(--emerald-200); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.space-y > * + * { margin-top: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nomination wizard board */
.board {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.board h4 {
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--slate-200);
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.upload-box {
    padding: 12px;
    background: white;
    border: 2px dashed var(--slate-300);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.resume-banner {
    background: var(--emerald-900);
    color: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(251,191,36,0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .resume-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    }
}

/* Candidate cards */
.cand-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 16px;
}
.cand-photo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--amber-400);
}

/* Success step */
.success-panel {
    background: var(--emerald-950);
    color: white;
    border: 2px solid var(--amber-400);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

/* Dark info panel */
.dark-panel {
    background: linear-gradient(135deg, var(--emerald-950), var(--emerald-900), var(--slate-900));
    color: white;
    border-radius: 16px;
    border: 2px solid var(--amber-400);
    padding: 24px;
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
}




.custom-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: #198754;
}

.toast-error {
    background: #dc3545;
}

.toast-warning {
    background: #ffc107;
    color: #212529;
}

.toast-info {
    background: #0d6efd;
}


/* dashboard */
