
        /* ===== CSS VARIABLES ===== */
        :root {
            --font-poppins: 'Poppins', sans-serif;
            --font-oswald: 'Oswald', sans-serif;
            --color-primary: #2563eb;
            --color-primary-light: #60a5fa;
            --color-accent-blue: #3b82f6;
            --color-accent-sky: #38bdf8;
            --color-accent-indigo: #818cf8;
            --color-glass: rgba(255,255,255,0.25);
            --color-glass-border: rgba(255,255,255,0.4);
            --color-dark-glass: rgba(0,0,0,0.05);
            --blue-dark: #1e40af;
            --blue-medium: #3b82f6;
            --blue-light: #60a5fa;
            --sky: #38bdf8;
            --cyan: #22d3d1;
            --indigo: #818cf8;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
        }

        /* ===== ENHANCED ANIMATIONS ===== */
        @keyframes fadeScale {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }
        
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-30px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(30px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-6px); }
            40%, 80% { transform: translateX(6px); }
        }
        
        @keyframes glow {
            0%, 100% { box-shadow: 0 0 5px rgba(108,92,231,0.3); }
            50% { box-shadow: 0 0 25px rgba(108,92,231,0.6); }
        }
        
        @keyframes pulseGlow {
            0%, 100% { opacity: 0.6; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.02); }
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }
        
        @keyframes floatRotate {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            25% { transform: translateY(-5px) rotate(2deg); }
            75% { transform: translateY(-3px) rotate(-2deg); }
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        @keyframes bounceIn {
            0% { opacity: 0; transform: scale(0.3); }
            50% { transform: scale(1.05); }
            70% { transform: scale(0.9); }
            100% { opacity: 1; transform: scale(1); }
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(0.98); }
        }
        
        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        @keyframes rotation {
            to { transform: rotate(360deg); }
        }
        
        @keyframes textGradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        @keyframes ripple {
            0% { transform: scale(0); opacity: 0.5; }
            100% { transform: scale(4); opacity: 0; }
        }
        
        @keyframes sparkle {
            0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
            50% { opacity: 1; transform: scale(1) rotate(180deg); }
        }
        
        @keyframes confetti {
            0% { transform: translateY(0) rotate(0deg); opacity: 1; }
            100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
        }
        
        @keyframes breathe {
            0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(108,92,231,0.2); }
            50% { transform: scale(1.02); box-shadow: 0 8px 25px rgba(108,92,231,0.35); }
        }
        
        @keyframes slideUpStagger {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes morphBg {
            0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
            50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
        }

        /* ===== ANIMATION CLASSES ===== */
        .animate-fadeScale { animation: fadeScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
        .animate-slideUp { animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
        .animate-slideDown { animation: slideDown 0.4s ease-out forwards; }
        .animate-slideInLeft { animation: slideInLeft 0.5s ease-out forwards; }
        .animate-slideInRight { animation: slideInRight 0.5s ease-out forwards; }
        .animate-shake { animation: shake 0.4s ease-in-out; }
        .animate-glow { animation: glow 2s ease-in-out infinite; }
        .animate-float { animation: float 3s ease-in-out infinite; }
        .animate-floatRotate { animation: floatRotate 4s ease-in-out infinite; }
        .animate-spin-slow { animation: spin 1s linear infinite; }
        .animate-bounce { animation: bounce 0.8s ease-in-out infinite; }
        .animate-bounceIn { animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
        .animate-pulse { animation: pulse 2s ease-in-out infinite; }
        .animate-breathe { animation: breathe 3s ease-in-out infinite; }

        /* Staggered animations */
        .stagger-1 { animation-delay: 0.1s; }
        .stagger-2 { animation-delay: 0.2s; }
        .stagger-3 { animation-delay: 0.3s; }
        .stagger-4 { animation-delay: 0.4s; }
        .stagger-5 { animation-delay: 0.5s; }

        /* ===== GLOBAL RESETS ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        
        ::-webkit-scrollbar { display: none; }

        input[type="number"]::-webkit-inner-spin-button,
        input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
        input[type="number"] { -moz-appearance: textfield; }

        /* ===== BODY ===== */
        html, body {
            font-family: var(--font-poppins);
            overflow-x: hidden;
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 40%, #60a5fa 70%, #38bdf8 100%);
            background-attachment: fixed;
            min-height: 100dvh;
            min-height: -webkit-fill-available;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 16px;
            padding-bottom: calc(16px + var(--safe-area-inset-bottom));
            color: #2c3e50;
            overscroll-behavior-y: contain;
            touch-action: manipulation;
            position: relative;
        }

        /* Animated background shapes */
       body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: -1;
    animation: morphBg 15s ease-in-out infinite;
    pointer-events: none;
    max-width: 100vw;
    max-height: 100vh;
}

        a { text-decoration: none; }
        button { font-family: var(--font-poppins); }
        .fa-exclamation-triangle { margin-right: 8px; }
        .fa-telegram { color: #3390ec; }

        /* ===== LOADERS ===== */
        .btn-loader {
            width: 20px;
            height: 20px;
            border: 2.5px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            display: inline-block;
            animation: rotation 0.7s linear infinite;
        }

        .swal2-container { z-index: 200000 !important; }

        /* ===== SKELETON ===== */
        .skeleton-wrapper {
            display: block;
            padding: 24px;
            background: rgba(255,255,255,0.4);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.5);
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(59,130,246,0.2);
            margin-bottom: 20px;
        }
        
        .skeleton {
            height: 22px;
            margin-bottom: 16px;
            border-radius: 10px;
            background: linear-gradient(90deg, rgba(59,130,246,0.2) 0%, rgba(96,165,250,0.3) 50%, rgba(59,130,246,0.2) 100%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
            position: relative;
            overflow: hidden;
        }
        
        .skeleton.short { width: 65%; }
        
        .skeleton:last-child { margin-bottom: 0; }

        /* ===== MAIN CONTAINER ===== */
        .container {
            max-width: 380px;
            width: 100%;
            background: rgba(255,255,255,0.5);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border: 1px solid rgba(255,255,255,0.7);
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 
                0 20px 60px rgba(37,99,235,0.2),
                0 8px 24px rgba(59,130,246,0.15),
                inset 0 1px 0 rgba(255,255,255,0.9);
            position: relative;
            animation: fadeScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
            transform-origin: center;
        }

        .container::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 28px;
            background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }

        /* ===== HEADER ===== */
        .header-compact {
            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
            background-size: 200% 200%;
            animation: textGradient 8s ease infinite;
           
            border-radius: 26px 26px 0 0;
            width: 100%;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 65px;
            box-shadow: 0 6px 20px rgba(37,99,235,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
        }

        .header-compact::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 55%;
            background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
           
            pointer-events: none;
        }

        .animate-charcter {
            text-transform: uppercase;
            color: #ffffff;
            text-shadow: 0 2px 10px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.3);
            display: inline-block;
            font-size: clamp(1.1rem, 6vw, 1.5rem);
            font-weight: 700;
            letter-spacing: 1px;
            margin: 0;
            width: 100%;
            text-align: center;
            line-height: 1.2;
            padding: 5px 0;
            word-break: break-word;
            position: relative;
            z-index: 1;
            animation: slideDown 0.5s ease-out;
        }

        /* Diagonal Ribbon */
        .ribbon-wrapper {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 120px;
            height: 120px;
            overflow: hidden;
            z-index: 100;
            pointer-events: none;
        }
        
        .reward-amount {
            position: absolute;
            top: 26px;
            right: -35px;
            background: linear-gradient(135deg, #ff4757 0%, #ff3344 50%, #c0392b 100%);
            color: #ffffff;
            padding: 8px 50px;
            font-weight: 800;
            font-size: 0.85rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            transform: rotate(45deg);
            box-shadow: 
                0 4px 15px rgba(255, 71, 87, 0.5),
                0 2px 5px rgba(0,0,0,0.2),
                inset 0 1px 0 rgba(255,255,255,0.3);
            z-index: 10;
            animation: ribbonPulse 2s ease-in-out infinite;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
            border: none;
            border-radius: 0;
        }
        
        .reward-amount::before {
            content: '';
            position: absolute;
            left: 0;
            bottom: -6px;
            border-left: 6px solid transparent;
            border-right: 6px solid #8b1a1a;
            border-top: 6px solid #8b1a1a;
            border-bottom: 6px solid transparent;
        }
        
        .reward-amount::after {
            content: '';
            position: absolute;
            right: 0;
            bottom: -6px;
            border-left: 6px solid #8b1a1a;
            border-right: 6px solid transparent;
            border-top: 6px solid #8b1a1a;
            border-bottom: 6px solid transparent;
        }
        
        @keyframes ribbonPulse {
            0%, 100% { 
                box-shadow: 
                    0 4px 15px rgba(255, 71, 87, 0.5),
                    0 2px 5px rgba(0,0,0,0.2),
                    inset 0 1px 0 rgba(255,255,255,0.3);
            }
            50% { 
                box-shadow: 
                    0 4px 25px rgba(255, 71, 87, 0.8),
                    0 2px 8px rgba(0,0,0,0.3),
                    inset 0 1px 0 rgba(255,255,255,0.4);
            }
        }
        
        /* Ribbon shine effect */
        .reward-amount .ribbon-shine {
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255,255,255,0.4),
                transparent
            );
            animation: ribbonShine 3s ease-in-out infinite;
        }
        
        @keyframes ribbonShine {
            0% { left: -100%; }
            50%, 100% { left: 150%; }
        }

        /* ===== CONTENT ===== */
        .content {
            padding: 12px 20px 50px 20px;
            position: relative;
            z-index: 1;
            min-height: 180px;
        }

        /* ===== PROGRESS CONTAINER ===== */
        .progress-container {
            margin: 20px 0;
            background: rgba(255,255,255,0.55);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.7);
            padding: 20px 22px;
            border-radius: 18px;
            box-shadow: 0 8px 24px rgba(108,92,231,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
            animation: slideUp 0.5s ease-out 0.2s both;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .progress-container:active {
            transform: scale(0.98);
        }
        
        .progress-text {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            font-size: 0.95rem;
            color: #7a7a7a;
        }
        
        .progress-text span:first-child,
        .progress-text span:last-child {
            color: var(--color-accent-blue);
            font-weight: 700;
            transition: transform 0.3s ease;
        }
        
        .progress-bar {
            height: 16px;
            background: rgba(223,230,233,0.5);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.6);
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
            position: relative;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa, #38bdf8);
            background-size: 200% 100%;
            animation: textGradient 3s ease infinite;
            transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: left;
            width: 100%;
            transform: scaleX(0);
            will-change: transform;
            position: relative;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
            border-radius: 12px;
        }
        
        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
            animation: shimmer 2s infinite;
        }

        /* ===== FORM ===== */
        .form-group { margin-bottom: 14px; }
        
        .form-label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: #2d3436;
            font-size: 0.92rem;
        }
        
        .form-input {
            width: 100%;
            padding: 15px 20px;
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 2px solid rgba(255,255,255,0.8);
            color: #2d3436;
            border-radius: 14px;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: var(--font-poppins);
            box-shadow: 0 4px 12px rgba(0,0,0,0.04);
        }
        
        .form-input:focus {
            border-color: var(--color-primary);
            box-shadow: 0 0 0 4px rgba(108,92,231,0.15), 0 4px 12px rgba(0,0,0,0.04);
            outline: none;
            background: rgba(255,255,255,0.9);
            transform: translateY(-2px);
        }
        
        .form-input::placeholder {
            color: #b2bec3;
        }

        /* ===== BUTTONS ===== */
        .btn {
            display: inline-flex;
            padding: 16px 32px;
            color: white;
            border: none;
            border-radius: 14px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            width: 100%;
            text-align: center;
            margin: 12px 0;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            justify-content: center;
            align-items: center;
            gap: 10px;
        }

        /* Ripple effect */
        .btn-ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255,255,255,0.4);
            transform: scale(0);
            animation: ripple 0.6s linear;
            pointer-events: none;
        }

        .btn-claim {
            border: none;
            outline: none;
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
            padding: 14px 48px;
            font-size: 1.05rem;
            font-weight: 700;
            color: #fff;
            border-radius: 14px;
            transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0px 6px 0px 0px rgba(140,130,230,0.9), 0 8px 25px rgba(108,92,231,0.35);
            cursor: pointer;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            height: 54px;
            width: 100%;
            margin-top: 10px;
            position: relative;
            overflow: hidden;
            animation: slideUp 0.5s ease-out 0.4s both;
        }
        
        .btn-claim::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 50%;
            background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
            border-radius: 14px 14px 0 0;
            pointer-events: none;
        }
        
        .btn-claim:active {
            transform: translateY(4px) scale(0.98);
            box-shadow: 0px 2px 0px 0px rgba(140,130,230,0.9), 0 4px 12px rgba(108,92,231,0.25);
        }
        
        .btn-claim:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .btn-secondary {
            background: rgba(255,255,255,0.6);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: var(--color-accent-pink);
            border: 2px solid rgba(255,154,162,0.4);
        }
        
        .btn-secondary:active {
            background: var(--color-accent-pink);
            color: white;
            transform: scale(0.96);
        }

        .spinner {
            width: 22px;
            aspect-ratio: 1;
            border: 3px solid rgba(255,255,255,0.3);
            border-top: 3px solid white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        /* ===== CHANNELS ===== */
        .channels-container {
            margin: 18px 0;
            background: rgba(255,255,255,0.5);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.7);
            padding: 22px;
            border-radius: 20px;
            box-shadow: 0 8px 24px rgba(108,92,231,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
            animation: slideUp 0.5s ease-out 0.1s both;
        }
        
        .channels-title {
            text-align: center;
            margin-bottom: 20px;
            color: var(--color-accent-blue);
            font-weight: 700;
            font-size: 1.1rem;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .channels-title i {
            animation: float 2s ease-in-out infinite;
        }
        
        .channel-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            background: rgba(255,255,255,0.6);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.7);
            padding: 14px 16px;
            border-radius: 14px;
            margin-bottom: 12px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            width: 100%;
            box-shadow: 0 4px 12px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
            animation: slideInLeft 0.4s ease-out both;
        }
        
        .channel-item:nth-child(2) { animation-delay: 0.1s; }
        .channel-item:nth-child(3) { animation-delay: 0.2s; }
        .channel-item:nth-child(4) { animation-delay: 0.3s; }
        
        .channel-item.joined {
            background: rgba(232,245,233,0.8);
            border-color: rgba(165,214,167,0.8);
            box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1), inset 0 1px 0 rgba(255,255,255,0.9);
        }
        
        .channel-item:active {
            transform: scale(0.97);
            box-shadow: 0 2px 8px rgba(0, 0, 0,0.08);
        }
        
        .channel-icon {
            color: var(--color-accent-lavender);
            font-size: 1.3rem;
            width: 42px;
            height: 42px;
            background: rgba(255,255,255,0.8);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.9);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.95);
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }
        
        .channel-item:hover .channel-icon {
            transform: scale(1.05);
        }
        
        .channel-name {
            font-weight: 600;
            margin: 0 12px;
            font-size: 0.95rem;
            text-align: left;
            flex-grow: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 140px;
            color: #2d3436;
        }
        
        .channel-status {
            padding: 8px 14px;
            border-radius: 10px;
            font-size: 0.8rem;
            font-weight: 700;
            white-space: nowrap;
            display: inline-block;
            text-decoration: none;
            transition: all 0.2s ease;
        }
        
        .status-verified {
            background: rgba(232,245,233,0.9);
            color: #2e7d32;
            border: 1px solid rgba(165,214,167,0.8);
        }
        
        .status-pending {
            background: rgba(255,243,224,0.9);
            color: #ef6c00;
            border: 1px solid rgba(255,204,128,0.8);
        }
        
        .status-error {
            background: rgba(255,235,238,0.9);
            color: #c62828;
            border: 1px solid rgba(255,205,210,0.8);
        }
        
        .status-banned {
            background: rgba(245,245,245,0.9);
            color: #616161;
            border: 1px solid rgba(224,224,224,0.8);
        }
        
        .mini-spinner {
            width: 18px;
            height: 18px;
            border: 2.5px solid rgba(0,0,0,0.1);
            border-top: 2.5px solid var(--color-accent-pink);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            display: inline-block;
            vertical-align: middle;
        }

        /* ===== USER INFO ===== */
        .user-info {
            display: flex;
            align-items: center;
            margin-top: 20px;
            padding: 22px;
            background: rgba(255,255,255,0.55);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.7);
            border-radius: 18px;
            box-shadow: 0 8px 24px rgba(108,92,231,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
            animation: slideUp 0.5s ease-out 0.3s both;
        }
        
        .user-avatar {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            background: linear-gradient(135deg, var(--color-accent-pink) 0%, var(--color-primary-light) 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            font-weight: 700;
            margin-right: 18px;
            flex-shrink: 0;
            box-shadow: 0 6px 16px rgba(255,154,162,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
            animation: floatRotate 4s ease-in-out infinite;
        }
        
        .user-details { flex-grow: 1; }
        
        .user-name {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: rgba(46,204,113,0.15);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #27ae60;
            font-weight: 600;
            font-family: var(--font-poppins);
            font-size: 0.78rem;
            padding: 8px 16px;
            border-radius: 50px;
            border: 1px solid rgba(46,204,113,0.3);
            margin: 12px auto 5px auto;
            width: fit-content;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 12px rgba(46,204,113,0.1);
            animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
        }
        
        .user-name span { display: inline-flex; align-items: center; line-height: 1; }
        .user-name span:first-child { font-weight: 400; opacity: 0.8; margin-right: 4px; }
        .user-name span:last-child { font-weight: 700; font-family: var(--font-oswald); letter-spacing: 0.5px; }

        /* ===== REFERRAL SECTION ===== */
        .referral-section {
            margin-top: 30px;
            text-align: center;
            background: rgba(255,255,255,0.55);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.7);
            padding: 28px;
            border-radius: 20px;
            box-shadow: 0 8px 24px rgba(108,92,231,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
        }
        
        .referral-title {
            color: var(--color-accent-pink);
            margin-bottom: 18px;
            font-weight: 700;
            font-size: 1.1rem;
        }

        .btn-referral, .green-btn {
            border: none;
            outline: none;
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
            padding: 10px 24px;
            font-size: 0.9rem;
            font-weight: 700;
            color: #fff;
            border-radius: 12px;
            transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0px 5px 0px 0px rgba(140,130,230,0.9), 0 6px 18px rgba(108,92,231,0.3);
            cursor: pointer;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            height: 44px;
            white-space: nowrap;
            gap: 10px;
            text-decoration: none;
            touch-action: manipulation;
            font-family: var(--font-poppins);
            margin: 10px auto;
            position: relative;
            overflow: hidden;
        }
        
        .btn-referral::before, .green-btn::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 50%;
            background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
            pointer-events: none;
        }
        
        .btn-referral:active, .green-btn:active {
            transform: translateY(4px) scale(0.98);
            box-shadow: 0px 1px 0px 0px rgba(140,130,230,0.9), 0 2px 8px rgba(108,92,231,0.2);
        }

        .orange-btn {
            background: linear-gradient(135deg, #EF4765, #FF9A5A);
            border: 0;
            border-radius: 14px;
            color: #FFFFFF;
            cursor: pointer;
            font-family: var(--font-poppins);
            font-size: 1rem;
            font-weight: 600;
            padding: 12px 24px;
            text-align: center;
            text-decoration: none;
            transition: all 0.2s ease;
            margin: 15px;
            box-shadow: 0 6px 20px rgba(239, 71, 101, 0.3);
        }
        
        .orange-btn:active {
            transform: scale(0.96);
        }

        /* ===== POPUP ===== */
        .popup-overlay {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100dvh;
            background: rgba(199,206,234,0.25);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            display: grid;
            place-items: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            padding: 20px;
        }
        
        .popup-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        
        .popup-container {
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(32px);
            -webkit-backdrop-filter: blur(32px);
            border: 1px solid rgba(255,255,255,0.8);
            border-radius: 28px;
            width: 100%;
            max-width: 360px;
            padding: 0;
            position: relative;
            transform: scale(0.85) translateY(30px);
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 
                0 25px 80px rgba(108,92,231,0.25),
                0 10px 30px rgba(255,154,162,0.15),
                inset 0 1px 0 rgba(255,255,255,0.95);
            text-align: center;
            overflow: hidden;
        }
        
        .popup-container::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 45%;
            background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
            pointer-events: none;
            z-index: 0;
        }
        
        .popup-overlay.active .popup-container {
            transform: scale(1) translateY(0);
        }
        
        .popup-header {
            background: linear-gradient(135deg, var(--color-accent-pink) 0%, var(--color-accent-peach) 50%, var(--color-accent-lavender) 100%);
            background-size: 200% 200%;
            animation: textGradient 8s ease infinite;
            color: white;
            padding: 18px 22px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1;
            box-shadow: 0 4px 16px rgba(255,154,162,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
        }
        
        .popup-close {
            position: absolute;
            top: 50%;
            right: 16px;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.3);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.5);
            border-radius: 50%;
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            color: white;
            font-size: 1rem;
            z-index: 10;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
        }
        
        .popup-close:active {
            transform: translateY(-50%) scale(0.9);
            background: rgba(255,255,255,0.2);
        }
        
        .popup-title {
            font-family: var(--font-oswald);
            font-size: 1.3rem;
            margin: 0;
            color: white;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            line-height: 1;
            text-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }
        
        .popup-title i {
            font-size: 1.1rem;
            animation: bounce 1.5s infinite;
        }

        .popup-body {
            padding: 28px;
            position: relative;
            z-index: 1;
        }
        
        .popup-body p {
            font-family: var(--font-poppins);
            font-size: 0.85rem;
            color: #636e72;
            line-height: 1.6;
            margin-bottom: 22px;
            padding: 0 10px;
        }

        .referral-link {
            width: 100%;
            padding: 14px 18px;
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 2px dashed rgba(178,190,195,0.5);
            border-radius: 14px;
            font-size: 0.95rem;
            color: #2d3436;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            font-family: var(--font-poppins);
            display: block;
            margin: 22px 0 18px 0;
            text-align: center;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
            cursor: pointer;
        }
        
        .referral-link:focus {
            border-color: #00b894;
            border-style: solid;
            background: rgba(255,255,255,0.9);
            box-shadow: 0 0 0 4px rgba(0,184,148,0.15);
            transform: translateY(-2px);
        }

        .popup-btn {
            border: none;
            outline: none;
            background: linear-gradient(135deg, var(--color-accent-pink) 0%, var(--color-accent-peach) 100%);
            padding: 0 24px;
            font-size: 0.9rem;
            font-weight: 700;
            color: #fff;
            border-radius: 12px;
            transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0px 5px 0px 0px rgba(255,170,165,0.9), 0 6px 18px rgba(255,154,162,0.35);
            cursor: pointer;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            height: 48px;
            width: 100%;
            gap: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-family: var(--font-poppins);
            position: relative;
            overflow: hidden;
        }
        
        .popup-btn::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 50%;
            background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
            pointer-events: none;
        }
        
        .popup-btn:active {
            transform: translateY(4px);
            box-shadow: 0px 1px 0px 0px rgba(255,170,165,0.9);
        }

        .copy-success {
            color: #2ecc71;
            font-size: 0.8rem;
            margin-top: 14px;
            display: none;
            font-weight: 600;
            align-items: center;
            justify-content: center;
            gap: 6px;
            animation: bounceIn 0.4s ease;
        }

        .celebrate { animation: float 1.5s ease-in-out infinite; }

        /* ===== FLOATING PARTICLES ===== */
        .particle {
            position: fixed;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            pointer-events: none;
            z-index: -1;
            opacity: 0.6;
        }

        /* ===== TOUCH FEEDBACK ===== */
        .touch-feedback {
            position: relative;
            overflow: hidden;
        }
        
        .touch-feedback::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        
        .touch-feedback:active::after {
            opacity: 1;
        }

        /* ===== RESPONSIVE ENHANCEMENTS ===== */
        @media (max-width: 480px) {
            body { padding: 12px; }
            
            .container { 
                max-width: 100%;
                border-radius: 24px;
            }
            
            .header-compact {
                padding: 16px 65px;
                min-height: 60px;
                border-radius: 22px 22px 0 0;
            }
            
            .ribbon-wrapper {
                width: 100px;
                height: 100px;
                top: -8px;
                right: -8px;
            }
            
            .reward-amount { 
                font-size: 0.75rem;
                padding: 6px 40px;
                top: 22px;
                right: -28px;
            }
            
            .animate-charcter {
                font-size: clamp(1rem, 5.5vw, 1.3rem);
            }
            
            .content { 
                padding: 10px 16px 45px 16px; 
            }
            
            .user-avatar { 
                width: 52px; 
                height: 52px; 
                font-size: 1.4rem; 
                margin-right: 14px;
                border-radius: 14px;
            }
            
            .user-info { 
                padding: 18px; 
                margin-top: 16px; 
                border-radius: 16px; 
            }
            
            .progress-container { 
                margin: 14px 0; 
                padding: 16px 18px; 
                border-radius: 16px; 
            }
            
            .progress-text { 
                font-size: 0.88rem; 
                margin-bottom: 10px; 
            }
            
            .progress-bar { height: 14px; border-radius: 10px; }
            
            .btn-referral, .green-btn { 
                padding: 10px 18px; 
                font-size: 0.85rem; 
                height: 42px;
                border-radius: 10px; 
            }
            
            .form-input { 
                padding: 14px 18px; 
                font-size: 0.95rem;
                border-radius: 12px;
            }
            
            .form-label { 
                font-size: 0.88rem; 
                margin-bottom: 8px; 
            }
            
            .btn-claim { 
                padding: 12px 24px; 
                font-size: 0.95rem; 
                height: 50px;
                border-radius: 12px;
                box-shadow: 0px 5px 0px 0px rgba(140,130,230,0.9), 0 6px 20px rgba(108,92,231,0.3);
            }
            
            .channels-container { 
                padding: 18px; 
                margin: 14px 0; 
                border-radius: 16px;
            }
            
            .channel-item { 
                padding: 12px 14px; 
                gap: 10px;
                border-radius: 12px;
            }
            
            .channel-icon { 
                width: 38px; 
                height: 38px; 
                font-size: 1.1rem;
                border-radius: 10px;
            }
            
            .channel-name { 
                font-size: 0.88rem; 
                max-width: 110px;
                margin: 0 10px;
            }
            
            .channel-status { 
                padding: 7px 12px; 
                font-size: 0.75rem;
                border-radius: 8px;
            }
            
            .popup-container {
                max-width: 95%;
                border-radius: 24px;
            }
            
            .popup-header {
                padding: 16px 20px;
            }
            
            .popup-title {
                font-size: 1.15rem;
            }
            
            .popup-body {
                padding: 24px 20px;
            }
            
            .popup-btn {
                height: 46px;
                font-size: 0.85rem;
            }
            
            .referral-link {
                padding: 12px 16px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 360px) {
            .container { border-radius: 20px; }
            
            .header-compact { 
                padding: 14px 55px;
                border-radius: 18px 18px 0 0;
            }
            
            .ribbon-wrapper {
                width: 85px;
                height: 85px;
                top: -6px;
                right: -6px;
            }
            
            .reward-amount { 
                font-size: 0.65rem;
                padding: 5px 32px;
                top: 18px;
                right: -22px;
            }
            
            .content { padding: 8px 14px 40px 14px; }
            
            .channel-name { max-width: 90px; }
            
            .user-avatar { 
                width: 46px; 
                height: 46px; 
                font-size: 1.2rem;
            }
        }

        /* ===== SAFE AREA FOR NOTCHED PHONES ===== */
        @supports (padding: max(0px)) {
            .content {
                padding-bottom: max(45px, calc(var(--safe-area-inset-bottom) + 20px));
            }
        }

        /* ===== REDUCED MOTION ===== */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ===== DARK MODE SUPPORT ===== */
        .ribbon-wrapper {
            position: absolute;
            top: -2px;
            right: -2px;
            z-index: 10;
            overflow: hidden;
            width: 80px;
            height: 80px;
        }

        .reward-amount {
            background: linear-gradient(135deg, #ff4d4d 0%, #e60023 60%, #b30000 100%) !important;
            box-shadow: -2px 2px 10px rgba(179, 0, 0, 0.6) !important;
            border-color: #cc0000 !important;
            color: #ffffff !important;
        }

        .ribbon-wrapper::before,
        .ribbon-wrapper::after {
            border-top-color: #990000 !important;
            border-right-color: #990000 !important;
        }

        html, body {
            overflow-x: hidden !important;
            max-width: 100vw !important;
        }
        *, *::before, *::after {
            box-sizing: border-box;
        }
        .container {
            max-width: 100vw;
            overflow-x: hidden;
            padding-left: 12px;
            padding-right: 12px;
        }
        .content {
            max-width: 100%;
            overflow-x: hidden;
        }
        input, button, select, textarea {
            max-width: 100%;
        }

        ::-webkit-scrollbar { display: none; }
        * { -ms-overflow-style: none; scrollbar-width: none; }

        input[type="number"]::-webkit-inner-spin-button,
        input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
        input[type="number"] { -moz-appearance: textfield; }

        .claim-step { display: none; }
        .claim-step.active { display: block; }

        .step-fade-in  { animation: stepFadeIn  .3s ease forwards; }
        .step-fade-out { animation: stepFadeOut .2s ease forwards; }

        @keyframes stepFadeIn  { from { opacity:0; } to { opacity:1; } }
        @keyframes stepFadeOut { from { opacity:1; } to { opacity:0; } }

        .step-pill {
            display: flex; align-items: center; justify-content: center;
            gap: 6px; margin: 0 auto 14px; width: fit-content;
        }
        .step-dot {
            width: 8px; height: 8px; border-radius: 50%;
            background: rgba(165,216,255,.2);
            border: 1px solid rgba(165,216,255,.3);
            transition: all .3s ease;
        }
        .step-dot.active {
            background: var(--ice-blue, #a5d8ff);
            box-shadow: 0 0 8px rgba(165,216,255,.5);
            transform: scale(1.25);
        }
        .step-dot.done { background: #00ffaa; border-color: #00ffaa; }

        #stepYoutube .yt-title {
            text-align: center; margin-bottom: 12px;
        }
        #stepYoutube .yt-title h3 {
            font-family: 'Poppins', sans-serif;
            font-size: .88rem; font-weight: 700;
            color: #ff4444; margin: 0;
        }
        #stepYoutube .yt-title p {
            font-size: .72rem; color: #999; margin: 4px 0 10px;
        }
        .yt-frame-wrap {
            position: relative; width: 100%; padding-bottom: 56.25%;
            border-radius: 14px; overflow: hidden;
            border: 2px solid rgba(255,68,68,.3);
            box-shadow: 0 4px 20px rgba(255,68,68,.15);
            margin-bottom: 10px;
            background: #000;
        }
        .yt-frame-wrap iframe,
        .yt-frame-wrap #ytPlayerDiv,
        #ytPlayerDiv iframe {
            position: absolute !important;
            inset: 0 !important;
            width: 100% !important;
            height: 100% !important;
            border: 0 !important;
        }
        #ytPlayerDiv {
            position: absolute; inset: 0;
        }

        .yt-unmute-overlay {
            position: absolute; inset: 0; z-index: 20;
            display: flex; align-items: flex-end; justify-content: center;
            padding-bottom: 14px;
            pointer-events: none;
            transition: opacity .4s ease;
        }
        .yt-unmute-overlay.hidden { opacity: 0; pointer-events: none; }
        .yt-unmute-btn {
            pointer-events: all;
            background: rgba(0,0,0,.72); color: #fff;
            border: 1.5px solid rgba(255,255,255,.3);
            border-radius: 22px; padding: 8px 18px;
            font-size: .75rem; font-family: 'Poppins', sans-serif;
            font-weight: 600; cursor: pointer;
            backdrop-filter: blur(6px);
            transition: background .2s, transform .15s;
        }
        .yt-unmute-btn:hover  { background: rgba(255,68,68,.7); }
        .yt-unmute-btn:active { transform: scale(.95); }

        .yt-pause-warn {
            text-align: center; font-size: .72rem;
            font-family: 'Poppins', sans-serif;
            color: #ff9900; font-weight: 600;
            padding: 6px 12px; min-height: 22px;
            background: rgba(255,153,0,.1);
            border: 1px solid rgba(255,153,0,.25);
            border-radius: 8px; margin-bottom: 8px;
            opacity: 0; transition: opacity .3s ease;
        }
        .yt-pause-warn.visible { opacity: 1; }

        .yt-timer-bar {
            width: 100%; height: 6px;
            background: rgba(255,255,255,.1);
            border-radius: 6px; overflow: hidden;
            margin-bottom: 8px;
        }
        .yt-timer-fill {
            height: 100%;
            background: linear-gradient(90deg, #ff4444, #ff9900);
            border-radius: 6px; width: 0%;
            transition: width .9s linear;
        }
        .yt-timer-fill.paused {
            background: linear-gradient(90deg, #888, #666);
            transition: none;
        }
        .yt-timer-text {
            text-align: center; font-size: .76rem;
            font-family: 'Poppins', sans-serif;
            color: #aaa; margin-bottom: 12px;
        }
        .yt-timer-text span { color: #ff9900; font-weight: 700; }
        #ytTimerStatus { font-weight: 700; }
        #ytTimerStatus.paused { color: #888 !important; }
        #ytTimerStatus.playing { color: #2ecc71 !important; }

        .yt-continue-btn {
            width: 100%; padding: 13px;
            background: linear-gradient(135deg, #ff4444, #ff6600);
            color: #fff; font-weight: 800; border: none;
            border-radius: 14px; cursor: pointer;
            font-size: .9rem; font-family: 'Poppins', sans-serif;
            letter-spacing: .5px; text-transform: uppercase;
            transition: transform .15s, box-shadow .15s;
            box-shadow: 0 4px 20px rgba(255,68,68,.4);
        }
        .yt-continue-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(255,68,68,.55); }
        .yt-continue-btn:active { transform: scale(.97); }
        .yt-continue-btn:disabled {
            background: linear-gradient(135deg, #444, #333);
            box-shadow: none; cursor: not-allowed; opacity: .75;
        }

        .channel-verify-result {
            text-align: center; font-size: .78rem;
            font-family: 'Poppins', sans-serif;
            padding: 8px 0; min-height: 24px;
            color: #e74c3c; font-weight: 600; transition: all .2s;
        }
        .channel-verify-result.success { color: #2ecc71; }

        .wallet-row { display: block; margin-bottom: 10px; }
        .wallet-row .form-input { width: 100%; box-sizing: border-box; }

        .wallet-next-btn {
            width: 100%; padding: 15px 20px;
            background: linear-gradient(135deg, #11c45a 0%, #0ea84c 50%, #0d9642 100%);
            color: #fff; font-weight: 800; border: none; border-radius: 14px;
            cursor: pointer; font-size: .95rem; font-family: 'Poppins', sans-serif;
            letter-spacing: .5px; text-transform: uppercase;
            transition: transform .15s, box-shadow .15s;
            box-shadow: 0 4px 20px rgba(17,196,90,.45), 0 0 0 0 rgba(17,196,90,.3);
            margin-top: 4px; position: relative; overflow: hidden;
        }
        .wallet-next-btn::before {
            content: ''; position: absolute; top: 0; left: -100%;
            width: 60%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
            transition: left .5s ease;
        }
        .wallet-next-btn:hover::before { left: 150%; }
        .wallet-next-btn:hover  { box-shadow: 0 6px 28px rgba(17,196,90,.6); transform: translateY(-1px); }
        .wallet-next-btn:active { transform: scale(.97) translateY(0); }
        .wallet-next-btn:disabled {
            background: linear-gradient(135deg, #555, #444);
            box-shadow: none; cursor: not-allowed; opacity: .7;
        }
        .wallet-next-btn.continue-btn {
            background: linear-gradient(135deg, #667eea, #764ba2);
            box-shadow: 0 4px 18px rgba(102,126,234,.4);
        }
        .wallet-next-btn.continue-btn:hover { box-shadow: 0 6px 24px rgba(102,126,234,.6); }

        .game-claim-btn {
            width: 100%; padding: 15px;
            background: linear-gradient(135deg, #11c45a 0%, #0ea84c 50%, #0d9642 100%);
            color: #fff; font-weight: 800; font-size: .92rem;
            border: none; border-radius: 14px; cursor: pointer;
            font-family: 'Poppins', sans-serif;
            letter-spacing: .5px; text-transform: uppercase;
            transition: transform .15s, box-shadow .15s;
            box-shadow: 0 4px 20px rgba(17,196,90,.45);
            margin-top: 10px; position: relative; overflow: hidden;
        }
        .game-claim-btn::before {
            content:''; position:absolute; top:0; left:-100%;
            width:60%; height:100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
            transition: left .5s ease;
        }
        .game-claim-btn:hover::before { left:150%; }
        .game-claim-btn:hover  { box-shadow: 0 6px 28px rgba(17,196,90,.6); transform: translateY(-1px); }
        .game-claim-btn:active { transform: scale(.97); }
        .game-claim-btn:disabled {
            background: linear-gradient(135deg,#555,#444);
            box-shadow:none; cursor:not-allowed; opacity:.7;
        }

        #accessCode {
            letter-spacing: 2px; text-transform: uppercase;
            font-family: 'Oswald', sans-serif;
        }

        .game-title { text-align: center; margin-bottom: 6px; }
        .game-title h3 {
            font-family: 'Poppins', sans-serif; font-size: .88rem;
            font-weight: 700; color: var(--ice-blue, #a5d8ff); margin: 0;
        }
        .game-title p { font-size: .72rem; color: #999; margin: 4px 0 10px; }

        /* Wallet step: heading & input clearly visible */
        #stepWallet .game-title h3 {
            color: #0f172a;
            font-size: 1.05rem;
            font-weight: 800;
            text-shadow: 0 1px 2px rgba(255,255,255,0.8);
        }
        #stepWallet .wallet-row .form-input {
            background: rgba(255,255,255,0.95);
            border: 2px solid rgba(30,41,59,0.25);
            color: #0f172a;
            font-size: 1.05rem;
            font-weight: 600;
        }
        #stepWallet .wallet-row .form-input::placeholder {
            color: #475569;
        }
        #stepWallet .wallet-row .form-input:focus {
            border-color: var(--color-primary);
            background: #fff;
        }

        .dice-grid {
            display: grid; grid-template-columns: repeat(3, auto);
            row-gap: 15px; column-gap: 10px;
            justify-items: center; margin: 15px 0;
            justify-content: space-evenly;
        }
        .dice-grid input[type="radio"] { display: none; }
        .dice-grid input[type="radio"]:checked + .diceBox {
            transform: scale(1.12); filter: drop-shadow(0 0 10px #fff); border-color: #00ffaa;
        }
        .diceBox {
            width: 4rem; aspect-ratio: 1;
            background: rgba(255,255,255,.9); border-radius: 15px;
            box-shadow: 0 0 30px rgba(165,216,255,.3);
            display: flex; justify-content: center; align-items: center;
            color: var(--arctic-teal, #1a5276);
            border: 3px solid var(--ice-blue, #a5d8ff);
            position: relative; cursor: pointer; transition: all .2s ease;
        }
        .diceBox:hover { box-shadow: 0 0 10px rgb(147 212 255); }
        .diceBox .dot {
            position: absolute; width: 8px; height: 8px;
            background: var(--arctic-teal, #1a5276); border-radius: 50%;
        }
        .dice-1 .dot { top:50%; left:50%; transform:translate(-50%,-50%); }
        .dice-2 .dot:nth-child(1) { top:25%; left:25%; }
        .dice-2 .dot:nth-child(2) { bottom:25%; right:25%; }
        .dice-3 .dot:nth-child(1) { top:25%; left:25%; }
        .dice-3 .dot:nth-child(2) { top:50%; left:50%; transform:translate(-50%,-50%); }
        .dice-3 .dot:nth-child(3) { bottom:25%; right:25%; }
        .dice-4 .dot:nth-child(1) { top:25%; left:25%; }
        .dice-4 .dot:nth-child(2) { top:25%; right:25%; }
        .dice-4 .dot:nth-child(3) { bottom:25%; left:25%; }
        .dice-4 .dot:nth-child(4) { bottom:25%; right:25%; }
        .dice-5 .dot:nth-child(1) { top:25%; left:25%; }
        .dice-5 .dot:nth-child(2) { top:25%; right:25%; }
        .dice-5 .dot:nth-child(3) { top:50%; left:50%; transform:translate(-50%,-50%); }
        .dice-5 .dot:nth-child(4) { bottom:25%; left:25%; }
        .dice-5 .dot:nth-child(5) { bottom:25%; right:25%; }
        .dice-6 .dot:nth-child(1) { top:25%; left:25%; }
        .dice-6 .dot:nth-child(2) { top:25%; right:25%; }
        .dice-6 .dot:nth-child(3) { top:50%; left:25%; transform:translateY(-50%); }
        .dice-6 .dot:nth-child(4) { top:50%; right:25%; transform:translateY(-50%); }
        .dice-6 .dot:nth-child(5) { bottom:25%; left:25%; }
        .dice-6 .dot:nth-child(6) { bottom:25%; right:25%; }

        .dice-scene { width: 100px; height: 100px; margin: 20px auto; perspective: 500px; display: none; }
        .dice-roll-container {
            width: 100%; height: 100%; position: relative;
            transform-style: preserve-3d;
            transition: transform 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .dice-3d-face {
            width: 100%; height: 100%; position: absolute;
            background: rgba(255,255,255,1); border-radius: 15px;
            border: 3px solid var(--ice-blue, #a5d8ff);
            display: flex; justify-content: center; align-items: center;
            backface-visibility: hidden;
        }
        .dice-3d-face .dot { position: absolute; width: 14px; height: 14px; background: var(--arctic-teal, #1a5276); border-radius: 50%; }
        .face-front  { transform: translateZ(50px); }
        .face-back   { transform: rotateY(180deg) translateZ(50px); }
        .face-right  { transform: rotateY(90deg) translateZ(50px); }
        .face-left   { transform: rotateY(-90deg) translateZ(50px); }
        .face-top    { transform: rotateX(90deg) translateZ(50px); }
        .face-bottom { transform: rotateX(-90deg) translateZ(50px); }
        #diceResultMsg { text-align: center; font-size: .82rem; color: #ccc; margin-top: 8px; min-height: 20px; font-family: 'Poppins', sans-serif; }

        .coin-wrapper { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 10px auto; }
        .coin-hint { font-size: .72rem; color: #888; font-family: 'Poppins',sans-serif; letter-spacing: .3px; }
        .coin-side-btns { display: flex; gap: 12px; }
        .coin-side-btn {
            flex: 1; padding: 10px 18px;
            background: rgba(255,255,255,.07);
            border: 2px solid rgba(255,255,255,.15);
            border-radius: 30px; cursor: pointer;
            font-size: .78rem; font-weight: 700; color: #aaa;
            font-family: 'Poppins',sans-serif; letter-spacing: .5px; text-transform: uppercase;
            transition: all .2s ease; -webkit-tap-highlight-color: transparent;
        }
        .coin-side-btn.selected {
            border-color: #00ffaa; background: rgba(0,255,170,.12);
            color: #00ffaa; box-shadow: 0 0 14px rgba(0,255,170,.25);
        }
        .coin-side-btn:active { transform: scale(.95); }
        .coin-flip-stage { perspective: 500px; width: 130px; height: 130px; margin: 4px auto 0; }
        .coin-3d {
            width: 100%; height: 100%; position: relative;
            transform-style: preserve-3d;
            animation: coinIdle 3s ease-in-out infinite;
        }
        .coin-3d.flipping { animation: coinSpin 2.2s cubic-bezier(.4,0,.2,1) forwards; }
        .coin-3d.landed-heads { animation: none; transform: rotateY(0deg); }
        .coin-3d.landed-tails { animation: none; transform: rotateY(180deg); }
        @keyframes coinIdle {
            0%,100% { transform: rotateY(0deg) rotateX(8deg); }
            50%      { transform: rotateY(15deg) rotateX(-5deg); }
        }
        @keyframes coinSpin {
            0%   { transform: rotateY(0deg) rotateX(0deg); }
            20%  { transform: rotateY(720deg) rotateX(30deg); }
            60%  { transform: rotateY(1440deg) rotateX(-15deg); }
            80%  { transform: rotateY(1800deg) rotateX(5deg); }
            100% { transform: rotateY(var(--coin-final-y, 1800deg)) rotateX(0deg); }
        }
        .coin-side {
            position: absolute; width: 100%; height: 100%;
            border-radius: 50%; backface-visibility: hidden;
            display: flex; align-items: center; justify-content: center;
            font-size: 3rem; box-shadow: 0 8px 30px rgba(0,0,0,.4);
        }
        .coin-front { background: radial-gradient(circle at 35% 35%, #ffe066, #ffd700 50%, #c8860a); border: 4px solid #e6a800; }
        .coin-back  { background: radial-gradient(circle at 35% 35%, #e0e0e0, #bdbdbd 50%, #757575); border: 4px solid #9e9e9e; transform: rotateY(180deg); }
        #coinResultText { text-align: center; font-size: .82rem; color: #ccc; margin-top: 10px; font-family: 'Poppins', sans-serif; min-height: 20px; }

        .scratch-card-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 10px auto; }
        .scratch-card-frame {
            position: relative; width: 240px; height: 240px;
            border-radius: 20px; overflow: hidden; touch-action: none;
            box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 3px rgba(165,216,255,.2);
        }
        .scratch-under {
            position: absolute; inset: 0;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: 8px;
            background: linear-gradient(135deg, #0f0c29, #1a1a3e, #0d2137); z-index: 1;
        }
        .scratch-under .s-icon  { font-size: 3rem; }
        .scratch-under .s-value { font-size: 1.6rem; font-weight: 800; font-family: 'Oswald', sans-serif; color: var(--ice-blue, #a5d8ff); letter-spacing: 1px; }
        .scratch-under .s-label { font-size: .65rem; color: #666; font-family: 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: 2px; }
        .scratch-canvas-main { position: absolute; inset: 0; z-index: 2; cursor: grab; border-radius: 20px; }
        .scratch-canvas-main:active { cursor: grabbing; }
        #scratchResultMsg { text-align: center; font-size: .82rem; color: #aaa; min-height: 20px; font-family: 'Poppins', sans-serif; }
        .scratch-progress-bar { width: 200px; height: 4px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
        .scratch-progress-fill { height: 100%; background: linear-gradient(90deg, #11c45a, #00ffaa); border-radius: 4px; width: 0%; transition: width .1s ease; }

        .verify-box {
            background: rgba(165,216,255,.08); border: 1px solid rgba(165,216,255,.25);
            border-radius: 14px; padding: 14px; text-align: center; margin: 14px 0;
        }
        .verify-box p { font-size: .78rem; color: var(--ice-blue, #90caf9); margin-bottom: 8px; }
        .verify-btn {
            display: inline-flex; align-items: center; gap: 8px;
            background: linear-gradient(135deg, #3390ec, #1565c0);
            color: #fff; font-size: .82rem; font-weight: 600;
            padding: 10px 22px; border-radius: 25px;
            text-decoration: none; border: none; cursor: pointer;
            font-family: 'Poppins', sans-serif; transition: transform .15s;
        }
        .verify-btn:active { transform: scale(.95); }

        .spinner {
            display: inline-block; width: 16px; height: 16px;
            border: 2px solid rgba(255,255,255,.3);
            border-top-color: #fff; border-radius: 50%;
            animation: spin .7s linear infinite; vertical-align: middle;
        }
        .mini-spinner {
            display: inline-block; width: 12px; height: 12px;
            border: 2px solid rgba(255,255,255,.3);
            border-top-color: #fff; border-radius: 50%;
            animation: spin .7s linear infinite; vertical-align: middle;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        @keyframes ytBtnPulse {
            0%,100% { transform: scale(1); box-shadow: 0 4px 20px rgba(17,196,90,.5); }
            50%     { transform: scale(1.03); box-shadow: 0 6px 28px rgba(17,196,90,.8); }
        }

        #errordetail { margin-top: 10px; font-weight: bold; color: rgb(255 141 141); text-align: center; }

        .result-msg-box {
            background: rgba(165,216,255,.08);
            border: 1px solid rgba(165,216,255,.2);
            border-radius: 14px; padding: 18px; text-align: center;
            font-family: 'Poppins', sans-serif; margin-top: 10px;
        }
        .result-msg-box.win  { border-color: rgba(22,163,74,.65); background: rgba(22,163,74,.22); }
        .result-msg-box.lose { border-color: rgba(231,76,60,.4); background: rgba(231,76,60,.08); }
        .result-msg-box .big-icon { font-size: 3rem; display: block; margin-bottom: 8px; color: #2ecc71; }
        .result-msg-box.win .big-icon { color: #15803d; }
        .result-msg-box.lose .big-icon { color: #e74c3c; }
        .result-msg-box h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
        .result-msg-box.win  h3 { color: #15803d; font-weight: 800; }
        .result-msg-box.lose h3 { color: #e74c3c; }
        .result-msg-box p { font-size: .75rem; color: #aaa; margin: 0; }
        .result-msg-box.win  p { color: #166534; font-weight: 600; }
        .result-msg-box .redirect-timer {
            margin-top: 12px; font-size: .7rem; color: #888;
        }
        .result-msg-box .redirect-timer i { margin-right: 4px; }

        .lifafa-over-box {
            text-align: center; padding: 30px 20px;
            background: rgba(231,76,60,.08);
            border: 1px solid rgba(231,76,60,.3);
            border-radius: 16px;
        }
        .lifafa-over-box .over-icon {
            font-size: 3.5rem; color: #e74c3c; margin-bottom: 12px;
        }
        .lifafa-over-box h3 {
            font-family: 'Poppins', sans-serif;
            font-size: 1.1rem; font-weight: 700;
            color: #e74c3c; margin: 0 0 8px;
        }
        .lifafa-over-box p {
            font-size: .8rem; color: #888; margin: 0;
        }
        .lifafa-over-box .redirect-info {
            margin-top: 16px; font-size: .72rem; color: #666;
        }