/**
 * NozzePlanner v4.0 – WOW Design System
 * Luxury Wedding Platform Stylesheet
 * 
 * Sections:
 *  1.  CSS Variables & Resets
 *  2.  Typography & Base
 *  3.  Animations & Keyframes
 *  4.  Layout Utilities
 *  5.  Buttons & Ripple
 *  6.  Cards & Glassmorphism
 *  7.  Landing Navbar
 *  8.  Hero Section
 *  9.  Section Layouts
 * 10.  Steps, Features, Pricing
 * 11.  Testimonials
 * 12.  CTA & Footer
 * 13.  Event Page (public/evento.php)
 * 14.  Upload Page
 * 15.  Client Header & Dashboard
 * 16.  Stats Grid
 * 17.  Countdown Widget
 * 18.  Gallery & Lightbox
 * 19.  Dediche
 * 20.  QR Code Display
 * 21.  Forms & Floating Labels
 * 22.  Flash Messages & Badges
 * 23.  Tables
 * 24.  Admin Sidebar
 * 25.  Scroll Animations
 * 26.  Back-to-Top
 * 27.  404 & Login Pages
 * 28.  Responsive Breakpoints
 */

/* =============================================
   1. CSS Variables & Resets
   ============================================= */

:root {
    /* Brand Colors */
    --primary: #ff6b9d;
    --primary-dark: #e91e63;
    --primary-light: #ff8fb3;
    --primary-glow: rgba(255, 107, 157, 0.35);
    --gold: #ffd700;
    --gold-dark: #d4a017;
    --gold-light: #ffe44d;
    --gold-glow: rgba(255, 215, 0, 0.3);

    /* Neutrals */
    --bg: #fdf2f8;
    --bg-deep: #f8e8f0;
    --surface: #fff5f9;
    --surface-glass: rgba(255, 255, 255, 0.72);
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #636e72;
    --text-muted: #a0a0b0;

    /* Accents */
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --info: #74b9ff;
    --purple: #a29bfe;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #c44569 50%, #ffd700 100%);
    --gradient-primary-soft: linear-gradient(135deg, #fff0f5 0%, #fff5f7 50%, #fffdf0 100%);
    --gradient-hero: linear-gradient(135deg, #ff6b9d 0%, #e91e63 30%, #c44569 60%, #ffd700 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    --gradient-gold: linear-gradient(135deg, #ffd700, #ffaa00);
    --gradient-purple: linear-gradient(135deg, #a29bfe, #6c5ce7);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(255,107,157,0.12) 0%, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(255,215,0,0.08) 0%, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(162,155,254,0.08) 0%, transparent 50%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(255,107,157,0.2);
    --shadow-gold: 0 0 30px rgba(255,215,0,0.15);
    --shadow-card: 0 4px 24px rgba(255,107,157,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 12px 48px rgba(255,107,157,0.15), 0 4px 12px rgba(0,0,0,0.06);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;

    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-med: 0.4s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);

    /* Layout */
    --container-max: 1200px;
    --container-sm: 800px;
    --nav-height: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 15px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary); }

::selection { background: rgba(255,107,157,0.2); color: var(--text); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }


/* =============================================
   2. Typography & Base
   ============================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

h1 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); }
h4 { font-size: 1rem; }

p { margin-bottom: 0.5em; }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.w-full { width: 100%; }


/* =============================================
   3. Animations & Keyframes
   ============================================= */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-15px) rotate(2deg); }
    75%      { transform: translateY(10px) rotate(-2deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-20px); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: 0.9; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
    50%      { box-shadow: 0 0 0 15px transparent; }
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes confetti {
    0%   { transform: translateY(0) rotateZ(0); opacity: 1; }
    100% { transform: translateY(-200px) rotateZ(360deg); opacity: 0; }
}

@keyframes bounceIn {
    0%   { transform: scale(0.3); opacity: 0; }
    50%  { transform: scale(1.05); }
    70%  { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes typewriter {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes morphBlob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* =============================================
   4. Layout Utilities
   ============================================= */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section-center {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* =============================================
   5. Buttons & Ripple
   ============================================= */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.btn:active::after {
    transform: scale(0);
    opacity: 0.3;
    transition: 0s;
}

.btn-primary {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--primary-glow);
    color: #fff;
    animation: gradientShift 3s ease infinite;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text);
    border: 1.5px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    padding: 8px 16px;
}
.btn-ghost:hover { background: rgba(255,107,157,0.08); }

.btn-gold {
    background: var(--gradient-gold);
    color: #1a1a2e;
    box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 13px 28px; font-size: 0.95rem; }
.btn-xl { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn[disabled], .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* =============================================
   6. Cards & Glassmorphism
   ============================================= */

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid rgba(255,107,157,0.08);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-med);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.card-header h3 { margin: 0; font-size: 1.1rem; }

.glass-card {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-lg);
}

.glass-card-dark {
    background: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: #fff;
}


/* =============================================
   7. Landing Navbar
   ============================================= */

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 48px);
    height: var(--nav-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,107,157,0.08);
    transition: all var(--transition-med);
}

.landing-nav.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    height: 64px;
}

.landing-nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.landing-nav .logo .logo-img { height: 30px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}
.nav-links a:hover {
    color: var(--primary);
    background: rgba(255,107,157,0.06);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}


/* =============================================
   8. Hero Section
   ============================================= */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 30px) 20px 56px;
    background: var(--bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    z-index: 0;
}

/* Animated background elements */
.hero-bg-elements {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-elements .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: morphBlob 12s ease-in-out infinite;
}

.hero-bg-elements .orb-1 {
    width: 350px;
    height: 350px;
    background: rgba(255, 107, 157, 0.2);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-bg-elements .orb-2 {
    width: 280px;
    height: 280px;
    background: rgba(255, 215, 0, 0.15);
    bottom: -10%;
    left: -5%;
    animation-delay: -4s;
}

.hero-bg-elements .orb-3 {
    width: 220px;
    height: 220px;
    background: rgba(162, 155, 254, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
}

/* Floating decorative elements */
.hero-bg-elements .sparkle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: floatSlow 6s ease-in-out infinite, fadeInScale 2s ease-out forwards;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,107,157,0.15);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 20px;
    animation: fadeInDown 0.8s var(--ease-out) both;
    box-shadow: var(--shadow-sm);
}

.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero h1 .highlight {
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero > .hero-content > p {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 24px;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

/* Parallax hero mockup */
.hero-mockup {
    position: relative;
    z-index: 2;
    margin-top: 32px;
    animation: fadeInUp 1s var(--ease-out) 0.8s both;
}

.hero-mockup img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

/* Social proof strip */
.hero-social-proof {
    margin-top: 32px;
    padding: 20px 0;
    animation: fadeInUp 0.8s var(--ease-out) 1s both;
}

.hero-social-proof .avatars {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.hero-social-proof .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: -10px;
}
.hero-social-proof .avatar:first-child { margin-left: 0; }

.hero-social-proof p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.hero-social-proof strong { color: var(--text); }


/* =============================================
   9. Section Layouts
   ============================================= */

.section {
    padding: clamp(44px, 8vw, 80px) 20px;
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-badge.pink {
    background: rgba(255,107,157,0.1);
    color: var(--primary-dark);
}

.section-badge.gold {
    background: rgba(255,215,0,0.15);
    color: var(--gold-dark);
}

.section-badge.purple {
    background: rgba(162,155,254,0.12);
    color: #6c5ce7;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 12px;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}


/* =============================================
   10. Steps, Features, Pricing
   ============================================= */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.step-card {
    position: relative;
    text-align: center;
    padding: 28px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,107,157,0.08);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-med);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 6px 24px var(--primary-glow);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* Connector line between steps */
.step-card::after {
    content: '→';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-light);
    opacity: 0.5;
}
.step-card:last-child::after { display: none; }


/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 26px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,107,157,0.06);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-med);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-light);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary-soft);
    font-size: 1.4rem;
    margin-bottom: 16px;
    transition: transform var(--transition-fast);
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(5deg); }

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* Pricing */
.pricing-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 36px 30px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255,215,0,0.2);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(255,215,0,0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.popular-tag {
    position: absolute;
    top: 20px;
    right: -32px;
    background: var(--gradient-gold);
    color: #1a1a2e;
    padding: 6px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
}

.price {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0 8px;
    line-height: 1;
}

.price small {
    font-size: 0.9rem;
    -webkit-text-fill-color: var(--text-secondary);
    font-weight: 400;
}

.price-desc {
    color: var(--text-secondary);
    margin-bottom: 22px;
    font-size: 0.85rem;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-card ul li .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,184,148,0.1);
    color: var(--success);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}


/* =============================================
   11. Testimonials
   ============================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 24px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,107,157,0.06);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-med);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.testimonial-card .stars {
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.author-info strong { display: block; font-size: 0.9rem; }
.author-info span { font-size: 0.78rem; color: var(--text-muted); }


/* =============================================
   12. CTA & Footer
   ============================================= */

.cta-section {
    position: relative;
    padding: clamp(40px, 7vw, 72px) 20px;
    text-align: center;
    background: var(--gradient-dark);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,107,157,0.15), transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(255,215,0,0.1), transparent 60%);
}

.cta-section h2 {
    position: relative;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 16px;
}

.cta-section p {
    position: relative;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.cta-buttons {
    position: relative;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-footer {
    background: var(--gradient-dark);
    color: rgba(255,255,255,0.7);
    padding: 44px 0 0;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px 28px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand .logo .logo-img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.footer-brand > p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.landing-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-weight: 600;
}

.landing-footer ul { list-style: none; }
.landing-footer ul li { margin-bottom: 8px; }
.landing-footer ul a {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}
.landing-footer ul a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}


/* =============================================
   13. Event Page (public/evento.php)
   ============================================= */

.event-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.event-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.event-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px 60px;
    width: 100%;
    max-width: 800px;
}

.event-hero-content h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s var(--ease-out) both;
    margin-bottom: 16px;
    font-weight: 800;
}

.event-hero-content .date,
.event-hero-content .location {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.event-hero-content .hero-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.event-hero-content .hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.event-hero-content .hero-cta {
    margin-top: 24px;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

/* Event countdown inline */
.event-countdown {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.event-countdown .cd-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    min-width: 65px;
    text-align: center;
}

.event-countdown .cd-item .cd-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}

.event-countdown .cd-item .cd-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}


/* Event nav */
.event-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-wrap: wrap;
}

.event-nav a {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.event-nav a:hover,
.event-nav a.active {
    color: var(--primary-dark);
    background: rgba(255,107,157,0.08);
}

/* Media counter badge */
.media-counter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,107,157,0.1);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.media-counter .mc-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.media-counter .mc-num {
    font-weight: 700;
    color: var(--text);
}


/* =============================================
   14. Upload Page
   ============================================= */

.upload-page-header {
    text-align: center;
    padding: 32px 20px 24px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.upload-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent 50%);
}

.upload-page-header .brand-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
}

.upload-page-header .brand-line img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.3);
}

.upload-page-header h1 {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: #fff;
    margin-bottom: 8px;
    position: relative;
}

.upload-page-header p {
    position: relative;
}

.upload-section {
    max-width: 640px;
    margin: -24px auto 0;
    padding: 0 20px 40px;
    position: relative;
    z-index: 2;
}

.upload-area {
    position: relative;
    border: 2px dashed rgba(255,107,157,0.3);
    border-radius: var(--radius-lg);
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-med);
    background: var(--gradient-primary-soft);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(255,107,157,0.06);
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--primary-glow);
}

.upload-area .upload-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: block;
    animation: floatSlow 3s ease-in-out infinite;
}

.upload-area h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* File preview grid */
.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.file-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    animation: scaleIn 0.3s var(--ease-spring) both;
}

.file-preview-item img,
.file-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Upload progress */
.upload-progress {
    margin-top: 16px;
    display: none;
}

.progress-bar-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Success animation */
.success-animation {
    animation: bounceIn 0.8s var(--ease-spring) both;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: bounceIn 0.6s var(--ease-spring) 0.2s both;
}

.success-confetti {
    position: relative;
}


/* =============================================
   15. Client Header & Dashboard
   ============================================= */

.client-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 3vw, 32px);
    height: 56px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,107,157,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.client-header .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.client-header .brand .logo-img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.client-header nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.client-header nav a {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.client-header nav a:hover,
.client-header nav a.active {
    color: var(--primary-dark);
    background: rgba(255,107,157,0.08);
}

.client-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 36px;
}

/* Dashboard welcome */
.dashboard-welcome {
    margin-bottom: 32px;
}

.dashboard-welcome h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 4px;
}

.dashboard-welcome p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Subscription bar */
.scadenza-bar {
    padding: 14px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeInDown 0.5s var(--ease-out) both;
}

.scadenza-bar.ok {
    background: rgba(0,184,148,0.08);
    border: 1px solid rgba(0,184,148,0.15);
    color: #00856f;
}

.scadenza-bar.warning {
    background: rgba(253,203,110,0.12);
    border: 1px solid rgba(253,203,110,0.25);
    color: #b37800;
}

.scadenza-bar.expired {
    background: rgba(225,112,85,0.08);
    border: 1px solid rgba(225,112,85,0.15);
    color: #c0392b;
}


/* =============================================
   16. Stats Grid
   ============================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255,107,157,0.06);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-med);
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 4px 4px 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-icon.rosa { background: rgba(255,107,157,0.1); }
.stat-icon.blu { background: rgba(116,185,255,0.1); }
.stat-icon.verde { background: rgba(0,184,148,0.1); }
.stat-icon.oro { background: rgba(255,215,0,0.1); }
.stat-icon.viola { background: rgba(162,155,254,0.1); }

.stat-card:nth-child(1)::before { background: var(--primary); }
.stat-card:nth-child(2)::before { background: var(--info); }
.stat-card:nth-child(3)::before { background: var(--success); }
.stat-card:nth-child(4)::before { background: var(--gold); }

.stat-info h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 0;
}


/* =============================================
   17. Countdown Widget
   ============================================= */

.countdown-widget {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 32px;
    border: 1px solid rgba(255,107,157,0.08);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.countdown-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary-soft);
    opacity: 0.5;
}

.countdown-widget h2 {
    position: relative;
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.countdown-numbers {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.countdown-item {
    min-width: 72px;
    padding: 12px 10px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.countdown-item .number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
}

.countdown-item .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

.countdown-past {
    position: relative;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}


/* =============================================
   18. Gallery & Lightbox
   ============================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 0 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-med);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 14px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-med);
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}

.gallery-item:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: #fff;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 3;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
    animation: fadeInScale 0.3s var(--ease-out);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 3;
    transition: all var(--transition-fast);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    z-index: 3;
}


/* =============================================
   19. Dediche
   ============================================= */

.dediche-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dedica-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid rgba(255,107,157,0.06);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-med);
    position: relative;
}

.dedica-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.dedica-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.2;
    line-height: 1;
}

.dedica-card .autore {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.dedica-card .messaggio {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.dedica-card .data {
    font-size: 0.78rem;
    color: var(--text-muted);
}


/* =============================================
   20. QR Code Display
   ============================================= */

.qr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.qr-card {
    text-align: center;
    padding: 18px 14px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-med);
}

.qr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.qr-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.qr-card p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 12px; }

.qr-card img {
    max-width: 180px;
    margin: 0 auto 12px;
    border-radius: var(--radius-sm);
}

.qr-box {
    text-align: center;
    padding: 16px;
}


/* =============================================
   21. Forms & Floating Labels
   ============================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group label small {
    font-weight: 400;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--card-bg);
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23636e72' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.char-counter {
    text-align: right;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.char-counter.warning { color: var(--warning); }
.char-counter.danger { color: var(--danger); }

/* Floating label */
.floating-label {
    position: relative;
}

.floating-label input,
.floating-label textarea {
    padding-top: 20px;
}

.floating-label label {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    pointer-events: none;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label,
.floating-label textarea:focus ~ label,
.floating-label textarea:not(:placeholder-shown) ~ label {
    top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
}


/* =============================================
   22. Flash Messages & Badges
   ============================================= */

.flash-message {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    animation: fadeInDown 0.4s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-success {
    background: rgba(0,184,148,0.08);
    border: 1px solid rgba(0,184,148,0.2);
    color: #00856f;
}

.flash-error {
    background: rgba(225,112,85,0.08);
    border: 1px solid rgba(225,112,85,0.2);
    color: #c0392b;
}

.flash-warning {
    background: rgba(253,203,110,0.1);
    border: 1px solid rgba(253,203,110,0.25);
    color: #b37800;
}

.flash-info {
    background: rgba(116,185,255,0.08);
    border: 1px solid rgba(116,185,255,0.2);
    color: #2e6da4;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-primary { background: rgba(255,107,157,0.1); color: var(--primary-dark); }
.badge-success { background: rgba(0,184,148,0.1); color: var(--success); }
.badge-warning { background: rgba(253,203,110,0.15); color: #b37800; }
.badge-danger { background: rgba(225,112,85,0.1); color: var(--danger); }
.badge-gold { background: rgba(255,215,0,0.12); color: var(--gold-dark); }
.badge-info { background: rgba(116,185,255,0.1); color: #2e6da4; }


/* =============================================
   23. Tables
   ============================================= */

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid rgba(0,0,0,0.06);
}

.table td {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    vertical-align: middle;
}

.table tr:hover td { background: rgba(255,107,157,0.02); }


/* =============================================
   24. Admin Layout
   ============================================= */

/* Admin layout wrapper */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.admin-layout .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.admin-layout .sidebar::-webkit-scrollbar { width: 4px; }
.admin-layout .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.sidebar-brand .logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sidebar-brand .logo-text h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.sidebar-brand .logo-text small {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar section labels */
.sidebar-section {
    padding: 16px 20px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3);
}

/* Sidebar navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-nav a .nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.sidebar-nav a.active {
    color: #fff;
    background: rgba(255,107,157,0.2);
    font-weight: 600;
}

/* Sidebar footer */
.sidebar-footer {
    margin-top: auto;
    padding: 12px 8px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-footer .btn {
    justify-content: center;
    width: 100%;
}

/* --- Main Content --- */
.admin-layout .main-content {
    margin-left: 250px;
    flex: 1;
    min-height: 100vh;
    background: var(--bg);
    padding: 0 0 32px 0;
}

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar h1 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Admin content area padding */
.admin-layout .main-content > .stats-grid,
.admin-layout .main-content > .grid-2,
.admin-layout .main-content > .card,
.admin-layout .main-content > .quick-actions,
.admin-layout .main-content > h2,
.admin-layout .main-content > h3,
.admin-layout .main-content > form,
.admin-layout .main-content > .flash-message,
.admin-layout .main-content > .empty-state,
.admin-layout .main-content > .table-responsive,
.admin-layout .main-content > p {
    margin-left: 24px;
    margin-right: 24px;
}

/* Stats grid inside admin - top spacing */
.admin-layout .stats-grid {
    margin-top: 20px;
}

/* Cards inside admin don't lift on hover */
.admin-layout .card:hover {
    transform: none;
}

/* Table responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile toggle button */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1100;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: var(--gradient-dark);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

/* Legacy selectors (backward compat) */
.admin-sidebar { /* alias */
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 250px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    z-index: 1000;
    overflow-y: auto;
}
.admin-main {
    margin-left: 250px;
    min-height: 100vh;
    background: var(--bg);
}


/* =============================================
   25. Scroll Animations
   ============================================= */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }


/* =============================================
   26. Back-to-Top
   ============================================= */

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-med);
    border: none;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--primary-glow);
}


/* =============================================
   27. 404 & Login Pages
   ============================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    background-image: var(--gradient-mesh);
    padding: 24px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 1px solid rgba(255,107,157,0.08);
    animation: fadeInScale 0.6s var(--ease-out);
}

.login-logo {
    margin-bottom: 24px;
}

.login-logo .logo-img {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}

.login-logo h1 {
    font-size: 1.3rem;
    margin: 0;
}

/* 404 */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    text-align: center;
    padding: 24px;
}

.error-code {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon,
.empty-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}


/* =============================================
   28. Responsive Breakpoints
   ============================================= */

/* Large tablets */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .qr-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-layout .sidebar { width: 220px; }
    .admin-layout .main-content { margin-left: 220px; }
    .admin-sidebar { width: 220px; }
    .admin-main { margin-left: 220px; }
}

/* Tablets */
@media (max-width: 768px) {
    .landing-nav .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 8px;
        z-index: 999;
    }

    .landing-nav .nav-links.active { display: flex; }

    .nav-toggle { display: block; }

    .hero h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }

    .steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .step-card::after { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }

    .client-header nav { gap: 2px; }
    .client-header nav a { padding: 6px 10px; font-size: 0.75rem; }

    /* Admin sidebar responsive */
    .admin-layout .sidebar {
        transform: translateX(-100%);
        width: 260px;
        transition: transform 0.3s ease;
    }
    .admin-layout .sidebar.open { transform: translateX(0); }
    .admin-layout .main-content { margin-left: 0; }
    .admin-layout .main-content > .topbar { padding-left: 60px; }
    .mobile-toggle { display: flex; }

    .admin-sidebar {
        transform: translateX(-100%);
        width: 280px;
        transition: transform var(--transition-med);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }

    .form-row { grid-template-columns: 1fr; }
    .qr-grid { grid-template-columns: 1fr; }
    
    .event-hero { min-height: 48vh; }
    .event-countdown .cd-item { min-width: 65px; padding: 10px 14px; }
    .event-countdown .cd-item .cd-num { font-size: 1.4rem; }

    .countdown-item { min-width: 70px; }
    .countdown-item .number { font-size: 1.8rem; }
}

/* Mobile */
@media (max-width: 480px) {
    .hero { padding-top: calc(var(--nav-height) + 20px); min-height: 75vh; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 300px; }

    .section { padding: 36px 14px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 16px 14px; gap: 12px; }
    .stat-info h3 { font-size: 1.2rem; }
    .stat-icon { width: 38px; height: 38px; font-size: 1rem; }

    .card { padding: 20px 18px; }
    .pricing-card { padding: 26px 20px; }

    .countdown-numbers { gap: 12px; }
    .countdown-item { min-width: 60px; padding: 12px 8px; }
    .countdown-item .number { font-size: 1.5rem; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 12px; }

    .client-header {
        flex-direction: column;
        height: auto;
        padding: 12px 16px;
        gap: 8px;
    }
    .client-header nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }
    .client-header nav::-webkit-scrollbar { display: none; }

    .upload-area { padding: 24px 14px; }

    .event-hero { min-height: 42vh; }
    .event-hero-content h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
    .event-nav { gap: 4px; padding: 10px 12px; }
    .event-nav a { padding: 6px 12px; font-size: 0.8rem; }

    .cta-section h2 { font-size: clamp(1.2rem, 4vw, 1.7rem); }

    .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* Ultra-wide */
@media (min-width: 1600px) {
    :root { font-size: 16px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (min-width: 2000px) {
    :root { font-size: 17px; }
    .container, .section-center { max-width: 1400px; }
}


/* =============================================
   Quick Actions Grid
   ============================================= */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,107,157,0.06);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    transition: all var(--transition-med);
    text-decoration: none;
}

.quick-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.quick-action-btn.primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.quick-action-btn.primary:hover {
    box-shadow: 0 8px 32px var(--primary-glow);
    color: #fff;
}


/* =============================================
   Particles / Decorative
   ============================================= */

.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Print styles */
@media print {
    .landing-nav, .client-header, .back-to-top, .btn, .event-nav { display: none !important; }
    .hero { min-height: auto; padding: 32px; }
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}
