/* DESIGN SYSTEM */
:root {
    --primary: #D4AF37; /* Gold */
    --primary-dark: #B8941F;
    --teal: #1F6F7E;
    --teal-dark: #16565f;
    --secondary: #1A1A1A;
    --bg-light: #FAF6F0;
    --bg-cream: #F5F0E8;
    --bg-pink: #E8CCC8;
    --bg-khaki: #CDC6A7;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --white: #FFFFFF;
    --serif: 'Playfair Display', serif;
    --sans: 'Poppins', sans-serif;
    --shadow: 0 20px 40px rgba(0,0,0,0.08);

    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #065f46;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-dark: #991b1b;
    --warning: #f59e0b;
    --warning-light: #fef3cd;
    --warning-dark: #856404;
    --dark: var(--secondary);
    --light: var(--bg-light);
    --border: #e8e4dc;
    --border-light: #f0ece4;
    --text: var(--text-main);
    --text-light: var(--text-muted);

    /* Admin spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;

    /* Admin radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 20px;

    /* Admin shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--sans); 
    background-color: var(--bg-cream); 
    color: var(--text-main);
    line-height: 1.6;
}
input, button, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { 
    color: var(--secondary); 
    line-height: 1.2; 
    font-family: var(--sans);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); margin-bottom: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
h1 em { font-weight: 400; color: var(--primary); }
h2 { font-size: 2.8rem; text-align: center; font-weight: 700; letter-spacing: -0.01em; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}
.btn-xl { padding: 1.2rem 2.4rem; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: var(--white); border: none; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2); }
.btn-secondary { background: #1A1A1A; color: var(--white); border: none; }
.btn-secondary:hover { background: #000000; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); }
.btn-outline { border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }

.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.alert { padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1.2rem; }
.alert-error { background: var(--danger-light); color: var(--danger-dark); border: 1px solid #fca5a5; }
.alert-success { background: var(--success-light); color: var(--success-dark); border: 1px solid #6ee7b7; }

/* HERO SECTION */
.hero { position: relative; height: 90vh; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.7), transparent); z-index: -1; }
.hero-content { max-width: 600px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-weight: 800; font-size: 0.8rem; color: var(--primary); display: block; margin-bottom: 1rem; }
.lead { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; margin-bottom: 3rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; }
.badge { text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; background: rgba(255,255,255,0.2); padding: 0.4rem 1rem; border-radius: 999px; backdrop-filter: blur(5px); }

.hero-trust { display: flex; gap: 2rem; border-top: 1px solid #eee; padding-top: 2rem; }
.trust-item { font-size: 0.9rem; color: var(--text-muted); }
.trust-item strong { display: block; color: var(--secondary); font-size: 1.1rem; }

/* HERO VISUAL STACK */
.image-stack { position: relative; }
.main-montage { 
    width: 100%; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    display: block;
    transform: rotate(2deg);
}
.qr-preview {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transform: rotate(-5deg);
}
.qr-box { 
    width: 100px; height: 100px; 
    background: #f0f0f0; 
    margin-bottom: 0.5rem;
    background-image: radial-gradient(circle, #333 2px, transparent 2px);
    background-size: 8px 8px;
}
.qr-preview p { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }

/* HOW IT WORKS */
.how-section { padding: 8rem 0; background: var(--white); }
.how-section .section-header { margin-bottom: 5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.step-card { position: relative; text-align: center; }
.step-num { font-family: var(--serif); font-size: 5rem; color: #F7F7F7; position: absolute; top: -40px; left: 0; z-index: 1; }
.step-card h3 { position: relative; z-index: 2; margin-bottom: 1rem; font-size: 1.5rem; }
.step-card p { position: relative; z-index: 2; color: var(--text-muted); }

/* CTA BANNER */
.cta-banner { padding: 6rem 0; text-align: center; }
.cta-content { 
    background: var(--primary); 
    padding: 5rem 2rem; 
    border-radius: 30px; 
    color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66 3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-45c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm54 54c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM58 7c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM6 46c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.cta-content h2 { color: var(--white); font-size: 3rem; margin-bottom: 1rem; }
.cta-content p { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.9; }

/* FOOTER */
.footer { padding: 5rem 0 2rem; background: var(--secondary); color: rgba(255,255,255,0.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
.footer-logo { height: 40px; margin-bottom: 1.5rem; }
.footer-links a { display: block; color: var(--white); text-decoration: none; margin-bottom: 0.8rem; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; margin-top: 2rem; text-align: center; font-size: 0.8rem; }

/* MOBILE RESPONSIVENESS */
@media (max-width: 968px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-btns { justify-content: center; }
    .hero-trust { justify-content: center; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-khaki) 0%, var(--bg-cream) 100%); padding: 1.5rem; }
.auth-container { background: var(--white); border-radius: 16px; padding: 3rem; max-width: 450px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.auth-container.auth-compact { padding: 2rem; max-width: 400px; }
.auth-header { text-align: center; margin-bottom: 1.5rem; }
.auth-compact .auth-header { margin-bottom: 1.25rem; }
.auth-logo { height: 50px; width: auto; margin-bottom: 0.75rem; }
.auth-header h1 { color: var(--primary); font-size: 2rem; margin-bottom: 0.5rem; }
.auth-header h2 { color: var(--dark); font-size: 1.4rem; margin-bottom: 0; font-weight: 700; }
.auth-header p { color: var(--text-light); }
.auth-form { margin-bottom: 1.25rem; }

.btn-google { 
    background: var(--white); 
    color: #3c4043; 
    border: 2px solid #dadce0; 
    font-weight: 600; 
    gap: 0.75rem;
    transition: all 0.2s ease;
}
.btn-google:hover { 
    background: #f8f9fa; 
    border-color: #d2d3d4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-google svg { flex-shrink: 0; }

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}
.auth-divider span {
    padding: 0 1rem;
    font-weight: 600;
}

.btn-demo {
    background: linear-gradient(135deg, #D4AF37 0%, #c69f2e 100%);
    color: #1A1A1A;
    border: none;
    text-align: center;
    text-decoration: none;
}
.btn-demo:hover {
    filter: brightness(1.04);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}
.auth-demo-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.78rem;
    margin: 0.5rem 0 1.25rem;
    line-height: 1.4;
}

.auth-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}
.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover {
    text-decoration: underline;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--dark); font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 2px solid var(--border); border-radius: 10px; font-size: 1rem; transition: border-color 0.2s ease; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group small { display: block; margin-top: 0.25rem; color: var(--text-light); font-size: 0.875rem; }
textarea { resize: vertical; min-height: 100px; }

.dashboard { background: var(--bg-cream); padding: 3rem 0; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 3px solid var(--teal); }
.dashboard-header h2 { font-size: 2.2rem; color: #1a1a1a; font-weight: 700; }
.user-name { color: var(--primary); font-weight: 700; }

.empty-state { text-align: center; padding: 5rem 2rem; background: white; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 2px solid #f0f0f0; }
.empty-icon { font-size: 5rem; margin-bottom: 1.5rem; opacity: 0.9; }
.empty-state h3 { color: #1a1a1a; margin-bottom: 1rem; font-size: 1.8rem; font-weight: 700; }
.empty-state p { color: #4a5568; margin-bottom: 2rem; font-size: 1.1rem; }

.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; }
.event-card { background: white; border-radius: 20px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; border: 2px solid #f0f0f0; }
.event-card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,0.15); border-color: var(--primary); }
.event-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1.5rem; gap: 1rem; }
.event-header h3 { font-size: 1.4rem; color: #1a1a1a; margin: 0; flex: 1; font-weight: 700; line-height: 1.3; }
.event-status { padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.status-pending { background: #fef3c7; color: #78350f; border: 2px solid #fbbf24; }
.status-active { background: #d1fae5; color: #065f46; border: 2px solid #10b981; }
.status-archived { background: #e5e7eb; color: #1f2937; border: 2px solid #9ca3af; }
.event-date { color: #4a5568; margin-bottom: 1.5rem; font-size: 1rem; font-weight: 500; }
.event-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; padding: 1.5rem; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); border-radius: 16px; box-shadow: 0 4px 15px rgba(31, 111, 126, 0.3); }
.stat { text-align: center; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.stat-label { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.95); font-weight: 600; margin-top: 0.25rem; }
.stat-number { transition: transform 0.3s ease, color 0.3s ease; }
.event-link { margin-bottom: 1.5rem; }
.event-link small { display: block; color: #4a5568; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.85rem; }
.link-input { width: 100%; padding: 0.8rem; border: 2px solid #d1d5db; border-radius: 10px; font-size: 0.95rem; background: #f9fafb; cursor: pointer; color: #1f2937; font-weight: 500; transition: all 0.2s ease; }
.link-input:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }
.link-input:hover { border-color: #9ca3af; background: white; }
.event-actions { display: flex; gap: 0.5rem; }
.event-actions .btn { flex: 1; text-align: center; justify-content: center; }

.form-container { max-width: 600px; margin: 0 auto; background: var(--white); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow); }
.form-header { text-align: center; margin-bottom: 2rem; }
.form-header h2 { font-size: 2rem; color: var(--dark); margin-bottom: 0.5rem; }
.form-header p { color: var(--text-light); }
.payment-notice { display: flex; gap: 1rem; padding: 1rem; background: #d1fae5; border: 1px solid #6ee7b7; border-radius: 12px; margin-bottom: 2rem; }
.notice-icon { font-size: 1.5rem; color: #065f46; }
.notice-content strong { display: block; color: #065f46; margin-bottom: 0.25rem; }
.notice-content p { color: #047857; margin: 0; font-size: 0.875rem; }
.features-list { background: rgba(0,0,0,0.03); padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; }
.features-list h4 { color: var(--dark); margin-bottom: 1rem; }
.features-list ul { list-style: none; padding: 0; margin: 0; }
.features-list li { padding: 0.5rem 0; color: var(--text); }

.success-banner { display: flex; gap: 1rem; padding: 1.5rem; background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); border: 2px solid #6ee7b7; border-radius: 16px; margin-bottom: 2rem; }
.success-icon { font-size: 2.5rem; }
.success-content h3 { color: #065f46; margin-bottom: 0.25rem; }
.success-content p { color: #047857; margin: 0; }

.event-view-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 2.5rem; padding: 2.5rem; background: white; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); gap: 1.5rem; border: 2px solid #f0f0f0; }
.event-view-header h2 { font-size: 2.2rem; color: #1a1a1a; margin-bottom: 0.75rem; font-weight: 700; }
.event-meta { color: #4a5568; margin: 0; font-size: 1rem; font-weight: 500; }
.status-badge { padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.event-actions-header { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.stat-card { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); padding: 2rem; border-radius: 20px; text-align: center; box-shadow: 0 4px 20px rgba(31, 111, 126, 0.3); border: 2px solid rgba(255,255,255,0.1); }
.stat-number { font-size: 2.5rem; font-weight: 900; color: white; margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }

.share-section { background: white; padding: 2rem; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 2.5rem; border: 2px solid #f0f0f0; }
.share-section h3 { color: #1a1a1a; margin-bottom: 1.5rem; font-size: 1.4rem; font-weight: 700; }
.share-box { display: flex; gap: 1rem; }
.share-input { flex: 1; padding: 1rem; border: 2px solid #d1d5db; border-radius: 12px; background: #f9fafb; font-size: 1rem; color: #1f2937; font-weight: 500; transition: all 0.2s ease; }
.share-input:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }

.content-tabs { display: flex; gap: 0.75rem; margin-bottom: 2.5rem; background: white; padding: 0.75rem; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 2px solid #f0f0f0; }
.tab-btn { flex: 1; padding: 1.2rem; border: none; background: transparent; color: #4a5568; font-size: 1rem; font-weight: 700; border-radius: 14px; cursor: pointer; transition: all 0.3s ease; }
.tab-btn:hover { background: #f3f4f6; color: #1a1a1a; }
.tab-btn.active { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: white; box-shadow: 0 4px 15px rgba(31, 111, 126, 0.3); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; align-items: start; }
.gallery-item { position: relative; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; border: 2px solid #f0f0f0; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,0.15); border-color: var(--primary); }
.gallery-image, .gallery-video { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto !important; max-height: none !important; object-fit: cover; cursor: pointer; }
.gallery-info { padding: 1rem; background: linear-gradient(to top, rgba(0,0,0,0.02), transparent); }
.uploader { font-size: 0.9rem; color: #1f2937; margin-bottom: 0.25rem; font-weight: 600; }
.upload-time { font-size: 0.8rem; color: #6b7280; font-weight: 500; }
.gallery-reactions { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.reaction-count { display: inline-flex; align-items: center; gap: 0.25rem; background: #f3f4f6; padding: 0.25rem 0.6rem; border-radius: 12px; font-size: 0.8rem; font-weight: 600; color: #374151; }
.gallery-actions { position: absolute; top: 0.75rem; right: 0.75rem; display: flex; gap: 0.5rem; opacity: 0; transition: opacity 0.2s ease; }
.gallery-item:hover .gallery-actions { opacity: 1; }
.action-btn { width: 36px; height: 36px; border: none; background: rgba(255,255,255,0.95); border-radius: 12px; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.action-btn:hover { background: white; transform: scale(1.1); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.action-btn.delete:hover { background: #fee2e2; }
.messages-list { display: flex; flex-direction: column; gap: 1.5rem; }
.message-card { background: white; padding: 2rem; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 2px solid #f0f0f0; transition: all 0.3s ease; }
.message-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); border-color: #e5e7eb; }
.message-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; }
.message-header strong { color: #1a1a1a; font-size: 1.1rem; font-weight: 700; }
.message-time { font-size: 0.9rem; color: #6b7280; font-weight: 500; }
.message-text { color: #374151; line-height: 1.7; font-size: 1rem; }
.message-text { color: var(--text); line-height: 1.6; }

.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); align-items: center; justify-content: center; }
.modal-content { max-width: 90%; max-height: 90%; object-fit: contain; }
.modal-close { position: absolute; top: 2rem; right: 2rem; color: var(--white); font-size: 3rem; font-weight: 900; cursor: pointer; }

.qr-container { max-width: 900px; margin: 0 auto; }
.qr-header { text-align: center; margin-bottom: 3rem; }
.qr-header h2 { font-size: 2.5rem; color: #1a1a1a; margin-bottom: 0.75rem; font-weight: 700; }
.qr-header p { color: #4a5568; font-size: 1.1rem; font-weight: 500; }
.qr-display { background: white; border-radius: 24px; padding: 4rem; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,0.12); margin-bottom: 2.5rem; border: 3px solid #f0f0f0; }
.qr-image { max-width: 350px; width: 100%; height: auto; border: 3px solid #e5e7eb; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.qr-fallback { padding: 3rem; color: #6b7280; font-size: 1.1rem; font-weight: 500; }
.qr-info { background: white; border-radius: 20px; padding: 2.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 2.5rem; border: 2px solid #f0f0f0; }
.qr-info h3 { color: #1a1a1a; margin-bottom: 1.5rem; font-size: 1.4rem; font-weight: 700; }
.link-box { display: flex; gap: 1rem; }
.link-input-large { flex: 1; padding: 1.1rem; border: 2px solid #d1d5db; border-radius: 12px; font-size: 1rem; background: #f9fafb; color: #1f2937; font-weight: 500; transition: all 0.2s ease; }
.link-input-large:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }
.qr-instructions { background: white; border-radius: 20px; padding: 2.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 2.5rem; border: 2px solid #f0f0f0; }
.qr-instructions h3 { color: #1a1a1a; margin-bottom: 2rem; text-align: center; font-size: 1.5rem; font-weight: 700; }
.instruction-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.instruction-card { text-align: center; padding: 2rem; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 20px; border: 2px solid #e5e7eb; transition: all 0.3s ease; }
.instruction-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: var(--primary); }
.instruction-icon { font-size: 3rem; margin-bottom: 1rem; }
.instruction-card h4 { color: #1a1a1a; margin-bottom: 0.75rem; font-size: 1.2rem; font-weight: 700; }
.instruction-card p { color: #4a5568; font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
.qr-actions { text-align: center; margin-top: 2rem; }

.guest-page { min-height: 100vh; background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%); }
.guest-header { text-align: center; padding: 3rem 2rem; color: var(--white); }
.guest-header a { display: inline-block; transition: transform 0.2s ease; }
.guest-header a:hover { transform: scale(1.05); }
.guest-logo { height: 120px; width: auto; margin-bottom: 2rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); display: block; margin-left: auto; margin-right: auto; }
.guest-header h1 { font-size: 2.5rem; margin-bottom: 20px; color: var(--white); }
.guest-header .event-date { font-size: 1.3rem; opacity: 1; margin-bottom: 0.5rem; font-weight: 600; color: var(--white); }
.event-description { max-width: 600px; margin: 1rem auto 0; opacity: 0.9; }

.upload-section, .guestbook-section, .gallery-preview { padding: 3rem 0; }
.upload-section { background: var(--white); }
.upload-section h2, .guestbook-section h2, .gallery-preview h2 { text-align: center; font-size: 2rem; color: var(--dark); margin-bottom: 0.5rem; }
.upload-section p, .guestbook-section p { text-align: center; color: var(--text-light); margin-bottom: 2rem; }
.upload-box { max-width: 500px; margin: 0 auto 2rem; padding: 3rem 2rem; background: rgba(0,0,0,0.03); border: 3px dashed var(--border); border-radius: 16px; text-align: center; cursor: pointer; transition: all 0.2s ease; }
.upload-box:hover { border-color: var(--primary); background: rgba(212, 175, 55, 0.06); }
.upload-icon { font-size: 4rem; margin-bottom: 1rem; }
.upload-box h3 { color: var(--dark); margin-bottom: 0.5rem; }
.upload-box p { color: var(--text-light); margin-bottom: 1.5rem; }
.name-input-section { max-width: 500px; margin: 2rem auto 0; }
.name-input-section label { display: block; margin-bottom: 0.5rem; color: var(--dark); font-weight: 600; }
.name-input { width: 100%; padding: 0.8rem; border: 2px solid var(--border); border-radius: 12px; font-size: 1rem; }
.name-input:focus { outline: none; border-color: var(--primary); }
#upload-progress { max-width: 500px; margin: 2rem auto; }
.progress-bar { width: 100%; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 0.5rem; }
.progress-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.2s ease; animation: progress 2s infinite; }
@keyframes progress { 0% { width: 0%; } 50% { width: 70%; } 100% { width: 100%; } }
#progress-text { text-align: center; color: var(--text-light); }
.upload-message { max-width: 500px; margin: 1rem auto; padding: 1rem; border-radius: 12px; text-align: center; font-weight: 700; }
.upload-message.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.upload-message.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.guestbook-section { background: rgba(0,0,0,0.03); }
.guestbook-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.form-input { padding: 0.8rem; border: 2px solid var(--border); border-radius: 12px; font-size: 1rem; font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--primary); }
textarea.form-input { resize: vertical; }

.gallery-preview { background: var(--white); }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.preview-item { position: relative; border-radius: 16px; overflow: hidden; background: rgba(0,0,0,0.03); transition: all 0.2s ease; box-shadow: 0 4px 16px rgba(0,0,0,0.12); display: flex; flex-direction: column; }
.preview-item > div:first-child { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.preview-item:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0,0,0,0.18); }
.preview-image, .preview-video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.preview-item:hover .preview-image, .preview-item:hover .preview-video { transform: scale(1.06); }
.preview-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.65); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; }
.preview-item:hover .preview-overlay { opacity: 1; }
.preview-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.preview-text { color: var(--white); font-weight: 800; font-size: 1.1rem; }
.uploader-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: var(--white); font-size: 0.875rem; text-align: center; font-weight: 700; }
.reaction-bar { display: flex; gap: 0.5rem; padding: 0.75rem; background: var(--white); border-top: 1px solid var(--border); justify-content: space-around; }
.reaction-btn { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.5rem 0.6rem; background: rgba(0,0,0,0.03); border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s ease; font-size: 0.9rem; min-width: 54px; }
.reaction-btn:hover { transform: scale(1.06); background: rgba(0,0,0,0.05); border-color: var(--primary); }
.reaction-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.reaction-emoji { font-size: 1.4rem; transition: transform 0.2s ease; display: block; line-height: 1; }
.reaction-btn.active .reaction-emoji { transform: scale(1.12); }
.reaction-count { font-weight: 800; font-size: 0.85rem; text-align: center; display: block; min-height: 1rem; }
.reaction-btn.active .reaction-count { color: #000; }

.comment-btn { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.5rem 0.6rem; background: rgba(0,0,0,0.03); border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s ease; font-size: 0.9rem; min-width: 54px; }
.comment-btn:hover:not(:disabled) { transform: scale(1.06); background: rgba(0,0,0,0.05); border-color: var(--primary); }
.comment-emoji { font-size: 1.4rem; display: block; line-height: 1; }
.comment-count { font-weight: 800; font-size: 0.85rem; text-align: center; display: block !important; visibility: visible !important; min-height: 1rem; color: #000 !important; }
.gallery-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95); z-index: 10002; align-items: center; justify-content: center; padding: 1rem; }
.gallery-modal.active { display: flex; }
.gallery-modal-content { max-width: 95vw; max-height: 95vh; position: relative; }
.gallery-modal-body { display: flex; flex-direction: column; align-items: center; }
.gallery-modal-body img, .gallery-modal-body video { max-width: 95vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.gallery-modal-close { position: absolute; top: -50px; right: 0; background: var(--white); color: #333; border: none; width: 45px; height: 45px; border-radius: 50%; font-size: 2rem; cursor: pointer; font-weight: 900; line-height: 1; transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.gallery-modal-close:hover { background: #f0f0f0; transform: rotate(90deg); }
.gallery-modal-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: var(--white); border: 2px solid rgba(255,255,255,0.3); width: 60px; height: 60px; border-radius: 8px; font-size: 2rem; cursor: pointer; font-weight: 300; line-height: 1; transition: all 0.3s ease; backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; }
.gallery-modal-nav:hover { background: rgba(0,0,0,0.8); border-color: rgba(255,255,255,0.6); transform: translateY(-50%) scale(1.05); }
.gallery-modal-prev { left: 1.5rem; }
.gallery-modal-next { right: 1.5rem; }
.gallery-modal-uploader { margin-top: 1.5rem; color: var(--white); font-size: 1.1rem; font-weight: 700; text-align: center; padding: 0.75rem 1.5rem; background: rgba(255,255,255,0.1); border-radius: 999px; backdrop-filter: blur(10px); }

.comments-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 10001; align-items: center; justify-content: center; padding: 1rem; }
.comments-modal.active { display: flex; }
.comments-modal-content { background: var(--white); border-radius: 16px; max-width: 600px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.comments-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.comments-modal-header h3 { margin: 0; font-size: 1.5rem; color: var(--dark); }
.comments-modal-close { background: none; border: none; font-size: 2rem; color: var(--text-muted); cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s ease; }
.comments-modal-close:hover { background: rgba(0,0,0,0.05); color: var(--dark); }
.comments-modal-body { flex: 1; overflow-y: auto; padding: 1.5rem; min-height: 0; }
.comments-list { display: flex; flex-direction: column; gap: 1rem; }
.comment-item { background: rgba(0,0,0,0.03); padding: 1rem; border-radius: 12px; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.comment-header strong { color: var(--dark); font-size: 0.95rem; }
.comment-time { color: var(--text-muted); font-size: 0.85rem; }
.comment-text { color: var(--text); line-height: 1.5; }
.comments-modal-footer { padding: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; flex-shrink: 0; background: var(--white); }
.comments-modal-footer textarea { width: 100%; padding: 0.75rem; border: 2px solid var(--border); border-radius: 12px; font-size: 1rem; font-family: inherit; resize: vertical; min-height: 80px; }
.comments-modal-footer textarea:focus { outline: none; border-color: var(--primary); }
.comments-modal-footer .btn { align-self: flex-end; }

.guest-footer { text-align: center; padding: 2rem; color: var(--white); opacity: 0.8; }

/* Guestbook: make sure the form (especially the Send button) can never get visually clipped */
.guestbook-section {
    padding-bottom: 5rem; /* extra breathing room before the gallery section */
    position: relative;
    z-index: 1;
}

.guestbook-form {
    padding-bottom: 1rem;
    overflow: visible;
}

.guestbook-form .btn {
    width: 100%;
    justify-content: center;
}

@media print {
    /* Hide navigation and extra elements */
    .main-header, .navbar, .qr-info, .qr-instructions, .qr-actions { display: none !important; }
    
    /* Reset body and container for print */
    body {
        background: white !important;
        margin: 0;
        padding: 0;
    }
    
    .dashboard {
        background: white !important;
        padding: 0 !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 2rem !important;
    }
    
    .qr-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        page-break-after: avoid !important;
    }
    
    /* Show logo when printing */
    .print-logo {
        position: static !important;
        display: block !important;
        width: 200px !important;
        height: auto !important;
        margin: 0 auto 2rem !important;
    }
    
    /* Header styling for print */
    .qr-header {
        text-align: center !important;
        margin-bottom: 2rem !important;
    }
    
    .qr-header h2 {
        font-size: 2.5rem !important;
        color: #000 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .qr-header p {
        font-size: 1.2rem !important;
        color: #333 !important;
    }
    
    /* QR code display */
    .qr-display {
        box-shadow: none !important;
        border: 3px solid #000 !important;
        border-radius: 16px !important;
        padding: 2rem !important;
        background: white !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
    }
    
    .qr-image {
        max-width: 400px !important;
        width: 400px !important;
        height: 400px !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Add footer with URL */
    .qr-container::after {
        content: 'Scan this QR code with your phone camera to upload photos';
        display: block;
        text-align: center;
        margin-top: 2rem;
        font-size: 1.1rem;
        color: #666;
        font-weight: 600;
    }
}

/* NEW HOMEPAGE STYLES - GUESTPIX INSPIRED */

/* Main Header - Material Design Inspired */
.main-header { 
    background: #dabf67; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 4px 8px rgba(0,0,0,0.02);
    padding: 0.5rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}
.main-header.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}
.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0;
}
.header-content:not(:has(.main-nav)) {
    justify-content: flex-start;
}
.logo { 
    display: flex; 
    align-items: center; 
    gap: 0.875rem; 
    text-decoration: none;
    transition: transform 0.2s ease;
    line-height: 0;
}
.logo:hover {
    transform: translateY(-1px);
}
.logo img { 
    width: 110px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}
.logo-text { 
    font-size: 1.625rem; 
    font-weight: 700; 
    color: var(--secondary); 
    font-family: var(--serif);
    letter-spacing: -0.02em;
}
.main-nav { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}
.main-nav .nav-link { 
    color: var(--text-main); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.01em;
}
.main-nav .nav-link:hover { 
    color: var(--primary);
    background: rgba(212, 175, 55, 0.06);
}
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.375rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}
.main-nav .btn-primary {
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.2), 0 4px 8px rgba(212, 175, 55, 0.1);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.75rem;
}
.main-nav .btn-primary:hover {
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.25), 0 6px 16px rgba(212, 175, 55, 0.15);
}
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; }

/* Hero Section */
.hero-section { padding: 5rem 0; background: linear-gradient(135deg, #fef5f6 0%, #fdfcfb 100%); }
.hero-section .container { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero-content h1 { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1.15; margin-bottom: 1.5rem; color: var(--secondary); font-weight: 700; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }
.hero-cta { display: flex; flex-direction: column; gap: 1rem; }
.pricing-note { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.hero-explainer { color: var(--text-main); font-size: 1rem; margin: 0.75rem 0 0 0; font-weight: 600; font-style: italic; }

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--serif);
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.stat-suffix {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-left: 0.25rem;
}

/* Features Section */
.features-section { padding: 5rem 0; background: var(--white); }
.section-heading { font-family: var(--serif); font-size: 2.8rem; text-align: center; margin-bottom: 3rem; color: var(--secondary); font-weight: 700; letter-spacing: -0.01em; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.feature-card { text-align: center; padding: 2rem; background: var(--bg-light); border-radius: 16px; transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--secondary); font-weight: 700; }
.feature-card p { color: var(--text-muted); }

.step { display: flex; gap: 2rem; align-items: start; }
.step-number { flex-shrink: 0; width: 50px; height: 50px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; }
.step-content h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--secondary); font-weight: 700; }
.step-content p { color: var(--text-muted); line-height: 1.6; }

/* Benefits Section */
.benefits-section { padding: 5rem 0; background: var(--white); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.benefit { text-align: center; }
.benefit-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.benefit h4 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--secondary); font-weight: 700; }
.benefit p { color: var(--text-muted); line-height: 1.6; }

/* Testimonials Section */
.testimonials-section { padding: 5rem 0; background: var(--bg-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--white); padding: 2rem; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.testimonial-stars { color: #D4AF37; font-size: 1.2rem; margin-bottom: 1rem; }
.testimonial-text { color: var(--text-main); font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; font-style: italic; }
.testimonial-author { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }

/* FAQ Section */
.faq-section { padding: 5rem 0; background: var(--white); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-light); padding: 1.5rem 2rem; border-radius: 12px; margin-bottom: 1rem; transition: all 0.3s ease; }
.faq-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.faq-question { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.75rem; }
.faq-answer { color: var(--text-muted); line-height: 1.6; }

/* CTA Section */
.cta-section { padding: 5rem 0; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.cta-box { text-align: center; color: var(--white); max-width: 700px; margin: 0 auto; }
.cta-box h2 { font-family: var(--serif); color: var(--white); font-size: 2.8rem; margin-bottom: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.cta-box p { font-size: 1.15rem; margin-bottom: 2rem; opacity: 0.95; }
.cta-box .btn { background: var(--white); color: var(--primary); }
.cta-box .btn:hover { background: var(--bg-light); transform: translateY(-3px); }
.cta-features { margin-top: 1.5rem; font-size: 0.95rem; opacity: 0.9; }

/* Footer styles moved to /css/footer.css */

/* Responsive */
@media (max-width: 1400px) {
}

@media (max-width: 968px) {
    .hero-section .container { grid-template-columns: 1fr; text-align: center; }
    .features-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .step { flex-direction: column; text-align: center; }
    .footer-content { flex-direction: column; gap: 2rem; }
}

@media (max-width: 768px) {
    /* Container and spacing */
    .container { padding: 0 1rem; }
    
    /* Auth pages mobile */
    .auth-page { padding: 1rem; }
    .auth-container { padding: 2rem 1.5rem; border-radius: 12px; }
    .auth-container.auth-compact { padding: 1.75rem 1.25rem; }
    .auth-header h2 { font-size: 1.25rem; }
    .auth-logo { height: 45px; margin-bottom: 0.5rem; }
    .btn-google { font-size: 0.9rem; padding: 0.75rem 1.4rem; }
    .form-group { margin-bottom: 1.25rem; }
    .form-group input, .form-group textarea { padding: 0.75rem; font-size: 0.95rem; }
    
    /* Stats section mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-suffix {
        font-size: 1.5rem;
    }
    
    /* Header and navigation */
    .main-header { padding: 0.4rem 0; }
    .logo img { width: 120px; }
    .main-nav { gap: 0.25rem; flex-wrap: wrap; }
    .main-nav .nav-link { 
        padding: 0.5rem 0.75rem; 
        font-size: 0.85rem; 
    }
    .main-nav .btn-primary { 
        padding: 0.6rem 1.2rem; 
        font-size: 0.9rem; 
    }
    
    /* Hero section */
    .hero-section { padding: 3rem 0; }
    .hero-content h1 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 1rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-cta { gap: 0.75rem; }
    .hero-logo { width: 280px; max-width: 90%; }
    .btn-large { padding: 0.85rem 1.5rem; font-size: 1rem; }
    .pricing-note { font-size: 0.85rem; }
    
    /* Sections */
    .features-section, .how-it-works, .benefits-section, .testimonials-section, .faq-section, .cta-section { 
        padding: 3rem 0; 
    }
    .section-heading { font-size: 1.75rem; margin-bottom: 2rem; }
    
    /* Testimonials */
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 1.5rem; }
    
    /* FAQ */
    .faq-item { padding: 1.25rem 1.5rem; }
    .faq-question { font-size: 1rem; }
    .faq-answer { font-size: 0.95rem; }
    
    /* Feature cards */
    .features-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    .feature-card { padding: 1.5rem; }
    .feature-icon { font-size: 2.5rem; }
    .feature-card h3 { font-size: 1.25rem; }
    .feature-card p { font-size: 0.95rem; }
    
    /* Steps */
    .step-number { width: 50px; height: 50px; font-size: 1.25rem; }
    .step-content h3 { font-size: 1.25rem; }
    .step-content p { font-size: 0.95rem; }
    
    /* Benefits */
    .benefit-icon { font-size: 2rem; }
    .benefit h4 { font-size: 1.1rem; }
    .benefit p { font-size: 0.95rem; }
    
    /* CTA section */
    .cta-box h2 { font-size: 1.75rem; }
    .cta-box p { font-size: 1rem; }
    .cta-features { font-size: 0.85rem; }
    
    /* Footer */
    .footer-logo { height: 28px; }
    .footer-links { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-bottom p { font-size: 0.85rem; }
    
    /* Gallery and content grids */
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
    .preview-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .events-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container { padding: 0 0.75rem; }
    
    /* Auth pages extra small */
    .auth-page { padding: 0.75rem; }
    .auth-container { padding: 1.5rem 1rem; }
    .auth-container.auth-compact { padding: 1.5rem 1rem; }
    .auth-header h2 { font-size: 1.15rem; }
    .btn-google { font-size: 0.85rem; padding: 0.7rem 1.2rem; }
    
    /* Navigation - stack on very small screens */
    .main-nav .nav-link { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
    .main-nav .btn-primary { 
        width: 100%; 
        margin-top: 0.5rem; 
        justify-content: center; 
    }
    
    /* Hero */
    .hero-content h1 { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-logo { width: 240px; }
    .btn-large { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
    
    /* Sections */
    .section-heading { font-size: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card, .benefit { padding: 1.25rem; }
    
    /* Gallery grids extra small */
    .gallery-grid { grid-template-columns: 1fr; }
    .preview-grid { grid-template-columns: 1fr; }
    
    /* CTA */
    .cta-box h2 { font-size: 1.5rem; }
    .cta-box p { font-size: 0.95rem; }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
}

.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--dark);
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    background: #d1fae5;
    color: #065f46;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #991b1b;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
    background: #fef3c7;
    color: #92400e;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
    background: #dbeafe;
    color: #1e40af;
}

@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
    }
}

/* ═══════════════════════════════════════════════════
   MOBILE ADMIN STYLES (phone-first optimisations)
   ═══════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .container { padding: 0 0.75rem; }
    .dashboard { padding: 1rem 0; }
    .dashboard .container { padding: 0 0.75rem; }

    /* Tap target minimum: 44px */
    .btn, .btn-sm, .btn-outline, .btn-primary, .btn-secondary,
    button, a.btn, input[type="submit"] {
        min-height: 44px;
        font-size: 0.88rem;
    }
    .btn-sm { min-height: 40px; }

    /* Gallery grid: 2 columns on mobile */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .gallery-item { border-radius: 10px; }
    .gallery-info { padding: 0.5rem; }
    .uploader { font-size: 0.8rem; }
    .upload-time { font-size: 0.72rem; }

    /* Gallery actions: always visible on touch */
    .gallery-actions { opacity: 1; }
    .action-btn { width: 32px; height: 32px; font-size: 0.95rem; border-radius: 8px; }

    /* Event view header */
    .event-view-header { padding: 1.25rem; gap: 0.75rem; border-radius: 12px; }
    .event-view-header h2 { font-size: 1.4rem; }

    /* Stat cards */
    .stats-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-card { padding: 1rem; border-radius: 12px; }
    .stat-number { font-size: 1.8rem; }

    /* Share box */
    .share-box { flex-direction: column; }
    .share-input { font-size: 0.9rem; }

    /* Link box */
    .link-box { flex-direction: column; }

    /* Event cards in grid */
    .events-grid { grid-template-columns: 1fr; gap: 1rem; }
    .event-card { padding: 1.25rem; border-radius: 12px; }
    .event-header h3 { font-size: 1.15rem; }
    .event-actions { flex-direction: column; }
    .event-actions .btn { flex: none; width: 100%; }

    /* Empty state */
    .empty-state { padding: 2.5rem 1.25rem; border-radius: 12px; }
    .empty-icon { font-size: 3.5rem; }
    .empty-state h3 { font-size: 1.3rem; }

    /* Form improvements */
    .form-container { padding: 1.25rem; border-radius: 12px; }
    .form-group input, .form-group textarea { font-size: 16px; padding: 0.75rem; }
    .form-header h2 { font-size: 1.5rem; }

    /* QR page */
    .qr-display { padding: 1.5rem; border-radius: 16px; }
    .qr-image { max-width: 200px; }
    .qr-info { padding: 1.25rem; }
    .instruction-grid { grid-template-columns: 1fr; gap: 1rem; }
    .instruction-card { padding: 1.25rem; }

    /* Image modal: full-screen on mobile */
    .gallery-modal-nav { width: 44px; height: 44px; font-size: 1.5rem; }
    .gallery-modal-prev { left: 0.5rem; }
    .gallery-modal-next { right: 0.5rem; }
    .gallery-modal-close { top: -40px; width: 40px; height: 40px; font-size: 1.5rem; }

    /* Auth pages */
    .auth-page { padding: 1rem; }
    .auth-container { padding: 1.5rem; border-radius: 12px; }
    .auth-container.auth-compact { padding: 1.25rem; }
    .auth-header h2 { font-size: 1.2rem; }
    .auth-logo { height: 40px; }
    .auth-form input { font-size: 16px; padding: 0.75rem; }
    .btn-block { min-height: 48px; font-size: 0.95rem; }
    .btn-google { min-height: 48px; }

    /* Prevent horizontal overflow */
    html, body { overflow-x: hidden; }
}

/* ═══════════════════════════════════════════════════
   QR CODE PAGE STYLES
   ═══════════════════════════════════════════════════ */

.qr-row-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid #f0f0f0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.qr-row-card.qr-disabled {
    opacity: 0.6;
    background: #f9fafb;
}

.qr-row-left {
    flex-shrink: 0;
}

.qr-row-img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    object-fit: contain;
}

.qr-row-center {
    flex: 1;
    min-width: 0;
}

.qr-row-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qr-row-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.qr-status {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-link-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.qr-link-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #f9fafb;
    color: #1f2937;
    font-weight: 500;
}

.qr-row-storage {
    margin-bottom: 1rem;
}

.qr-row-storage-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
}

.qr-row-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.qr-row-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.qr-row-meta {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.qr-row-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.qr-act-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.qr-act-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.qr-act-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
}

.qr-act-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.qr-act-print-main {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.qr-act-utility-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid #e5e7eb;
}

.qr-act-warn {
    border-color: #fbbf24;
    color: #92400e;
}

.qr-act-warn:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}

.qr-act-success {
    border-color: #10b981;
    color: #065f46;
}

.qr-act-success:hover {
    background: #d1fae5;
    border-color: #059669;
}

.action-form {
    margin: 0;
}

.action-form button {
    width: 100%;
}

@media (max-width: 968px) {
    .qr-row-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .qr-row-left {
        text-align: center;
    }
    
    .qr-row-img {
        margin: 0 auto;
    }
    
    .qr-row-actions {
        min-width: auto;
    }
}