/* ============================================================
   LOTTOHAPPY - Main Stylesheet
   Theme: Happy Lottery with Smiley Faces & Rainbow Arcs
   Colors: Red(#D32F2F) Yellow(#FDD835) White(#FFFFFF) Gold(#FFD700)
   Fonts: Fredoka+One (Headings) + Nunito (Body)
   ============================================================ */

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #FFF9E6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka One', cursive;
    font-weight: 700;
    line-height: 1.3;
    color: #D32F2F;
}

p {
    margin-bottom: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===================== KEYFRAME ANIMATIONS ===================== */

/* 1. lottoBounce - Bouncing lottery ball animation */
@keyframes lottoBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-30px) scale(1.05);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    75% {
        transform: translateY(-15px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* 2. rainbowArc - Rainbow sweep arc animation */
@keyframes rainbowArc {
    0% {
        background-position: 0% 50%;
        opacity: 0.6;
    }
    25% {
        background-position: 50% 25%;
        opacity: 0.8;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
    75% {
        background-position: 50% 75%;
        opacity: 0.8;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.6;
    }
}

/* 3. numberPop - Lottery number pop animation */
@keyframes numberPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
        opacity: 1;
    }
    70% {
        transform: scale(0.9) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 4. happySpin - Spinning happy element */
@keyframes happySpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Additional utility animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes floatSmiley {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rainbowMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* ===================== UTILITY CLASSES ===================== */
.gold-text {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* ===================== BUTTONS ===================== */
.btn-gold-primary {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #FFD700 0%, #FDD835 50%, #FFD700 100%);
    background-size: 200% 200%;
    color: #D32F2F;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-gold-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-gold-primary:hover::before {
    left: 100%;
}

.btn-gold-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
    background-position: right center;
}

.btn-outline-gold {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    color: #FFD700;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid #FFD700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-gold:hover {
    background: #FFD700;
    color: #D32F2F;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-login {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: #FFFFFF;
    font-weight: 600;
    border: 2px solid #FFD700;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #FFD700;
    color: #D32F2F;
}

.btn-register {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #D32F2F, #E53935);
    color: #FFFFFF;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: linear-gradient(135deg, #E53935, #D32F2F);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.btn-demo {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #FDD835, #FFD700);
    color: #D32F2F;
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 216, 53, 0.4);
}

/* ===================== HEADER ===================== */
.site-header {
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 50%, #D32F2F 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.header-time {
    color: #FDD835;
    font-weight: 600;
    font-size: 0.95rem;
}

.header-btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ===================== NAVIGATION ===================== */
.main-navigation {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 18px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: #FDD835;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: #FDD835;
}

.nav-link i {
    margin-right: 5px;
    color: #FDD835;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* ===================== NOTIFICATION BAR ===================== */
.notification-bar {
    background: linear-gradient(90deg, #FDD835, #FFD700, #FDD835);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    overflow: hidden;
    padding: 8px 0;
}

.notification-content {
    display: flex;
    gap: 40px;
    animation: rainbowMove 20s linear infinite;
    white-space: nowrap;
}

.notification-content span {
    color: #D32F2F;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ===================== ANNOUNCEMENT MODAL ===================== */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.announcement-modal.active {
    display: flex;
}

.announcement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.announcement-content {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9E6 100%);
    border-radius: 20px;
    padding: 35px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(211, 47, 47, 0.3);
    border: 3px solid #FDD835;
    animation: bounceIn 0.5s ease;
}

.announcement-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #D32F2F;
    color: #FFFFFF;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close:hover {
    background: #B71C1C;
    transform: rotate(90deg);
}

.announcement-header-icon {
    text-align: center;
    margin-bottom: 15px;
}

.announcement-header-icon i {
    font-size: 3rem;
    color: #FDD835;
    animation: happySpin 3s ease-in-out infinite;
}

.announcement-title {
    text-align: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #D32F2F;
    margin-bottom: 20px;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(253, 216, 53, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(253, 216, 53, 0.3);
    transition: all 0.3s ease;
}

.announcement-item:hover {
    background: rgba(253, 216, 53, 0.2);
    transform: translateX(5px);
    border-color: #FDD835;
}

.announcement-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.announcement-badge.hot {
    background: #D32F2F;
    color: #FFFFFF;
}

.announcement-badge.new {
    background: #FDD835;
    color: #D32F2F;
}

.announcement-badge.info {
    background: #FFFFFF;
    color: #D32F2F;
    border: 1px solid #D32F2F;
}

.announcement-text {
    flex: 1;
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
}

.announcement-item i {
    color: #D32F2F;
    font-size: 0.8rem;
}

.announcement-footer {
    text-align: center;
}

.announcement-cta {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #D32F2F, #E53935);
    color: #FFFFFF;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.announcement-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.4);
}

/* ===================== CONTENT LAYOUT ===================== */
.content-area {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* ===================== HERO SECTION ===================== */
.lottohappy-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 30%, #D32F2F 60%, #E53935 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    padding: 60px 30px;
}

.rainbow-arcs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.rainbow-arc {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: rainbowArc 6s ease-in-out infinite;
}

.rainbow-arc.arc-1 {
    width: 600px;
    height: 600px;
    top: -300px;
    left: -100px;
    border-color: rgba(253, 216, 53, 0.3);
    animation-delay: 0s;
}

.rainbow-arc.arc-2 {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -100px;
    border-color: rgba(255, 255, 255, 0.2);
    animation-delay: 2s;
}

.rainbow-arc.arc-3 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    border-color: rgba(255, 215, 0, 0.25);
    animation-delay: 4s;
}

.floating-smileys {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.smiley {
    position: absolute;
    font-size: 2.5rem;
    animation: floatSmiley 4s ease-in-out infinite;
    opacity: 0.7;
}

.smiley-1 { top: 10%; left: 5%; animation-delay: 0s; }
.smiley-2 { top: 15%; right: 8%; animation-delay: 0.8s; }
.smiley-3 { bottom: 20%; left: 10%; animation-delay: 1.6s; }
.smiley-4 { top: 40%; right: 5%; animation-delay: 2.4s; }
.smiley-5 { bottom: 15%; right: 15%; animation-delay: 3.2s; }
.smiley-6 { bottom: 30%; left: 3%; animation-delay: 4s; }

.lotto-balls-scatter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lotto-ball {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: lottoBounce 3s ease-in-out infinite;
}

.ball-red {
    background: radial-gradient(circle at 35% 35%, #EF5350, #D32F2F, #B71C1C);
}

.ball-yellow {
    background: radial-gradient(circle at 35% 35%, #FFEE58, #FDD835, #F9A825);
    color: #D32F2F;
}

.ball-white {
    background: radial-gradient(circle at 35% 35%, #FFFFFF, #F5F5F5, #E0E0E0);
    color: #D32F2F;
}

.lotto-ball:nth-child(1) { top: 8%; left: 15%; animation-delay: 0s; }
.lotto-ball:nth-child(2) { top: 12%; right: 20%; animation-delay: 0.5s; }
.lotto-ball:nth-child(3) { bottom: 25%; left: 8%; animation-delay: 1s; }
.lotto-ball:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 1.5s; }
.lotto-ball:nth-child(5) { top: 50%; right: 3%; animation-delay: 2s; }

.hero-inner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-main-title {
    margin-bottom: 20px;
}

.hero-brand {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #FDD835;
    text-shadow: 0 0 30px rgba(253, 216, 53, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    animation: pulse 2s ease-in-out infinite;
}

.hero-divider-line {
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FDD835, transparent);
    margin: 15px auto;
    border-radius: 2px;
}

.hero-tagline {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: #FFFFFF;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #FDD835;
    text-shadow: 0 2px 10px rgba(253, 216, 53, 0.3);
}

.hero-stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================== LUCKY GAMES SECTION ===================== */
.lotto-lucky-games {
    margin-bottom: 60px;
}

.lotto-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.lotto-game-card {
    position: relative;
    display: block;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    border: 2px solid rgba(253, 216, 53, 0.3);
    transition: all 0.4s ease;
    overflow: hidden;
}

.lotto-game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(253, 216, 53, 0.1), transparent, rgba(211, 47, 47, 0.05), transparent);
    animation: happySpin 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lotto-game-card:hover::before {
    opacity: 1;
}

.lotto-game-card:hover {
    transform: translateY(-10px);
    border-color: #FDD835;
    box-shadow: 0 15px 40px rgba(253, 216, 53, 0.3);
}

.lotto-game-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(253, 216, 53, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lotto-game-card:hover .lotto-game-glow {
    opacity: 1;
}

.lotto-game-icon {
    position: relative;
    z-index: 1;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #D32F2F, #E53935);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #FDD835;
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.3);
    transition: all 0.3s ease;
}

.lotto-game-card:hover .lotto-game-icon {
    animation: lottoBounce 1s ease;
    box-shadow: 0 8px 30px rgba(211, 47, 47, 0.5);
}

.lotto-game-rating {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.lotto-game-rating i {
    color: #FDD835;
    font-size: 0.85rem;
    margin: 0 1px;
}

.lotto-game-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    color: #D32F2F;
    margin-bottom: 8px;
}

.lotto-game-card p {
    position: relative;
    z-index: 1;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.lotto-game-players {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: 0.8rem;
    color: #D32F2F;
    font-weight: 600;
    background: rgba(211, 47, 47, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ===================== LOTTO NUMBERS SECTION ===================== */
.lotto-numbers-section {
    margin-bottom: 60px;
}

.lotto-numbers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lotto-number-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lotto-number-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 15px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 2px solid rgba(253, 216, 53, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.lotto-number-node:hover {
    transform: translateY(-5px);
    border-color: #FDD835;
    box-shadow: 0 10px 30px rgba(253, 216, 53, 0.25);
}

.lotto-node-ball {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFEE58, #FDD835, #F9A825);
    color: #D32F2F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(253, 216, 53, 0.4);
    transition: all 0.3s ease;
}

.lotto-number-node:hover .lotto-node-ball {
    animation: numberPop 0.6s ease;
}

.lotto-node-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

/* ===================== HAPPY FEATURES SECTION ===================== */
.happy-features {
    margin-bottom: 60px;
}

.happy-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.happy-feature-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    border: 2px solid rgba(253, 216, 53, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.happy-feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #D32F2F, #FDD835, #D32F2F);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.happy-feature-card:hover::after {
    transform: scaleX(1);
}

.happy-feature-card:hover {
    transform: translateY(-8px);
    border-color: #FDD835;
    box-shadow: 0 15px 40px rgba(253, 216, 53, 0.2);
}

.happy-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(253, 216, 53, 0.15), rgba(211, 47, 47, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #D32F2F;
    transition: all 0.3s ease;
}

.happy-feature-card:hover .happy-feature-icon {
    background: linear-gradient(135deg, #D32F2F, #E53935);
    color: #FDD835;
    transform: scale(1.1);
}

.happy-feature-card h3 {
    font-size: 1.1rem;
    color: #D32F2F;
    margin-bottom: 10px;
}

.happy-feature-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
}

/* ===================== HAPPY STATS SECTION ===================== */
.happy-stats {
    position: relative;
    margin-bottom: 60px;
    padding: 60px 30px;
    border-radius: 20px;
    overflow: hidden;
}

.happy-stats-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    z-index: 0;
}

.rainbow-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(253, 216, 53, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(253, 216, 53, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(253, 216, 53, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: rainbowArc 8s ease infinite;
}

.happy-stats .section-title,
.happy-stats .section-subtitle {
    position: relative;
    z-index: 1;
    color: #FDD835;
}

.happy-stats .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.happy-stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.happy-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.happy-stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: #FDD835;
}

.stat-happy-decoration {
    font-size: 1.5rem;
    margin-bottom: 10px;
    animation: floatSmiley 3s ease-in-out infinite;
}

.stat-happy-decoration.bottom {
    margin-bottom: 0;
    margin-top: 10px;
}

.stat-number {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #FDD835;
    text-shadow: 0 2px 10px rgba(253, 216, 53, 0.4);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

/* ===================== LOTTO PROMOS SECTION ===================== */
.lotto-promos {
    margin-bottom: 60px;
}

.lotto-promos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.lotto-promo-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.lotto-promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(211, 47, 47, 0.2);
}

.promo-rainbow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFFFFF, #FFF9E6);
    border: 2px solid rgba(253, 216, 53, 0.3);
    border-radius: 20px;
    transition: border-color 0.3s ease;
}

.lotto-promo-card:hover .promo-rainbow-bg {
    border-color: #FDD835;
}

.lotto-promo-inner {
    position: relative;
    z-index: 1;
    padding: 35px 25px;
    text-align: center;
}

.lotto-promo-inner .promo-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #D32F2F, #E53935);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FDD835;
}

.lotto-promo-inner h3 {
    font-size: 1.1rem;
    color: #D32F2F;
    margin-bottom: 10px;
}

.lotto-promo-inner p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.promo-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #666;
}

.promo-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.promo-badge.hot {
    background: #D32F2F;
    color: #FFFFFF;
}

.promo-badge.new {
    background: #FDD835;
    color: #D32F2F;
}

.promo-badge.vip {
    background: linear-gradient(135deg, #FFD700, #FDD835);
    color: #D32F2F;
}

.btn-promo {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #D32F2F, #E53935);
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.4);
}

/* ===================== LOTTO WINNERS SECTION ===================== */
.lotto-winners {
    margin-bottom: 60px;
}

.winners-carousel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 2px solid rgba(253, 216, 53, 0.2);
    transition: all 0.3s ease;
}

.winner-item:hover {
    border-color: #FDD835;
    box-shadow: 0 5px 20px rgba(253, 216, 53, 0.2);
    transform: translateX(5px);
}

.winner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FDD835, #FFD700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.winner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.winner-name {
    font-weight: 700;
    color: #D32F2F;
    font-size: 1rem;
}

.winner-game {
    font-size: 0.85rem;
    color: #666;
}

.winner-amount {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: #FFD700;
    text-shadow: 0 1px 5px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
}

/* ===================== FOOTER CTA SECTION ===================== */
.footer-cta-section {
    position: relative;
    margin-bottom: 60px;
    padding: 60px 30px;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
}

.footer-cta-rainbow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 50%, #D32F2F 100%);
    z-index: 0;
}

.footer-cta-inner {
    position: relative;
    z-index: 1;
}

.cta-happy-decoration {
    margin-bottom: 20px;
}

.cta-smiley-big {
    font-size: 4rem;
    animation: happySpin 4s ease-in-out infinite;
    display: inline-block;
}

.footer-cta-inner h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #FDD835;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(253, 216, 53, 0.3);
}

.footer-cta-inner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 25px;
    font-weight: 300;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-feature {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
}

.cta-feature i {
    color: #FDD835;
    margin-right: 5px;
}

.cta-main-btn {
    font-size: 1.1rem;
    padding: 16px 50px;
}

/* ===================== NEWS SECTION ===================== */
.home-news-section {
    margin-bottom: 60px;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.home-news-placeholder {
    display: contents;
}

.article-card {
    display: block;
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(253, 216, 53, 0.2);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: #FDD835;
    box-shadow: 0 10px 30px rgba(253, 216, 53, 0.2);
}

.article-card-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-thumb img {
    transform: scale(1.08);
}

.article-card-title {
    padding: 15px 20px 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #D32F2F;
    line-height: 1.4;
    min-height: 60px;
}

.article-card-meta {
    padding: 0 20px;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
}

.article-card-meta i {
    margin-right: 4px;
    color: #FDD835;
}

.article-card-excerpt {
    padding: 0 20px 15px;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
}

.article-card-more {
    display: inline-block;
    padding: 0 20px 20px;
    color: #D32F2F;
    font-weight: 700;
    font-size: 0.9rem;
}

.article-card-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-more i {
    transform: translateX(5px);
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #D32F2F, #E53935);
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin: 0 auto;
    text-align: center;
}

.gold-view-more {
    background: linear-gradient(135deg, #FFD700, #FDD835);
    color: #D32F2F;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(253, 216, 53, 0.4);
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #1A1A2E 100%);
    padding: 60px 0 30px;
    color: #CCCCCC;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: 'Fredoka One', cursive;
    color: #FDD835;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #AAAAAA;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #FDD835;
    padding-left: 5px;
}

.footer-brand-logo img {
    height: 45px;
    margin-bottom: 15px;
}

.footer-brand-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #AAAAAA;
    margin-bottom: 15px;
}

.footer-18plus {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #D32F2F;
    color: #FFFFFF;
    font-family: 'Fredoka One', cursive;
    font-size: 0.9rem;
    border-radius: 50%;
    margin-bottom: 15px;
}

.footer-social-links {
    display: flex;
    gap: 10px;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background: #FDD835;
    color: #D32F2F;
    transform: translateY(-3px);
}

.footer-license-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.footer-license-bar h4 {
    color: #FDD835;
    font-family: 'Fredoka One', cursive;
    margin-bottom: 20px;
    font-size: 1rem;
}

.license-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.license-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.license-item i {
    font-size: 1.8rem;
    color: #FDD835;
}

.license-item span {
    font-size: 0.8rem;
    color: #AAAAAA;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.88rem;
    color: #888;
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #D32F2F;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: #FDD835;
}

.breadcrumb span {
    color: #666;
}

/* ===================== CATEGORY HEADER ===================== */
.category-header {
    margin-bottom: 30px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.05), rgba(253, 216, 53, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(253, 216, 53, 0.2);
}

.category-title {
    font-size: 1.8rem;
}

.category-desc {
    color: #666;
    margin-top: 10px;
}

/* ===================== PROVIDER TABS ===================== */
.provider-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.provider-tab {
    padding: 8px 20px;
    background: #FFFFFF;
    border: 2px solid rgba(253, 216, 53, 0.3);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.provider-tab:hover,
.provider-tab.active {
    background: linear-gradient(135deg, #D32F2F, #E53935);
    color: #FFFFFF;
    border-color: #D32F2F;
}

/* ===================== ARTICLE GRID ===================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-posts p {
    color: #999;
    font-size: 1.1rem;
}

/* ===================== PAGINATION ===================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.pagination .nav-links {
    display: flex;
    gap: 5px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #333;
    font-weight: 600;
    border: 2px solid rgba(253, 216, 53, 0.3);
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #D32F2F;
    color: #FFFFFF;
    border-color: #D32F2F;
}

/* ===================== SINGLE ARTICLE ===================== */
.single-article {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(253, 216, 53, 0.2);
}

.article-header {
    margin-bottom: 25px;
}

.article-title {
    font-size: 2rem;
    color: #D32F2F;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.88rem;
    color: #999;
}

.article-meta i {
    margin-right: 5px;
    color: #FDD835;
}

.article-featured-img {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-img img {
    width: 100%;
    border-radius: 12px;
}

.article-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #444;
}

.article-content h2,
.article-content h3 {
    color: #D32F2F;
    margin: 25px 0 15px;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content a {
    color: #D32F2F;
    font-weight: 600;
}

.article-content a:hover {
    color: #FDD835;
}

.article-content img {
    border-radius: 12px;
    margin: 20px 0;
}

.article-content blockquote {
    border-left: 4px solid #FDD835;
    padding: 15px 25px;
    background: rgba(253, 216, 53, 0.05);
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid rgba(253, 216, 53, 0.2);
    margin-top: 25px;
}

.article-tags i {
    color: #D32F2F;
}

.article-tags span {
    padding: 4px 15px;
    background: rgba(253, 216, 53, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #D32F2F;
    font-weight: 600;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(253, 216, 53, 0.2);
}

.article-nav-prev a,
.article-nav-next a {
    color: #D32F2F;
    font-weight: 600;
}

.article-nav-prev a:hover,
.article-nav-next a:hover {
    color: #FDD835;
}

/* ===================== RELATED POSTS ===================== */
.related-posts {
    margin-bottom: 30px;
}

.related-posts-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-item {
    display: block;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(253, 216, 53, 0.2);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    border-color: #FDD835;
    box-shadow: 0 5px 15px rgba(253, 216, 53, 0.15);
}

.related-item-thumb {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.related-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-item-thumb img {
    transform: scale(1.05);
}

.related-item-title {
    padding: 12px;
    font-size: 0.88rem;
    color: #D32F2F;
    line-height: 1.4;
}

/* ===================== SIDEBAR ===================== */
.floating-sidebar {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D32F2F, #E53935);
    color: #FFFFFF;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 3px 15px rgba(211, 47, 47, 0.3);
}

.sidebar-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.5);
}

.sidebar-btn-facebook {
    background: linear-gradient(135deg, #1877F2, #1565C0);
}

.sidebar-btn-telegram {
    background: linear-gradient(135deg, #0088CC, #006699);
}

.sidebar-label {
    display: none;
    position: absolute;
    right: 55px;
    background: #333;
    color: #FFFFFF;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.sidebar-btn:hover .sidebar-label {
    display: block;
}

/* ===================== ERROR PAGE ===================== */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-lotto {
    margin-bottom: 30px;
}

.error-smiley-big {
    font-size: 5rem;
    animation: happySpin 4s ease-in-out infinite;
    display: inline-block;
    margin-bottom: 20px;
}

.error-lotto-balls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.error-lotto-balls .lotto-ball {
    position: static;
    animation: numberPop 0.8s ease;
}

.error-code {
    font-family: 'Fredoka One', cursive;
    font-size: 6rem;
    color: #D32F2F;
    text-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.error-title {
    font-size: 1.5rem;
    color: #D32F2F;
    margin-bottom: 15px;
}

.error-desc {
    color: #666;
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 1rem;
}

/* ===================== PAGE ===================== */
.page-article {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(253, 216, 53, 0.2);
}

.page-title {
    font-size: 2rem;
    color: #D32F2F;
    margin-bottom: 25px;
}

.page-featured-img {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.page-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #444;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF9E6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D32F2F, #FDD835);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #B71C1C, #F9A825);
}

/* ===================== SELECTION ===================== */
::selection {
    background: #FDD835;
    color: #D32F2F;
}

::-moz-selection {
    background: #FDD835;
    color: #D32F2F;
}
