* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: #f4f6f9; color: #333; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }
.app-container { width: 100%; max-width: 480px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 30px 15px; }
.promo-banner { width: 100%; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.08); display: block; }
.text-center { text-align: center; }
.main-title { font-size: 1.6rem; font-weight: 800; line-height: 1.3; }
.gold-text { color: #f39c12; font-size: 2.2rem; }
.rgb-text { background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rgbMove 3s linear infinite; background-size: 200% auto; display: inline-block; }

@keyframes rgbMove { to { background-position: 200% center; } }
.shake { display: inline-block; animation: shakeAnim 0.5s infinite; }
@keyframes shakeAnim { 0% { transform: translate(1px, 1px) rotate(0deg); } 50% { transform: translate(-1px, 2px) rotate(-1deg); } 100% { transform: translate(1px, -1px) rotate(0deg); } }

.sub-text { font-size: 0.95rem; color: #666; margin-top: 10px; line-height: 1.5; }
.card { background: #fff; border-radius: 24px; padding: 35px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); text-align: center; }
.card-title { font-size: 1.3rem; color: #5a4bda; margin-bottom: 25px; font-weight: 700; }

.input-box { display: flex; align-items: center; background: #f8f9fa; border-radius: 12px; padding: 14px 15px; margin-bottom: 25px; width: 100%; border: 1px solid #eaeaea; transition: 0.3s; }
.input-box:focus-within { border-color: #5a4bda; box-shadow: 0 0 0 3px rgba(90, 75, 218, 0.1); }
.flag-area { display: flex; align-items: center; gap: 8px; font-weight: 600; flex-shrink: 0; }
.flag-area img { width: 26px; border-radius: 3px; }
.divider { width: 1px; height: 25px; background: #ddd; margin: 0 12px; flex-shrink: 0; }

input[type="tel"] { border: none; background: transparent; font-size: 1.1rem; font-weight: 600; width: 100%; flex: 1; outline: none; color: #333; }

/* --------------------------------------------------- */
/* OTP QUTULARI - KƏSKİN, QALIN VƏ TƏMİZ GÖRÜNÜŞ */
/* --------------------------------------------------- */
.otp-wrapper { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 30px; 
    gap: 8px; 
}

.otp-digit {
    width: 48px;
    height: 58px;
    border: 2px solid #888888; /* ÇOX NET TÜND BOZ ÇƏRÇİVƏ */
    border-radius: 8px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    background: #eeeeee; /* AĞIN ÜZƏRİNDƏ SEÇİLƏN BOZ ARXA PLAN */
    color: #000; /* Qapqara yazı */
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); /* Qutu hissi verən iç kölgə */
}

.otp-digit:focus {
    border: 2px solid #5a4bda; /* Seçiləndə net bənövşəyi olur */
    background: #ffffff; /* Seçiləndə ağarır */
    outline: none;
}
/* --------------------------------------------------- */

.otp-wrapper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    margin-top: 6px;
}

.otp-digit {
    width: 100%;
    flex: initial;
    border: 2px solid #9da3c7;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f3ff 100%);
    color: #17172a;
    caret-color: #5a4bda;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 4px 10px rgba(36, 39, 66, 0.12);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.otp-digit:focus {
    border-color: #5a4bda;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 0 0 4px rgba(90, 75, 218, 0.18), 0 8px 16px rgba(90, 75, 218, 0.18);
    transform: translateY(-1px);
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #5a4bda;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 15px auto 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.btn { background: #5a4bda; color: #fff; border: none; width: 100%; padding: 16px; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: 0.2s; box-shadow: 0 6px 20px rgba(90, 75, 218, 0.25); margin-bottom: 15px; }
.btn:active { transform: scale(0.97); }

.secure-text { font-size: 12px; color: #888; margin-top: 20px; display: block; line-height: 1.4; }

.toast {
    visibility: hidden; min-width: 280px; background-color: #eb4d4b; color: #fff; text-align: center;
    border-radius: 12px; padding: 16px; position: fixed; z-index: 1000; left: 50%; bottom: 30px;
    transform: translateX(-50%); font-size: 14px; font-weight: 600; opacity: 0; transition: 0.4s;
    box-shadow: 0 10px 30px rgba(235, 77, 75, 0.3);
}
.toast.show { visibility: visible; opacity: 1; bottom: 50px; }

.hidden { display: none; }
.footer { width: 100%; text-align: center; padding: 20px 15px; margin-top: auto; }
.footer-links { margin-bottom: 10px; display: flex; justify-content: center; gap: 15px; }
.footer-links a { color: #888; text-decoration: none; font-size: 12px; }
.copyright { font-size: 11px; color: #aaa; }

@media (max-width: 380px) {
    .otp-wrapper { gap: 7px; }
    .otp-digit { height: 50px; font-size: 1.3rem; }
}
