/* ============================================
   Whoopla - Party Invitation Platform
   ============================================ */

:root {
    --primary: #E8787A;
    --primary-dark: #D56466;
    --accent: #F0D060;
    --bg: #1E1E1E;
    --surface: #2D2D2D;
    --text: #F5F0EB;
    --text-secondary: #A0998F;
    --border: #3D3D3D;
    --success: #6BCB77;
    --danger: #E8787A;
    --warning: #F0D060;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 32px rgba(232, 120, 122, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.page { display: none; }
.page.active { display: block; }
.page-top { padding-top: 100px; min-height: 80vh; }
.hidden { display: none !important; }

/* ---- Nav ---- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(30,30,30,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 0 24px; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--primary); text-decoration: none; cursor: pointer; letter-spacing: -0.5px; }
.logo-icon { width: 38px; height: 38px; background: var(--primary); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; position: relative; }
.logo-icon::after { content: ''; position: absolute; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; bottom: 4px; right: 4px; }
.modal-logo { width: 52px; height: 52px; font-size: 28px; border-radius: 16px; margin: 0 auto 16px; }
.nav-links { display: flex; gap: 32px; }
.nav-link { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 14px; transition: var(--transition); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after { content: ''; position: absolute; bottom: -20px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 1px; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.user-greeting { font-size: 14px; font-weight: 500; color: var(--text); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--text); border-radius: 1px; transition: var(--transition); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 16px rgba(232,120,122,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(232,120,122,0.4); }
.btn-primary:disabled { opacity: 0.6; pointer-events: none; }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-hero { background: var(--primary); color: white; padding: 16px 40px; font-size: 16px; border-radius: 50px; box-shadow: 0 8px 32px rgba(232,120,122,0.35); }
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(232,120,122,0.45); }
.btn-hero:disabled { opacity: 0.6; pointer-events: none; }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-icon { width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: var(--radius-sm); background: var(--primary); color: white; font-size: 20px; border: none; cursor: pointer; transition: var(--transition); }
.btn-icon:hover { transform: scale(1.05); }
.btn-arrow { transition: var(--transition); display: inline-block; }
.btn-hero:hover .btn-arrow { transform: translateX(4px); }

/* ---- Hero ---- */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 100px 24px 60px; background: linear-gradient(180deg, #252525 0%, var(--bg) 100%); overflow: hidden; }
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle { position: absolute; width: 8px; height: 8px; border-radius: 50%; opacity: 0.3; animation: float 8s infinite ease-in-out; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; } 50% { transform: translateY(-40px) rotate(180deg); opacity: 0.6; } }
.hero-content { text-align: center; max-width: 680px; z-index: 2; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(40px, 7vw, 72px); font-weight: 700; line-height: 1.1; margin-bottom: 24px; }
.highlight { color: var(--primary); -webkit-text-fill-color: var(--primary); }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-cards { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.floating-card { position: absolute; animation: floatCard 6s infinite ease-in-out; }
.card-1 { top: 20%; left: 8%; }
.card-2 { top: 15%; right: 8%; animation-delay: 2s; }
.card-3 { bottom: 20%; right: 12%; animation-delay: 4s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-20px) rotate(3deg); } }
.mini-invite { padding: 20px 28px; border-radius: var(--radius); color: white; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); }
.mini-emoji { font-size: 28px; }
.mini-text { font-weight: 600; font-size: 14px; }

/* ---- Templates ---- */
.section-title { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 40px; }
.template-categories { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.cat-btn { padding: 8px 24px; border-radius: 50px; border: 2px solid var(--border); background: transparent; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); color: var(--text-secondary); }
.cat-btn:hover, .cat-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(102,126,234,0.05); }
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.template-card { border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: var(--transition); aspect-ratio: 3/4; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; padding: 32px; box-shadow: var(--shadow); }
.template-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.template-card::before { content: ''; position: absolute; top: 50%; right: -8px; width: 16px; height: 16px; background: var(--bg); border-radius: 50%; z-index: 2; }
.template-card::after { content: 'Admit One'; position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; opacity: 0; transform: translateY(100%); transition: var(--transition); }
.template-card:hover::after { opacity: 1; transform: translateY(0); }
.template-emoji { font-size: 48px; margin-bottom: 16px; }
.template-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.template-desc { font-size: 13px; opacity: 0.85; }

/* ---- Features ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.feature-card { background: var(--surface); border-radius: var(--radius); padding: 32px; text-align: center; transition: var(--transition); border: 1px solid var(--border); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.feature-icon { font-size: 36px; margin-bottom: 16px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: rgba(232,120,122,0.08); border-radius: 16px; margin-left: auto; margin-right: auto; }
.feature-card h3 { font-family: 'Playfair Display', serif; font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ---- Create ---- */
.create-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.preview-panel { position: sticky; top: 88px; }
.preview-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.invitation-preview { perspective: 1000px; }
.invite-card { border-radius: 24px; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); transition: var(--transition); min-height: 500px; }
.invite-card::before, .invite-card::after { content: ''; position: absolute; width: 20px; height: 20px; background: var(--bg); border-radius: 50%; z-index: 5; right: 60px; }
.invite-card::before { top: -10px; }
.invite-card::after { bottom: -10px; }
.invite-card:hover { transform: rotateY(-2deg) rotateX(1deg); box-shadow: 0 20px 60px rgba(102,126,234,0.25); }
.invite-bg { position: absolute; inset: 0; background: var(--primary); z-index: 0; }
.invite-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%); }
.invite-content { position: relative; z-index: 1; padding: 48px 36px; color: white; text-align: center; }
.invite-emoji { font-size: 56px; margin-bottom: 8px; display: block; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.invite-youre { font-family: 'Dancing Script', cursive; font-size: 22px; opacity: 0.9; margin-bottom: 8px; }
.invite-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; margin-bottom: 28px; line-height: 1.2; }
.invite-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.invite-detail { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; }
.detail-icon { font-size: 18px; }
.invite-message { font-size: 14px; opacity: 0.9; margin-bottom: 24px; line-height: 1.6; font-style: italic; }
.invite-host { font-size: 14px; opacity: 0.8; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); }

/* Card styles */
.invite-card.style-elegant .invite-title { font-size: 36px; letter-spacing: 2px; }
.invite-card.style-elegant .invite-youre { font-size: 26px; }
.invite-card.style-playful { border-radius: 32px; }
.invite-card.style-playful .invite-emoji { font-size: 72px; }
.invite-card.style-playful .invite-title { font-size: 28px; }
.invite-card.style-minimal .invite-bg::after { display: none; }
.invite-card.style-minimal .invite-content { padding: 60px 40px; }
.invite-card.style-minimal .invite-emoji { font-size: 40px; }
.invite-card.style-minimal .invite-youre { display: none; }
.invite-card.style-minimal .invite-title { font-size: 28px; text-transform: uppercase; letter-spacing: 3px; font-family: 'Inter', sans-serif; font-weight: 300; }

/* ---- Form ---- */
.form-panel { background: var(--surface); border-radius: 24px; padding: 40px; border: 1px solid var(--border); }
.steps { display: flex; align-items: center; justify-content: center; margin: 32px 0; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-secondary); transition: var(--transition); }
.step.active { color: var(--primary); }
.step.completed { color: var(--success); }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border); font-weight: 700; font-size: 13px; transition: var(--transition); }
.step.active .step-num { background: var(--primary); color: white; border-color: transparent; }
.step.completed .step-num { background: var(--success); color: white; border-color: transparent; }
.step-line { width: 48px; height: 2px; background: var(--border); margin: 0 12px; }
.form-step { display: none; animation: fadeIn 0.3s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text); transition: var(--transition); background: var(--bg); outline: none; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(102,126,234,0.1); }
.form-input::placeholder { color: #b0b3b8; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.char-count { display: block; text-align: right; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.form-actions .btn { flex: 1; }

/* Color/Style/Emoji */
.color-options { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: var(--transition); }
.color-swatch:nth-child(1) { background: #E8787A; }
.color-swatch:nth-child(2) { background: #D56466; }
.color-swatch:nth-child(3) { background: #4FA8D5; }
.color-swatch:nth-child(4) { background: #6BCB77; }
.color-swatch:nth-child(5) { background: #F0D060; }
.color-swatch:nth-child(6) { background: #8B6DB0; }
.color-swatch:nth-child(7) { background: #D4956A; }
.color-swatch:nth-child(8) { background: #2C5282; }
.color-swatch:nth-child(9) { background: #1A1A2E; }
.color-swatch:nth-child(10) { background: #3D3D3D; }
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: var(--text); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--text); }
.style-options { display: flex; gap: 10px; flex-wrap: wrap; }
.style-btn { padding: 8px 20px; border-radius: 50px; border: 2px solid var(--border); background: transparent; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition); color: var(--text-secondary); }
.style-btn:hover, .style-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(102,126,234,0.05); }
.emoji-options { display: flex; gap: 8px; flex-wrap: wrap; }
.emoji-btn { width: 48px; height: 48px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: transparent; font-size: 24px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.emoji-btn:hover { transform: scale(1.1); border-color: var(--primary); }
.emoji-btn.active { border-color: var(--primary); background: rgba(102,126,234,0.08); box-shadow: 0 0 0 2px rgba(102,126,234,0.2); }

/* Guest list */
.guest-input-row { display: flex; gap: 8px; }
.guest-input-row .form-input { flex: 1; }
.guest-list { max-height: 300px; overflow-y: auto; margin-top: 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 8px; }
.guest-empty { text-align: center; padding: 32px; color: var(--text-secondary); }
.empty-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.guest-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius-xs); transition: var(--transition); }
.guest-item:hover { background: var(--bg); }
.guest-info { display: flex; align-items: center; gap: 12px; }
.guest-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.guest-name { font-weight: 600; font-size: 14px; }
.guest-email { font-size: 12px; color: var(--text-secondary); }
.guest-remove { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 4px; transition: var(--transition); }
.guest-remove:hover { color: var(--danger); background: rgba(245,87,108,0.1); }
.guest-count { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 12px; font-weight: 500; }

/* ---- Events List ---- */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.event-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: var(--transition); border: 1px solid var(--border); }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.event-card-header { padding: 28px 24px; color: white; text-align: center; position: relative; }
.event-card-header::before, .event-card-header::after { content: ''; position: absolute; width: 16px; height: 16px; background: var(--surface); border-radius: 50%; right: 48px; z-index: 2; }
.event-card-header::before { top: -8px; } .event-card-header::after { bottom: -8px; }
.event-card-emoji { font-size: 32px; display: block; margin-bottom: 8px; }
.event-card-header h3 { font-family: 'Playfair Display', serif; font-size: 18px; }
.event-card-body { padding: 16px 20px; }
.event-card-detail { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.event-card-stats { display: flex; gap: 12px; margin: 12px 0; }
.stat-mini { font-size: 12px; font-weight: 700; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon-big { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 24px; }
.loading { text-align: center; padding: 60px; color: var(--text-secondary); }
.error-state { text-align: center; padding: 60px; color: var(--danger); }

/* ---- Dashboard ---- */
.dash-event-info { color: var(--text-secondary); font-size: 14px; margin-bottom: 32px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 12px; }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 24px 20px; text-align: center; position: relative; overflow: hidden; transition: var(--transition); border: 1px solid var(--border); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-number { font-size: 48px; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--primary); line-height: 1; }
.stat-yes .stat-number { color: var(--success); }
.stat-yes::before { background: var(--success); }
.stat-no .stat-number { color: var(--danger); }
.stat-no::before { background: var(--danger); }
.stat-pending .stat-number { color: var(--accent); }
.stat-pending::before { background: var(--accent); }
.stat-card:first-child::before { background: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-secondary); font-weight: 600; margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }
.stat-icon { position: absolute; top: 10px; right: 12px; font-size: 18px; opacity: 0.4; }

.dashboard-table { background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; border: 1px solid var(--border); }
.table-header { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr; padding: 14px 24px; background: rgba(232,120,122,0.06); font-weight: 700; font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.2px; border-bottom: 1px solid var(--border); }
.table-row { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr; padding: 16px 24px; align-items: center; border-bottom: 1px solid var(--border); font-size: 14px; transition: background 0.2s; }
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: rgba(232,120,122,0.03); }

.status-badge { padding: 5px 14px; border-radius: 50px; font-size: 11px; font-weight: 700; display: inline-block; text-transform: uppercase; letter-spacing: 0.5px; }
.status-pending { background: rgba(240,208,96,0.15); color: #F0D060; }
.status-yes { background: rgba(107,203,119,0.15); color: #6BCB77; }
.status-no { background: rgba(232,120,122,0.15); color: #E8787A; }
.status-maybe { background: rgba(79,168,213,0.15); color: #4FA8D5; }
.status-draft { background: rgba(160,153,143,0.15); color: #A0998F; }
.status-sent { background: rgba(107,203,119,0.15); color: #6BCB77; }
.status-cancelled { background: rgba(232,120,122,0.15); color: #E8787A; }

.dashboard-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 0 16px; }
.dashboard-actions .btn { font-size: 13px; padding: 10px 20px; }

/* ---- Modals ---- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); }
.modal-content { position: relative; background: var(--surface); border-radius: 24px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.5); animation: modalIn 0.4s ease; padding: 40px; border: 1px solid var(--border); }
.modal-sm { max-width: 440px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 28px; color: var(--text-secondary); cursor: pointer; transition: var(--transition); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-header { text-align: center; margin-bottom: 28px; }
.modal-header h2 { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 4px; }
.modal-header p { color: var(--text-secondary); font-size: 14px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 20px; }
.auth-switch a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* Success */
.success-icon { font-size: 72px; animation: successBounce 0.6s ease; }
@keyframes successBounce { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.success-actions { display: flex; gap: 12px; justify-content: center; }
.confetti-container { position: relative; height: 0; }
.confetti-piece { position: absolute; width: 10px; height: 10px; border-radius: 2px; animation: confettiFall 2s ease forwards; }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(200px) rotate(720deg); opacity: 0; } }

/* ---- Toast ---- */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--primary); color: white; padding: 14px 28px; border-radius: 50px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 32px rgba(232,120,122,0.3); z-index: 500; transition: var(--transition); opacity: 0; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Footer ---- */
.footer { background: #151515; color: white; padding: 48px 0; margin-top: 40px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-brand p { font-size: 13px; opacity: 0.6; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: white; }

/* ---- Mobile Menu ---- */
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--surface); padding: 16px 24px; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--border); z-index: 99; box-shadow: var(--shadow-lg); }
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 8px 0; font-size: 16px; }

/* ---- Dashboard extras ---- */
.dash-totals { text-align: center; font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 28px; padding: 10px 20px; background: rgba(240,208,96,0.08); border-radius: 50px; display: inline-block; margin-left: auto; margin-right: auto; width: fit-content; }
.dash-totals-wrap { text-align: center; margin-bottom: 28px; }
.dash-auto-refresh { text-align: center; font-size: 11px; color: var(--text-secondary); margin-top: 20px; opacity: 0.5; font-style: italic; }

/* ---- Theme toggle ---- */
.theme-toggle { background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px; transition: transform 0.3s; }
.theme-toggle:hover { transform: scale(1.2); }

/* ---- F22: Light Mode ---- */
body.light-mode { --bg: #f8f9fc; --surface: #ffffff; --text: #1a1a2e; --text-secondary: #6a6e71; --border: #e0e3e8; --shadow: 0 4px 24px rgba(0,0,0,0.06); --shadow-lg: 0 12px 48px rgba(0,0,0,0.1); --shadow-hover: 0 8px 32px rgba(0,0,0,0.12); }
body.light-mode .navbar { background: rgba(255,255,255,0.92); }
body.light-mode .hero { background: linear-gradient(180deg, #f0f2f8 0%, var(--bg) 100%); }
body.light-mode .footer { background: #1a1a2e; }
body.light-mode .mobile-menu { background: #fff; }
body.light-mode .form-input { background: #f5f6f8; color: #1a1a2e; }
body.light-mode .toast { background: #1a1a2e; }
body.light-mode .invite-card::before, body.light-mode .invite-card::after { background: var(--bg); }

/* ---- Loading Spinner ---- */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Google Places Autocomplete ---- */
.pac-container { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); margin-top: 4px; font-family: 'Inter', sans-serif; z-index: 10000; }
.pac-item { padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text); cursor: pointer; font-size: 14px; }
.pac-item:first-child { border-top: none; }
.pac-item:hover, .pac-item-selected { background: rgba(232,120,122,0.08); }
.pac-item-query { color: var(--text); font-weight: 600; }
.pac-icon { display: none; }
.pac-matched { color: var(--primary); font-weight: 700; }
body.light-mode .pac-container { background: #fff; }
body.light-mode .pac-item { color: #1a1a2e; border-color: #e0e3e8; }
body.light-mode .pac-item:hover { background: rgba(232,120,122,0.06); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-cards { display: none; }
    .hero { min-height: auto; padding: 120px 24px 80px; }
    .create-layout { grid-template-columns: 1fr; }
    .preview-panel { position: static; order: -1; }
    .form-row { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .table-header, .table-row { grid-template-columns: 1fr 1fr; }
    .table-header span:nth-child(2), .table-row span:nth-child(2) { display: none; }
    .guest-input-row { flex-wrap: wrap; }
    .footer-content { flex-direction: column; text-align: center; gap: 24px; }
    .events-grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; gap: 16px; align-items: flex-start; }
}
