/* ============================================================
   Habitown — Kullanıcı Uygulaması CSS
   Tema: Dark Arcane · Glassmorphism · Neon Glow
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Base surfaces */
    --ht-app-bg:       #070B14;
    --ht-surface-1:    rgba(255,255,255,0.04);
    --ht-surface-2:    rgba(255,255,255,0.07);
    --ht-surface-3:    rgba(255,255,255,0.11);
    --ht-border:       rgba(255,255,255,0.08);
    --ht-border-glow:  rgba(168,85,247,0.4);

    /* Brand palette */
    --ht-violet:       #A855F7;
    --ht-violet-dim:   rgba(168,85,247,0.15);
    --ht-violet-glow:  0 0 20px rgba(168,85,247,0.5), 0 0 60px rgba(168,85,247,0.2);
    --ht-gold:         #EAB308;
    --ht-gold-dim:     rgba(234,179,8,0.15);
    --ht-gold-glow:    0 0 20px rgba(234,179,8,0.5), 0 0 60px rgba(234,179,8,0.2);
    --ht-cyan:         #22D3EE;
    --ht-cyan-dim:     rgba(34,211,238,0.12);
    --ht-emerald:      #10B981;
    --ht-red:          #EF4444;
    --ht-orange:       #F97316;

    /* Text */
    --ht-text-primary:   #F1F5F9;
    --ht-text-secondary: #94A3B8;
    --ht-text-muted:     #475569;

    /* Typography */
    --ht-font-display: 'Syne', system-ui, sans-serif;
    --ht-font-body:    'DM Sans', system-ui, sans-serif;

    /* Spacing / radius */
    --ht-radius-sm:   0.5rem;
    --ht-radius-md:   1rem;
    --ht-radius-lg:   1.5rem;
    --ht-radius-xl:   2rem;

    /* Z layers */
    --ht-z-bottom-nav: 50;
    --ht-z-modal:      100;
    --ht-z-toast:      200;

    /* Bottom nav height (account for mobile safe area) */
    --ht-bottom-nav-h: 4.5rem;
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-family: var(--ht-font-body);
    background-color: var(--ht-app-bg);
    color: var(--ht-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    min-height: 100svh;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; }

/* ── Animated Background ──────────────────────────────────── */
.app-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.app-bg::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
    top: -200px; right: -100px;
    animation: bgFloat1 12s ease-in-out infinite alternate;
}

.app-bg::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 70%);
    bottom: 100px; left: -150px;
    animation: bgFloat2 15s ease-in-out infinite alternate;
}

.app-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
}

@keyframes bgFloat1 {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(40px, 60px) scale(1.15); }
}
@keyframes bgFloat2 {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(-30px, -50px) scale(1.2); }
}

/* ── App Shell ─────────────────────────────────────────────── */
.app-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Top Bar ───────────────────────────────────────────────── */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: rgba(7,11,20,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ht-border);
}

.app-logo {
    font-family: var(--ht-font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #A855F7 0%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Page Content ──────────────────────────────────────────── */
.app-content {
    flex: 1;
    padding: 1.25rem 1rem calc(var(--ht-bottom-nav-h) + 1.5rem);
    overflow-y: auto;
}

/* ── Bottom Nav ────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--ht-bottom-nav-h);
    z-index: var(--ht-z-bottom-nav);
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(7,11,20,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--ht-border);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 1rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ht-text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.bottom-nav-item svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--ht-violet);
}

.bottom-nav-item.active svg {
    filter: drop-shadow(0 0 6px rgba(168,85,247,0.7));
    transform: scale(1.1);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, #A855F7, #22D3EE);
    box-shadow: 0 0 8px rgba(168,85,247,0.6);
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

/* ── Glass Cards ───────────────────────────────────────────── */
.glass-card {
    background: var(--ht-surface-1);
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card-hover:active {
    border-color: var(--ht-border-glow);
    box-shadow: 0 0 0 1px rgba(168,85,247,0.2), 0 8px 32px rgba(0,0,0,0.4);
}

.glass-card--glow {
    border-color: rgba(168,85,247,0.3);
    box-shadow: 0 0 0 1px rgba(168,85,247,0.1), 0 8px 32px rgba(168,85,247,0.1);
}

.glass-card--gold {
    border-color: rgba(234,179,8,0.3);
    box-shadow: 0 0 0 1px rgba(234,179,8,0.1), 0 8px 32px rgba(234,179,8,0.08);
}

/* ── Gradient Border ───────────────────────────────────────── */
.gradient-border {
    position: relative;
    border-radius: var(--ht-radius-md);
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--ht-radius-md) + 1px);
    background: linear-gradient(135deg, #A855F7, #22D3EE, #EAB308);
    z-index: -1;
    opacity: 0.5;
}

/* ── Points Chip ───────────────────────────────────────────── */
.points-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: var(--ht-gold-dim);
    border: 1px solid rgba(234,179,8,0.25);
    border-radius: 999px;
    font-family: var(--ht-font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ht-gold);
    letter-spacing: -0.01em;
}

.points-chip .icon {
    font-size: 1rem;
    line-height: 1;
}

/* ── Badge Pill ────────────────────────────────────────────── */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-pill--violet  { background: rgba(168,85,247,0.15); color: #C084FC; border: 1px solid rgba(168,85,247,0.25); }
.badge-pill--gold    { background: rgba(234,179,8,0.15);  color: #FCD34D; border: 1px solid rgba(234,179,8,0.25); }
.badge-pill--cyan    { background: rgba(34,211,238,0.12); color: #67E8F9; border: 1px solid rgba(34,211,238,0.2); }
.badge-pill--emerald { background: rgba(16,185,129,0.12); color: #34D399; border: 1px solid rgba(16,185,129,0.2); }
.badge-pill--red     { background: rgba(239,68,68,0.12);  color: #FCA5A5; border: 1px solid rgba(239,68,68,0.2); }
.badge-pill--gray    { background: rgba(255,255,255,0.05); color: #94A3B8; border: 1px solid rgba(255,255,255,0.08); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--ht-radius-sm);
    font-family: var(--ht-font-display);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%);
    color: white;
    box-shadow: 0 4px 24px rgba(147,51,234,0.4);
}
.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(147,51,234,0.6);
    filter: brightness(1.1);
}

.btn-gold {
    background: linear-gradient(135deg, #D97706 0%, #EAB308 100%);
    color: #080C14;
    box-shadow: 0 4px 24px rgba(234,179,8,0.35);
}
.btn-gold:hover {
    box-shadow: 0 8px 32px rgba(234,179,8,0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--ht-text-primary);
    border: 1px solid var(--ht-border);
}
.btn-outline:hover {
    background: var(--ht-surface-2);
    border-color: rgba(255,255,255,0.16);
}

.btn-ghost {
    background: transparent;
    color: var(--ht-text-secondary);
    padding: 0.5rem 0.75rem;
}
.btn-ghost:hover { color: var(--ht-text-primary); }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--ht-radius-md); }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.75rem; }
.btn-full { width: 100%; }

/* Shimmer effect on primary button */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: btnShimmer 3s infinite;
}
@keyframes btnShimmer {
    0%   { left: -100%; }
    30%  { left: 150%; }
    100% { left: 150%; }
}

/* ── Icon Button ───────────────────────────────────────────── */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--ht-radius-sm);
    background: var(--ht-surface-2);
    border: 1px solid var(--ht-border);
    color: var(--ht-text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}
.icon-btn:hover {
    color: var(--ht-text-primary);
    background: var(--ht-surface-3);
    border-color: rgba(255,255,255,0.15);
}
.icon-btn:active { transform: scale(0.9); }

/* ── Notification Badge on Icon Button ─────────────────────── */
.icon-btn .notif-dot {
    position: absolute;
    top: 0.3rem; right: 0.3rem;
    width: 0.5rem; height: 0.5rem;
    border-radius: 50%;
    background: var(--ht-red);
    box-shadow: 0 0 6px rgba(239,68,68,0.7);
}
.icon-btn .notif-count {
    position: absolute;
    top: -0.25rem; right: -0.25rem;
    min-width: 1.1rem; height: 1.1rem;
    border-radius: 999px;
    background: var(--ht-red);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 0.25rem;
}

/* ── Typography ────────────────────────────────────────────── */
.display-xl {
    font-family: var(--ht-font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.display-lg {
    font-family: var(--ht-font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.display-md {
    font-family: var(--ht-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.display-sm {
    font-family: var(--ht-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.text-gradient {
    background: linear-gradient(135deg, #A855F7 0%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #F59E0B 0%, #EAB308 60%, #FCD34D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.label-xs {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ht-text-muted);
}

/* ── Progress Bar ──────────────────────────────────────────── */
.progress-track {
    width: 100%;
    height: 0.4rem;
    background: var(--ht-surface-2);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7C3AED, #A855F7);
    transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 30%; height: 100%;
    background: rgba(255,255,255,0.3);
    filter: blur(4px);
}

.progress-fill--gold {
    background: linear-gradient(90deg, #D97706, #EAB308);
}
.progress-fill--cyan {
    background: linear-gradient(90deg, #0891B2, #22D3EE);
}

/* ── Stat Row ──────────────────────────────────────────────── */
.stat-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.stat-value {
    font-family: var(--ht-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--ht-text-muted);
    font-weight: 500;
}

/* ── Avatar ────────────────────────────────────────────────── */
.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #22D3EE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ht-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.avatar--lg { width: 4.5rem; height: 4.5rem; font-size: 1.5rem; }
.avatar--xl { width: 6rem; height: 6rem; font-size: 2rem; }

.avatar-ring {
    box-shadow: 0 0 0 2px var(--ht-app-bg), 0 0 0 4px rgba(168,85,247,0.5);
}

/* ── Alert Banner ──────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--ht-radius-sm);
    font-size: 0.8rem;
    line-height: 1.5;
    font-weight: 500;
}

.alert--warning {
    background: rgba(234,179,8,0.1);
    border: 1px solid rgba(234,179,8,0.25);
    color: #FCD34D;
}

.alert--info {
    background: rgba(34,211,238,0.08);
    border: 1px solid rgba(34,211,238,0.2);
    color: #67E8F9;
}

.alert--success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    color: #34D399;
}

.alert--danger {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #FCA5A5;
}

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    gap: 1rem;
}

.empty-state-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--ht-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid var(--ht-border);
    animation: emptyPulse 2.5s ease-in-out infinite;
}

@keyframes emptyPulse {
    0%, 100% { transform: scale(1); box-shadow: none; }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(168,85,247,0.15); }
}

/* ── Section Header ────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
}

.section-title {
    font-family: var(--ht-font-display);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ht-text-secondary);
}

/* ── Badge Toast ───────────────────────────────────────────── */
.badge-toast {
    position: fixed;
    bottom: calc(var(--ht-bottom-nav-h) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--ht-z-toast);
    width: calc(100% - 2rem);
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(7,11,20,0.95);
    border: 1px solid rgba(168,85,247,0.4);
    border-radius: var(--ht-radius-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--ht-violet-glow), 0 16px 48px rgba(0,0,0,0.6);
    animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.badge-toast.hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    to   { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.95); }
}

.badge-toast-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(168,85,247,0.5);
    animation: badgeIconSpin 0.5s ease 0.2s;
}

@keyframes badgeIconSpin {
    0%   { transform: rotate(-20deg) scale(0.8); }
    60%  { transform: rotate(10deg) scale(1.1); }
    100% { transform: rotate(0) scale(1); }
}

/* ── Points Gained Animation ───────────────────────────────── */
.points-burst {
    animation: pointsBurst 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes pointsBurst {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Result Panel ──────────────────────────────────────────── */
.result-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
}

.result-score {
    font-family: var(--ht-font-display);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #EAB308, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(234,179,8,0.4));
}

.result-stars {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

/* ── Form Elements ─────────────────────────────────────────── */
.app-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: var(--ht-surface-1);
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-sm);
    color: var(--ht-text-primary);
    font-size: 1rem;
    font-family: var(--ht-font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
}

.app-input::placeholder { color: var(--ht-text-muted); }

.app-input:focus {
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.1);
}

.app-input--error {
    border-color: rgba(239,68,68,0.5);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

.app-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ht-text-muted);
    margin-bottom: 0.5rem;
}

/* ── Onboarding Specific ───────────────────────────────────── */
.onboarding-shell {
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.age-group-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--ht-surface-1);
    border: 2px solid var(--ht-border);
    border-radius: var(--ht-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.age-group-card:active { transform: scale(0.97); }

.age-group-card.selected {
    background: var(--ht-violet-dim);
    border-color: var(--ht-violet);
    box-shadow: 0 0 0 1px rgba(168,85,247,0.2), 0 8px 24px rgba(168,85,247,0.15);
}

.age-group-card .emoji {
    font-size: 2.5rem;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.age-group-card.selected .emoji { transform: scale(1.2); }

.age-group-card .name {
    font-family: var(--ht-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ht-text-primary);
}

.age-group-card .range {
    font-size: 0.75rem;
    color: var(--ht-text-muted);
    font-weight: 500;
}

/* ── Scroll helpers ────────────────────────────────────────── */
.scroll-snap-x {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}
.scroll-snap-x::-webkit-scrollbar { display: none; }
.scroll-snap-x > * { scroll-snap-align: start; flex-shrink: 0; }

/* ── Loading Shimmer ───────────────────────────────────────── */
.shimmer {
    background: linear-gradient(
        90deg,
        var(--ht-surface-1) 0%,
        var(--ht-surface-3) 50%,
        var(--ht-surface-1) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--ht-radius-sm);
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--ht-border);
    margin: 1rem 0;
}

/* ── Utility helpers ───────────────────────────────────────── */
.text-primary   { color: var(--ht-text-primary); }
.text-secondary { color: var(--ht-text-secondary); }
.text-muted     { color: var(--ht-text-muted); }
.text-violet    { color: var(--ht-violet); }
.text-gold      { color: var(--ht-gold); }
.text-cyan      { color: var(--ht-cyan); }
.text-emerald   { color: var(--ht-emerald); }
.text-red       { color: var(--ht-red); }

.fw-display { font-family: var(--ht-font-display); }
.fw-900  { font-weight: 800; }
.fw-700  { font-weight: 700; }
.fw-600  { font-weight: 600; }
.fw-400  { font-weight: 400; }

.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }    .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }

.p-0 { padding: 0; } .p-3 { padding: 0.75rem; } .p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }

.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.flex   { display: flex; } .flex-col { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.flex-1    { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.w-full    { width: 100%; }
.text-center { text-align: center; }
.relative  { position: relative; }
.overflow-hidden { overflow: hidden; }
.rounded   { border-radius: var(--ht-radius-sm); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }

/* ── Tab Bar / Filter Pills ────────────────────────────────── */
.tab-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin-bottom: 1.25rem;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-pill {
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1px solid var(--ht-border);
    background: var(--ht-surface-1);
    color: var(--ht-text-muted);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tab-pill:hover { color: var(--ht-text-secondary); background: var(--ht-surface-2); }
.tab-pill.active {
    background: var(--ht-violet-dim);
    border-color: rgba(168,85,247,0.4);
    color: var(--ht-violet);
    box-shadow: 0 0 12px rgba(168,85,247,0.2);
}
.tab-pill--gold.active {
    background: var(--ht-gold-dim);
    border-color: rgba(234,179,8,0.4);
    color: var(--ht-gold);
    box-shadow: 0 0 12px rgba(234,179,8,0.2);
}

/* ── Modal Overlay ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7,11,20,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--ht-z-modal);
    display: flex;
    align-items: flex-end;
    padding: 0;
    animation: overlayIn 0.25s ease;
}
@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.modal-overlay.closing { animation: overlayOut 0.2s ease forwards; }
@keyframes overlayOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ── Drawer (bottom sheet) ─────────────────────────────────── */
.drawer {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #0F1524;
    border-top: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-xl) var(--ht-radius-xl) 0 0;
    padding: 0 1.25rem calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
    max-height: 90svh;
    max-height: 90vh;
    overflow-y: auto;
    animation: drawerIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}
@keyframes drawerIn {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.modal-overlay.closing .drawer { animation: drawerOut 0.2s ease forwards; }
@keyframes drawerOut {
    from { transform: translateY(0); }
    to   { transform: translateY(100%); }
}
.drawer-handle {
    width: 2.5rem; height: 0.25rem;
    background: var(--ht-surface-3);
    border-radius: 999px;
    margin: 0.875rem auto 1.25rem;
}

/* ── Modal Center (for smaller dialogs) ────────────────────── */
.modal-center-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7,11,20,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--ht-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: overlayIn 0.2s ease;
}
.modal-panel {
    width: 100%;
    max-width: 400px;
    background: #0F1524;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-lg);
    padding: 1.5rem;
    animation: modalPanelIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}
@keyframes modalPanelIn {
    from { transform: scale(0.92) translateY(8px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── Task Item ─────────────────────────────────────────────── */
.task-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--ht-surface-1);
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-md);
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.task-item:active { transform: scale(0.98); }
.task-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #A855F7, #22D3EE);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s;
}
.task-item:hover::before,
.task-item.active::before { opacity: 1; }

.task-item.done {
    opacity: 0.45;
}
.task-item.done .task-item-title {
    text-decoration: line-through;
    color: var(--ht-text-muted);
}

.task-check {
    width: 2.25rem; height: 2.25rem;
    border-radius: 0.625rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.task-check--pending {
    background: rgba(168,85,247,0.12);
    border: 1.5px solid rgba(168,85,247,0.3);
}
.task-check--done {
    background: rgba(16,185,129,0.15);
    border: 1.5px solid rgba(16,185,129,0.3);
    animation: checkBounce 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.task-check--custom {
    background: rgba(34,211,238,0.12);
    border: 1.5px solid rgba(34,211,238,0.3);
}
@keyframes checkBounce {
    0%   { transform: scale(0.5); }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.task-item-title { font-weight: 600; font-size: 0.875rem; line-height: 1.4; }
.task-item-meta  { font-size: 0.72rem; color: var(--ht-text-muted); margin-top: 0.15rem; }

/* Completing spinner overlay */
.task-completing {
    opacity: 0.6;
    pointer-events: none;
}

.task-celebrate {
    animation: taskCelebrate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes taskCelebrate {
    0% { transform: scale(1); filter: brightness(1); }
    40% { transform: scale(1.02); filter: brightness(1.15); }
    100% { transform: scale(1); opacity: 0.85; filter: brightness(1); }
}

/* Konfeti (görev tamamlama) */
.ht-confetti {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}
.ht-confetti span {
    position: absolute;
    top: -12px;
    left: calc(50% + var(--x, 0px));
    width: 7px;
    height: 10px;
    border-radius: 2px;
    background: var(--c, #a855f7);
    opacity: 0;
    animation: confettiFall var(--dur, 1.2s) ease-out var(--delay, 0s) forwards;
}
@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0.85; }
}

.dashboard-snap-card {
    -webkit-tap-highlight-color: transparent;
}

/* Ana sayfa: İlerleme / Haftalık özet hızlı bağlantıları */
.dashboard-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 340px) {
    .dashboard-quick-links {
        grid-template-columns: 1fr;
    }
}

.dashboard-quick-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.35rem;
    padding: 0.75rem 0.85rem;
    text-decoration: none;
    color: inherit;
    background: var(--ht-surface-1);
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-lg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.12s ease,
        box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.dashboard-quick-link:hover {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-quick-link:active {
    transform: scale(0.98);
}

.dashboard-quick-link__icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-quick-link__icon--violet {
    background: rgba(168, 85, 247, 0.12);
    color: var(--ht-violet);
    border: 1px solid rgba(168, 85, 247, 0.22);
}

.dashboard-quick-link__icon--cyan {
    background: rgba(34, 211, 238, 0.1);
    color: var(--ht-cyan);
    border: 1px solid rgba(34, 211, 238, 0.22);
}

.dashboard-quick-link__icon svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-quick-link__body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.dashboard-quick-link__title {
    display: block;
    font-family: var(--ht-font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ht-text-primary);
}

.dashboard-quick-link__desc {
    display: block;
    font-size: 0.65rem;
    line-height: 1.3;
    color: var(--ht-text-muted);
    margin-top: 0.1rem;
}

.dashboard-quick-link__chev {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: var(--ht-text-muted);
    opacity: 0.65;
}

.dashboard-quick-link:hover .dashboard-quick-link__chev {
    color: var(--ht-violet);
    opacity: 1;
}

/* ── Quiz Option Cards ─────────────────────────────────────── */
.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border-radius: var(--ht-radius-md);
    border: 1.5px solid var(--ht-border);
    background: var(--ht-surface-1);
    color: var(--ht-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ht-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
}
.quiz-option:active { transform: scale(0.98); }
.quiz-option:hover {
    border-color: rgba(168,85,247,0.35);
    background: rgba(168,85,247,0.06);
}
.quiz-option.selected {
    border-color: var(--ht-violet);
    background: var(--ht-violet-dim);
    box-shadow: 0 0 0 1px rgba(168,85,247,0.2), 0 0 16px rgba(168,85,247,0.15);
}
.quiz-option.correct {
    border-color: var(--ht-emerald);
    background: rgba(16,185,129,0.12);
    box-shadow: 0 0 16px rgba(16,185,129,0.2);
}
.quiz-option.wrong {
    border-color: var(--ht-red);
    background: rgba(239,68,68,0.1);
}
.quiz-option-letter {
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: var(--ht-surface-2);
    border: 1px solid var(--ht-border);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ht-font-display);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.quiz-option.selected .quiz-option-letter {
    background: var(--ht-violet);
    border-color: var(--ht-violet);
    color: white;
}
.quiz-option.correct .quiz-option-letter {
    background: var(--ht-emerald);
    border-color: var(--ht-emerald);
    color: white;
}
.quiz-option.wrong .quiz-option-letter {
    background: var(--ht-red);
    border-color: var(--ht-red);
    color: white;
}

/* ── Quiz Timer ────────────────────────────────────────────── */
.quiz-timer-track {
    width: 100%;
    height: 0.35rem;
    background: var(--ht-surface-2);
    border-radius: 999px;
    overflow: hidden;
}
.quiz-timer-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22D3EE, #A855F7);
    transition: width 1s linear, background 0.5s ease;
}
.quiz-timer-fill.warning {
    background: linear-gradient(90deg, #F97316, #EF4444);
    animation: timerPulse 0.8s ease-in-out infinite alternate;
}
@keyframes timerPulse {
    from { opacity: 1; }
    to   { opacity: 0.7; }
}
.quiz-timer-display {
    font-family: var(--ht-font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    min-width: 2.5rem;
    text-align: right;
}

/* ── Game Card ─────────────────────────────────────────────── */
.game-card {
    position: relative;
    border-radius: var(--ht-radius-md);
    background: var(--ht-surface-1);
    border: 1px solid var(--ht-border);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
}
.game-card:active { transform: scale(0.97); }
.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(34,211,238,0.06));
    opacity: 0;
    transition: opacity 0.2s;
}
.game-card:hover::after { opacity: 1; }
.game-card-body { padding: 1.25rem; position: relative; z-index: 1; }
.game-card-icon {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    display: block;
    filter: drop-shadow(0 0 12px rgba(168,85,247,0.4));
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.game-card:hover .game-card-icon { transform: scale(1.1) rotate(-5deg); }

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-top: 0.25rem;
}
.page-header-back {
    width: 2.25rem; height: 2.25rem;
    border-radius: 50%;
    background: var(--ht-surface-2);
    border: 1px solid var(--ht-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--ht-text-secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.page-header-back:hover { color: var(--ht-text-primary); background: var(--ht-surface-3); }

/* ── FAB (Floating Action Button) ──────────────────────────── */
.fab {
    position: fixed;
    bottom: calc(var(--ht-bottom-nav-h) + 1.25rem);
    right: max(calc((100vw - 480px) / 2 + 1.25rem), 1.25rem);
    width: 3.5rem; height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    color: white;
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(147,51,234,0.5), 0 0 0 4px rgba(168,85,247,0.1);
    z-index: calc(var(--ht-z-bottom-nav) + 1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    border: none;
    animation: fabIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.fab:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(147,51,234,0.6), 0 0 0 4px rgba(168,85,247,0.15); }
.fab:active { transform: scale(0.95); }
@keyframes fabIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ── Rank Table ────────────────────────────────────────────── */
.rank-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--ht-radius-sm);
    background: var(--ht-surface-1);
    transition: background 0.15s;
}
.rank-row--highlight {
    background: var(--ht-violet-dim);
    border: 1px solid rgba(168,85,247,0.3);
    box-shadow: 0 0 16px rgba(168,85,247,0.1);
}
.rank-pos {
    font-family: var(--ht-font-display);
    font-weight: 800;
    font-size: 1rem;
    min-width: 2rem;
    text-align: center;
    color: var(--ht-text-muted);
}
.rank-pos--top { color: var(--ht-gold); }
.rank-pos--2   { color: var(--ht-text-secondary); }
.rank-pos--3   { color: #C2735A; }

/* ── Badge Gallery Card ────────────────────────────────────── */
.badge-card {
    padding: 1.25rem 1rem;
    border-radius: var(--ht-radius-md);
    background: var(--ht-surface-1);
    border: 1px solid var(--ht-border);
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.badge-card.earned {
    border-color: rgba(168,85,247,0.3);
    box-shadow: 0 0 0 1px rgba(168,85,247,0.1), 0 4px 16px rgba(168,85,247,0.1);
}
.badge-card.locked {
    opacity: 0.45;
    filter: grayscale(0.6);
}
.badge-card-icon { font-size: 2.5rem; margin-bottom: 0.5rem; line-height: 1; }
.badge-card-name {
    font-family: var(--ht-font-display);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ht-text-primary);
}
.badge-card-date { font-size: 0.65rem; color: var(--ht-text-muted); margin-top: 0.25rem; }

/* ── Clan card ─────────────────────────────────────────────── */
.clan-card {
    padding: 1.125rem;
    border-radius: var(--ht-radius-md);
    background: var(--ht-surface-1);
    border: 1px solid var(--ht-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.clan-card:active { transform: scale(0.98); }
.clan-card:hover { border-color: rgba(234,179,8,0.25); }
.clan-avatar {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    background: rgba(234,179,8,0.12);
    border: 2px solid rgba(234,179,8,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ── Notification Item ─────────────────────────────────────── */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    border-radius: var(--ht-radius-md);
    background: var(--ht-surface-1);
    border: 1px solid var(--ht-border);
    cursor: pointer;
    transition: all 0.2s ease;
}
.notif-item.unread { border-color: rgba(168,85,247,0.2); }
.notif-item:hover { background: var(--ht-surface-2); }
.notif-dot {
    width: 0.5rem; height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.3rem;
}
.notif-dot--unread { background: var(--ht-violet); box-shadow: 0 0 6px rgba(168,85,247,0.7); }
.notif-dot--read   { background: var(--ht-surface-3); }

/* ── Profile Avatar Edit ───────────────────────────────────── */
.avatar-edit-wrap {
    position: relative;
    display: inline-block;
}
.avatar-edit-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(7,11,20,0.65);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    font-size: 1.2rem;
}
.avatar-edit-wrap:hover .avatar-edit-overlay { opacity: 1; }

/* ── OTP Input ─────────────────────────────────────────────── */
.otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}
.otp-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    aspect-ratio: 1;
    text-align: center;
    font-family: var(--ht-font-display);
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--ht-surface-1);
    border: 1.5px solid var(--ht-border);
    border-radius: var(--ht-radius-sm);
    color: var(--ht-text-primary);
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}
.otp-input:focus {
    border-color: var(--ht-violet);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}

/* ── Points Pop (inline float animation) ──────────────────── */
@keyframes ptsPop {
    0%   { opacity: 1; transform: translateY(0) scale(1); }
    80%  { opacity: 1; transform: translateY(-2rem) scale(1.1); }
    100% { opacity: 0; transform: translateY(-2.5rem) scale(0.9); }
}
.pts-pop {
    position: absolute;
    pointer-events: none;
    font-family: var(--ht-font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ht-gold);
    text-shadow: 0 0 12px rgba(234,179,8,0.6);
    animation: ptsPop 1.2s ease forwards;
    z-index: 10;
    white-space: nowrap;
}
