/* =====================================================
   GIFTLIST — Design système vibrant & moderne
   ===================================================== */

:root {
    --purple:       #9333ea;
    --purple-l:     #a855f7;
    --purple-d:     #7e22ce;
    --blue:         #3b82f6;
    --blue-d:       #1d4ed8;
    --pink:         #ec4899;
    --red:          #ef4444;
    --green:        #10b981;
    --amber:        #f59e0b;
    --cyan:         #06b6d4;

    --grad:         linear-gradient(135deg, #9333ea 0%, #3b82f6 50%, #ec4899 100%);
    --grad-btn:     linear-gradient(135deg, #7e22ce, #2563eb);
    --grad-hero:    linear-gradient(135deg, #4c1d95 0%, #1e3a8a 50%, #831843 100%);

    --bg:           #07071a;
    --bg2:          #0d0d25;
    --surface:      rgba(255,255,255,0.04);
    --surface-h:    rgba(255,255,255,0.08);
    --border:       rgba(255,255,255,0.07);
    --border-l:     rgba(147,51,234,0.35);

    --text:         #f1f5f9;
    --text-m:       #94a3b8;
    --text-d:       #475569;

    --r:            12px;
    --r-lg:         20px;
    --r-xl:         28px;

    --sh:           0 4px 6px -1px rgba(0,0,0,.4),0 2px 4px -2px rgba(0,0,0,.3);
    --sh-lg:        0 20px 40px -8px rgba(0,0,0,.5);
    --sh-glow:      0 0 40px rgba(147,51,234,.25);
    --sh-glow-sm:   0 0 16px rgba(147,51,234,.2);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--purple-l); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink); }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* ---- Background orbs ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 0%,   rgba(147,51,234,.18) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 85% 15%,  rgba(59,130,246,.12) 0%, transparent 65%),
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(236,72,153,.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.main { min-height: calc(100vh - 72px - 80px); padding: 2rem 0 4rem; }

/* ==================================================
   NAVBAR
   ================================================== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(7,7,26,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 72px;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand {
    display: flex; align-items: center; gap: .5rem;
    text-decoration: none;
}
.brand-icon { font-size: 1.5rem; }
.brand-text {
    font-size: 1.2rem; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex; align-items: center; gap: .25rem;
}
.nav-link {
    padding: .45rem .85rem; border-radius: var(--r);
    color: var(--text-m); font-size: .9rem; font-weight: 500;
    transition: color .2s, background .2s;
    text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--surface-h); }
.nav-create { color: var(--purple-l) !important; }
.nav-admin {
    color: var(--amber) !important;
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.2);
    border-radius: var(--r);
    padding: .4rem .85rem;
}
.nav-sep { width: 1px; height: 24px; background: var(--border); margin: 0 .5rem; }
.nav-username { font-size: .85rem; color: var(--text-m); padding: 0 .5rem; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: .5rem;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-m); border-radius: 2px; transition: .3s;
}

/* ==================================================
   BUTTONS
   ================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .65rem 1.4rem; border-radius: var(--r);
    font-size: .95rem; font-weight: 600; cursor: pointer;
    border: none; text-decoration: none; transition: all .2s; white-space: nowrap;
}
.btn-primary {
    background: var(--grad-btn);
    color: #fff;
    box-shadow: 0 0 20px rgba(147,51,234,.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(147,51,234,.5);
    color: #fff;
}
.btn-secondary {
    background: var(--surface-h);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,.12); color: var(--text); }
.btn-danger {
    background: rgba(239,68,68,.15);
    color: var(--red);
    border: 1px solid rgba(239,68,68,.3);
}
.btn-danger:hover { background: rgba(239,68,68,.25); color: var(--red); }
.btn-success {
    background: rgba(16,185,129,.15);
    color: var(--green);
    border: 1px solid rgba(16,185,129,.3);
}
.btn-success:hover { background: rgba(16,185,129,.25); color: var(--green); }
.btn-ghost {
    background: none; color: var(--text-m);
    border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.15); background: var(--surface); }
.btn-outline {
    background: none;
    color: var(--purple-l);
    border: 1px solid var(--border-l);
}
.btn-outline:hover { background: rgba(147,51,234,.1); color: var(--purple-l); }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ==================================================
   FORMS
   ================================================== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; margin-bottom: .4rem;
    font-size: .85rem; font-weight: 600; color: var(--text-m);
    letter-spacing: .02em; text-transform: uppercase;
}
.form-control {
    width: 100%;
    padding: .75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(147,51,234,.2);
}
.form-control::placeholder { color: var(--text-d); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: .8rem; color: var(--text-d); margin-top: .3rem; }
.form-error { font-size: .8rem; color: var(--red); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---- Card form container ---- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--sh-lg);
}
.form-card-wide { max-width: 780px; }
.form-title {
    font-size: 1.6rem; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .4rem;
}
.form-subtitle { color: var(--text-m); margin-bottom: 2rem; font-size: .95rem; }

/* ==================================================
   ALERTS & BADGES
   ================================================== */
.alert {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 1.2rem; border-radius: var(--r); margin-bottom: 1.5rem;
    font-size: .9rem; font-weight: 500;
}
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }
.alert-info    { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }
.alert-close { background: none; border: none; cursor: pointer; color: inherit; font-size: 1rem; opacity: .7; padding: 0 .2rem; }
.alert-close:hover { opacity: 1; }

.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .7rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.badge-libre       { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.badge-reserved    { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); animation: pulse-amber 2s infinite; }
.badge-taken       { background: rgba(147,51,234,.2);  color: #c084fc; border: 1px solid rgba(147,51,234,.4); }
.badge-contribution{ background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.badge-admin       { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.badge-expired     { background: rgba(239,68,68,.1);   color: #f87171; border: 1px solid rgba(239,68,68,.2); }

@keyframes pulse-amber {
    0%,100% { box-shadow: none; }
    50%      { box-shadow: 0 0 12px rgba(245,158,11,.4); }
}

/* ==================================================
   CARDS
   ================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover {
    border-color: var(--border-l);
    box-shadow: var(--sh-glow-sm);
    transform: translateY(-2px);
}
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.card-meta  { font-size: .82rem; color: var(--text-m); }

/* ---- Occasion card ---- */
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.occ-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s, transform .25s;
    display: flex; flex-direction: column;
}
.occ-card:hover { border-color: var(--border-l); box-shadow: var(--sh-glow-sm); transform: translateY(-3px); }
.occ-card-img {
    height: 160px; overflow: hidden;
    background: var(--grad-hero);
    position: relative;
}
.occ-card-img img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.occ-card-img .occ-card-emoji {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
}
.occ-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.occ-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.occ-card-desc  { font-size: .85rem; color: var(--text-m); flex: 1; margin-bottom: 1rem; line-clamp: 2; -webkit-line-clamp: 2; }
.occ-card-footer{
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding-top: .75rem; border-top: 1px solid var(--border);
    font-size: .8rem; color: var(--text-d);
}
.occ-stats { display: flex; gap: .75rem; }
.occ-stat  { display: flex; align-items: center; gap: .25rem; }

/* ---- Gift card ---- */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1rem; margin-top: 1.25rem; }
.gift-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    display: flex; flex-direction: column; gap: .75rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.gift-card:hover { border-color: var(--border-l); box-shadow: var(--sh-glow-sm); transform: translateY(-2px); }
.gift-card.status-taken    { border-color: rgba(147,51,234,.3); background: rgba(147,51,234,.06); }
.gift-card.status-reserved { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.05); }
.gift-card.status-contribution { border-color: rgba(59,130,246,.25); }

.gift-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.gift-title { font-size: 1rem; font-weight: 700; color: var(--text); flex: 1; }
.gift-price {
    font-size: 1.25rem; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}
.gift-link {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .82rem; color: var(--blue); padding: .3rem .7rem;
    background: rgba(59,130,246,.1); border-radius: 999px;
    border: 1px solid rgba(59,130,246,.25); transition: all .2s;
}
.gift-link:hover { background: rgba(59,130,246,.2); color: var(--blue); }

.gift-status { display: flex; align-items: center; justify-content: space-between; }
.gift-owner  { font-size: .78rem; color: var(--text-m); }
.countdown   { font-size: .75rem; color: var(--amber); font-weight: 600; }

.gift-contribs {
    background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.15);
    border-radius: var(--r); padding: .6rem .8rem;
}
.contrib-total { font-size: .85rem; font-weight: 700; color: var(--blue); }
.contrib-list  { font-size: .78rem; color: var(--text-m); margin-top: .25rem; }

.gift-progress { margin-top: .25rem; }
.progress-bar-wrap { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: .3rem; }
.progress-bar-fill { height: 100%; background: var(--grad); border-radius: 2px; transition: width .5s; }
.progress-label { font-size: .75rem; color: var(--text-m); display: flex; justify-content: space-between; }

.gift-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .25rem; border-top: 1px solid var(--border); }
.gift-actions .btn { flex: 1 1 auto; font-size: .8rem; padding: .4rem .6rem; }

.gift-notes { font-size: .82rem; color: var(--text-m); font-style: italic; }

/* ==================================================
   PAGE HEADERS
   ================================================== */
.page-hero {
    border-radius: var(--r-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    min-height: 200px;
    background: var(--grad-hero);
    display: flex; align-items: flex-end;
}
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(7,7,26,.9) 0%, transparent 60%);
}
.page-hero-content { position: relative; z-index: 1; padding: 2rem; width: 100%; }
.page-hero-title { font-size: 2.2rem; font-weight: 900; margin-bottom: .5rem; }
.page-hero-meta  { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; color: var(--text-m); font-size: .9rem; }
.page-hero-meta-item { display: flex; align-items: center; gap: .35rem; }

.section-title {
    font-size: 1.4rem; font-weight: 800;
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: 1rem;
}
.section-title .grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================================================
   DASHBOARD
   ================================================== */
.dash-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.dash-title { font-size: 1.8rem; font-weight: 900; }
.dash-empty {
    text-align: center; padding: 4rem 2rem;
    background: var(--surface); border: 1px dashed var(--border);
    border-radius: var(--r-xl);
}
.dash-empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.dash-empty h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.dash-empty p { color: var(--text-m); margin-bottom: 1.5rem; }

/* ---- Stats bar ---- */
.stats-bar {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.stat-item { display: flex; flex-direction: column; gap: .15rem; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--purple-l); }
.stat-label { font-size: .78rem; color: var(--text-m); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* ==================================================
   OCCASION VIEW
   ================================================== */
.occ-toolbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: .75rem; margin-bottom: 1.5rem;
    padding: .75rem 1rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-lg);
}
.occ-toolbar-left { display: flex; gap: .5rem; flex-wrap: wrap; }

.invite-box {
    background: rgba(59,130,246,.07);
    border: 1px solid rgba(59,130,246,.2);
    border-radius: var(--r-lg); padding: 1rem 1.25rem;
    margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.invite-label { font-size: .8rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.invite-url {
    flex: 1; font-size: .82rem; color: var(--text-m);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: .4rem .8rem;
    font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    cursor: pointer;
}

.pending-alert {
    display: flex; align-items: center; gap: .75rem;
    background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3);
    border-radius: var(--r-lg); padding: 1rem 1.25rem; margin-bottom: 1.5rem;
    font-size: .9rem; color: #fbbf24; font-weight: 500;
}

/* ==================================================
   ADMIN
   ================================================== */
.admin-header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
    padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.admin-badge {
    background: rgba(245,158,11,.15); color: var(--amber);
    border: 1px solid rgba(245,158,11,.3); border-radius: var(--r);
    padding: .3rem .8rem; font-size: .8rem; font-weight: 700; text-transform: uppercase;
}
.admin-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.admin-nav a {
    padding: .5rem 1rem; border-radius: var(--r); font-size: .9rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-m);
    transition: all .2s;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(147,51,234,.15); border-color: var(--border-l); color: var(--purple-l); }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th {
    padding: .75rem 1rem; text-align: left;
    background: rgba(255,255,255,.03);
    font-size: .78rem; font-weight: 700; color: var(--text-m);
    text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface-h); }
tbody td { padding: .8rem 1rem; vertical-align: middle; }
.td-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ==================================================
   FOOTER
   ================================================== */
.footer {
    background: rgba(7,7,26,.8);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: auto;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-brand {
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-text, .footer-sub { font-size: .85rem; color: var(--text-m); }

/* ==================================================
   AUTH PAGES
   ================================================== */
.auth-wrap {
    min-height: calc(100vh - 72px - 80px);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 0;
}

/* ==================================================
   UTILITY
   ================================================== */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--text-m); }
.text-center { text-align: center; }
.text-sm { font-size: .85rem; }
.font-bold { font-weight: 700; }
.text-purple { color: var(--purple-l); }
.text-green  { color: var(--green); }
.text-amber  { color: var(--amber); }
.text-red    { color: var(--red); }
.text-blue   { color: var(--blue); }
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.chip {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .6rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600;
    background: var(--surface-h); color: var(--text-m);
    border: 1px solid var(--border);
}
.back-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--text-m); font-size: .9rem; margin-bottom: 1.5rem;
    transition: color .2s;
}
.back-link:hover { color: var(--purple-l); }

/* ==================================================
   LANDING PAGE
   ================================================== */
.hero {
    text-align: center; padding: 5rem 1rem 4rem;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem 1rem; border-radius: 999px;
    background: rgba(147,51,234,.12); border: 1px solid rgba(147,51,234,.25);
    font-size: .85rem; font-weight: 600; color: var(--purple-l);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; line-height: 1.1;
    margin-bottom: 1.25rem;
}
.hero-sub { font-size: 1.15rem; color: var(--text-m); max-width: 540px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 1.25rem; margin: 3rem 0;
}
.feature-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 1.5rem; text-align: center;
    transition: border-color .25s, transform .25s;
}
.feature-card:hover { border-color: var(--border-l); transform: translateY(-3px); }
.feature-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.feature-title { font-weight: 700; margin-bottom: .4rem; }
.feature-desc { font-size: .88rem; color: var(--text-m); }

/* ==================================================
   MODAL (contribution form)
   ================================================== */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(7,7,26,.8);
    backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--bg2); border: 1px solid var(--border-l);
    border-radius: var(--r-xl); padding: 2rem; max-width: 420px; width: 90%;
    box-shadow: var(--sh-lg);
}
.modal-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 1.25rem; }
.modal-close { float: right; background: none; border: none; color: var(--text-m); font-size: 1.2rem; cursor: pointer; }

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; align-items: stretch;
        position: absolute; top: 72px; left: 0; right: 0;
        background: rgba(7,7,26,.97); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
        gap: .5rem;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-sep { display: none; }

    .form-row { grid-template-columns: 1fr; }
    .dash-header { flex-direction: column; align-items: flex-start; }
    .occ-grid { grid-template-columns: 1fr; }
    .gift-grid { grid-template-columns: 1fr; }
    .form-card { padding: 1.5rem; }
    .page-hero-title { font-size: 1.6rem; }
    .stats-bar { gap: 1rem; }
    .occ-toolbar { flex-direction: column; }
    .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .btn-lg { width: 100%; }
    .hero-actions .btn { flex: 1 1 160px; }
    .gift-actions .btn { min-width: 0; }
}
