:root {
    /* Crypto Premium Theme - Blue/Purple Futuristic */
    --gky-gold: #FFD700;
    --gky-dark-gold: #DAA520;
    --gky-orange: #FF8C00;
    --gky-blue: #0a0a1a;
    --gky-light-blue: #1e40af;
    --gky-purple: #8b5cf6;
    --gky-cyan: #06b6d4;
    --gky-gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    --gky-gradient-blue: linear-gradient(135deg, #0a1628 0%, #1e3a8a 50%, #1e40af 100%);
    --gky-gradient-premium: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gky-gradient-cyber: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --gky-neon-glow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.2);
    
    /* Theme Colors - Crypto Premium */
    --tg-theme-bg-color: #0a0a1a;
    --tg-theme-text-color: #f8fafc;
    --tg-theme-button-color: #8b5cf6;
    --tg-theme-button-text-color: #ffffff;
    --tg-theme-secondary-bg-color: rgba(30, 30, 60, 0.8);
    --tg-theme-accent: #06b6d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

.app-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 25px 0;
    background: var(--gky-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    text-align: left;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* App Header */
.app-header {
    text-align: left !important;
}

/* User Info */
.user-info {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 20px auto;
    padding: 15px;
    background-color: var(--tg-theme-secondary-bg-color, #f7f7f7);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--tg-theme-button-color);
}

/* Wheel Container - Crypto Premium Design */
.wheel-container {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 25px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Outer Ring Glow Effect */
.wheel-container::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #8b5cf6, #06b6d4, #10b981, #f59e0b, #ef4444, #ec4899, #8b5cf6
    );
    animation: wheel-ring-rotate 8s linear infinite;
    opacity: 0.7;
    filter: blur(8px);
    z-index: -1;
}

/* Inner dark ring */
.wheel-container::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, #0a0a1a 60%, transparent 70%);
    z-index: 0;
}

@keyframes wheel-ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    background-color: #0a0a1a;
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(139, 92, 246, 0.2),
        0 0 100px rgba(139, 92, 246, 0.1),
        inset 0 0 50px rgba(139, 92, 246, 0.15);
    border: 4px solid transparent;
    background-image: linear-gradient(#0a0a1a, #0a0a1a), 
                      linear-gradient(135deg, #8b5cf6, #06b6d4, #8b5cf6);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    z-index: 1;
    transition: transform 0.1s ease-out;
}

#wheelCanvas:hover {
    transform: scale(1.02);
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    z-index: 20;
    color: #ef4444;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8))
            drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
    animation: pointer-pulse 1.5s ease-in-out infinite;
}

@keyframes pointer-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

/* Main Buttons Container */
.main-buttons {
    margin: 20px 0;
    width: 100%;
    max-width: 460px;
}

/* Buttons - Crypto Premium Design */
.spin-btn,
.buy-btn,
.daily-btn,
.share-btn,
.vip-btn {
    width: 100%;
    padding: 16px 24px;
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Button shine effect */
.spin-btn::before,
.buy-btn::before,
.daily-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.spin-btn:hover::before,
.buy-btn:hover::before,
.daily-btn:hover::before {
    left: 100%;
}

.spin-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    color: white;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    filter: brightness(1.1);
}

.spin-btn:disabled {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.buy-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.buy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

.daily-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ea580c 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.daily-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.daily-btn:disabled {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.vip-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    color: white;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.vip-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffa500, #ffd700);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vip-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.vip-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.vip-btn:disabled {
    background: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.share-btn {
    background: var(--gky-gradient-blue);
    color: var(--gky-gold);
    font-weight: 700;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.5);
}

/* Result Display */
.result {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.result-text h3 {
    margin-bottom: 10px;
    color: #27ae60;
}

.hidden {
    display: none;
}

/* Buy Spins Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    color: var(--gky-gold);
    margin-bottom: 20px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    /* Increase tap area for mobile */
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-modal:hover {
    color: var(--gky-gold);
}

/* Wallet Selector */
.wallet-selector {
    padding: 20px 0;
}

.wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.wallet-option {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 90px;
    min-width: 44px;
}

.wallet-option:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gky-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.wallet-option .wallet-icon {
    font-size: 2rem;
}

.wallet-option .wallet-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gky-gold);
    text-align: center;
}

.wallet-option .wallet-type {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Wallet Info Bar */
.wallet-info-bar {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.wallet-connected {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.pol-balance {
    color: #60a5fa;
    font-weight: 600;
    margin: 10px 0;
}

.disconnect-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.disconnect-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

.package-selection {
    margin-top: 20px;
}

.wallet-connected {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 8px;
}

.pol-balance {
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 20px;
}

.package-selection h3 {
    color: var(--gky-gold);
    margin: 20px 0 15px;
}

.package-grid {
    display: grid;
    gap: 15px;
}

.package-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--gky-gold);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.package-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.package-btn-best {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.8); }
}

.package-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

.best-value {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.package-spins {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gky-gold);
}

.package-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #10b981;
}

/* Tasks Section */
.tasks-section {
    margin-top: 30px;
    text-align: left;
}

.tasks-section h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--tg-theme-text-color);
}

.tasks-subtitle {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.task-list {
    list-style: none;
    padding: 0;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--tg-theme-secondary-bg-color);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.task-info {
    flex: 1;
}

.task-desc {
    font-weight: 500;
    margin-bottom: 5px;
}

.task-reward {
    font-size: 0.85rem;
    color: #27ae60;
}

.task-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.task-link:hover {
    text-decoration: underline;
}

.task-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 233, 123, 0.4);
}

.task-btn:disabled {
    background: #4b5563;
    color: #cbd5e1;
    cursor: not-allowed;
}

.task-completed {
    color: #27ae60;
    font-weight: bold;
}

/* Quick Access Grid */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 25px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gky-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
}

.quick-btn-icon {
    font-size: 1.8rem;
}

.quick-btn-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gky-gold);
    text-align: center;
}

/* Wallet Selection Modal */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.wallet-modal-content {
    background: linear-gradient(135deg, #0a1628 0%, #1e293b 100%);
    border: 2px solid var(--gky-gold);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.wallet-modal-content h3 {
    font-size: 1.5rem;
    color: var(--gky-gold);
    text-align: center;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #cbd5e1;
    text-align: center;
    margin-bottom: 25px;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.wallet-option-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.wallet-option-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gky-gold);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.wallet-icon {
    font-size: 2rem;
}

.wallet-name {
    font-weight: 600;
    color: #f8fafc;
}

.close-modal-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

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

/* Wallet & Token Section (Combined) */
.wallet-token-section {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    border-radius: 16px;
    border: 2px solid var(--gky-gold);
    text-align: left;
}

.wallet-token-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gky-gold);
    text-align: center;
}

.wallet-connect-box,
.token-contract-box {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 12px;
    text-align: center;
}

/* Token Section (Legacy - now part of wallet-token-section) */
.token-section {
    margin-top: 30px;
    text-align: left;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    border-radius: 16px;
    border: 2px solid var(--gky-gold);
}

.token-section h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #000000;
}

.token-subtitle {
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 15px;
}

.contract-address-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.contract-address-box input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #000000;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    text-overflow: ellipsis;
}

.copy-btn {
    padding: 12px 20px;
    background: var(--gky-gradient-gold);
    color: var(--gky-blue);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.copy-btn:active {
    transform: scale(0.95);
}

.help-text {
    font-size: 0.85rem;
    color: #000000;
    line-height: 1.6;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--gky-gold);
}

/* Web3 Section */
.web3-section {
    margin-top: 30px;
    text-align: left;
    padding: 20px;
    background: var(--gky-gradient-blue);
    border-radius: 16px;
    border: 2px solid var(--gky-gold);
}

.web3-section h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--gky-gold);
}

.web3-subtitle {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.wallet-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: var(--gky-gradient-gold);
    color: var(--gky-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5);
}

.wallet-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.wallet-info p {
    margin: 8px 0;
    color: #f8fafc;
    font-size: 0.95rem;
}

.wallet-info span {
    color: var(--gky-gold);
    font-weight: 600;
}

/* Rules Section */
.rules-section {
    margin-top: 30px;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 2px solid var(--gky-gold);
}

.rules-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gky-gold);
    text-align: center;
}

.rules-content h3 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--gky-gold);
}

.rules-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.rules-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.rules-content ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.rules-content ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--gky-gold);
    font-weight: bold;
}

.rules-content .disclaimer {
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1a1a1a;
    line-height: 1.6;
}

.rules-content .nft-info {
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--gky-gold);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-top: 10px;
}

.rules-content .save-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 5px;
}

/* Roadmap Section */
.roadmap-section {
    margin-top: 30px;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 2px solid var(--gky-gold);
}

.roadmap-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gky-gold);
    text-align: center;
}

.roadmap-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.roadmap-phase {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-left: 4px solid #cbd5e1;
    transition: transform 0.3s;
}

.roadmap-phase:hover {
    transform: translateX(5px);
}

.roadmap-phase.completed {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.roadmap-phase.active {
    border-left-color: var(--gky-gold);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.roadmap-phase.future {
    border-left-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.phase-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.roadmap-phase.completed .phase-badge {
    background: #10b981;
    color: white;
}

.roadmap-phase.active .phase-badge {
    background: var(--gky-gradient-gold);
    color: var(--gky-blue);
}

.roadmap-phase.future .phase-badge {
    background: #6366f1;
    color: white;
}

.roadmap-phase h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.roadmap-phase ul {
    list-style: none;
    padding-left: 0;
}

.roadmap-phase ul li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.roadmap-phase ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.roadmap-phase.completed ul li:before {
    content: "✓";
    color: #10b981;
}

.roadmap-phase.active ul li:before {
    content: "●";
    color: var(--gky-gold);
}

.roadmap-phase.future ul li:before {
    content: "○";
    color: #6366f1;
}

/* Referral Section */
.referral-section {
    margin-top: 30px;
    text-align: left;
}

.referral-section h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--tg-theme-text-color);
}

.referral-info {
    background-color: var(--tg-theme-secondary-bg-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

/* Responsive */
@media (max-width: 400px) {
    .app-wrapper {
        padding: 15px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .wheel-container {
        width: 280px;
        height: 280px;
    }
    
    .wheel-container::before {
        width: 300px;
        height: 300px;
    }
    
    .wheel-container::after {
        width: 290px;
        height: 290px;
    }
    
    .spin-btn,
    .buy-btn,
    .daily-btn,
    .share-btn,
    .vip-btn {
        font-size: 1rem;
        padding: 12px;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 10px;
    }
    
    .quick-btn {
        padding: 12px 5px;
    }
    
    .quick-btn-icon {
        font-size: 1.5rem;
    }
    
    .quick-btn-text {
        font-size: 0.75rem;
    }
    
    .contract-address-box {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
}

/* Leaderboard Section */
.leaderboard-section {
    margin-top: 30px;
    text-align: left;
}

.leaderboard-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.lb-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #FFFFFF;
    cursor: pointer;
    transition: 0.3s;
}

.lb-tab.active {
    background: var(--gky-gradient-gold);
    color: #FFFFFF;
    border-color: var(--gky-gold);
}

.leaderboard-content {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(20, 30, 50, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(30, 40, 60, 0.8);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateX(5px);
}

.lb-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gky-gold);
    min-width: 40px;
    text-align: center;
}

.lb-info {
    flex: 1;
}

.lb-name {
    font-weight: 600;
    color: #FFFFFF;
}

.lb-stat {
    font-size: 0.85rem;
    color: #FFFFFF;
}

.lb-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFFFFF;
}

/* Support Chat Section */
.support-section {
    margin-top: 30px;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.support-section h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--tg-theme-text-color);
}

.chat-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.chat-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.5), rgba(27, 38, 59, 0.5));
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--gky-gold);
    border-radius: 4px;
}

.chat-welcome {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.ai-avatar {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    border-radius: 50%;
    flex-shrink: 0;
}

.welcome-text {
    flex: 1;
}

.welcome-text strong {
    display: block;
    color: var(--gky-gold);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.welcome-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.chat-message {
    display: flex;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

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

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-avatar.user-avatar {
    background: linear-gradient(135deg, var(--gky-gold), #f59e0b);
}

.message-avatar.ai-avatar-small {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    font-size: 1.2rem;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
}

.chat-message.user .message-bubble {
    background: linear-gradient(135deg, var(--gky-gold), #f59e0b);
    color: var(--gky-blue);
    border-bottom-right-radius: 4px;
}

.chat-message.ai .message-bubble {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-bottom-left-radius: 4px;
}

.message-text {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gky-gold);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.typing-indicator span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.chat-input-form {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    pointer-events: auto;
    -webkit-user-select: text;
    user-select: text;
}

.chat-input:focus {
    outline: none;
    border-color: var(--gky-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.chat-send-btn {
    width: 50px;
    height: 50px;
    background: var(--gky-gradient-gold);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.send-icon {
    font-size: 1.3rem;
}

.conversation-msg.pending .conv-status {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.conversation-msg.replied .conv-status {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.conv-user-msg {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.conv-user-msg strong {
    color: var(--gky-gold);
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.conv-user-msg p {
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0;
}

.conv-admin-reply {
    background: rgba(16, 185, 129, 0.15);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.conv-admin-reply strong {
    color: #10b981;
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.conv-admin-reply p {
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.conv-admin-reply small {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-item,
.result,
.leaderboard-item {
    animation: fadeIn 0.3s ease;
}

/* Prize pulse animation */
@keyframes prize-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Wheel glow animation */
@keyframes wheel-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8));
    }
}

.wheel-spinning {
    animation: wheel-glow 0.5s ease-in-out infinite;
}

/* Sparkle animation */
@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Win flash animation */
@keyframes win-flash {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(255, 215, 0, 0.3);
    }
}

/* Floating animation for particles */
@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Music button pulse */
@keyframes music-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.music-btn.playing {
    animation: music-pulse 1s ease-in-out infinite;
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

/* Music toggle button */
.music-btn {
    position: absolute;
    top: 60px;
    right: 10px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.music-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

.music-btn:active {
    transform: scale(0.95);
}

/* Buy Spins Inline Section (Non-Modal) */
.buy-spins-section {
    margin: 20px auto;
    max-width: 500px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid var(--gky-gold);
}

.buy-spins-section.hidden {
    display: none;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h3 {
    color: var(--gky-gold);
    font-size: 1.5rem;
    margin: 0;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    padding: 8px 12px;
    border-radius: 25px;
    border: 2px solid var(--gky-gold);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.lang-btn {
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lang-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    color: var(--gky-gold);
}

.lang-btn.active {
    background: var(--gky-gold);
    color: #0f172a;
}

@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        right: 10px;
        padding: 3px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Pulse animation for YouTube video task button */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(76, 175, 80, 0);
    }
}

/* 🚫 FORCE WITHDRAWAL BUTTON DISABLED STATE - OVERRIDES ALL JS */
#withdrawBtn:disabled {
    background: #6b7280 !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

