/* -----------------------------------------------------------
   SANREMO 2026 CAMPAIGN STYLES - ULTRA MODERN DARK THEME
   ----------------------------------------------------------- */

/* 1. DESIGN SYSTEM & VARIABLES */
:root {
    /* Dark Blue Palette - Matching Footer Theme */
    --sr-bg-deep: #0a0f1a;
    --sr-bg-surface: #0f1624;
    --sr-bg-card: #1a2235;
    --sr-bg-elevated: #1C3F6C;
    --sr-primary-gold: #FFD700;
    --sr-primary-gold-dim: #E6C200;
    --sr-accent-glow: #2E5A8C;
    --sr-text-primary: #ffffff;
    --sr-text-secondary: #cbd5e1;
    --sr-text-muted: #94a3b8;

    /* Typography */
    --sr-font-sans: 'Inter', system-ui, sans-serif;
    --sr-font-serif: 'Playfair Display', serif;

    /* Glassmorphism - Dark Blue */
    --sr-glass-bg: rgba(10, 15, 26, 0.85);
    --sr-glass-border: rgba(28, 63, 108, 0.3);
    --sr-glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7);
    --sr-glass-highlight: rgba(255, 215, 0, 0.05);

    /* Spacing & Radius */
    --sr-radius-sm: 8px;
    --sr-radius-md: 16px;
    --sr-radius-lg: 24px;
    --sr-container-width: 1200px;
}

/* CRITICAL: Override base template backgrounds */
body:has(.sanremo-campaign-page),
html:has(.sanremo-campaign-page),
body.sanremo-campaign-page,
html.sanremo-campaign-page {
    background-color: #0a0f1a !important;
    background: #0a0f1a !important;
}

/* Ensure page wrapper is dark */
.sanremo-campaign-page {
    background-color: #0a0f1a !important;
    min-height: 100vh;
}

/* Force all content sections to be dark/transparent */
.sanremo-campaign-page section {
    background-color: transparent !important;
}

/* Remove any Bootstrap white backgrounds */
.sanremo-campaign-page .container,
.sanremo-campaign-page .row,
.sanremo-campaign-page [class*="col-"] {
    background-color: transparent !important;
}

main#main-content:has(.sanremo-campaign-page) {
    background-color: transparent !important;
    background: transparent !important;
}

/* Scoped Reset for Sanremo Section */
.sanremo-campaign-page {
    background-color: var(--sr-bg-deep) !important;
    background: var(--sr-bg-deep) !important;
    color: var(--sr-text-primary) !important;
    font-family: var(--sr-font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    margin-top: -60px;
    padding-top: 0;
}

.sanremo-campaign-page * {
    color: inherit;
}

.sanremo-campaign-page h1,
.sanremo-campaign-page h2,
.sanremo-campaign-page h3,
.sanremo-campaign-page h4 {
    font-family: var(--sr-font-serif);
    font-weight: 400;
    color: var(--sr-text-primary);
}

.sanremo-campaign-page p {
    color: var(--sr-text-secondary);
}

.sanremo-campaign-page strong {
    font-weight: 600;
    color: var(--sr-text-primary);
}

/* 2. BACKGROUND & FLOATING ICONS */
.sr-ambient-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(28, 63, 108, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 215, 0, 0.08), transparent),
        radial-gradient(ellipse 70% 45% at 50% 80%, rgba(46, 90, 140, 0.15), transparent);
    z-index: 0;
    pointer-events: none;
}

.sr-particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Above hero background, below content */
    overflow: hidden;
    pointer-events: none;
}

/* Floating Music Icons - MORE VISIBLE */
.sr-floating-icon {
    position: absolute;
    font-size: 28px;
    color: rgba(251, 191, 36, 0.55);
    text-shadow: 
        0 0 30px rgba(251, 191, 36, 0.7),
        0 0 60px rgba(251, 191, 36, 0.5),
        0 0 90px rgba(251, 191, 36, 0.3);
    animation: srFloatRise 20s infinite linear;
    will-change: transform, opacity;
    filter: blur(0px);
}

/* Musical note text characters */
.sr-musical-note {
    font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Music', sans-serif;
    font-weight: normal;
    line-height: 1;
    color: rgba(255, 215, 0, 0.6);
    text-shadow: 
        0 0 25px rgba(255, 215, 0, 0.8),
        0 0 50px rgba(255, 215, 0, 0.5);
}

/* Alternate colors for variety - More Visible */
.sr-floating-icon:nth-child(3n) {
    color: rgba(148, 163, 184, 0.5);
    text-shadow:
        0 0 30px rgba(148, 163, 184, 0.7),
        0 0 60px rgba(148, 163, 184, 0.5);
}

.sr-floating-icon:nth-child(5n) {
    color: rgba(255, 255, 255, 0.45);
    text-shadow:
        0 0 25px rgba(255, 255, 255, 0.6),
        0 0 50px rgba(255, 255, 255, 0.4);
}

.sr-floating-icon:nth-child(7n) {
    color: rgba(255, 215, 0, 0.6);
    text-shadow:
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.5);
}

@keyframes srFloatRise {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.6);
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* 3. UI COMPONENTS */
.sr-container {
    max-width: var(--sr-container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.sr-btn-primary {
    background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
    color: #000 !important;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px -10px rgba(217, 119, 6, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sr-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(217, 119, 6, 0.7);
    color: #000 !important;
}

.sr-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.sr-btn-secondary {
    background: transparent;
    border: 2px solid var(--sr-primary-gold);
    color: var(--sr-primary-gold) !important;
    padding: 14px 36px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sr-btn-secondary:hover {
    background: var(--sr-primary-gold);
    color: #000 !important;
}

/* Section Headers */
.sr-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sr-section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.sr-section-header p {
    font-size: 1.1rem;
    color: var(--sr-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.sr-section-header .divider {
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--sr-primary-gold), transparent);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* 4. HERO SECTION - FULLSCREEN DARK MODE WITH CURTAIN BACKGROUND */
.sr-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 80px;
    /* Background image will be set inline from campaign.hero_background_image */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Better mobile support */
    /* Dark overlay for text readability - layered ON TOP of image */
    background-color: #0a0f1a; /* Fallback if no image */
    z-index: 1;
}

/* When hero has a background image */
.sr-hero[style*="background-image"] {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .sr-hero[style*="background-image"] {
        background-attachment: scroll; /* Fixed doesn't work well on mobile */
    }
}

/* Dark overlay pseudo-element - sits on top of background image */
.sr-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg,
            rgba(10, 15, 26, 0.70) 0%,
            rgba(15, 22, 36, 0.65) 30%,
            rgba(10, 15, 26, 0.68) 70%,
            rgba(10, 15, 26, 0.75) 100%),
        radial-gradient(ellipse 100% 80% at 50% 20%, rgba(28, 63, 108, 0.15), transparent 60%),
        radial-gradient(ellipse 80% 60% at 30% 70%, rgba(255, 215, 0, 0.08), transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.sr-hero > .sr-container {
    position: relative;
    z-index: 10; /* Above overlay */
    pointer-events: auto; /* Re-enable interactions */
}

.sr-hero-badge {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 50px;
    color: var(--sr-primary-gold);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    background: rgba(251, 191, 36, 0.05);
}

.sr-hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    color: var(--sr-text-primary);
}

.sr-hero h1 span {
    display: block;
    font-size: 0.35em;
    font-family: var(--sr-font-sans);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--sr-text-secondary);
}

.sr-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--sr-text-secondary);
    max-width: 650px;
    margin: 0 auto 50px;
    font-weight: 300;
    line-height: 1.8;
}

/* Scroll Indicator */
.sr-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: fadeInUp 1s ease-out 1s backwards, bounce 2s infinite 2s;
    z-index: 10; /* Above overlay */
    pointer-events: auto; /* Enable clicks */
}

.sr-scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--sr-text-muted);
}

.sr-scroll-indicator i {
    font-size: 1.2rem;
    color: var(--sr-primary-gold);
}

/* 5. CONTENT SECTIONS - DARK THEME */
.sr-content-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
    background: transparent;
}

/* Glass Cards - Dark Blue Theme */
.sr-glass-card {
    background: linear-gradient(135deg, rgba(26, 34, 53, 0.9) 0%, rgba(15, 22, 36, 0.95) 100%);
    border: 1px solid rgba(28, 63, 108, 0.4);
    border-radius: var(--sr-radius-lg);
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sr-glass-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(28, 63, 108, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
    background: linear-gradient(135deg, rgba(26, 34, 53, 0.95) 0%, rgba(28, 63, 108, 0.4) 100%);
}

.sr-glass-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--sr-primary-gold) !important;
}

.sr-glass-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--sr-text-primary) !important;
}

.sr-glass-card p {
    color: var(--sr-text-secondary) !important;
    line-height: 1.8;
}

/* Rules Grid */
.sr-rules-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: stretch;
}

/* Feature List */
.sr-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sr-feature-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--sr-text-secondary);
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--sr-radius-sm);
    border-left: 3px solid var(--sr-primary-gold);
}

.sr-feature-list li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sr-feature-list i {
    color: var(--sr-primary-gold);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.sr-feature-list strong {
    color: var(--sr-text-primary) !important;
}

/* Overview Section */
.sr-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.sr-overview-card {
    background: linear-gradient(135deg, rgba(26, 34, 53, 0.95) 0%, rgba(15, 22, 36, 0.98) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: var(--sr-radius-lg);
    padding: 35px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sr-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--sr-radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(28, 63, 108, 0.6), rgba(255, 215, 0, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sr-overview-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--sr-primary-gold);
    box-shadow: 0 16px 48px rgba(28, 63, 108, 0.4), 0 0 60px rgba(255, 215, 0, 0.15);
}

.sr-overview-card:hover::before {
    opacity: 1;
}

.sr-overview-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sr-overview-card:hover::after {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sr-overview-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(28, 63, 108, 0.8) 0%, rgba(46, 90, 140, 0.6) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(28, 63, 108, 0.5), inset 0 2px 8px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.sr-overview-card:hover .icon {
    background: linear-gradient(135deg, rgba(46, 90, 140, 0.9) 0%, rgba(28, 63, 108, 0.8) 100%);
    border-color: var(--sr-primary-gold);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.4), inset 0 2px 12px rgba(255, 255, 255, 0.15);
    transform: scale(1.1) rotate(5deg);
}

.sr-overview-card .icon i {
    font-size: 1.75rem;
    color: var(--sr-primary-gold);
    transition: all 0.3s ease;
}

.sr-overview-card:hover .icon i {
    color: #ffffff;
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.sr-overview-card h4 {
    color: var(--sr-text-primary) !important;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.sr-overview-card p {
    color: var(--sr-text-secondary) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Prize Section */
.sr-prize-card {
    background: linear-gradient(135deg, rgba(28, 63, 108, 0.3) 0%, rgba(10, 15, 26, 0.95) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: var(--sr-radius-lg);
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.sr-prize-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.12), transparent 50%);
    animation: rotatePrize 20s linear infinite;
}

@keyframes rotatePrize {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sr-prize-card > * {
    position: relative;
    z-index: 1;
}

.sr-prize-card .prize-value {
    font-size: 3rem;
    font-family: var(--sr-font-serif);
    color: var(--sr-primary-gold);
    margin: 20px 0;
}

/* 6. DONATION WIDGET */
.sr-donation-wrapper {
    background: var(--sr-bg-card);
    border-radius: var(--sr-radius-lg);
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--sr-glass-border);
    max-width: 100%;
    margin: 0 auto;
}

/* LEFT: Ticket Selector */
.sr-widget-sidebar {
    flex: 1;
    min-width: 320px;
    background: linear-gradient(180deg, rgba(28, 63, 108, 0.6) 0%, var(--sr-bg-surface) 100%);
    padding: 40px;
    color: var(--sr-text-primary);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(28, 63, 108, 0.3);
    align-items: stretch;
}

.sr-widget-sidebar h3 {
    color: var(--sr-text-primary) !important;
    margin-bottom: 24px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sr-ticket-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sr-radius-md);
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sr-ticket-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.sr-ticket-card.selected {
    background: rgba(251, 191, 36, 0.15);
    border-color: var(--sr-primary-gold);
    box-shadow: 0 0 0 2px var(--sr-primary-gold), 0 10px 30px -10px rgba(251, 191, 36, 0.3);
}

.sr-best-value {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--sr-primary-gold);
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 12px;
    border-bottom-left-radius: 8px;
    text-transform: uppercase;
}

.sr-ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sr-t-qty {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sr-text-primary);
}

.sr-t-qty i {
    margin-right: 8px;
    color: var(--sr-primary-gold);
}

.sr-t-price {
    font-family: var(--sr-font-serif);
    font-size: 1.4rem;
    color: var(--sr-primary-gold);
}

/* Custom Quantity Selector */
.sr-ticket-custom-selector {
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.sr-ticket-custom-selector:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.08);
}

.sr-custom-selector-header {
    font-size: 0.85rem;
    color: #FFD700;
    margin-bottom: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sr-custom-selector-header i {
    font-size: 1rem;
}

.sr-custom-selector-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sr-custom-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 70px;
}

.sr-custom-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    min-width: 200px;
}

.sr-custom-input {
    width: 90px;
    background: rgba(30, 58, 95, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffffff;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
    -moz-appearance: textfield;
}

.sr-custom-input::-webkit-outer-spin-button,
.sr-custom-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sr-custom-input:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(30, 58, 95, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.sr-qty-btn {
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.4);
    color: #FFD700;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sr-qty-btn:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: #FFD700;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.sr-qty-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.15);
}

.sr-qty-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.sr-custom-amount-display {
    text-align: right;
    min-width: 120px;
    margin-left: auto;
}

.sr-custom-amount-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 500;
}

.sr-custom-amount-value {
    color: #FFD700;
    font-weight: 800;
    font-size: 22px;
    font-family: 'Courier New', monospace;
    line-height: 1.2;
}

.sr-custom-selector-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 12px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sr-custom-selector-hint i {
    font-size: 0.7rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sr-donation-wrapper {
        flex-direction: column;
    }
    
    .sr-widget-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(28, 63, 108, 0.3);
    }
    
    .sr-custom-selector-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .sr-custom-label {
        text-align: left;
        min-width: auto;
        width: 100%;
    }
    
    .sr-custom-input-group {
        width: 100%;
        justify-content: center;
    }
    
    .sr-custom-amount-display {
        text-align: center;
        margin-left: 0;
        margin-top: 0;
        width: 100%;
    }
    
    .sr-widget-sidebar h3 {
        justify-content: center;
    }
    
    .sr-total-display {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .sr-widget-sidebar,
    .sr-widget-main {
        padding: 24px;
    }
    
    .sr-custom-input {
        width: 70px;
        font-size: 14px;
        padding: 10px;
    }
    
    .sr-qty-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .sr-total-display > div:nth-child(2) {
        font-size: 2rem;
    }
}

.sr-total-display {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sr-total-display > div:first-child {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 12px;
}

.sr-total-display > div:nth-child(2) {
    font-size: 2.5rem;
    font-family: var(--sr-font-serif);
    font-weight: 700;
    color: var(--sr-primary-gold);
    margin-bottom: 8px;
    line-height: 1.2;
}

.sr-total-display > div:last-child {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* RIGHT: Checkout Form */
.sr-widget-main {
    flex: 1.5;
    min-width: 350px;
    padding: 50px;
    background: linear-gradient(135deg, rgba(26, 34, 53, 0.95) 0%, rgba(15, 22, 36, 0.98) 100%);
    border: 1px solid rgba(28, 63, 108, 0.4);
    border-radius: var(--sr-radius-lg);
    backdrop-filter: blur(20px);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sr-widget-main * {
    color: #ffffff;
}

.sr-input-group {
    margin-bottom: 20px;
}

.sr-input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #cbd5e1 !important;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.sr-input-field {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(28, 63, 108, 0.5);
    border-radius: var(--sr-radius-sm);
    font-size: 1rem;
    font-family: var(--sr-font-sans);
    transition: all 0.2s;
    color: #ffffff !important;
    background: rgba(10, 15, 26, 0.6);
}

.sr-input-field::placeholder {
    color: #64748b !important;
}

.sr-input-field:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(10, 15, 26, 0.8);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

.sr-row {
    display: flex;
    gap: 20px;
}

.sr-col {
    flex: 1;
}

/* Stripe Element */
.sr-stripe-container {
    border: 1px solid rgba(28, 63, 108, 0.5);
    border-radius: var(--sr-radius-sm);
    padding: 16px;
    background: rgba(10, 15, 26, 0.6);
    min-height: 150px;
}

/* Stripe Elements Dark Theme Override */
.sr-stripe-container .StripeElement,
.sr-stripe-container .StripeElement--focus,
.sr-stripe-container .StripeElement--invalid,
.sr-stripe-container .StripeElement--complete {
    background: rgba(10, 15, 26, 0.8) !important;
    color: #ffffff !important;
}

.sr-stripe-container input,
.sr-stripe-container input:focus {
    background: rgba(10, 15, 26, 0.8) !important;
    color: #ffffff !important;
    border-color: rgba(28, 63, 108, 0.5) !important;
}

.sr-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #94a3b8 !important;
}

/* FOOTER scoped */
.sr-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0;
    text-align: center;
    color: var(--sr-text-muted);
    background: var(--sr-bg-deep);
}

.sr-footer p {
    color: var(--sr-text-muted) !important;
}

.sr-footer a {
    color: var(--sr-text-secondary) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.sr-footer a:hover {
    color: var(--sr-primary-gold) !important;
}

/* 7. RESPONSIVE */
@media (max-width: 900px) {
    .sr-rules-grid {
        grid-template-columns: 1fr;
    }

    .sr-donation-wrapper {
        flex-direction: column;
    }

    .sr-widget-sidebar,
    .sr-widget-main {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Fix for iOS - background-attachment: fixed doesn't work on mobile */
    .sr-hero {
        background-attachment: scroll !important;
    }
}

@media (max-width: 600px) {
    .sr-hero {
        padding: 100px 15px 60px;
        background-attachment: scroll !important;
    }

    .sr-hero h1 {
        font-size: 2.5rem;
    }

    .sr-glass-card {
        padding: 25px;
    }

    .sr-widget-sidebar,
    .sr-widget-main {
        padding: 25px;
    }

    .sr-row {
        flex-direction: column;
        gap: 0;
    }
}

/* 8. ANIMATIONS */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-8px); }
}

/* 9. HOMEPAGE WIDGET STYLES */
.sr-homepage-widget {
    background: linear-gradient(135deg, var(--sr-bg-deep) 0%, #1e1b4b 50%, var(--sr-bg-deep) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.sr-homepage-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.1), transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.1), transparent 40%);
    pointer-events: none;
}

.sr-homepage-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.sr-homepage-info h2 {
    font-family: var(--sr-font-serif);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.sr-homepage-info p {
    color: var(--sr-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.sr-quick-buy {
    background: var(--sr-glass-bg);
    border: 1px solid var(--sr-glass-border);
    border-radius: var(--sr-radius-lg);
    padding: 30px;
    backdrop-filter: blur(20px);
}

.sr-quick-buy h4 {
    color: var(--sr-primary-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .sr-homepage-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===================== HERO STATISTICS - COMPACT INLINE BADGES ===================== */
.sr-hero-stats-inline {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.sr-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.5rem;
    background: rgba(28, 63, 108, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 50px;
    color: var(--sr-text-primary);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.sr-stat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.sr-stat-badge:hover::before {
    left: 100%;
}

.sr-stat-badge:hover {
    background: rgba(28, 63, 108, 0.45);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
}

.sr-stat-badge i {
    color: var(--sr-primary-gold);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3));
    flex-shrink: 0;
}

.sr-stat-value {
    font-weight: 700;
    color: var(--sr-primary-gold);
    font-size: 1.15rem;
    line-height: 1.2;
    font-family: var(--sr-font-sans);
    letter-spacing: 0.02em;
}

.sr-stat-label {
    color: var(--sr-text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sr-hero-stats-inline {
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .sr-stat-badge {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .sr-stat-badge i {
        font-size: 1rem;
    }
    
    .sr-stat-value {
        font-size: 1.05rem;
    }
    
    .sr-stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.6px;
    }
}

@media (max-width: 480px) {
    .sr-hero-stats-inline {
        flex-direction: column;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
    
    .sr-stat-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
