/* ==========================================================================
   İLKOKUL MATEMATİK AKADEMİSİ - ORTAK TASARIM SİSTEMİ (V3)
   ========================================================================== */
:root {
    --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 50%, #fef3c7 100%);
    --card-bg: rgba(255, 255, 255, 0.96);
    --text-dark: #1e293b;
    --text-muted: #475569;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --success: #10b981;
    --success-bg: #d1fae5;
    --supportive: #f59e0b;
    --supportive-bg: #fef3c7;
    --danger: #ef4444;
    --info: #0ea5e9;
    --warning: #f97316;
    --shadow-soft: 0 10px 25px -5px rgba(30, 41, 59, 0.08), 0 8px 10px -6px rgba(30, 41, 59, 0.04);
    --shadow-hover: 0 20px 30px -10px rgba(99, 102, 241, 0.25);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 9999px;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-dark);
    line-height: 1.45;
}

/* ==========================================================================
   ARKA PLAN DEKORASYONLARI
   ========================================================================== */
.bg-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    font-size: 4.5rem;
    opacity: 0.45;
    animation: floatCloud 38s linear infinite;
}

.cloud-1 { top: 6%; left: -10%; animation-duration: 38s; }
.cloud-2 { top: 24%; left: -15%; font-size: 3.5rem; animation-duration: 46s; animation-delay: 8s; }
.cloud-3 { bottom: 12%; left: -12%; font-size: 5rem; animation-duration: 42s; animation-delay: 16s; }

.floating-symbol {
    position: absolute;
    font-size: 2.2rem;
    font-weight: 800;
    opacity: 0.22;
    color: var(--primary);
    animation: bobbing 5s ease-in-out infinite;
}

.s1 { top: 14%; right: 10%; animation-delay: 0s; }
.s2 { top: 45%; left: 5%; animation-delay: 1s; }
.s3 { bottom: 18%; right: 8%; animation-delay: 2s; }
.s4 { top: 10%; left: 18%; animation-delay: 1.5s; }
.s5 { bottom: 25%; left: 12%; animation-delay: 2.5s; }
.s6 { top: 60%; right: 15%; animation-delay: 0.8s; }

@keyframes floatCloud {
    0% { transform: translateX(0); }
    100% { transform: translateX(125vw); }
}

@keyframes bobbing {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(8deg); }
}

/* ==========================================================================
   KONTEYNER VE ÜST GEZİNTİ ÇUBUĞU
   ========================================================================== */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 16px 44px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.global-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--card-bg);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1e1b4b;
    font-weight: 900;
    font-size: 1.15rem;
}

.quick-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-pill {
    text-decoration: none;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #f1f5f9;
    transition: all 0.2s ease;
}

.nav-pill:hover, .nav-pill.active {
    background: var(--primary);
    color: #fff;
}

.sound-btn {
    border: 2px solid #e2e8f0;
    background: #fff;
    color: var(--text-dark);
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.86rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.sound-btn.sound-muted {
    background: #f1f5f9;
    color: var(--text-muted);
}

/* ==========================================================================
   SPA EKRAN GEÇİŞLERİ
   ========================================================================== */
.screen {
    display: none;
    animation: screenFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.screen.active {
    display: block;
}

@keyframes screenFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   BUTONLAR
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 22px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

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

.btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.btn-secondary { background: #fff; color: var(--text-dark); border: 2px solid #e2e8f0; }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-info { background: #e0f2fe; color: #0369a1; }
.btn-warning { background: #ffedd5; color: #c2410c; }
.btn-small { padding: 9px 15px; font-size: 0.92rem; }
.btn-large { padding: 15px 28px; font-size: 1.12rem; }

.pulse-btn { animation: gentlePulse 2.2s infinite; }

@keyframes gentlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

/* ==========================================================================
   OYUN MODU SEÇİM KARTLARI (3 MODLU PANEL)
   ========================================================================== */
.mode-selector-box {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 22px 24px;
    max-width: 920px;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-soft);
    border: 3px solid #fff;
}

.mode-selector-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 16px;
}

.mode-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mode-card {
    background: #f8fafc;
    border: 3px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mode-card:hover {
    transform: translateY(-4px);
    border-color: #a5b4fc;
}

.mode-card.selected {
    background: linear-gradient(135deg, #eef2ff, #f3e8ff);
    border-color: var(--primary);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.25);
}

.mode-card-icon {
    font-size: 2rem;
}

.mode-card-name {
    font-size: 1.12rem;
    font-weight: 900;
    color: #1e1b4b;
}

.mode-card-example {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
    background: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

.mode-card-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   ANA PORTAL (index.html) & BAŞARI PANELİ
   ========================================================================== */
.hero-section {
    text-align: center;
    margin-bottom: 24px;
}

.mascot-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    margin-bottom: 14px;
}

.mascot-emoji { font-size: 1.9rem; }
.badge-text { font-weight: 800; color: var(--primary); font-size: 1rem; }

.main-title {
    font-size: clamp(1.85rem, 4.2vw, 2.9rem);
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.sub-title {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
    font-weight: 500;
}

.progress-dashboard {
    background: var(--card-bg);
    border-radius: 26px;
    padding: 18px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.progress-stats-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.p-stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.98rem;
}

.badges-showcase {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 800;
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #fde68a;
}

.badge-chip.locked {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    filter: grayscale(1);
    opacity: 0.7;
}

.hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    padding: 28px 20px;
    border-radius: 28px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}

.hub-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.hub-card-featured {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 26px 34px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
}

.hub-featured-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hub-icon-box {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.hub-card-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 6px;
}

.hub-card-desc {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 14px;
}

.hub-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.88);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary);
}

.theme-toplama { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.theme-cikarma { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.theme-carpma  { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.theme-bolme   { background: linear-gradient(135deg, #fef3c7, #fde68a); }

.hub-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ==========================================================================
   ÇARPIM TABLOSU VE BASAMAK SEÇİM KARTLARI
   ========================================================================== */
.number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 24px 0;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 26px 0;
}

.number-card, .level-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 26px 18px;
    text-align: center;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.number-card:hover, .level-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

.mastered-crown {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 1.45rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.number-card-icon, .level-card-icon {
    font-size: 2.3rem;
    margin-bottom: 8px;
}

.number-card-digit {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
}

.level-card-title {
    font-size: 1.65rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: #1e1b4b;
}

.level-card-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 14px;
}

.level-time-badge {
    background: #fff;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.num-theme-1 { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.num-theme-2 { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.num-theme-3 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.num-theme-4 { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.num-theme-5 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.num-theme-6 { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.num-theme-7 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.num-theme-8 { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.num-theme-9 { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); }
.num-theme-10 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }

.level-theme-1 { background: linear-gradient(135deg, #dcfce7, #a7f3d0); }
.level-theme-2 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.level-theme-3 { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); }

/* ==========================================================================
   ÖRNEK SORULAR / ÇARPIM TABLOSU EKRANI (EKRAN 2)
   ========================================================================== */
.top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--card-bg);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 18px;
}

.selected-number-badge {
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    font-weight: 900;
    color: var(--primary);
    background: #eef2ff;
    padding: 6px 20px;
    border-radius: var(--radius-pill);
}

.table-instruction {
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-muted);
}

.multiplication-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 860px;
    margin: 0 auto 26px;
}

.mult-row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: slideUpRow 0.35s ease backwards;
    cursor: pointer;
}

.mult-row-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.mult-expression {
    font-size: clamp(1.25rem, 2.6vw, 1.65rem);
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mult-op { color: var(--primary); }

.mult-result {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 900;
    background: #fff;
    color: var(--primary);
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

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

.bottom-action-area {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==========================================================================
   BİLGİ YARIŞMASI EKRANI (EKRAN 3) & OYUN MODLARI
   ========================================================================== */
.quiz-top-bar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
}

.quiz-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.scoreboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.score-item {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 8px 10px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.score-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.score-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-dark);
}

.score-pop { animation: popScore 0.4s ease; }

@keyframes popScore {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); color: var(--success); }
    100% { transform: scale(1); }
}

.score-points { background: #eef2ff; border-color: #c7d2fe; }
.score-points .score-value { color: var(--primary); }
.score-correct { background: #ecfdf5; border-color: #a7f3d0; }
.score-correct .score-value { color: var(--success); }
.score-wrong { background: #fffbeb; border-color: #fde68a; }
.score-wrong .score-value { color: #d97706; }

.quiz-motivation-banner {
    text-align: center;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    margin: 0 auto 18px;
    max-width: 640px;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.25);
}

.question-card {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 28px 24px;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 20px 40px -15px rgba(30, 41, 59, 0.14);
    border: 4px solid #fff;
    text-align: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.question-card.state-correct {
    border-color: var(--success);
    background: #f0fdf4;
}

.question-card.state-supportive {
    border-color: var(--supportive);
    background: #fffbeb;
    animation: gentleShake 0.45s ease;
}

@keyframes gentleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
}

.timer-wrapper {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 9;
}

.timer-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 9;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 0;
    transition: stroke 0.2s ease;
}

.timer-text {
    position: absolute;
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--primary);
}

/* Yan Yana Soru Gösterimi */
.question-display {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: clamp(2.1rem, 6.2vw, 3.4rem);
    font-weight: 900;
    color: #1e1b4b;
    margin: 10px 0 20px;
}

.q-operator { color: #ec4899; }

.q-unknown-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 0 14px;
    height: 68px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 20px;
    border: 3px dashed #818cf8;
}

.q-unknown-box.revealed {
    border-style: solid;
    background: #dcfce7;
    color: #047857;
    border-color: #10b981;
}

/* Alt Alta İşlem Gösterimi */
.vertical-math-box {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    background: #f8fafc;
    border: 3px solid #e2e8f0;
    border-radius: 24px;
    padding: 16px 28px;
    margin: 8px auto 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(2.2rem, 6vw, 3.1rem);
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: 6px;
}

.v-row-top { padding-left: 36px; }

.v-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 4px solid #1e1b4b;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.v-op-sign { color: #ec4899; margin-right: 16px; }
.v-row-result { color: var(--primary); min-height: 46px; }
.v-row-result.revealed { color: #059669; }

.digit-hundreds { color: #db2777; }
.digit-tens     { color: #2563eb; }
.digit-ones     { color: #059669; }

.place-value-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 12px;
}

/* Doğru mu Yanlış mı? (Hızlı Refleks) Butonları */
.tf-buttons-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 440px;
    margin: 12px auto 6px;
}

.btn-tf {
    height: 76px;
    font-size: 1.45rem;
    font-weight: 900;
    border-radius: 22px;
}

/* Sayısal Giriş ve Tuş Takımı */
.answer-input-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.input-submit-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 380px;
}

.answer-input {
    width: 180px;
    height: 64px;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    border-radius: 18px;
    border: 3px solid #cbd5e1;
    background: #fff;
    color: var(--text-dark);
    outline: none;
}

.answer-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.btn-submit {
    height: 64px;
    padding: 0 24px;
    font-size: 1.15rem;
    border-radius: 18px;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 350px;
}

.num-btn {
    height: 54px;
    font-size: 1.45rem;
    font-weight: 800;
    border: none;
    border-radius: 16px;
    background: #f1f5f9;
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: 0 4px 0 #cbd5e1;
    transition: transform 0.1s ease, background-color 0.15s ease;
    font-family: inherit;
}

.num-btn:hover { background: #e2e8f0; }
.num-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #cbd5e1; }

.num-clear {
    background: #fee2e2;
    color: #b91c1c;
    box-shadow: 0 4px 0 #fca5a5;
    font-size: 1.1rem;
}

.num-enter {
    background: #dcfce7;
    color: #15803d;
    box-shadow: 0 4px 0 #86efac;
    font-size: 1.1rem;
}

/* ==========================================================================
   GERİ BİLDİRİM, DURDURMA VE GEÇME KONTROLLERİ
   ========================================================================== */
.feedback-area {
    margin-top: 12px;
    animation: screenFadeIn 0.3s ease;
}

.hidden { display: none !important; }

.feedback-message {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 900;
    padding: 14px 18px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.feedback-correct { background: var(--success-bg); color: #065f46; }
.feedback-supportive { background: var(--supportive-bg); color: #92400e; }

.step-hint-box {
    background: #fff;
    border: 2px dashed #f59e0b;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #78350f;
}

.next-question-bar-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

#next-question-text {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.next-progress-track {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 14px;
}

.next-progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    border-radius: var(--radius-pill);
    transform-origin: left;
}

.transition-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Test Tamamlandı Özet Kartı */
.summary-card {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 36px 24px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 4px solid #fff;
}

.summary-trophy { font-size: 4.5rem; margin-bottom: 10px; }
.summary-title { font-size: 2rem; font-weight: 900; color: #1e1b4b; margin-bottom: 8px; }
.summary-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; font-weight: 600; }

.summary-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.summary-stat-box {
    background: #f8fafc;
    padding: 16px 10px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
}

.summary-stat-num { font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.summary-stat-lbl { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }

/* ==========================================================================
   KONFETİ EFEKTİ
   ========================================================================== */
#confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(105vh) rotate(720deg) scale(0.8); opacity: 0; }
}

.home-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 24px;
}

.motivation-pill {
    display: inline-block;
    background: var(--card-bg);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   RESPONSIVE TASARIM
   ========================================================================== */
@media (max-width: 900px) {
    .number-grid { grid-template-columns: repeat(4, 1fr); }
    .level-grid { grid-template-columns: 1fr; }
    .mode-cards-grid { grid-template-columns: 1fr; }
    .hub-card-featured { flex-direction: column; text-align: center; }
    .hub-featured-left { flex-direction: column; }
    .progress-dashboard { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
    .global-topbar { border-radius: 20px; justify-content: center; }
    .quick-nav-links { justify-content: center; }
    .hub-grid-4 { grid-template-columns: 1fr; }
    .number-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .top-nav-bar { flex-direction: column; text-align: center; }
    .top-nav-bar .btn { width: 100%; }
    .multiplication-grid { grid-template-columns: 1fr; }
    .scoreboard { grid-template-columns: repeat(2, 1fr); }
    .summary-stats-grid { grid-template-columns: 1fr; }
    .tf-buttons-row { grid-template-columns: 1fr; }
}


/* ==========================================================================
   MOBİL ÖNCELİKLİ TEST YERLEŞİMİ VE KOMPAKT ÜST MENÜ (V4)
   ========================================================================== */
@media (max-width: 768px) {
    .app-container {
        padding: 8px 10px 24px;
    }

    /* Üst Logo ve Menü Küçültme */
    .global-topbar {
        padding: 8px 12px;
        border-radius: 16px;
        margin-bottom: 10px;
        gap: 6px;
        justify-content: center;
    }

    .brand-link {
        font-size: 0.95rem;
        gap: 6px;
    }

    .quick-nav-links {
        gap: 4px;
        justify-content: center;
    }

    .nav-pill {
        padding: 4px 9px;
        font-size: 0.76rem;
    }

    .sound-btn {
        padding: 4px 9px;
        font-size: 0.76rem;
    }

    /* Test Ekranında (#screen-quiz) Soru Kartını En Üste Alma */
    #screen-quiz.active {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #screen-quiz .question-card {
        order: 1;
        width: 100%;
        padding: 14px 12px;
        border-radius: 22px;
        margin-bottom: 2px;
    }

    #screen-quiz .quiz-motivation-banner {
        order: 2;
        font-size: 0.88rem;
        padding: 7px 14px;
        margin-bottom: 0;
    }

    #screen-quiz .quiz-top-bar {
        order: 3;
        padding: 10px 12px;
        border-radius: 18px;
        gap: 8px;
        margin-bottom: 0;
    }

    /* Soru Kartı İç Elemanlarını Mobil Ekrana Sığdırma */
    .timer-wrapper {
        width: 58px;
        height: 58px;
        margin: 0 auto 6px;
    }

    .timer-text {
        font-size: 1.25rem;
    }

    .question-display {
        font-size: clamp(1.85rem, 7.5vw, 2.5rem);
        gap: 8px;
        margin: 4px 0 12px;
    }

    .q-unknown-box {
        min-width: 60px;
        height: 52px;
        padding: 0 10px;
        border-radius: 14px;
    }

    .vertical-math-box {
        padding: 10px 20px;
        margin: 4px auto 12px;
        font-size: 2rem;
        letter-spacing: 4px;
        border-radius: 18px;
    }

    .place-value-legend {
        margin-bottom: 6px;
        font-size: 0.76rem;
    }

    .answer-input-area {
        gap: 10px;
    }

    .input-submit-row {
        gap: 8px;
    }

    .answer-input {
        width: 135px;
        height: 50px;
        font-size: 1.65rem;
        border-radius: 14px;
    }

    .btn-submit {
        height: 50px;
        padding: 0 18px;
        font-size: 1rem;
        border-radius: 14px;
    }

    .numpad {
        gap: 7px;
        max-width: 320px;
    }

    .num-btn {
        height: 44px;
        font-size: 1.3rem;
        border-radius: 12px;
    }

    .num-clear, .num-enter {
        font-size: 0.98rem;
    }

    .btn-tf {
        height: 58px;
        font-size: 1.2rem;
        border-radius: 16px;
    }

    .feedback-message {
        font-size: 1.05rem;
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .step-hint-box {
        font-size: 0.88rem;
        padding: 8px 12px;
        margin-bottom: 10px;
    }

    .quiz-nav-buttons {
        gap: 6px;
    }

    .quiz-nav-buttons .btn-small {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .scoreboard {
        gap: 6px;
    }

    .score-item {
        padding: 6px 4px;
        border-radius: 12px;
    }

    .score-label {
        font-size: 0.7rem;
    }

    .score-value {
        font-size: 1.15rem;
    }
}

/* Soru Esnasında Süreyi Durdurma Kontrolü */
.question-timer-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.question-timer-controls .timer-wrapper {
    margin: 0 auto;
}
@media (max-width: 768px) {
    .question-timer-controls {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        margin-bottom: 6px;
    }
    .question-timer-controls .timer-wrapper {
        margin: 0;
    }
}


/* ==========================================================================
   V7 GÜNCELLEMELERİ: SEÇİLİ OYUN MODU ONAY İŞARETİ & YANLIŞ CEVAP ETİKETİ
   ========================================================================== */
.mode-card {
    position: relative;
}

.mode-check-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.mode-card.selected .mode-check-badge {
    display: flex;
    animation: popScore 0.3s ease;
}

.wrong-user-answer {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.85);
    padding: 3px 12px;
    border-radius: var(--radius-pill);
}


/* ==========================================================================
   V9 GÜNCELLEMELERİ: İLKOKUL DEFTER TARZI ÖRNEKLER & BÖLME ÇİZGİLİ ŞEMA
   ========================================================================== */
.examples-school-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    max-width: 980px;
    margin: 0 auto 26px;
}

.school-example-card {
    background: #fff;
    border-radius: 20px;
    padding: 16px 14px;
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: slideUpRow 0.35s ease backwards;
    position: relative;
}

.school-example-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

.ex-badge-num {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 7px;
    border-radius: 999px;
}

/* Örnek Kartı İçi Alt Alta Toplama / Çıkarma / Çarpma */
.ex-vertical-math {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.55rem;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: 2px;
    margin-top: 8px;
}

.ex-v-top {
    padding-left: 24px;
}

.ex-v-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 3px solid #1e1b4b;
    padding-bottom: 3px;
    margin-bottom: 4px;
}

.ex-v-op {
    color: #ec4899;
    margin-right: 10px;
}

.ex-v-ans {
    color: #059669;
    background: rgba(255, 255, 255, 0.85);
    padding: 1px 8px;
    border-radius: 8px;
}

/* Örnek Kartı İçi İlkokul Bölme Çizgili Şema (Bakkal Bölmesi) */
.ex-division-box {
    display: inline-flex;
    align-items: stretch;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.45rem;
    font-weight: 900;
    color: #1e1b4b;
    margin-top: 10px;
}

.ex-div-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 10px;
    border-right: 3px solid #1e1b4b;
}

.ex-div-sub {
    font-size: 1.15rem;
    color: #64748b;
}

.ex-div-line {
    width: 100%;
    height: 2px;
    background: #1e1b4b;
    margin: 2px 0;
}

.ex-div-rem {
    font-size: 1.15rem;
    color: #0ea5e9;
}

.ex-div-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ex-div-divisor {
    padding: 0 10px 3px 10px;
    border-bottom: 3px solid #1e1b4b;
    min-width: 44px;
    text-align: center;
    color: #ec4899;
}

.ex-div-quotient {
    padding: 4px 10px 0 10px;
    min-width: 44px;
    text-align: center;
    color: #059669;
}

/* Soru Ekranı Büyük İlkokul Bölme Çizgili Şema */
.school-division-box {
    display: inline-flex;
    align-items: stretch;
    background: #f8fafc;
    border: 3px solid #e2e8f0;
    border-radius: 24px;
    padding: 18px 30px;
    margin: 8px auto 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(2.1rem, 6vw, 3rem);
    font-weight: 900;
    color: #1e1b4b;
}

.div-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 16px;
    border-right: 4px solid #1e1b4b;
    min-width: 90px;
}

.div-remainder-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin-top: 4px;
    font-size: clamp(1.5rem, 4.5vw, 2.1rem);
}

.div-sub-product {
    color: #64748b;
}

.div-sub-line {
    width: 100%;
    height: 3px;
    background: #1e1b4b;
    margin: 3px 0;
}

.div-remainder {
    color: #0ea5e9;
}

.div-right-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 90px;
}

.div-divisor {
    padding: 0 16px 6px 16px;
    border-bottom: 4px solid #1e1b4b;
    text-align: center;
    color: #ec4899;
}

.div-quotient {
    padding: 8px 16px 0 16px;
    text-align: center;
    color: var(--primary);
    min-height: 52px;
}

.div-quotient.revealed {
    color: #059669;
}

.div-slot-unknown {
    display: inline-block;
    min-width: 54px;
    padding: 0 10px;
    background: #eef2ff;
    border: 3px dashed #818cf8;
    border-radius: 14px;
    color: var(--primary);
}

.div-slot-unknown.revealed {
    border-style: solid;
    background: #dcfce7;
    border-color: #10b981;
    color: #047857;
}

@media (max-width: 900px) {
    .examples-school-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .examples-school-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .school-division-box {
        padding: 12px 20px;
        margin: 4px auto 12px;
        font-size: 1.9rem;
    }
    .div-quotient {
        min-height: 40px;
        padding-top: 4px;
    }
}


/* ==========================================================================
   V10 GÜNCELLEMELERİ: TEK SAYFADA TEST SONUÇLARIMI GÖR KARNESİ
   ========================================================================== */
.summary-card {
    max-width: 820px;
}

.results-review-toggle-row {
    margin-bottom: 20px;
}

.results-review-panel {
    text-align: left;
    background: #f8fafc;
    border: 3px solid #e2e8f0;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 24px;
    animation: screenFadeIn 0.3s ease;
}

.results-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid #e2e8f0;
}

.results-review-header h3 {
    font-size: 1.2rem;
    font-weight: 900;
    color: #1e1b4b;
}

.results-review-legend {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.results-review-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.review-item-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px;
    border-left: 6px solid #cbd5e1;
    box-shadow: 0 4px 10px rgba(30, 41, 59, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-item-card.is-correct {
    border-left-color: var(--success);
    background: #f0fdf4;
}

.review-item-card.is-wrong {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.review-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.review-q-num {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 9px;
    border-radius: 999px;
}

.review-status-pill {
    font-size: 0.82rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
}

.review-status-pill.ok {
    background: #dcfce7;
    color: #065f46;
}

.review-status-pill.bad {
    background: #fee2e2;
    color: #991b1b;
}

.review-question-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1e1b4b;
    margin: 2px 0;
}

.review-answers-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.9rem;
    font-weight: 700;
}

.review-user-ans {
    color: #b91c1c;
}

.review-user-ans.ok {
    color: #047857;
}

.review-correct-ans {
    color: #065f46;
}

.review-hint-note {
    font-size: 0.82rem;
    font-weight: 600;
    color: #78350f;
    margin-top: 2px;
}

@media (max-width: 700px) {
    .results-review-list {
        grid-template-columns: 1fr;
    }
    .results-review-panel {
        padding: 12px;
    }
}


/* ==========================================================================
   V11 GÜNCELLEMELERİ: DEFTER STİLİNDE EKSİK SAYI, DOĞRU/YANLIŞ VE KARNE ŞEMALARI
   ========================================================================== */
.v-slot-unknown {
    display: inline-block;
    min-width: 58px;
    padding: 0 10px;
    background: #eef2ff;
    border: 3px dashed #818cf8;
    border-radius: 14px;
    color: var(--primary);
    text-align: center;
    letter-spacing: 2px;
}

.v-slot-unknown.revealed {
    border-style: solid;
    background: #dcfce7;
    border-color: #10b981;
    color: #047857;
}

.v-slot-tf-true {
    display: inline-block;
    padding: 0 10px;
    background: #dcfce7;
    border: 3px solid #10b981;
    border-radius: 14px;
    color: #047857;
    letter-spacing: 2px;
}

.v-slot-tf-false {
    display: inline-block;
    padding: 0 10px;
    background: #fef3c7;
    border: 3px solid #f59e0b;
    border-radius: 14px;
    color: #b45309;
    letter-spacing: 2px;
}

/* Karnedeki Müfredat Defter Şeması Kutusu */
.notebook-schema-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    background-image:
        linear-gradient(to right, rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 16px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    padding: 12px 16px;
    margin: 6px 0;
    min-height: 112px;
}

.notebook-schema-wrapper .ex-vertical-math {
    margin-top: 0;
    font-size: 1.45rem;
}

.notebook-schema-wrapper .ex-division-box {
    margin-top: 0;
    font-size: 1.38rem;
}

.nb-missing-highlight {
    display: inline-block;
    padding: 0 6px;
    border-radius: 8px;
    background: #e0e7ff;
    border: 2px dashed #6366f1;
    color: #4338ca;
}

.nb-tf-wrong-val {
    text-decoration: line-through;
    color: #dc2626;
    margin-right: 6px;
}

.nb-tf-right-val {
    color: #059669;
    font-weight: 900;
}


/* ==========================================================================
   ÜYELİK, GİRİŞ EKRANI VE YÖNETİM / RAPOR PANELİ STİLLERİ (PHP & MYSQL)
   ========================================================================== */
.user-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #3730a3;
    border: 2px solid #c7d2fe;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 800;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

.auth-tab {
    border: none;
    background: transparent;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.auth-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e1b4b;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 2px solid #cbd5e1;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    background: #fff;
    font-family: inherit;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.remember-info-pill {
    background: #ecfdf5;
    color: #065f46;
    border: 1.5px solid #a7f3d0;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.avatar-picker {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.avatar-picker label {
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.avatar-picker input {
    display: none;
}

.avatar-picker span {
    display: block;
    font-size: 1.75rem;
    padding: 8px;
    border-radius: 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.avatar-picker input:checked + span {
    background: #eef2ff;
    border-color: var(--primary);
    transform: scale(1.08);
}

.panel-card {
    background: var(--card-bg);
    border-radius: 26px;
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-soft);
    border: 3px solid #fff;
}

.panel-section-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 16px;
}

.panel-grid-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.data-table th, .data-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1.5px solid #e2e8f0;
}

.data-table th {
    background: #f8fafc;
    font-weight: 900;
    color: #1e1b4b;
}

@media (max-width: 768px) {
    .panel-grid-form {
        grid-template-columns: 1fr;
    }
    .user-badge-pill {
        font-size: 0.76rem;
        padding: 4px 9px;
    }
}


/* ==========================================================================
   ANA YÖNETİCİ SEKMELERİ (ÜYELER / PAKETLER / İSTATİSTİKLER) & DURUM ROZETLERİ
   ========================================================================== */
.admin-subnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto 22px;
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: var(--card-bg);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 1.02rem;
    border: 3px solid #fff;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.admin-tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: #c7d2fe;
}

.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-ok {
    background: #dcfce7;
    color: #065f46;
}

.status-stop {
    background: #fee2e2;
    color: #991b1b;
}

.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.kpi-box {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 20px 18px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 3px solid #fff;
}

.kpi-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.kpi-num {
    font-size: 2rem;
    font-weight: 900;
    color: #1e1b4b;
    line-height: 1.15;
}

.kpi-lbl {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .stats-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-tab-btn {
        padding: 10px 16px;
        font-size: 0.92rem;
    }
}


/* ==========================================================================
   V3 GÜNCELLEMELERİ: 18 MASKOT GRID, FİLTRE ÇUBUĞU, DESTEK FOOTER & MODALLAR
   ========================================================================== */
.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.avatar-picker-grid label {
    cursor: pointer;
    text-align: center;
}

.avatar-picker-grid input {
    display: none;
}

.avatar-picker-grid span {
    display: block;
    font-size: 1.55rem;
    padding: 6px;
    border-radius: 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.18s ease;
}

.avatar-picker-grid input:checked + span {
    background: #eef2ff;
    border-color: var(--primary);
    transform: scale(1.1);
}

.filter-bar-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.support-footer-bar {
    margin-top: 28px;
    padding-top: 12px;
}

.support-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--card-bg);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    border: 2px solid #fff;
}

.support-footer-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 600;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-card {
    background: #fff;
    border-radius: 28px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: screenFadeIn 0.25s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #1e1b4b;
}

.modal-close-btn {
    border: none;
    background: #f1f5f9;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-weight: 900;
    cursor: pointer;
    color: var(--text-dark);
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .filter-bar-grid {
        grid-template-columns: 1fr;
    }
    .avatar-picker-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .support-footer-inner {
        justify-content: center;
        text-align: center;
        border-radius: 20px;
    }
}


/* ==========================================================================
   ANA SAYFA YAN YANA ÖNE ÇIKAN KARTLAR (ÇARPIM TABLOSU & MATEMATİK MACERASI)
   ========================================================================== */
.hub-grid-featured-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hub-card-featured-half {
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    text-align: left;
    padding: 24px 26px;
}

.theme-carpim-featured {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
}

.theme-macera-featured {
    background: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 55%, #fef9c3 100%);
}

@media (max-width: 900px) {
    .hub-grid-featured-2 {
        grid-template-columns: 1fr;
    }
    .hub-card-featured-half {
        text-align: center;
        align-items: center;
    }
    .hub-card-featured-half .btn {
        align-self: center !important;
    }
}


/* ==========================================================================
   V14 GÜNCELLEMELERİ: SESLİ OKUMA BUTONU, DEFTER ELDE/KALAN MODALI & ZENGİN FOOTER
   ========================================================================== */
.step-hint-box {
    white-space: pre-line;
    text-align: left;
    line-height: 1.55;
}

.question-audio-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

/* Örnek İşlem Süreci Defter Modalı (Elde / Onluk Bozma / Kalan) */
.nb-carry-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    max-width: 190px;
    margin-bottom: 4px;
}

.nb-carry-pill {
    background: #fef3c7;
    color: #b45309;
    border: 1.5px solid #f59e0b;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 999px;
}

.nb-borrow-banner {
    background: #e0f2fe;
    color: #0369a1;
    border: 1.5px solid #7dd3fc;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.nb-steps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    text-align: left;
}

.nb-step-item {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
}

/* Kapsamlı SEO & Eğitim Portalı Footer Bölümü */
.site-footer {
    margin-top: 36px;
    background: var(--card-bg);
    border-radius: 28px;
    padding: 26px 24px 20px;
    box-shadow: var(--shadow-soft);
    border: 3px solid #fff;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.footer-brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 8px;
}

.footer-brand-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.5;
}

.footer-col-title {
    font-size: 0.98rem;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 10px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-links-list a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.18s ease;
}

.footer-links-list a:hover {
    color: var(--primary);
}

.site-footer-bottom {
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand-title {
        justify-content: center;
    }
    .site-footer-bottom {
        justify-content: center;
        text-align: center;
    }
}


/* ==========================================================================
   NEONMATHS KAPLUMBAGA MATEMATİK HEADER LOGO DÜZENİ
   ========================================================================== */
.brand-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 2px 4px;
    transition: transform 0.2s ease;
}

.brand-logo-link:hover {
    transform: scale(1.02);
}

.brand-logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(99, 102, 241, 0.16));
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-main-name {
    font-size: 1.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1 0%, #f97316 55%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.brand-sub-name {
    font-size: 0.84rem;
    font-weight: 800;
    color: #334155;
}

@media (max-width: 640px) {
    .brand-logo-img {
        height: 44px;
    }
    .brand-main-name {
        font-size: 1.08rem;
    }
    .brand-sub-name {
        font-size: 0.76rem;
    }
}


/* ==========================================================================
   YASAL SAYFALAR (KVKK, GİZLİLİK, ÇEREZ, KULLANIM KOŞULLARI) STİLLERİ
   ========================================================================== */
.legal-page-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 30px 32px;
    box-shadow: var(--shadow-soft);
    border: 3px solid #fff;
    text-align: left;
}

.legal-page-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.legal-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.legal-page-header h1 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1e1b4b;
    line-height: 1.25;
    margin-bottom: 6px;
}

.legal-updated {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 700;
}

.legal-section {
    margin-bottom: 22px;
}

.legal-section h2 {
    font-size: 1.18rem;
    font-weight: 900;
    color: #312e81;
    margin-bottom: 8px;
}

.legal-section p, .legal-section li {
    font-size: 0.96rem;
    line-height: 1.68;
    color: #334155;
    font-weight: 600;
    margin-bottom: 8px;
}

.legal-section ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-section a {
    color: #4f46e5;
    font-weight: 800;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-info-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-left: 5px solid #6366f1;
    border-radius: 16px;
    padding: 14px 18px;
    margin-top: 10px;
}

.legal-info-box p {
    margin-bottom: 4px;
}

.legal-warning-box {
    background: #fffbeb;
    border: 2px solid #fde68a;
    border-left: 6px solid #f59e0b;
    border-radius: 18px;
    padding: 18px 20px;
}

.legal-nav-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 18px;
    border-top: 2px solid #e2e8f0;
    margin-top: 12px;
}

@media (max-width: 900px) {
    .site-footer-grid {
        grid-template-columns: 1fr !important;
    }
    .legal-page-card {
        padding: 20px 18px;
    }
    .legal-page-header h1 {
        font-size: 1.4rem;
    }
}


/* ==========================================================================
   YENİDEN TASARLANMIŞ MODERN NEONMATHS HEADER & YASAL ONAY MODALI
   ========================================================================== */
.nm-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 14px 20px 16px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.10), 0 2px 8px rgba(15, 23, 42, 0.04);
    border: 3px solid #ffffff;
    position: relative;
    overflow: hidden;
}

.nm-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6366f1 0%, #f97316 35%, #10b981 70%, #0ea5e9 100%);
}

.nm-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 2px dashed #e2e8f0;
}

.nm-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nm-brand:hover {
    transform: translateY(-1px);
}

.nm-logo-badge {
    background: linear-gradient(145deg, #f5f3ff 0%, #fff7ed 50%, #ecfdf5 100%);
    border: 2.5px solid #e0e7ff;
    border-radius: 22px;
    padding: 6px 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nm-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nm-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nm-brand-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nm-brand-main {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5 0%, #f97316 55%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.4px;
    line-height: 1.1;
}

.nm-brand-chip {
    background: #fef3c7;
    color: #b45309;
    border: 1.5px solid #fcd34d;
    font-size: 0.74rem;
    font-weight: 900;
    padding: 2px 9px;
    border-radius: 999px;
}

.nm-brand-sub {
    font-size: 0.9rem;
    font-weight: 800;
    color: #475569;
}

.nm-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nm-sound-btn {
    border: 2px solid #bae6fd;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    color: #0369a1;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 3px 0 #7dd3fc;
    transition: all 0.15s ease;
}

.nm-sound-btn:hover {
    transform: translateY(-2px);
}

.nm-sound-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #7dd3fc;
}

.nm-sound-btn.sound-muted {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
    box-shadow: 0 3px 0 #cbd5e1;
}

.nm-mobile-toggle {
    display: none;
    border: 2px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.nm-nav-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 9px;
    padding-top: 12px;
}

.nm-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 18px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #334155;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.18s ease;
}

.nm-nav-item:hover {
    transform: translateY(-2px);
    border-color: #a5b4fc;
    background: #eef2ff;
    color: #312e81;
}

.nm-nav-item.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
}

.nm-nav-item.pill-add.active {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #047857;
}

.nm-nav-item.pill-sub.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-color: #c2410c;
}

.nm-nav-item.pill-mul.active {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-color: #0369a1;
}

.nm-nav-item.pill-div.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #b45309;
}

.nm-nav-ico {
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
}

/* 30 Günlük Kullanım Koşulları / Gizlilik / Çerez Onay Modalı */
.consent-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.consent-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 28px 26px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 4px solid #e0e7ff;
    text-align: left;
    animation: screenFadeIn 0.28s ease;
}

.consent-top-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.consent-title {
    font-size: 1.42rem;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 10px;
    line-height: 1.25;
}

.consent-desc {
    font-size: 0.94rem;
    line-height: 1.6;
    color: #334155;
    font-weight: 600;
    margin-bottom: 14px;
}

.consent-desc a {
    color: #4f46e5;
    font-weight: 800;
    text-decoration: underline;
}

.consent-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}

.consent-checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #4f46e5;
    flex-shrink: 0;
    cursor: pointer;
}

.consent-warn {
    background: #fef2f2;
    color: #b91c1c;
    border: 1.5px solid #fecaca;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.consent-footnote {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 700;
    margin-top: 10px;
}

@media (max-width: 960px) {
    .nm-nav-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    .nm-header {
        padding: 12px 14px;
        border-radius: 24px;
    }
    .nm-header-top {
        padding-bottom: 0;
        border-bottom: none;
    }
    .nm-logo-badge {
        padding: 4px 8px;
        border-radius: 16px;
    }
    .nm-logo-img {
        height: 40px;
    }
    .nm-brand-main {
        font-size: 1.15rem;
    }
    .nm-brand-chip {
        display: none;
    }
    .nm-brand-sub {
        font-size: 0.76rem;
    }
    .nm-sound-btn {
        padding: 7px 11px;
        font-size: 0.8rem;
    }
    .nm-mobile-toggle {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 7px 12px;
        font-size: 0.82rem;
    }
    .nm-nav-bar {
        display: none;
        grid-template-columns: repeat(2, 1fr);
        margin-top: 12px;
        padding-top: 12px;
        border-top: 2px dashed #e2e8f0;
    }
    .nm-nav-bar.is-open {
        display: grid;
    }
}


/* ==========================================================================
   ANA SAYFA ÇARPIM TABLOSU + RASTGELE ÇARPIM TABLOSU ÖNİZLEME KUTUSU
   ========================================================================== */
.home-featured-split {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: stretch;
}

.home-featured-split .hub-card-featured {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 26px;
    height: 100%;
}

.home-featured-split .hub-featured-left {
    align-items: flex-start;
}

.random-mult-card {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 52%, #ffedd5 100%);
    border-radius: 28px;
    padding: 20px 22px;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.random-mult-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.random-mult-title {
    font-size: 1.12rem;
    font-weight: 900;
    color: #9a3412;
    display: flex;
    align-items: center;
    gap: 7px;
}

.random-mult-refresh {
    border: 2px solid #fdba74;
    background: #ffffff;
    color: #c2410c;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, background 0.15s ease;
}

.random-mult-refresh:hover {
    background: #fff7ed;
    transform: scale(1.04);
}

.random-mult-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 10px;
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid #fde68a;
    border-radius: 18px;
    padding: 10px 12px;
}

.random-mult-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #1e293b;
    background: #fffdf7;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.random-mult-row:hover {
    background: #fef3c7;
    transform: translateX(2px);
}

.random-mult-res {
    color: #c2410c;
    font-weight: 900;
}

@media (max-width: 920px) {
    .home-featured-split {
        grid-template-columns: 1fr;
    }
    .home-featured-split .hub-card-featured {
        align-items: center;
        text-align: center;
    }
    .home-featured-split .hub-featured-left {
        align-items: center;
    }
}

@media (max-width: 680px) {
    .nm-header {
        margin-bottom: 18px;
    }
}
