/* ========================================
   PREMIUM GLASS MORPHISM THEME
   Purple + Pink | Modern 2025 Design
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   CSS VARIABLES - Premium Color Palette
   ======================================== */
:root {
    /* Primary Colors */
    --primary-purple: #8b5cf6;
    --primary-pink: #ec4899;
    --primary-violet: #a855f7;

    /* Background Colors */
    --bg-dark: #0c0014;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.08);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;
    --text-muted: #a78bfa;

    /* Accent Colors */
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --accent-gold: #fbbf24;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #a855f7 0%, #f472b6 100%);
    --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    --gradient-text: linear-gradient(135deg, #c084fc, #f472b6, #fb7185);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Shadows */
    --shadow-purple: rgba(139, 92, 246, 0.4);
    --shadow-pink: rgba(236, 72, 153, 0.4);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);

    /* Sizing */
    --rounded-sm: 12px;
    --rounded-md: 16px;
    --rounded-lg: 24px;
    --rounded-xl: 32px;
    --rounded-full: 9999px;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink);
}

/* ========================================
   BODY & MAIN CONTAINER
   ======================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    background: var(--bg-dark);
    overflow-x: hidden;
}

/* ========================================
   ANIMATED BACKGROUND EFFECTS - TECH STYLE
   ======================================== */

/* ===========================================
   BACKUP - ORIGINAL BACKGROUND (Gradient Orbs)
   ===========================================

main::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 40% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 30%);
    animation: floatBackground 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatBackground {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(-1%, 3%) rotate(-1deg); }
    75% { transform: translate(3%, -2%) rotate(2deg); }
}

main::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: floatOrb 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 100px) scale(1.1); }
}

   END BACKUP
   =========================================== */

/* Nano Texture + Diamond Luxury Mix */
main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Diamond pattern overlay */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(139, 92, 246, 0.06) 20px,
            rgba(139, 92, 246, 0.06) 21px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(236, 72, 153, 0.05) 20px,
            rgba(236, 72, 153, 0.05) 21px
        ),
        /* Nano dot matrix */
        radial-gradient(circle, rgba(139, 92, 246, 0.15) 2.5px, transparent 2.5px),
        radial-gradient(circle, rgba(236, 72, 153, 0.12) 2px, transparent 2px),
        /* Diamond sparkle points */
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        /* Luxury ambient glow */
        radial-gradient(ellipse at 25% 25%, rgba(139, 92, 246, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 75% 75%, rgba(236, 72, 153, 0.15) 0%, transparent 45%);
    background-size:
        40px 40px,
        40px 40px,
        12px 12px,
        18px 18px,
        60px 60px,
        100% 100%,
        100% 100%;
    background-position:
        0 0,
        0 0,
        0 0,
        6px 6px,
        30px 30px,
        0 0,
        0 0;
    pointer-events: none;
    z-index: 0;
}

/* Diamond Sparkle & Shimmer Overlay */
main::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Faceted diamond reflections */
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.03) 80px,
            rgba(255, 255, 255, 0.03) 82px
        ),
        repeating-linear-gradient(
            120deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.02) 80px,
            rgba(255, 255, 255, 0.02) 82px
        ),
        /* Luxury spotlight */
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        /* Corner diamond glints */
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 20%),
        radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.1) 0%, transparent 15%),
        radial-gradient(circle at 20% 90%, rgba(236, 72, 153, 0.08) 0%, transparent 15%);
    animation: diamondShimmer 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes diamondShimmer {
    0%, 100% {
        opacity: 0.7;
        filter: brightness(1) saturate(1);
    }
    25% {
        opacity: 0.9;
        filter: brightness(1.15) saturate(1.1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.2) saturate(1.15);
    }
    75% {
        opacity: 0.85;
        filter: brightness(1.1) saturate(1.05);
    }
}

/* Floating Orbs */
.bg-top, .bg-bottom {
    display: none;
}

/* ========================================
   MAIN CONTENT CONTAINER
   ======================================== */
.main_div {
    max-width: 420px;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(12, 0, 20, 0.95) 0%,
        rgba(20, 5, 30, 0.98) 50%,
        rgba(12, 0, 20, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    border-right: 1px solid rgba(236, 72, 153, 0.2);
    box-shadow:
        -20px 0 60px rgba(139, 92, 246, 0.1),
        20px 0 60px rgba(236, 72, 153, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Content Container - for non-ad content with side padding */
.content-container {
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
}

.fff_game_section {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========================================
   HEADER SECTION
   ======================================== */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
}

/* ========================================
   CARD GRID LAYOUT
   ======================================== */
.row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 10px;
    width: 100%;
    margin: 0 !important;
    justify-content: center;
}

.row .col {
    padding: 0 !important;
    flex: none !important;
    width: 100% !important;
}

/* ========================================
   PREMIUM GLASS CARDS
   ======================================== */
.game-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--rounded-lg);
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow:
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardEntrance 0.6s ease-out backwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Glow Border Effect */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--rounded-lg);
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.5),
        rgba(236, 72, 153, 0.5),
        rgba(139, 92, 246, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    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.3s ease;
}

.game-card:hover::before {
    opacity: 1;
}

/* Card Shine Effect */
.game-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.game-card:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(139, 92, 246, 0.2),
        0 0 40px rgba(236, 72, 153, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

/* ========================================
   PROFILE IMAGE STYLING
   ======================================== */
.game-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
    position: relative;
    padding: 4px;
    background: var(--gradient-primary);
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(236, 72, 153, 0.2);
    transition: all 0.4s ease;
    animation: profilePulse 3s ease-in-out infinite;
}

@keyframes profilePulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(139, 92, 246, 0.3),
            0 0 40px rgba(236, 72, 153, 0.2);
    }
    50% {
        box-shadow:
            0 0 30px rgba(139, 92, 246, 0.5),
            0 0 60px rgba(236, 72, 153, 0.3);
    }
}

.game-card:hover img {
    transform: scale(1.05);
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.5),
        0 0 60px rgba(236, 72, 153, 0.4);
}

/* ========================================
   CARD TITLE - GRADIENT TEXT
   ======================================== */
.game-card .game-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientText 3s ease infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* ========================================
   PLAY WIN SECTION
   ======================================== */
.game-card .play-win {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.game-card .play-win i {
    color: var(--primary-pink);
    font-size: 1rem;
}

.game-card .play-win span {
    color: var(--accent-green);
    font-weight: 700;
}

/* ========================================
   PREMIUM CALL BUTTON
   ======================================== */
.game-card .start-game {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--rounded-full);
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px var(--shadow-purple),
        0 2px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 140px;
    margin-bottom: 10px;
}

/* Button Shimmer Effect */
.game-card .start-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.game-card .start-game:hover::before {
    left: 100%;
}

.game-card .start-game:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px var(--shadow-purple),
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 20px var(--shadow-pink);
}

.game-card .start-game:active {
    transform: translateY(-1px) scale(0.98);
}

/* ========================================
   LIVE USERS INDICATOR
   ======================================== */
.game-card .live-users {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: var(--rounded-full);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.game-card .live-users::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-green);
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px var(--accent-green);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
        box-shadow: 0 0 20px var(--accent-green);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.resp_about_section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.about_section {
    width: 100%;
    max-width: 390px;
    padding: 20px;
    margin-top: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--rounded-lg);
    border: 1px solid var(--glass-border);
}

.about_section h1 {
    margin: 20px 0 15px 0;
    text-wrap: wrap;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about_section h1:first-child {
    font-size: 1.5rem;
    margin-top: 0;
}

.about_section p {
    text-wrap: wrap;
    text-align: start;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.about_section ul {
    padding-left: 20px;
    text-wrap: wrap;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.about_section ul li {
    margin-bottom: 8px;
    position: relative;
}

.about_section ul li::marker {
    color: var(--primary-purple);
}

.about_section strong {
    color: var(--text-primary);
}

/* ========================================
   FOOTER SECTION
   ======================================== */
.resp_footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.05));
}

footer {
    display: flex;
    width: 100%;
    max-width: 390px;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.anchor_text {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.anchor_text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.anchor_text:hover {
    color: var(--primary-pink);
}

.anchor_text:hover::after {
    width: 100%;
}

/* ========================================
   PLAY BUTTON (Large CTA)
   ======================================== */
.play-btn {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--rounded-full);
    padding: 16px 32px;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow:
        0 8px 30px var(--shadow-purple),
        0 4px 15px rgba(0, 0, 0, 0.3);
    width: 250px;
    height: 60px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: buttonShimmer 2s ease-in-out infinite;
}

@keyframes buttonShimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.play-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 15px 40px var(--shadow-purple),
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 30px var(--shadow-pink);
}

/* ========================================
   CLICK BUTTON
   ======================================== */
.click_btn {
    background: var(--gradient-primary);
    margin-top: 15px;
    padding: 12px 28px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #ffffff;
    border-radius: var(--rounded-full);
    box-shadow: 0 4px 20px var(--shadow-purple);
    border: none;
    transition: all 0.3s ease;
}

.click_btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-purple);
}

/* ========================================
   ADDITIONAL COMPONENTS
   ======================================== */
.play_btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    margin: 16px;
    padding: 16px;
    width: calc(100% - 32px);
    max-width: 370px;
    box-shadow: var(--glass-shadow);
    border-radius: var(--rounded-lg);
    border: 1px solid var(--glass-border);
}

.play_btn_txt {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-wrap: wrap;
}

.choose_game {
    margin: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 16px;
    width: calc(100% - 32px);
    max-width: 370px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ========================================
   DIALOG & POPUP STYLES
   ======================================== */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--rounded-lg);
    padding: 30px;
    text-align: center;
    width: 320px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.dialog-box h2 {
    margin: 15px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dialog-box p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 15px 0 25px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    opacity: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    pointer-events: none;
}

.popup-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--rounded-lg);
    padding: 20px;
    max-width: 400px;
    width: 90%;
    color: var(--text-primary);
}

.hidden {
    display: none;
}

/* ========================================
   VIDEO CALL ELEMENTS
   ======================================== */
video {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 9/15;
    object-fit: cover;
    border-radius: var(--rounded-lg);
}

.overlay-name {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--rounded-full);
    font-family: 'Inter', sans-serif;
}

.timer {
    position: absolute;
    top: 65px;
    left: 20px;
    font-size: 1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: var(--rounded-full);
    font-family: monospace;
}

.cut-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--rounded-full);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    transition: all 0.3s ease;
}

.cut-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
}

.mute-button {
    position: absolute;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mute-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mute-button i {
    color: white;
    font-size: 1.25rem;
}

.overlay-camera {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 100px;
    height: 140px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--rounded-md);
    object-fit: cover;
    z-index: 10;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#connecting {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 10;
    animation: fadeOut 0.5s ease-out 3s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

#dots::after {
    content: "";
    animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
    0% { content: ""; }
    33% { content: "."; }
    66% { content: ".."; }
    100% { content: "..."; }
}

/* ========================================
   GAME SECTIONS (Legacy Support)
   ======================================== */
.game_section {
    margin: 16px;
    border-radius: var(--rounded-lg);
    width: calc(100% - 32px);
}

.game_section1 {
    padding: 10px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
}

.game_section2 {
    border-radius: var(--rounded-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.game_section5 {
    background: transparent;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.game_section5 button {
    background: var(--gradient-primary);
    padding: 10px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    border-radius: var(--rounded-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game_section5 button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-purple);
}

.game_section6 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.game_section6 p {
    margin: 0;
    text-transform: uppercase;
}

.game_section_img {
    width: 100%;
    height: auto;
    border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
}

.game_section_home {
    margin: 16px;
    border-radius: var(--rounded-lg);
}

.game_section_home1 {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
}

.game_section_home2 {
    border-radius: var(--rounded-lg);
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
}

.game_section_index {
    margin: 16px;
    border-radius: var(--rounded-lg);
}

.game_section_index1 {
    padding: 10px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    justify-items: center;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.back-btn {
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 12px;
}

.back-btn:hover {
    color: var(--primary-pink);
    transform: translateX(-3px);
}

.title {
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--text-primary);
    font-weight: 700;
}

.indextitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    text-align: center;
    margin: 0 auto;
    font-weight: 600;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(139, 92, 246, 0.3);
    font-family: 'Space Grotesk', sans-serif;
}

/* ========================================
   AD CONTAINERS
   ======================================== */
.ad-container {
    width: 300px;
    height: 250px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--rounded-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.ad-300x250 {
    width: 100%;
    max-width: 336px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gadsbanner {
    margin: 0 auto;
    padding: 0;
}

.bottom-ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    background: rgba(12, 0, 20, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 16px;
    border-top: 1px solid var(--glass-border);
    border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
    display: none;
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
    }
    to {
        transform: translateX(-50%) translateY(0);
    }
}

.close_ub {
    background: var(--gradient-primary);
    padding: 4px 10px;
    position: absolute;
    top: -25px;
    left: 0;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    border-radius: var(--rounded-sm);
    cursor: pointer;
}

/* ========================================
   MISC COMPONENTS
   ======================================== */
.more_game {
    width: 100%;
    max-width: 370px;
}

.class_flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.class_flex a {
    width: 100%;
}

.click_btn_option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.cat_img {
    width: 20px;
    height: 20px;
}

.main_logo {
    color: var(--text-primary);
    object-fit: cover;
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main_img {
    width: 50%;
}

.logo_content {
    font-weight: 700;
}

.logo_content .title {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: center;
    padding-top: 1rem;
}

.image {
    width: 100%;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    border-radius: var(--rounded-md);
}

.images {
    width: 100%;
    margin-top: 10px;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    border-radius: var(--rounded-md);
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-container img {
    width: 60%;
    height: auto;
    margin-top: 10px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    border-radius: var(--rounded-md);
}

.contentButton {
    font-size: 1rem;
    color: var(--primary-purple);
    padding: 20px;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    border-radius: var(--rounded-md);
    margin: 10px;
    border: 1px solid var(--glass-border);
}

.countryP {
    font-size: 1rem;
    color: var(--text-primary);
    text-wrap: wrap;
    margin: 10px 0;
}

.dialog-button {
    width: 65%;
}

.dialog-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

/* ========================================
   SCRATCH CARD & SPIN ELEMENTS
   ======================================== */
.scratchCanvas {
    background: radial-gradient(circle, #444, #222);
    border-radius: var(--rounded-md);
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    transition: transform 0.2s;
}

.scratchCanvas:hover {
    transform: scale(1.02);
}

#reward {
    margin: 20px 0 10px 0;
    animation: fadeIn 1s ease-in-out;
}

.reward-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--rounded-md);
    padding: 20px;
    display: inline-block;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.reward-box p {
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-bottom: 10px;
}

.reward-box h2 {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.h1scratch {
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

#spin-btn {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 65%;
    left: 50%;
    height: 11%;
    width: 24%;
    border-radius: 50%;
    cursor: pointer;
    border: 0;
    background: var(--gradient-primary);
    color: #fff;
    text-transform: uppercase;
    font-size: 1.5em;
    letter-spacing: 0.1em;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--shadow-purple);
}

.imgspin {
    position: absolute;
    width: 4em;
    top: 62%;
    right: -8%;
}

#final-value {
    font-size: 1.5em;
    text-align: center;
    margin-top: 1.5em;
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   LIST STYLES
   ======================================== */
.uldi {
    list-style-type: none;
    padding: 0;
}

.uldi li {
    cursor: pointer;
    padding: 12px 16px;
    margin: 8px 0;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--rounded-md);
    transition: all 0.3s ease;
    font-weight: 500;
}

.uldi li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px var(--shadow-purple);
}

.current-day {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    font-weight: bold;
}

.current-day:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

/* ========================================
   INPUT & OUTPUT BOXES
   ======================================== */
.input-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: var(--rounded-md);
    font-size: 1rem;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
}

.input-box:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px var(--shadow-purple);
}

.output-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: var(--rounded-md);
    font-size: 1rem;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    width: 100%;
    margin: 20px auto;
}

.output-dollar {
    background-image: url(../assets/images/dollars_bg_1.webp);
    height: 80px;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: var(--rounded-md);
}

.image-container .btn-Dollars {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
    color: #fff;
}

/* ========================================
   NOT AVAILABLE / ERROR STATES
   ======================================== */
.imgnotaval {
    width: 25%;
    opacity: 0.7;
}

.centernotaval {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ========================================
   STATS & DETAILS - PREMIUM PROFILE PAGE
   ======================================== */
.game-hero {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    background: var(--gradient-card);
    padding: 4px;
    box-shadow:
        0 10px 40px rgba(139, 92, 246, 0.2),
        0 0 60px rgba(236, 72, 153, 0.1);
    animation: heroEntrance 0.8s ease-out;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.game-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--rounded-lg);
    padding: 3px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.game-hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: calc(var(--rounded-lg) - 4px);
    position: relative;
    z-index: 0;
    transition: transform 0.5s ease;
}

.game-hero:hover img {
    transform: scale(1.02);
}

/* Hero Overlay Gradient */
.game-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(12, 0, 20, 0.8), transparent);
    pointer-events: none;
    z-index: 2;
    border-radius: 0 0 calc(var(--rounded-lg) - 4px) calc(var(--rounded-lg) - 4px);
}

.game-details {
    width: 100%;
    padding: 1.5rem 1rem;
    animation: detailsEntrance 0.6s ease-out 0.3s backwards;
}

@keyframes detailsEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Stats Section */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 1.5rem 0;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--glass-border);
    min-width: 90px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: statEntrance 0.5s ease-out backwards;
}

.stat-item:nth-child(1) { animation-delay: 0.4s; }
.stat-item:nth-child(2) { animation-delay: 0.5s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes statEntrance {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(139, 92, 246, 0.15);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Profile Description */
.game-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    white-space: pre-line;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--glass-border);
    position: relative;
    animation: descEntrance 0.6s ease-out 0.7s backwards;
}

@keyframes descEntrance {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-description::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    font-family: Georgia, serif;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
}

.popular-calles {
    width: 100%;
}

/* Enhanced Section Title for Profile */
.game-details .section-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientText 3s ease infinite, titleEntrance 0.6s ease-out 0.2s backwards;
    text-shadow: none;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

@keyframes titleEntrance {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ANIMATION UTILITIES
   ======================================== */
@keyframes bounceBottomToTop {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
    70% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
    }
}

.anima {
    animation: bounceBottomToTop 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   TAP HIGHLIGHT REMOVAL
   ======================================== */
.game_section a,
.game_section_index a,
.game_section_home a,
.contentButton a,
.getstartbtn,
.game-card {
    -webkit-tap-highlight-color: transparent !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 500px) {
    .main_div {
        min-width: 100%;
        width: 100%;
        padding: 0 0 20px 0;
        border-left: none;
        border-right: none;
    }

    .content-container {
        padding: 0 8px;
    }

    .row {
        gap: 12px;
        padding: 8px;
    }

    .game-card {
        padding: 14px 10px;
    }

    .game-card img {
        width: 110px;
        height: 110px;
    }

    .main_logo {
        display: none;
    }

    .game_section2 {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .game_section5 button {
        padding: 10px 35px;
    }

    .about_section {
        padding: 16px;
    }

    footer {
        padding: 12px 16px;
    }

    .game-card .start-game {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .game-card img {
        width: 95px;
        height: 95px;
    }

    .game-card .game-title {
        font-size: 0.9rem;
    }

    .row {
        gap: 10px;
    }
}

@media (max-width: 320px) {
    .game_section5 button {
        padding: 10px 20px;
    }

    .game-card {
        padding: 12px 8px;
    }
}

@media (max-width: 280px) {
    .game_section {
        margin: 12px;
    }

    .click_btn {
        font-size: 0.85rem;
    }

    .class_flex {
        gap: 4px;
    }
}

@media (min-width: 500px) and (max-width: 870px) {
    .logo_content {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

@media (max-width: 768px) {
    .main_img {
        width: 100%;
    }
}

@media screen and (max-width: 640px) {
    .popup-content {
        width: 90%;
        max-width: 350px;
    }
}

@media screen and (max-width: 386px) {
    .bottom-ad {
        width: 100%;
        border-radius: 0;
    }
}

/* ========================================
   CLOSE BUTTON
   ======================================== */
.close-popup {
    outline: none;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-popup:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px var(--shadow-purple);
}

/* ========================================
   BACK BUTTON
   ======================================== */
.back-button {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    cursor: pointer;
    margin-left: 20px;
    -webkit-tap-highlight-color: transparent !important;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.back-button:hover {
    opacity: 1;
    transform: translateX(-3px);
}

/* ========================================
   SECTION RESPONSIVE UTILITIES
   ======================================== */
.resp_play_btn,
.resp_choose_game,
.resp_more_game,
.resp_about_section,
.resp_footer,
.resp_play_btn {
    display: flex;
    justify-content: center;
    width: 100%;
}

.imgBanner {
    height: 30px;
    margin-top: 20px;
}

.imgTitle {
    width: 50%;
}

.btn1,
.click_btn1 {
    width: 100%;
}

.game_section_emote1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    justify-items: center;
}

.game_section_pets {
    margin: 4px;
    border-radius: var(--rounded-lg);
}

.play_btn_txt1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* ========================================
   SMOOTH MOBILE ANIMATIONS
   ======================================== */

/* GPU Acceleration & Performance Hints */
.game-card,
.play-btn,
.start-game,
.stat-item,
.game-hero,
.connect-avatar,
.calling-avatar,
.waiting-avatar,
.status-badge,
.profile-status,
.more-btn,
.back-btn,
.cut-button,
.mute-button {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Smooth Cubic Bezier Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Ultra-Smooth Card Animations */
.game-card {
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.3s ease;
}

/* Smooth Image Transitions */
.game-card img,
.game-hero img,
.connect-avatar,
.calling-avatar,
.waiting-avatar,
.end-avatar {
    transition:
        transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease-out;
}

/* Smooth Button Animations */
.play-btn,
.start-game,
.click_btn,
.more-btn,
.start-call-btn,
.browse-btn,
.end-call-btn {
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease-out,
        background 0.3s ease;
}

/* Smooth Status Badge Transitions */
.status-badge,
.profile-status,
.status-overlay,
.calling-status-badge,
.connect-status {
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

/* Optimized Keyframe Animations */
@keyframes smoothPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes smoothGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 35px rgba(139, 92, 246, 0.5);
    }
}

@keyframes smoothFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes smoothFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes smoothScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Touch-Optimized Active States */
.game-card:active {
    transform: scale(0.97);
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.play-btn:active,
.start-game:active,
.more-btn:active,
.start-call-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Smooth Overlay Animations */
.waiting-overlay,
.dialog-overlay,
.popup-overlay {
    transition:
        opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0.4s ease;
}

.waiting-overlay.active {
    animation: smoothFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile-Specific Optimizations */
@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    .game-card::after {
        display: none; /* Remove shine effect on mobile for performance */
    }

    /* Faster, smoother transitions */
    .game-card {
        transition:
            transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            box-shadow 0.3s ease;
    }

    .game-card:hover,
    .game-card:active {
        transform: translateY(-4px) scale(1.01);
    }

    /* Optimized profile pulse animation */
    @keyframes profilePulse {
        0%, 100% {
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
        }
        50% {
            box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
        }
    }

    /* Smoother card entrance */
    @keyframes cardEntrance {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .game-card {
        animation: cardEntrance 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
    }

    /* Reduce diamond shimmer intensity */
    @keyframes diamondShimmer {
        0%, 100% {
            opacity: 0.5;
        }
        50% {
            opacity: 0.7;
        }
    }

    /* Smoother button shimmer */
    @keyframes buttonShimmer {
        0% { left: -100%; }
        100% { left: 100%; }
    }

    .play-btn::before {
        animation: buttonShimmer 3s ease-in-out infinite;
    }

    /* Optimized live pulse */
    @keyframes livePulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }
        50% {
            opacity: 0.5;
            transform: scale(1.2);
        }
    }

    /* Smooth status transitions */
    .status-badge,
    .profile-status {
        transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* Optimized hero animations */
    .game-hero {
        animation: smoothScale 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    @keyframes borderGlow {
        0%, 100% {
            opacity: 0.5;
        }
        50% {
            opacity: 0.8;
        }
    }

    /* Smoother stat item animations */
    .stat-item {
        transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .stat-item:active {
        transform: scale(0.97);
    }
}

/* Extra smooth for high-refresh displays */
@media (prefers-reduced-motion: no-preference) {
    .game-card,
    .play-btn,
    .stat-item,
    img {
        transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .main_div {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* ========================================
   AD CONTAINER
   ======================================== */
.ad-container {
    width: 300px;
    height: 250px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

/* ========================================
   MORE BUTTON
   ======================================== */
.more-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.more-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 14px 40px;
    border-radius: var(--rounded-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.more-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.more-btn i {
    transition: transform 0.3s ease;
}

.more-btn:hover i {
    transform: rotate(180deg);
}

.more-btn.hidden {
    display: none;
}

/* ========================================
   STATUS BADGE
   ======================================== */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-busy {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ========================================
   PAGE TITLE
   ======================================== */
.page-title {
    text-align: center;
    padding: 20px 0 10px;
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.page-title p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 5px 0 0;
}

/* ========================================
   PROFILE STATUS (call_details page)
   ======================================== */
.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.profile-status.online {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-status.busy {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.profile-status i {
    font-size: 0.5rem;
}

.call-btn-container {
    text-align: center;
    margin: 25px 0;
}

.call-btn-container a {
    text-decoration: none;
    display: inline-block;
}

.call-btn-container .play-btn {
    text-decoration: none;
    gap: 10px;
}

.call-btn-container .play-btn i {
    font-size: 1.1rem;
}

.call-btn-container .play-btn.busy-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

.call-btn-container .play-btn.busy-btn:hover {
    box-shadow: 0 15px 50px rgba(245, 158, 11, 0.4);
}

/* ========================================
   CALL END PAGE
   ======================================== */
.call-end-container {
    text-align: center;
    padding: 30px 20px;
}

.call-ended-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.call-ended-badge i {
    font-size: 0.7rem;
}

.end-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    padding: 4px;
    background: var(--gradient-primary);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.end-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.call-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
}

.call-duration i {
    color: var(--primary-purple);
}

.call-duration span {
    font-weight: 600;
    color: var(--text-primary);
}

.message-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--rounded-lg);
    padding: 25px 20px;
    margin-bottom: 30px;
    text-align: left;
}

.message-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-align: center;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.message-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.message-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.message-section ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-section ul li i {
    color: var(--accent-green);
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 280px;
    margin: 0 auto;
}

.browse-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 16px 30px;
    border-radius: var(--rounded-full);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
}

.browse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.5);
}

.thank-you {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: var(--rounded-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.thank-you p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.thank-you i {
    color: var(--primary-pink);
    margin-right: 8px;
}

/* ========================================
   CONNECT PAGE
   ======================================== */
.connect-container {
    text-align: center;
    padding: 30px 20px;
}

.connect-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    padding: 5px;
    background: var(--gradient-primary);
    box-shadow:
        0 0 40px rgba(139, 92, 246, 0.4),
        0 0 80px rgba(236, 72, 153, 0.2);
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow:
            0 0 40px rgba(139, 92, 246, 0.4),
            0 0 80px rgba(236, 72, 153, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 60px rgba(139, 92, 246, 0.5),
            0 0 100px rgba(236, 72, 153, 0.3);
        transform: scale(1.02);
    }
}

.connect-name {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.connect-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.connect-status.busy {
    color: #f59e0b;
}

.connect-status i {
    font-size: 0.6rem;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Busy Waiting Overlay */
.waiting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.waiting-overlay.active {
    opacity: 1;
    visibility: visible;
}

.waiting-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    padding: 4px;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.4);
    animation: waitingPulse 1.5s ease-in-out infinite;
    margin-bottom: 25px;
}

@keyframes waitingPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(245, 158, 11, 0.5);
        transform: scale(1.05);
    }
}

.waiting-text {
    color: #f59e0b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.waiting-text i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.waiting-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: center;
    max-width: 280px;
}

.waiting-timer {
    background: var(--glass-bg);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 30px;
    padding: 12px 30px;
    color: #f59e0b;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
}

.waiting-subtext {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 15px;
}

/* Ready state */
.waiting-overlay.ready .waiting-avatar {
    background: linear-gradient(135deg, #10b981, #8b5cf6);
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.4);
    animation: readyPulse 0.8s ease-in-out infinite;
}

@keyframes readyPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 60px rgba(16, 185, 129, 0.6);
    }
}

.waiting-overlay.ready .waiting-text {
    color: #10b981;
}

.waiting-overlay.ready .waiting-timer {
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Busy button style */
.start-call-btn.busy-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
}

.start-call-btn.busy-btn:hover {
    box-shadow: 0 15px 50px rgba(245, 158, 11, 0.5);
}

.connect-info {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--rounded-lg);
    padding: 20px;
    margin-bottom: 30px;
}

.connect-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.connect-info i {
    color: var(--primary-purple);
    margin-right: 8px;
}

.connect-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 280px;
    margin: 0 auto;
}

.start-call-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 18px 30px;
    border-radius: var(--rounded-full);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-call-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.5);
}

.start-call-btn i {
    font-size: 1.2rem;
}

.cancel-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 14px 30px;
    border-radius: var(--rounded-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.ad-notice {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ad-notice i {
    color: var(--accent-gold);
}

/* ========================================
   SPLASH PAGE
   ======================================== */
.splash-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.splash-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    animation: splashBg 4s ease-in-out infinite;
}

@keyframes splashBg {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.splash-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.splash-logo {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.4),
        0 0 100px rgba(236, 72, 153, 0.2);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 20px 60px rgba(139, 92, 246, 0.4),
            0 0 100px rgba(236, 72, 153, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 25px 80px rgba(139, 92, 246, 0.5),
            0 0 120px rgba(236, 72, 153, 0.3);
    }
}

.splash-logo i {
    font-size: 3rem;
    color: #fff;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-family: 'Space Grotesk', sans-serif;
}

.splash-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.splash-loader {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.splash-loader span {
    width: 12px;
    height: 12px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.splash-loader span:nth-child(1) { animation-delay: 0s; }
.splash-loader span:nth-child(2) { animation-delay: 0.2s; }
.splash-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

.splash-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 30px;
    overflow: hidden;
}

.splash-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: progress 2.5s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ========================================
   CALLING PAGE
   ======================================== */
.calling-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.calling-screen::before,
.calling-screen::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.2);
    animation: ringExpand 2s ease-out infinite;
}

.calling-screen::before {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.calling-screen::after {
    width: 200px;
    height: 200px;
    animation-delay: 0.5s;
}

@keyframes ringExpand {
    0% {
        width: 150px;
        height: 150px;
        opacity: 0.8;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

.avatar-container {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.calling-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    padding: 4px;
    background: var(--gradient-primary);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.5);
    animation: avatarBounce 1s ease-in-out infinite;
}

@keyframes avatarBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.phone-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    animation: phoneShake 0.5s ease-in-out infinite;
}

.phone-icon i {
    color: #fff;
    font-size: 1.2rem;
}

@keyframes phoneShake {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.calling-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.calling-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.calling-status-badge.online {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.calling-status-badge.busy {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.calling-status-badge i {
    font-size: 0.5rem;
    animation: statusBlink 1s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.calling-status {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.calling-dots {
    display: inline-block;
}

.calling-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

.end-call-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.end-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(239, 68, 68, 0.5);
}

.end-call-btn i {
    color: #fff;
    font-size: 1.5rem;
    transform: rotate(135deg);
}

.connecting-text {
    position: absolute;
    bottom: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sound-waves {
    display: flex;
    gap: 4px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.sound-waves span {
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: soundWave 0.8s ease-in-out infinite;
}

.sound-waves span:nth-child(1) { animation-delay: 0s; height: 15px; }
.sound-waves span:nth-child(2) { animation-delay: 0.1s; height: 25px; }
.sound-waves span:nth-child(3) { animation-delay: 0.2s; height: 20px; }
.sound-waves span:nth-child(4) { animation-delay: 0.3s; height: 30px; }
.sound-waves span:nth-child(5) { animation-delay: 0.4s; height: 20px; }

@keyframes soundWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* ========================================
   VIEWCALL PAGE
   ======================================== */
.status-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.status-overlay.online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-overlay.busy {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-overlay i {
    font-size: 0.45rem;
    animation: statusPulse 1s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========================================
   END OF STYLES
   ======================================== */
