* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 20px;
}

.page {
    display: none !important;
    width: 100%;
    max-width: 620px;
}

.glass-card {
    width: 100%;
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.inner-card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.btn {
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #0284c7 0%, #6366f1 100%);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    margin-top: 20px;
}

.choice-btn {
    margin-top: 0;
    padding: 12px 28px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.6);
}

.btn:active {
    transform: scale(0.96);
}

.choice-box {
    display: none;
    opacity: 0;
    width: 100%;
    margin-top: 22px;
    padding: 30px 25px;
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    transition: opacity 0.6s ease;
}

.buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 22px;
}

.gift-box-btn {
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(14, 165, 233, 0.5);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #38bdf8;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-box-btn:hover {
    background: rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.nav-btn {
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav-btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.modal-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.45rem;
    color: #38bdf8;
    font-weight: 700;
}

.close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.code-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-title {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.code-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f43f5e;
    letter-spacing: 1px;
}

.copy-btn {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #0284c7;
    color: #ffffff;
}

.score-item { 
    margin-bottom: 18px; 
    text-align: left; 
}

.score-info { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.9rem; 
    margin-bottom: 8px; 
}

.bar { 
    width: 100%; 
    height: 10px; 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
    overflow: hidden; 
}

.bar-overflow {
    overflow: visible !important;
    position: relative;
}

.fill { 
    height: 100%; 
    background: linear-gradient(90deg, #38bdf8, #818cf8); 
    border-radius: 10px; 
}

.break-fill { 
    background: linear-gradient(90deg, #6366f1, #38bdf8, #f43f5e); 
    width: 125% !important; 
    border-radius: 10px;
    position: relative;
}

.break-fill::after {
    display: none !important;
}

.ultra-text { 
    color: #f43f5e; 
    font-weight: bold; 
}

.fact-card { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 14px 18px; 
    border-radius: 14px; 
    margin-bottom: 12px; 
    text-align: left; 
}

.fact-card small { 
    display: block; 
    font-size: 0.8rem; 
    color: #94a3b8; 
}

.fact-card strong { 
    font-size: 0.95rem; 
    color: #f1f5f9; 
}

.flip-card { 
    background-color: transparent; 
    height: 80px; 
    perspective: 1000px; 
    cursor: pointer; 
    margin-bottom: 12px; 
}

.flip-card-inner { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    transition: transform 0.6s; 
    transform-style: preserve-3d; 
}

.flip-card.flipped .flip-card-inner { 
    transform: rotateY(180deg); 
}

.flip-card-front, .flip-card-back { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    backface-visibility: hidden; 
    margin-bottom: 0; 
}

.flip-card-back { 
    transform: rotateY(180deg); 
    background: rgba(99, 102, 241, 0.25); 
    border-color: rgba(99, 102, 241, 0.5); 
}