:root {
    /* Pure Premium Dark Palette */
    --primary-bg: #03050c;
    --secondary-bg: #0a0f1e;
    --card-bg: #0f172a;

    /* High Contrast Accent - Neon Green but Sophisticated */
    --accent-color: #4ade80;
    --accent-rgb: 74, 222, 128;
    --accent-hover: #22c55e;
    --accent-glow: rgba(74, 222, 128, 0.5);

    /* Text Colors - High Contrast Yellow & White */
    --text-main: #ffffff;
    --text-secondary: #fde047;
    /* Yellow */
    --text-muted: #facc15;
    /* Gold/Yellow */

    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.main-content {
    min-height: 80vh;
    padding-top: 15px;
    /* Extra compact spacing for maximum impact */
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

/* Premium Background Pattern Layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at center, rgba(3, 5, 12, 0.2) 0%, rgba(3, 5, 12, 0.9) 100%),
        url('../img/bg-pattern.png');
    background-repeat: repeat;
    background-size: 600px;
    opacity: 0.4;
    /* Adjusted to 40% visibility as requested */
    z-index: -1;
    pointer-events: none;
}

/* Typography Brillance */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px var(--accent-glow);
}

.text-white-50,
.text-muted,
.form-text {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Navbar - Floating Glass */
.navbar {
    background: rgba(3, 5, 12, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.navbar-brand-text {
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff !important;
    letter-spacing: -1px;
    text-decoration: none;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Premium Buttons - Total Symmetry */
.btn-primary-custom,
.btn-danger-custom,
.btn-red,
.btn-outline-light,
.btn-primary {
    padding: 0 2.5rem !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    height: 56px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Colors: Green (Success/Primary) */
.btn-primary-custom,
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #16a34a 100%) !important;
    color: #000 !important;
    box-shadow: 0 8px 20px var(--accent-glow) !important;
}

/* Colors: Red (Validation/Danger) */
.btn-danger-custom,
.btn-red {
    background: #ef4444 !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-danger-custom:hover,
.btn-red:hover,
.btn-danger-custom:focus,
.btn-red:focus {
    background: #dc2626 !important;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.6) !important;
    color: #ffffff !important;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.btn-primary-custom:hover,
.btn-primary:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px var(--accent-glow) !important;
    color: #000 !important;
}

.btn-danger-custom:hover,
.btn-red:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.6) !important;
    color: #fff !important;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #fff !important;
    transform: translateY(-4px) !important;
}

/* Radio Button Group States (Premium Fix) */
.btn-check:checked+.btn-outline-light {
    background: var(--accent-color) !important;
    color: #000 !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 20px var(--accent-glow) !important;
}

.btn-check:checked+.btn-outline-light i {
    color: #000 !important;
}

/* Premium Cards */
.card,
.glass-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px;
    padding: 2rem;
    color: var(--text-main) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.card:hover,
.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color) !important;
}

/* Dark Mode Inputs Overrides */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
}

.form-select option {
    background-color: #fff !important;
    color: #000 !important;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(74, 222, 128, 0.25) !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: rgba(255, 255, 255, 0.02) !important;
    opacity: 0.6;
}

/* Hero Optimization - Extra Compact */
.hero-section {
    padding: 85px 0 60px;
    /* Reduced from 180px/120px for tighter desktop view */
    background: radial-gradient(circle at 50% 0%, rgba(74, 222, 128, 0.1) 0%, transparent 60%);
}

.display-1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    letter-spacing: -2px;
    line-height: 1;
}

/* Offer Specifics - Fixing the Contrast Issue */
.h4.text-accent {
    font-size: 1.75rem;
    font-weight: 800 !important;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.badge {
    background: rgba(74, 222, 128, 0.15) !important;
    color: var(--accent-color) !important;
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 0.5rem 1rem !important;
}

/* Footer Contrast */
footer {
    background: #000 !important;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
}

footer .text-white-50 {
    color: var(--text-secondary) !important;
}

/* Animations */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Premium Alerts & Dynamic Components */
.premium-alert {
    background: rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
}

.custom-option {
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-option.active-option {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.glow-active {
    animation: pulse-glow 2s infinite;
}

/* Layout Breathing Room - Tighter Spacing */
.py-huge {
    padding-top: 40px !important;
    /* Reduced from 140px */
    padding-bottom: 40px !important;
}

.section-spacer {
    margin-top: 30px !important;
    /* Reduced from 120px */
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 0px !important;
        /* Zero bottom padding */
        min-height: auto !important;
        /* Remove flex alignment height if any */
        text-align: center !important;
    }

    .hero-section .lead {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .hero-section .d-flex {
        align-items: center !important;
        justify-content: center !important;
    }

    #hero-promo-carousel {
        min-height: 220px !important;
        /* Reduce the huge 400px gap */
    }

    .promo-rotate-card {
        top: 0 !important;
        /* Bring cards to the top of their container */
    }

    .py-huge {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .py-6 {
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }

    .display-1 {
        font-size: 3rem !important;
        margin-bottom: 20px !important;
    }
}

.container-top-padding {
    padding-top: 85px !important;
    /* Reduced from 110px to match compact style */
}

/* Promo Rotation Carousel */
.promo-rotate-card {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    padding: 0 15px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px) scale(0.95);
    z-index: 1;
}

.promo-rotate-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 2;
}

.promo-rotate-card.previous {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
}

/* Enhanced Hero Promo Cards */
.promo-hero-card {
    min-height: 250px;
    position: relative;
    padding: 30px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.promo-logo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: white;
    padding: 3px;
    border-radius: 18px;
    /* Squircle */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.promo-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.promo-logo-badge .logo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
}

.promo-content {
    width: 100%;
    z-index: 2;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(74, 222, 128, 0.4);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* Side-by-Side Hero Card */
.promo-hero-card.side-layout {
    display: flex !important;
    flex-direction: row !important;
    min-height: 180px !important;
    padding: 0 !important;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.promo-image-side {
    width: 160px;
    min-width: 160px;
    height: 180px;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-content-side {
    flex-grow: 1;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-title-minimal {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-logo-badge.small {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: white;
    padding: 2px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.promo-logo-badge.small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* Social Share Buttons - Large Version */
.share-row-official {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-btn-round {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.5rem;
    /* Large icons */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.share-btn-round:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

.share-btn-round.whatsapp {
    background: #25D366;
}

.share-btn-round.facebook {
    background: #1877F2;
}

.share-btn-round.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-text-label {
    text-align: center;
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* Main Content Respiro */
.main-content {
    padding-top: 80px;
    /* Reduced for more immediate content visibility */
}

/* Hero Logo Animation & Glow */
.hero-logo-animate {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    animation: heroPulse 3s infinite ease-in-out;
}

@keyframes heroPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    }
}

/* Fireworks Effect */
.firework-1,
.firework-2,
.firework-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.firework-1 {
    animation: firework 2s infinite ease-out;
}

.firework-2 {
    animation: firework 2.5s infinite ease-out 0.8s;
}

.firework-3 {
    animation: firework 2.2s infinite ease-out 1.5s;
}

@keyframes firework {
    0% {
        box-shadow:
            0 0 0 #ff0,
            0 0 0 #f00,
            0 0 0 #0f0,
            0 0 0 #00f,
            0 0 0 orange,
            0 0 0 purple;
        opacity: 1;
    }

    100% {
        box-shadow:
            -120px -150px 0 #ff0,
            140px -130px 0 #f00,
            130px 140px 0 #0f0,
            -140px 120px 0 #00f,
            -90px -160px 0 orange,
            150px 50px 0 purple;
        opacity: 0;
    }
}

/* Mobile Navbar Toggler Spacing */
@media (max-width: 991.98px) {
    .navbar-toggler {
        margin-right: 15px;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}