@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #F1F5F9;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.page {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.page.active {
    display: block;
}

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

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #0F172A;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.glow-green {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.dropdown-options {
    display: none;
}

.custom-dropdown.open .dropdown-options {
    display: block;
    animation: slideDown 0.2s ease-out;
}

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

.blocker-overlay, .page-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #1E293B, #0F172A);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

#telegram-blocker {
    display: none;
}

.content {
    max-width: 360px;
    width: 100%;
}

.content > i {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 16px currentColor);
}

.content h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #F8FAFC;
    margin-bottom: 0.75rem;
}

.content p {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.loading-spinner { 
    width: 44px; 
    height: 44px; 
    border: 3.5px solid rgba(79, 70, 229, 0.15);
    border-top-color: #4F46E5;
    border-radius: 50%; 
    animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #F8FAFC;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.timer-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #4F46E5;
    margin: 2rem 0;
    border: 4px solid #4F46E5;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.25);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

button.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

button.is-loading .btn-spinner {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

button.is-loading > span,
button.is-loading > i {
    visibility: hidden;
}

.claimed { 
    background: rgba(16, 185, 129, 0.15) !important; 
    border-color: rgba(16, 185, 129, 0.3) !important; 
    color: #10B981 !important;
    cursor: not-allowed; 
}

.glow-indigo {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.15);
}

.glow-gold {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
}

.podium-1 {
    height: 110px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.podium-2 {
    height: 90px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.2) 0%, rgba(148, 163, 184, 0.05) 100%);
}

.podium-3 {
    height: 80px;
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.2) 0%, rgba(180, 83, 9, 0.05) 100%);
}