/* ============================================================
   Eatoon — Main Stylesheet
   Colors: #7C2D12 (warm rust), #C2410C (terracotta), #FB923C (amber)
   Fonts: Nunito (display) + Inter (body)
   ============================================================ */

:root {
    --navy: #7C2D12;
    --navy-dark: #431407;
    --navy-light: #C2410C;
    --blue-mid: #EA580C;
    --blue-bright: #FB923C;
    --accent: #F97316;
    --gradient: linear-gradient(135deg, #7C2D12 0%, #C2410C 50%, #FB923C 100%);
    --gradient-btn: linear-gradient(135deg, #7C2D12 0%, #C2410C 100%);
    --gradient-btn-hover: linear-gradient(135deg, #431407 0%, #9A3412 100%);
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --success: #059669;
    --success-bg: #ecfdf5;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #d97706;

    --font-display: 'Nunito', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(124,45,18,0.08), 0 4px 12px rgba(124,45,18,0.06);
    --shadow-md: 0 4px 16px rgba(124,45,18,0.1), 0 8px 32px rgba(124,45,18,0.08);
    --shadow-lg: 0 8px 30px rgba(124,45,18,0.12), 0 16px 48px rgba(124,45,18,0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-mid); }

img { max-width: 100%; height: auto; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(124,45,18,0.08);
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-brand {
    display: flex;
    align-items: center;
}
.nav-logo {
    height: 38px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link:hover { background: var(--gray-100); color: var(--navy); }
.nav-link--admin { color: var(--blue-mid); }
.nav-link--logout { color: var(--danger); }
.nav-link--logout:hover { background: var(--danger-bg); }

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--gray-200);
}
.nav-user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
}

.lang-dropdown {
    position: relative;
    margin-left: 0.75rem;
}
.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 4px 8px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray-600);
    transition: var(--transition);
    white-space: nowrap;
}
.lang-dropdown-btn:hover { background: var(--gray-200); }
.lang-dropdown-code { letter-spacing: 0.03em; }
.lang-dropdown-chevron { font-size: 0.6rem; transition: transform 0.2s; }
.lang-dropdown.open .lang-dropdown-chevron { transform: rotate(180deg); }
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    min-width: 150px;
    z-index: 1000;
    list-style: none;
    padding: 0.3rem 0;
    margin: 0;
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    color: var(--gray-700);
    transition: background 0.1s;
    white-space: nowrap;
}
.lang-option:hover { background: var(--gray-50); }
.lang-option--active { font-weight: 700; color: var(--accent); background: var(--gray-50); }

.nav-menu-close { display: none; }
.nav-menu-footer { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(67,20,7,0.78) 0%, rgba(124,45,18,0.62) 100%);
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(249,115,22,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(251,146,60,0.08) 0%, transparent 50%);
}
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    padding: 4rem 38% 8rem 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    animation: fadeInDown 0.8s ease-out;
}
.hero-title {
    font-family: var(--font-display);
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-title-line {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.hero-title-accent {
    display: block;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    opacity: 0.9;
    margin-top: 0.5rem;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin: 0 0 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Floating food icons */
.hero-floaters {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.floater {
    position: absolute;
    font-size: 2rem;
    color: rgba(255,255,255,0.15);
    animation: floatAround 12s ease-in-out infinite;
}
.floater-1 { top: 15%; left: 8%; animation-delay: 0s; }
.floater-2 { top: 25%; right: 12%; animation-delay: -2s; font-size: 2.5rem; }
.floater-3 { bottom: 30%; left: 15%; animation-delay: -4s; }
.floater-4 { top: 45%; right: 8%; animation-delay: -6s; font-size: 1.8rem; }
.floater-5 { bottom: 25%; right: 20%; animation-delay: -8s; font-size: 2.2rem; }
.floater-6 { top: 60%; left: 5%; animation-delay: -10s; }

/* Hero people image (bottom right) */
.hero-peopleshare {
    position: absolute;
    bottom: 0px;
    right: 0;
    height: 72%;
    max-height: 520px;
    width: auto;
    z-index: 2;
    pointer-events: none;
    object-fit: contain;
    object-position: bottom right;
}
@media (max-width: 900px) { .hero-peopleshare { display: none; } }

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
}
.hero-wave svg { display: block; width: 100%; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn-gradient {
    background: var(--gradient-btn);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(124,45,18,0.3);
}
.btn-gradient:hover {
    background: var(--gradient-btn-hover);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(124,45,18,0.4);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--gray-200);
}
.btn-outline:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--gray-50);
}
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}
.btn-danger {
    background: var(--danger);
    color: var(--white);
}
.btn-danger:hover { background: #b91c1c; color: var(--white); transform: translateY(-1px); }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
    flex: 1;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.4rem;
}
.form-group label i { margin-right: 0.3rem; color: var(--blue-mid); }

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-700);
    transition: var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(234,88,12,0.12);
}
.form-input::placeholder { color: var(--gray-400); }
.form-input--sm { max-width: 80px; text-align: center; }
.form-input--readonly { background: var(--gray-100); color: var(--gray-700); cursor: default; font-weight: 500; }

/* Profile avatar */
.profile-avatar-section { display: flex; justify-content: center; padding: 1.5rem 0 0.5rem; }
.profile-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-200);
    box-shadow: var(--shadow);
}
.profile-avatar--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-100);
    color: var(--gray-400);
    font-size: 2.5rem;
}

/* Navbar avatar */
.nav-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    vertical-align: middle;
}
.form-select { cursor: pointer; }

.form-row { display: flex; gap: 1rem; }
.form-hint { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 1rem; }
.form-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 2rem; }
.form-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.form-section h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-bottom: 0.5rem; }

.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    max-width: 800px;
}

/* Needed item rows */
.needed-item-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}
.needed-item-row .form-input { margin-bottom: 0; }
.needed-item-row .form-select { max-width: 180px; }
.remove-item-btn { flex-shrink: 0; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-section {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    position: relative;
    background:
        linear-gradient(rgba(124,45,18,0.55), rgba(67,20,7,0.65)),
        url('/assets/img/hero-b1aT3t3uq2E.jpg') center/cover no-repeat fixed;
}
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-family: var(--font-display); color: var(--navy); font-size: 1.8rem; }
/* Honeypot — off-screen, invisible to humans, not display:none so bots still see it */
.hp-trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--gray-500); }
.auth-footer a { font-weight: 600; color: var(--blue-mid); }
.terms-group { margin-top: 1rem; }
.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--gray-600);
    cursor: pointer;
    line-height: 1.5;
}
.terms-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    accent-color: var(--accent);
    cursor: pointer;
}
.terms-label a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 1rem 0;
    animation: fadeInDown 0.4s ease-out;
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #a7f3d0; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}
.card-header h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--navy);
}
.card-header h2 i { margin-right: 0.5rem; color: var(--blue-mid); }
.card-body { padding: 1.5rem; }
.card--danger { border: 2px solid #fecaca; }
.card--sticky { position: sticky; top: 88px; }

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.page-section { padding: 6rem 0 4rem; }
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--navy);
}
.page-header h1 i { margin-right: 0.5rem; color: var(--blue-mid); }

.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--navy);
    margin-bottom: 3rem;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header--left { text-align: left; margin-bottom: 2rem; }
.section-subtitle {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0.5rem auto 0;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    padding: 5rem 0;
    background: var(--white);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    opacity: 0;
    transform: translateY(30px);
}
.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.feature-card-img {
    position: relative;
    height: 200px;
}
.feature-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.feature-card:hover .feature-card-img img { transform: scale(1.05); }
.feature-card-icon {
    position: absolute;
    bottom: -22px;
    left: 1.5rem;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.feature-card-content {
    padding: 2.25rem 1.5rem 1.75rem;
}
.feature-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 0.6rem;
}
.feature-card-content p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.6; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
    padding: 5rem 0;
    background: var(--gray-50);
}
.hiw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hiw-steps { }
.hiw-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hiw-image.visible { opacity: 1; transform: translateY(0); }
.hiw-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}
.hiw-image-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--white);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
    box-shadow: var(--shadow-md);
}
.hiw-image-badge i { color: var(--blue-bright); font-size: 1.1rem; }
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(30px);
}
.step.visible { opacity: 1; transform: translateY(0); }
.step-number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50%;
}
.step-content h3 {
    font-family: var(--font-display);
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.step-content p { color: var(--gray-500); font-size: 0.9rem; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
    padding: 5rem 0;
    background: var(--white);
}
.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--gray-200);
}
.cta-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 1rem;
}
.cta-content p { color: var(--gray-500); margin-bottom: 1.5rem; }
.cta-illustration { border-radius: var(--radius); overflow: hidden; }
.cta-illustration img { display: block; width: 100%; height: 300px; object-fit: cover; }

/* ============================================================
   PARTY CARDS
   ============================================================ */
.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}
.party-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.party-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.party-card--past { opacity: 0.7; }
.party-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.party-card-image img { width: 100%; height: 100%; object-fit: cover; }
.party-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-active { background: var(--success); color: var(--white); }
.badge-inactive { background: var(--gray-400); color: var(--white); }
.badge-admin { background: var(--navy); color: var(--white); }

.party-card-body { padding: 1.5rem; }
.party-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.party-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.party-meta span {
    font-size: 0.82rem;
    color: var(--gray-500);
}
.party-meta i { margin-right: 0.3rem; color: var(--blue-mid); }
.party-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ============================================================
   SHARE BOX
   ============================================================ */
/* Party cover preview */
.party-cover-preview {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--gray-100);
}
.party-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    cursor: pointer;
}
.form-check input { cursor: pointer; }

.share-box {
    background: var(--gray-50);
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.share-box h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 0.5rem; }
.share-box p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1rem; }
.share-input-group { display: flex; gap: 0.75rem; }
.share-input-group .form-input {
    flex: 1;
    background: var(--white);
    font-size: 0.85rem;
    font-family: monospace;
}

/* ============================================================
   MANAGE GRID
   ============================================================ */
.manage-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.5rem; }

/* ============================================================
   PUBLIC PARTY
   ============================================================ */
.party-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    margin-top: 72px;
}
.party-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(67,20,7,0.92) 0%, rgba(124,45,18,0.50) 60%, transparent 100%);
}
.party-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    color: var(--white);
}
.party-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}
.party-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: bold;
}
.party-hero-meta i { margin-right: 0.3rem; }
.party-hero-desc { max-width: 600px; opacity: 0.85; font-size: 0.95rem; }

.public-party-content { padding: 2rem 0 4rem; }
.public-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }

/* Needed cards */
.needed-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.needed-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.needed-card--done { opacity: 0.6; }
.needed-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.needed-card-info { flex: 1; }
.needed-card-info strong { display: block; font-size: 0.9rem; color: var(--navy); }
.needed-progress-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin: 0.4rem 0 0.2rem;
    overflow: hidden;
}
.needed-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.5s ease;
}
.needed-count { font-size: 0.75rem; color: var(--gray-500); }
.needed-status { color: var(--success); font-size: 1.2rem; }
.claim-btn { flex-shrink: 0; }

/* Contributions */
.contributions-list, .items-list { display: flex; flex-direction: column; gap: 0.5rem; }
.contribution-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.contribution-row:hover { background: var(--gray-50); }
.contribution-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 8px;
    color: var(--blue-mid);
    flex-shrink: 0;
}
.contribution-info { flex: 1; }
.contribution-info strong { color: var(--navy); font-size: 0.9rem; }
.qty { font-size: 0.8rem; color: var(--gray-400); margin-left: 0.25rem; }
.contribution-guest {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 2px;
}
.contribution-note {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-400);
    font-style: italic;
}
.contribution-date { font-size: 0.75rem; color: var(--gray-400); white-space: nowrap; }

.category-heading {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--navy);
    padding: 0.75rem 0 0.5rem;
    border-bottom: 1px solid var(--gray-100);
    margin-top: 1rem;
}
.category-heading:first-child { margin-top: 0; }
.category-heading i { margin-right: 0.4rem; color: var(--blue-mid); }

.item-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.item-row:last-child { border-bottom: none; }
.item-icon { color: var(--blue-mid); width: 24px; text-align: center; }
.item-name { flex: 1; font-size: 0.9rem; color: var(--gray-700); }
.item-progress { font-size: 0.85rem; color: var(--gray-500); font-weight: 600; }
.text-success { color: var(--success); margin-left: 0.3rem; }
.text-muted { color: var(--gray-400); font-size: 0.9rem; }

.inline-form { margin-bottom: 1.5rem; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-section { background: var(--gray-50); min-height: calc(100vh - 72px); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    border-radius: 14px;
    font-size: 1.2rem;
}
.stat-icon--active { background: linear-gradient(135deg, var(--success), #34d399); }
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}
.stat-label { font-size: 0.8rem; color: var(--gray-500); }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }

.admin-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.4rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    width: fit-content;
}
.admin-nav-link {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    border-radius: 6px;
    transition: var(--transition);
}
.admin-nav-link:hover { background: var(--gray-50); color: var(--navy); }
.admin-nav-link.active { background: var(--navy); color: var(--white); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--gray-100);
}
.data-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
}
.data-table tr:hover { background: var(--gray-50); }
.data-table a { font-weight: 600; color: var(--blue-mid); }
.table-responsive { overflow-x: auto; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50px;
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state i {
    font-size: 3.5rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}
.empty-state h3 {
    font-family: var(--font-display);
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.empty-state p { color: var(--gray-500); margin-bottom: 1.5rem; }
.empty-state--sm { padding: 2rem; }
.empty-state--sm i { font-size: 2rem; }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-section {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    text-align: center;
    padding: 6rem 0;
}
.error-code {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.error-content h1 {
    font-family: var(--font-display);
    color: var(--navy);
    font-size: 1.8rem;
    margin: 1rem 0 0.75rem;
}
.error-content p { color: var(--gray-500); margin-bottom: 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.footer-logo {
    height: 36px;
    width: auto;
    display: block;
    margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.9rem; }
.footer-links h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    font-size: 0.82rem;
    text-align: center;
}
.swiss-made {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(8deg); }
    50% { transform: translate(-10px, -35px) rotate(-5deg); }
    75% { transform: translate(20px, -15px) rotate(10deg); }
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Copied tooltip */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease-out;
    z-index: 9999;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp-card .card-header { flex-wrap: wrap; gap: 0.5rem; }
.rsvp-deadline { font-size: 0.8rem; color: var(--gray-500); }
.rsvp-deadline--passed { color: #c0392b; }
.rsvp-counts {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.rsvp-counts--manage { margin-bottom: 1rem; }
.rsvp-count {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    text-align: center;
}
.rsvp-count strong { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.rsvp-count i { font-size: 1rem; }
.rsvp-count--yes  { background: #d1fae5; color: #065f46; }
.rsvp-count--maybe { background: #fef9c3; color: #854d0e; }
.rsvp-count--no   { background: #fee2e2; color: #991b1b; }
.rsvp-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.rsvp-btn {
    flex: 1;
    min-width: 90px;
    justify-content: center;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
}
.rsvp-btn--yes.active,  .rsvp-btn--yes:hover  { border-color: #065f46; background: #d1fae5; color: #065f46; }
.rsvp-btn--maybe.active,.rsvp-btn--maybe:hover { border-color: #854d0e; background: #fef9c3; color: #854d0e; }
.rsvp-btn--no.active,   .rsvp-btn--no:hover   { border-color: #991b1b; background: #fee2e2; color: #991b1b; }
.rsvp-current { font-size: 0.82rem; color: var(--gray-500); margin-top: 0.75rem; margin-bottom: 0; }
.rsvp-closed { color: var(--gray-400); font-size: 0.9rem; font-style: italic; }

/* Attendee list (public page) */
.attendee-section { margin-top: 1rem; border-top: 1px solid var(--gray-200); padding-top: 0.75rem; }
.attendee-toggle {
    display: flex; align-items: center; gap: 0.5rem;
    width: 100%; background: none; border: none; cursor: pointer;
    font-size: 0.85rem; font-weight: 600; color: var(--gray-600);
    padding: 0.25rem 0; text-align: left;
    transition: color var(--transition);
}
.attendee-toggle:hover { color: var(--navy); }
.attendee-toggle i:first-child { color: var(--blue-mid); }
.attendee-toggle-chevron { margin-left: auto; font-size: 0.75rem; transition: transform 0.25s; }
.attendee-list { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.6rem; overflow: hidden; }
.attendee-list--collapsed { display: none; }
.attendee-row { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.45rem 0.6rem; border-radius: var(--radius-sm); }
.attendee-row--yes   { background: #f0fdf4; }
.attendee-row--maybe { background: #fffbeb; }
.attendee-row--no    { background: #fef2f2; }
.attendee-row--yes   .attendee-icon { color: #16a34a; }
.attendee-row--maybe .attendee-icon { color: #d97706; }
.attendee-row--no    .attendee-icon { color: #dc2626; }
.attendee-icon { margin-top: 0.15rem; flex-shrink: 0; font-size: 0.85rem; }
.attendee-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.attendee-info strong { font-size: 0.88rem; color: var(--navy); }
.attendee-people { font-size: 0.78rem; color: var(--navy-light); font-weight: 600; }
.attendee-brings { font-size: 0.78rem; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsvp-form .form-group { margin-bottom: 0.75rem; }
.rsvp-list { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; }
.rsvp-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
.rsvp-row--yes   { background: #d1fae5; color: #065f46; }
.rsvp-row--maybe { background: #fef9c3; color: #854d0e; }
.rsvp-row--no    { background: #fee2e2; color: #991b1b; }
.rsvp-row { align-items: flex-start; }
.rsvp-row-info { display: flex; flex-direction: column; gap: 0.2rem; }
.rsvp-row-name { font-weight: 600; }
.rsvp-row-meta { font-size: 0.78rem; opacity: 0.8; }
.rsvp-row-diet { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.1rem; }

/* Diet chips (form) */
.diet-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.diet-chip {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
    border: 1.5px solid var(--gray-200); background: var(--gray-50); color: var(--gray-600);
    cursor: pointer; transition: all 0.15s ease; user-select: none;
}
.diet-chip input { display: none; }
.diet-chip:hover { border-color: var(--accent); color: var(--accent); }
.diet-chip--active,
.diet-chip:has(input:checked) {
    background: var(--accent); border-color: var(--accent); color: #fff;
}

/* Diet badges (display) */
.diet-badge {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; background: var(--accent);
    color: #fff; white-space: nowrap;
}
.diet-badge--note { background: var(--gray-500); }
.attendee-diet { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.15rem; }

/* Potluck diet warning */
.diet-warning {
    display: flex; gap: 0.75rem; align-items: flex-start;
    background: #fff7ed; border: 1.5px solid #fed7aa;
    border-radius: var(--radius); padding: 0.75rem 1rem;
    margin-top: 0.5rem; font-size: 0.82rem; color: #9a3412;margin-bottom: 10px;
}
.diet-warning-icon { font-size: 1.3rem; padding-top: 0.05rem; flex-shrink: 0; }
.diet-warning strong { display: block; margin-bottom: 0.2rem; font-size: 0.85rem; }
.diet-warning p { margin: 0; line-height: 1.45; }

/* ============================================================
   COOKIE BANNER + MODAL + FAB
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 2000;
    background: var(--navy-dark);
    color: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 0.4s ease-out;
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-banner-inner p {
    flex: 1;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    min-width: 200px;
}
.cookie-banner-inner p i { margin-right: 0.5rem; color: var(--blue-bright); }
.cookie-banner-inner a { color: var(--blue-bright); text-decoration: underline; margin-left: 0.4rem; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }
.cookie-manage-trigger { color: var(--white) !important; border-color: rgba(255,255,255,0.4) !important; }
.cookie-manage-trigger:hover { border-color: var(--white) !important; background: rgba(255,255,255,0.1) !important; }

/* Persistent FAB button */
.cookie-fab {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--navy);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(124,45,18,0.35);
    transition: background var(--transition), transform var(--transition);
    opacity: 0.75;
}
.cookie-fab:hover { background: var(--navy-light); transform: scale(1.1); opacity: 1; }

/* Cookie modal */
.cookie-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(67,20,7,0.65);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}
.cookie-modal-backdrop.is-open { display: flex; }
.cookie-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    margin: 1rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.25s ease-out;
}
.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}
.cookie-modal-header h3 { font-size: 1rem; color: var(--navy); margin: 0; }
.cookie-modal-header h3 i { margin-right: 0.5rem; }
.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0 0.25rem;
    transition: color var(--transition);
}
.cookie-modal-close:hover { color: var(--navy); }
.cookie-modal-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.cookie-category { background: var(--gray-50); border-radius: var(--radius-sm); padding: 1rem; }
.cookie-category-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.cookie-category-info strong { display: block; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.25rem; }
.cookie-category-info p { font-size: 0.8rem; color: var(--gray-500); margin: 0; line-height: 1.4; }
.cookie-toggle--disabled {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
    white-space: nowrap;
    padding-top: 0.2rem;
    flex-shrink: 0;
}

/* Toggle switch */
.cookie-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}
.cookie-toggle-switch input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-300);
    border-radius: 24px;
    transition: background 0.25s;
}
.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider { background: var(--navy-light); }
.cookie-toggle-switch input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }

.cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-content h2 {
    font-size: 1.15rem;
    color: var(--navy);
    margin: 2rem 0 0.6rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}
.privacy-content h2:first-of-type { border-top: none; padding-top: 0; }
.privacy-content p, .privacy-content li { color: var(--gray-600); line-height: 1.7; }
.privacy-content ul { padding-left: 1.5rem; margin: 0.5rem 0 1rem; }
.privacy-content li { margin-bottom: 0.3rem; }
.privacy-updated { color: var(--gray-400); font-size: 0.85rem; margin-bottom: 2rem; }
.privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 1rem 0;
}
.privacy-table th, .privacy-table td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gray-200);
}
.privacy-table th { background: var(--gray-50); font-weight: 600; color: var(--navy); }
.privacy-table code { font-family: var(--font-mono, monospace); background: var(--gray-100); padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.82rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.15s ease-out;
}
.modal-backdrop[hidden] { display: none; }
.modal {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.2s ease-out;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c0392b;
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--gray-500);
    line-height: 1;
    padding: 0 0.25rem;
}
.modal-close:hover { color: var(--navy); }
.modal-body {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    color: var(--gray-700);
}
.modal-body p { margin: 0 0 0.75rem; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}
.delete-party-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    border: 1px solid #fde8e8;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.delete-party-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #fde8e8;
}
.delete-party-list li:last-child { border-bottom: none; }
.delete-party-list li i { color: #c0392b; flex-shrink: 0; }
.delete-party-list li span { margin-left: auto; color: var(--gray-500); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1215px) {
    .party-hero-content {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0.5rem;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        transition: background 0.2s;
    }
    .nav-toggle:hover { background: var(--gray-100); }
    .nav-toggle span { transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease, width 0.25s ease; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Close button (X) inside menu */
    .nav-menu-close { display: none; }

    .nav-menu {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        padding: 5rem 2rem 2rem;
        gap: 0.25rem;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto;
    }
    .nav-menu.active { transform: translateX(0); }

    /* Logo at bottom */
    .nav-menu-footer {
        margin-top: auto;
        padding-top: 2rem;
        display: flex;
        justify-content: center;
    }
    .nav-menu-logo { height: 36px; opacity: 0.85; }

    .nav-link {
        padding: 0.9rem 1rem;
        width: 100%;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: var(--radius-sm);
        color: var(--gray-700);
        border-bottom: 1px solid var(--gray-100);
    }
    .nav-link:last-of-type { border-bottom: none; }
    .nav-user {
        margin: 0.5rem 0 0;
        padding: 0.75rem 0 0;
        border-left: none;
        border-top: 1px solid var(--gray-200);
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    .nav-user-name {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        color: var(--gray-500);
    }
    .nav-avatar { width: 24px; height: 24px; }
    .lang-dropdown { margin: 0.75rem 0 0; align-self: flex-start; }
    .lang-dropdown-menu { position: static; box-shadow: none; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }

    .hero-content { padding: 3rem 0 6rem; text-align: center; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-actions { flex-direction: column; align-items: center; justify-content: center; }
    .floater { display: none; }

    .form-row { flex-direction: column; gap: 0; }
    .needed-item-row { flex-wrap: wrap; }
    .needed-item-row .form-select { max-width: 100%; }

    .hiw-grid { grid-template-columns: 1fr; }
    .hiw-image { order: -1; }
    .hiw-image img { height: 280px; }
    .section-header--left { text-align: center; }
    .manage-grid { grid-template-columns: 1fr; }
    .public-grid { grid-template-columns: 1fr; }
    .chart-grid { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-inner { grid-template-columns: 1fr; }
    .party-grid { grid-template-columns: 1fr; }
    .share-input-group { flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .card--sticky { position: static; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-title-line { font-size: 2.5rem; }
    .auth-card { padding: 1.5rem; }
    .form-card { padding: 1.5rem; }
}
