:root {
    --primary: #4CAF50;
    --bg: #F0F4F8;
    --accent: #6C63FF;
    --soft-purple: #EBE9FF;
    --user-bubble: #DCF8C6;
    --brand-grad: linear-gradient(135deg, #0f9d8f 0%, #2d7ff9 52%, #8a63ff 100%);
    --auth-surface: rgba(255, 255, 255, 0.92);
    --auth-border: rgba(255, 255, 255, 0.6);
    --auth-shadow: 0 32px 90px rgba(29, 47, 86, 0.18);
    --auth-ink: #1d2746;
    --auth-muted: #6e7894;
}

html {
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, rgba(82, 138, 255, 0.16) 0%, transparent 28%),
                radial-gradient(circle at bottom right, rgba(85, 180, 220, 0.14) 0%, transparent 24%),
                linear-gradient(180deg, #eef5fb 0%, #dfe8f2 48%, #f8fbff 100%);
    margin: 0;
    padding: 24px 0;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
}

input, textarea, [contenteditable],
.bep-report-text, .ai-eval-text, .therapy-log, .kvkk-modal-body {
    -webkit-user-select: text;
    user-select: text;
}

.app-toast {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    left: 50%;
    transform: translate(-50%, -80px);
    background: linear-gradient(135deg, #22a06b, #16875c);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(22, 135, 92, 0.35);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.3s;
    max-width: 90vw;
    text-align: center;
}
.app-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* ========== GİRİŞ EKRANI ========== */
#start-screen {
    transition: opacity 0.4s ease;
}

#avatar-img { 
    width: 180px; 
    height: 180px; 
    border-radius: 50%; 
    margin-bottom: 20px; 
    border: 6px solid #FFD700; 
    object-fit: cover; 
}

#nameInput { 
    padding: 15px; 
    font-size: 1.5rem; 
    border-radius: 20px; 
    border: 3px solid var(--soft-purple); 
    text-align: center; 
    margin-bottom: 25px; 
    outline: none; 
    width: 280px; 
}

.btn-start { 
    padding: 15px 45px; 
    font-size: 1.5rem; 
    border-radius: 25px; 
    background: var(--primary); 
    color: white; 
    border: none; 
    cursor: pointer; 
    font-weight: bold; 
    transition: 0.3s; 
    box-shadow: 0 5px 15px rgba(76,175,80,0.3); 
}
.btn-start:hover { transform: scale(1.05); background: #45a049; }

/* ========== ANA MENÜ ========== */
#menu-screen {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,0.96);
    border-radius: 48px;
    box-shadow: 0 24px 70px rgba(14, 42, 86, 0.12);
    padding: 42px;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin: 24px auto;
    animation: fadeIn 0.6s ease;
    position: relative;
    border: 1px solid rgba(34, 70, 122, 0.08);
    overflow: hidden;
}

#menu-screen::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -100px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(96,151,253,0.22) 0%, transparent 64%);
    filter: blur(10px);
    pointer-events: none;
}

#menu-screen::after {
    content: '';
    position: absolute;
    bottom: -90px;
    left: -100px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(54,210,181,0.14) 0%, transparent 62%);
    filter: blur(10px);
    pointer-events: none;
}

.menu-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border-radius: 30px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(152, 176, 210, 0.24);
    backdrop-filter: blur(12px);
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
    padding: 28px 28px 22px;
    border-radius: 38px;
    background: linear-gradient(180deg, rgba(33, 73, 148, 0.12) 0%, rgba(255,255,255,0.72) 100%);
    border: 1px solid rgba(67, 96, 176, 0.12);
}

.menu-header img.menu-avatar {
    width: 110px;
    height: 110px;
    border-width: 5px;
}

.menu-header h2 {
    margin: 0;
    font-size: 2.2rem;
    color: #162c43;
    letter-spacing: -0.04em;
}

.menu-subtitle {
    margin: 10px 0 0;
    color: #4b6079;
    font-size: 1rem;
    max-width: 550px;
    line-height: 1.75;
}

.menu-app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.menu-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, #1d3b62 0%, #17314f 100%);
    color: white;
    box-shadow: 0 22px 40px rgba(16, 38, 67, 0.24);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-brand-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.18);
}

.sidebar-brand strong {
    display: block;
    font-size: 1rem;
}

.sidebar-brand span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.72);
    font-size: 0.85rem;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-label {
    color: rgba(255,255,255,0.64);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.sidebar-nav-btn,
.sidebar-link-btn {
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 16px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sidebar-nav-btn {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.88);
}

.sidebar-link-btn {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.76);
}

.sidebar-nav-btn:hover,
.sidebar-link-btn:hover {
    transform: translateX(2px);
}

.sidebar-nav-btn.active {
    background: linear-gradient(135deg, #18a999 0%, #4c8dff 100%);
    color: white;
}

.menu-main-pane {
    min-width: 0;
}

.workspace-section-head.compact {
    margin-bottom: 18px;
}

.learning-area-showcase,
.learning-roadmap-panel {
    margin-top: 20px;
}

.learning-area-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.learning-area-card,
.learning-roadmap-item,
.learning-area-plan-card {
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
    border: 1px solid #d9e6f4;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(44, 74, 110, 0.08);
}

.learning-area-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.learning-area-age,
.learning-area-plan-label {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5c7592;
}

.learning-area-card strong,
.learning-roadmap-item strong,
.learning-area-plan-card strong {
    color: #1f3d61;
    font-size: 1rem;
}

.learning-area-card p,
.learning-roadmap-item p,
.learning-area-plan-card p {
    margin: 0;
    color: #617791;
    line-height: 1.55;
}

.learning-area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.learning-area-list span {
    padding: 8px 10px;
    border-radius: 999px;
    background: #edf5ff;
    color: #36597e;
    font-size: 0.82rem;
    font-weight: 700;
}

.learning-area-screen {
    margin-top: 6px;
    color: #3c5774;
    font-size: 0.9rem;
    font-weight: 700;
}

.learning-roadmap-list,
.learning-area-plan {
    display: grid;
    gap: 14px;
}

.learning-area-plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.learning-area-plan-card.emphasis {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #eefaf5 0%, #f7fffb 100%);
    border-color: #b7dfcb;
}

.account-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f3fbf8 0%, #eef4ff 100%);
    border: 1px solid #d8e6ef;
    color: #27425f;
    min-width: 0;
}

.account-chip-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5a7490;
}

#account-email {
    font-size: 0.96rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.menu-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-ghost-btn,
.menu-cta-btn {
    border: none;
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.menu-ghost-btn {
    background: #eef3fb;
    color: #47607d;
}

.menu-ghost-btn:hover,
.menu-cta-btn:hover {
    transform: translateY(-1px);
}

.logout-btn {
    background: #fff1f1;
    color: #c14444;
}

.menu-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    object-fit: cover;
}

.menu-header h2 { margin: 0; font-size: 2rem; color: #192d47; letter-spacing: -0.03em; }
.menu-subtitle { margin: 8px 0 0; color: #4e6279; font-size: 1rem; max-width: 560px; line-height: 1.65; }

.menu-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 18px 0 28px;
}

.menu-action-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    text-align: left;
    padding: 22px;
    border-radius: 28px;
    min-height: 140px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    border: 1px solid rgba(34, 64, 114, 0.12);
}

.menu-action-card strong {
    display: block;
    margin-bottom: 6px;
    color: #1f3653;
    font-size: 1.05rem;
}

.menu-action-card p {
    margin: 0;
    color: #5e718a;
    line-height: 1.6;
    font-size: 0.95rem;
}

.action-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(70, 127, 226, 0.12);
    display: grid;
    place-items: center;
    font-size: 1.55rem;
}

.menu-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(38, 84, 140, 0.11);
}

.menu-ghost-btn.menu-action-card {
    background: #ffffff;
}

.menu-cta-btn.menu-action-card {
    background: linear-gradient(135deg, #4f86ff 0%, #62b4ff 100%);
    color: white;
}

.menu-cta-btn.menu-action-card .action-card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.menu-cta-btn.menu-action-card strong,
.menu-cta-btn.menu-action-card p {
    color: white;
}

.menu-cta-btn.menu-action-card:hover {
    box-shadow: 0 24px 50px rgba(41, 108, 220, 0.2);
}

.menu-cta-btn.menu-action-card p {
    color: rgba(255,255,255,0.9);
}

.menu-ghost-btn.menu-action-card:hover {
    background: #f4f8ff;
}

.menu-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}

.menu-insight-card {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid #dbe7f3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.menu-insight-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #6b7b93;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.menu-insight-card strong {
    display: block;
    color: #1f3653;
    font-size: 1.05rem;
}

.menu-insight-card p {
    margin: 8px 0 0;
    color: #6b7b93;
    line-height: 1.55;
    font-size: 0.9rem;
}

.menu-workspace-nav {
    display: none;
}

.workspace-tab {
    border: 1px solid #d7e3f2;
    background: #f4f8fd;
    color: #4e6280;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.workspace-tab:hover {
    transform: translateY(-1px);
    border-color: #b8cdef;
}

.workspace-tab.active {
    background: linear-gradient(135deg, #10998d 0%, #2d7ff9 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(45, 127, 249, 0.18);
}

.menu-workspace-section {
    margin: 0 0 22px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid #dbe7f3;
    box-shadow: 0 16px 30px rgba(34, 72, 122, 0.08);
}

.workspace-section-head {
    margin: 0 0 18px;
}

.workspace-section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e9f5f2;
    color: #0f8a73;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.workspace-section-head h3 {
    margin: 0;
    color: #1f3653;
    font-size: 1.28rem;
}

.workspace-section-head p {
    margin: 8px 0 0;
    color: #6b7b93;
    line-height: 1.6;
}

.students-section-actions {
    display: flex;
    gap: 12px;
    margin: 0 0 18px;
    flex-wrap: wrap;
}

.onboarding-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 0 24px;
    padding: 24px;
    box-sizing: border-box;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(45,127,249,0.12) 0, rgba(45,127,249,0) 30%),
        linear-gradient(135deg, #ffffff 0%, #f6fbff 52%, #f4fbf7 100%);
    border: 1px solid #dce8f2;
    box-shadow: 0 18px 40px rgba(30, 61, 114, 0.08);
}

.onboarding-copy h3 {
    margin: 10px 0 10px;
    font-size: 1.45rem;
    color: #223a58;
}

.onboarding-copy p {
    margin: 0;
    color: #60708a;
    line-height: 1.7;
}

.onboarding-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e7f6ef;
    color: #16805e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.onboarding-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.88);
    border: 1px solid #e3edf7;
}

.onboarding-step strong {
    color: #23405f;
    font-size: 0.95rem;
}

.onboarding-step span {
    color: #6f7e95;
    line-height: 1.5;
    font-size: 0.9rem;
}

.menu-cta-btn {
    background: linear-gradient(135deg, #10998d 0%, #2d7ff9 100%);
    color: white;
    box-shadow: 0 14px 28px rgba(45, 127, 249, 0.24);
}

.menu-cards {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    align-items: start;
}

.city-scene-shell {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.city-scene-copy {
    padding: 30px;
    border-radius: 32px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef7ff 100%);
    border: 1px solid #d6e8f6;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.city-scene-copy h3 {
    margin: 0 0 12px;
    color: #1f3b63;
    font-size: 1.75rem;
    line-height: 1.2;
}

.city-scene-copy p {
    margin: 0;
    color: #5b728f;
    line-height: 1.8;
    font-size: 0.98rem;
}

.city-scene {
    position: relative;
    min-height: 430px;
    padding: 24px;
    border-radius: 32px;
    background: linear-gradient(180deg, #f6fbff 0%, #eef6ff 100%);
    border: 1px solid #d6e6f1;
    overflow: hidden;
}

.city-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
}

.city-option-card {
    text-align: left;
    border: 1px solid #d8e5f3;
    border-radius: 28px;
    padding: 22px;
    background: #ffffff;
    color: #233859;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.city-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(40, 84, 145, 0.12);
    border-color: #a4c2fc;
    background: #f7fbff;
}

.city-option-card.active {
    border-color: #4c8dff;
    box-shadow: 0 16px 28px rgba(76, 141, 255, 0.18);
    background: linear-gradient(180deg, #eef6ff 0%, #f7faff 100%);
}

.city-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #eef5ff;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.city-option-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.city-option-card p {
    margin: 0;
    color: #617791;
    line-height: 1.5;
}

.city-scene-overlay {
    display: none;
}

.city-scene-overlay p {
    margin: 6px 0 0;
    color: #57708f;
    font-size: 0.84rem;
}

.city-scene-badge {
    display: none;
}

.city-scene-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.city-scene-actions button {
    min-height: 72px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid rgba(37, 92, 166, 0.12);
    background: #f7fbff;
    color: #223a5a;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.city-scene-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(40, 84, 145, 0.12);
    background: #eef5ff;
}

.therapy-entry-card .city-scene,
.therapy-entry-card .city-focus-panel {
    display: none;
}

.therapy-entry-card .city-scene-actions {
    margin-top: 18px;
}

.therapy-city-shell {
    margin-top: 18px;
}

#therapyCityHost {
    width: 100%;
}

.city-focus-panel {
    grid-column: 1 / -1;
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid #d6e6f4;
    background: linear-gradient(135deg, #f7fbff 0%, #edf6ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.city-focus-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7f2ff;
    color: #2d6fc4;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.city-focus-panel h4 {
    margin: 0 0 8px;
    color: #1f3b5c;
    font-size: 1.2rem;
}

.city-focus-panel p {
    margin: 0;
    color: #5b738f;
    line-height: 1.6;
}

.city-focus-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.city-focus-goals span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #35587f;
    font-size: 0.84rem;
    font-weight: 700;
    border: 1px solid #d7e5f3;
}

.city-scene-canvas,
.city-sun,
.city-cloud,
.city-skyline,
.city-road,
.city-building {
    display: none;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guide-card,
.activity-playbook-card {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid #dbe7f3;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.guide-card-accent {
    background: linear-gradient(180deg, #f4fbf7 0%, #eef7ff 100%);
}

.guide-card-step {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f5ef;
    color: #118368;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.guide-card h4,
.activity-playbook-card strong {
    display: block;
    margin: 0 0 8px;
    color: #1f3653;
    font-size: 1rem;
}

.guide-card p,
.activity-playbook-card p {
    margin: 0;
    color: #6b7b93;
    line-height: 1.6;
    font-size: 0.92rem;
}

.activity-playbook {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.menu-card {
    flex: 1;
    border-radius: 28px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }

.therapy-card { background: var(--soft-purple); border-color: var(--accent); }
.therapy-card h3 { color: var(--accent); }
.therapy-card p { color: #6666aa; }

.menu-card-icon { font-size: 3rem; margin-bottom: 12px; }
.menu-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.menu-card p { margin: 0; font-size: 0.9rem; line-height: 1.4; }

.menu-card-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    background: var(--accent);
    color: white;
}

.module-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.module-strip-card {
    border: 1px solid #d8e6f3;
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-align: left;
}

.module-strip-card strong {
    display: block;
    margin: 0 0 8px;
    color: #1f3653;
    font-size: 1rem;
}

.module-strip-card p {
    margin: 0;
    color: #6b7b93;
    line-height: 1.55;
    font-size: 0.88rem;
}

.module-strip-badge {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #35608d;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.module-strip-soon {
    opacity: 0.86;
}

/* ========== GERİ BUTONU ========== */
.btn-back {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.85);
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 10px 18px;
    min-height: 44px;
    font-size: 0.95rem;
    cursor: pointer;
    color: #555;
    transition: 0.15s;
    z-index: 10;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
}
.btn-back:hover { background: #f0f0f0; }
.btn-back:active { transform: scale(0.96); background: #e8e8e8; }

/* ========== KONUŞMA TERAPİSTİ ========== */
#game-container { 
    display: none; 
    gap: 20px; 
    width: 95%; 
    max-width: 1200px; 
    height: 90vh; 
    animation: fadeIn 0.8s ease;
    position: relative;
}

.main-card, .side-card { 
    background: white; 
    border-radius: 40px; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.05); 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    position: relative;
}
.main-card { flex: 2.5; } 
.side-card { flex: 1.2; align-items: center; overflow: hidden; }

.side-avatar {
    width: 120px; height: 120px; border-radius: 50%;
    margin-bottom: 15px; border: 4px solid var(--soft-purple); object-fit: cover;
}

#avatarCanvas {
    width: 160px;
    height: 160px;
    display: block;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 4px solid var(--soft-purple);
}

.avatar-lipsync-wrap {
    position: relative;
    display: inline-block;
    animation: avatarBreathe 3.6s ease-in-out infinite;
}

.narrator-avatar-wrap {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
}

.lipsync-overlay {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    pointer-events: none;
}

.eye-layer {
    position: absolute;
    top: 34%;
    left: 50%;
    width: 42%;
    height: 18%;
    transform: translateX(-50%);
    pointer-events: none;
}

.eye {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2b2b2b;
    transform-origin: center;
}

.eye::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #2b2b2b;
    transform-origin: center;
    transition: transform 0.08s linear;
}

.eye-layer.is-blinking .eye::after {
    transform: scaleY(0.08);
}

.eye-left { left: 28%; }
.eye-right { right: 28%; }

.live-avatar {
    transition: transform 0.2s ease;
}

.avatar-lipsync-wrap[data-viseme="open"] .live-avatar {
    transform: translateY(1px) scaleY(0.995);
}

.avatar-lipsync-wrap[data-viseme="mid"] .live-avatar {
    transform: translateY(0.5px);
}

.emotion-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    transition: box-shadow 0.4s ease;
}

.emotion-happy { box-shadow: 0 0 20px 4px rgba(255, 220, 0, 0.35); }
.emotion-excited {
    box-shadow: 0 0 30px 8px rgba(255, 170, 0, 0.5);
    animation: excitedPulse 0.5s ease-in-out infinite alternate;
}
.emotion-sad { box-shadow: 0 0 20px 4px rgba(100, 150, 255, 0.3); }
.emotion-thinking { box-shadow: 0 0 15px 3px rgba(180, 100, 255, 0.25); }
.emotion-neutral { box-shadow: 0 0 0 0 rgba(0,0,0,0); }

.media-box {
    width: 100%;
    flex: 1;
    min-height: 0;
    background: #000;
    border-radius: 25px;
    overflow: hidden;
    margin-top: 8px;
    position: relative;
}
video { width: 100%; height: 100%; object-fit: cover; }

.pexels-credit {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    background: rgba(0,0,0,0.28);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    pointer-events: auto;
    transition: color 0.15s;
}
.pexels-credit:hover { color: rgba(255,255,255,0.95); }

/* ── Konu Seçim Overlay ── */
.topic-overlay {
    position: absolute; inset: 0; z-index: 100;
    background: rgba(240, 244, 248, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    padding: 24px;
    border-radius: 40px;
    animation: fadeInModal 0.3s ease-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.topic-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    box-shadow: 0 25px 60px rgba(29, 47, 86, 0.12), 0 5px 15px rgba(29, 47, 86, 0.04);
    padding: 40px 32px 32px;
    width: 100%; max-width: 580px;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    position: relative;
    box-sizing: border-box;
    margin: auto;
    animation: scaleInModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}
.topic-back-btn {
    position: absolute; top: 20px; left: 20px;
    background: rgba(240, 244, 255, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.1);
    color: #4a5568;
    font-size: 0.88rem; font-weight: 700; cursor: pointer;
    padding: 6px 14px; border-radius: 99px;
    display: flex; align-items: center; gap: 6px;
    transition: all 0.2s ease;
}
.topic-back-btn:hover {
    background: #6C63FF; color: #fff; border-color: #6C63FF;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
}
.topic-back-btn:active {
    transform: scale(0.95) translateX(-2px);
}
.back-arrow { font-size: 1.1rem; line-height: 1; }

.topic-header-accent {
    position: relative;
    width: 76px; height: 76px;
    margin-bottom: 2px;
    display: flex; align-items: center; justify-content: center;
}
.topic-icon-ring {
    position: absolute; inset: -6px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(118, 75, 162, 0.15));
    animation: pulseIcon 3s infinite ease-in-out;
    z-index: 1;
}
.topic-card-icon {
    width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(135deg, #6C63FF 0%, #764ba2 100%);
    box-shadow: 0 10px 24px rgba(108, 99, 255, 0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: white;
    z-index: 2;
}

.topic-card-title {
    font-size: 1.5rem; font-weight: 800; color: #1d2746;
    margin: 0; text-align: center;
    letter-spacing: -0.3px;
}
.topic-card-sub {
    font-size: 0.92rem; color: #6e7894; margin: -10px 0 4px; text-align: center;
    max-width: 420px; line-height: 1.4;
}

/* Input Container & Clear button styling */
.topic-input-wrapper {
    position: relative; width: 100%;
    display: flex; align-items: center;
}
.topic-input-icon {
    position: absolute; left: 18px;
    font-size: 1.1rem; color: #a0aec0;
    pointer-events: none;
}
.topic-input {
    width: 100%; box-sizing: border-box;
    padding: 14px 44px 14px 46px; border: 2.5px solid #edf2f7;
    border-radius: 18px; font-size: 1.05rem; color: #1d2746;
    outline: none; transition: all 0.2s ease;
    background: #f7fafc;
    font-weight: 500;
}
.topic-input::placeholder { color: #a0aec0; }
.topic-input:focus {
    border-color: #6C63FF; background: #fff;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
}
.topic-input-clear {
    position: absolute; right: 16px;
    background: none; border: none;
    font-size: 0.9rem; color: #a0aec0;
    cursor: pointer; display: none;
    padding: 4px; border-radius: 50%;
    line-height: 1; transition: all 0.15s;
}
.topic-input-clear:hover {
    color: #4a5568; background: #edf2f7;
}
.topic-input:not(:placeholder-shown) ~ .topic-input-clear {
    display: block;
}

/* Suggestion Chips */
.topic-suggestions {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    width: 100%; margin-top: -4px;
}
.topic-chip {
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 24px;
    padding: 8px 16px; font-size: 0.88rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex; align-items: center; gap: 6px;
}
.topic-chip.chip-shopping { --chip-bg: #fff1e6; --chip-color: #d97706; }
.topic-chip.chip-school { --chip-bg: #e0f2fe; --chip-color: #0284c7; }
.topic-chip.chip-football { --chip-bg: #dcfce7; --chip-color: #16a34a; }
.topic-chip.chip-friendship { --chip-bg: #fae8ff; --chip-color: #b55fe6; }
.topic-chip.chip-food { --chip-bg: #fef9c3; --chip-color: #b28004; }
.topic-chip.chip-emotions { --chip-bg: #ccfbf1; --chip-color: #0d9488; }

.topic-chip {
    background: var(--chip-bg, #f0f2f8);
    color: var(--chip-color, #5a6a8a);
}
.topic-chip:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    background: var(--chip-bg, #e2eaf8);
}
.topic-chip:active {
    transform: scale(0.95);
}

/* Difficulty Levels */
.topic-levels {
    width: 100%;
    display: flex; flex-direction: column;
    gap: 12px; margin-top: 4px;
}
.topic-level-title {
    margin: 0; color: #50607c;
    font-size: 0.92rem; font-weight: 800;
    text-align: left; align-self: stretch;
    letter-spacing: 0.2px;
}
.topic-level-options {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.topic-level-btn {
    width: 100%; border: 2.5px solid #edf2f7;
    border-radius: 20px; background: #ffffff;
    color: #2d3a5c; padding: 18px 12px;
    text-align: center; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative; box-sizing: border-box;
}
.topic-level-btn:hover {
    transform: translateY(-4px);
    border-color: #cbd5e0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.topic-level-btn.active {
    border-color: #6C63FF;
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
    box-shadow: 0 12px 25px rgba(108, 99, 255, 0.15);
}
.level-icon-wrapper {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; background: #f7fafc;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}
.topic-level-btn.active .level-icon-wrapper {
    background: #6C63FF; color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(108, 99, 255, 0.3);
}
.level-btn-content {
    display: flex; flex-direction: column; gap: 4px;
    align-items: center;
}
.topic-level-btn strong {
    font-size: 0.95rem; font-weight: 800; color: #2d3748;
    transition: color 0.2s;
}
.topic-level-btn.active strong { color: #553c9a; }
.topic-level-btn span {
    color: #718096; font-size: 0.78rem; line-height: 1.35;
    transition: color 0.2s;
}
.topic-level-btn.active span { color: #6b46c1; }

@media (max-width: 520px) {
    .topic-level-options {
        grid-template-columns: 1fr;
    }
    .topic-level-btn {
        flex-direction: row;
        text-align: left;
        padding: 12px 16px;
        align-items: center;
        gap: 14px;
    }
    .level-icon-wrapper {
        width: 38px; height: 38px;
        font-size: 1.2rem;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .level-btn-content {
        align-items: flex-start;
    }
    .topic-card {
        padding: 28px 20px 20px;
        gap: 14px;
    }
    .topic-overlay {
        padding: 12px;
    }
    .topic-back-btn {
        top: 14px; left: 14px;
    }
}

.topic-error {
    width: 100%;
    background: #fff5f5;
    border: 1.5px solid #feb2b2;
    color: #c53030;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
}
.topic-error.shake {
    animation: topicErrorShake 0.4s ease;
}
@keyframes topicErrorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
}

/* Start and Loading indicators */
.topic-start-btn {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, #6C63FF 0%, #8a63ff 100%);
    color: #fff; border: none; border-radius: 18px;
    font-size: 1.1rem; font-weight: 800; cursor: pointer;
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; align-items: center; justify-content: center;
    gap: 8px; letter-spacing: 0.5px; box-sizing: border-box;
    margin-top: 6px;
    position: sticky;
    bottom: 8px;
    z-index: 5;
}
.topic-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(108, 99, 255, 0.45);
    background: linear-gradient(135deg, #7b73ff 0%, #9978ff 100%);
}
.topic-start-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.25);
}

@media (max-width: 768px) and (max-height: 920px) {
    .topic-header-accent { width: 58px; height: 58px; margin-bottom: 0; }
    .topic-card-icon { font-size: 1.7rem; }
    .topic-card-title { font-size: 1.3rem; }
    .topic-card-sub { margin: -8px 0 0; font-size: 0.88rem; }
    .topic-card { gap: 12px; }
    .topic-levels { gap: 10px; }
    .topic-level-options { gap: 10px; }
    .topic-level-btn { padding: 10px 14px; }
    .topic-input { padding: 12px 44px 12px 46px; font-size: 1rem; }
}

.topic-loading {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 14px;
    color: #6e7894; font-size: 0.95rem; font-weight: 700;
    width: 100%; padding: 12px 0 6px;
    animation: fadeInModal 0.3s ease;
}
.topic-spinner {
    width: 32px; height: 32px;
    border: 3.5px solid rgba(108, 99, 255, 0.1);
    border-top-color: #6C63FF; border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.therapy-topic-badge {
    display: inline-block; background: #ebe9ff; color: #6c5ce7;
    border-radius: 20px; padding: 5px 14px;
    font-size: 0.85rem; font-weight: 700; margin: 44px 0 4px;
    align-self: flex-start;
}
.therapy-topic-badge:empty { display: none; }
#game-container { position: relative; }

.therapy-category-bar {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.therapy-category-bar::-webkit-scrollbar { display: none; }

.therapy-category-btn {
    flex: 0 0 auto;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    background: #f0f4fa;
    color: #5a6a8a;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s, transform 0.15s;
}

.therapy-category-btn:hover {
    background: #e2eaf8;
    transform: translateY(-1px);
}

.therapy-category-btn.active {
    background: linear-gradient(135deg, #4a7bff, #7b5ea7);
    color: #fff;
    box-shadow: 0 3px 10px rgba(74,123,255,0.3);
}

.therapy-category-summary {
    display: none;
}

.question-bar { 
    margin: 15px 0; padding: 16px 20px; 
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px; 
    border: 1px solid rgba(139, 92, 246, 0.2); 
    font-size: 1.25rem; font-weight: 700; text-align: center; 
    color: #4f46e5; 
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.05);
}

#chat-bubbles { 
    width: 100%; flex-grow: 1; overflow-y: auto; 
    display: flex; flex-direction: column; gap: 12px; 
    padding: 12px; border-top: 1px solid rgba(0,0,0,0.06); 
    background: rgba(250, 250, 252, 0.4);
    border-radius: 16px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

.bubble { 
    padding: 12px 18px; 
    max-width: 85%; font-size: 1rem; line-height: 1.45; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    animation: popBubble 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.ai-bubble { 
    background: linear-gradient(135deg, #f5f3ff, #ede9fe); 
    color: #5b21b6; 
    align-self: flex-start; 
    border-radius: 4px 20px 20px 20px; 
    border: 1px solid rgba(139, 92, 246, 0.12);
}
.user-bubble { 
    background: linear-gradient(135deg, #f0fdf4, #dcfce7); 
    color: #14532d; 
    align-self: flex-end; 
    border-radius: 20px 4px 20px 20px; 
    border: 1px solid rgba(34, 197, 94, 0.12);
}

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

.btns { display: flex; gap: 20px; justify-content: center; align-items: center; }

.btn-mic {
    width: 100px; height: 100px; border-radius: 50%; border: none;
    background: var(--primary); color: white; font-size: 3rem;
    cursor: pointer; transition: 0.3s; display: flex;
    align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.35);
}
.btn-mic:disabled { background: #ccc; opacity: 0.6; cursor: not-allowed; }
.listening { background: #FF5252 !important; }
.btn-mic.listening {
    opacity: 1;
    animation: mic-listen-pulse 1.2s ease-in-out infinite;
    box-shadow: 0 8px 24px rgba(255, 82, 82, 0.45);
}
@keyframes mic-listen-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.mic-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-next {
    width: 70px; height: 70px; border-radius: 20px; border: none; 
    font-size: 1.8rem; cursor: pointer; background: white; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; 
}
.btn-next:hover { background-color: #EBE9FF; transform: translateY(-5px) scale(1.1) rotate(5deg); }
.pulse-anim { animation: pulse-btn 1.2s infinite; background: #FFD700 !important; }

#info { text-align: center; margin-top: 15px; font-weight: bold; color: #888; min-height: 28px; }

/* Thinking Loader */
.thinking-loader {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}
.thinking-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: thinkingBounce 1.4s infinite ease-in-out both;
}
.thinking-dot:nth-child(1) { animation-delay: -0.32s; }
.thinking-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes thinkingBounce {
    0%, 80%, 100% { transform: scale(0.3); opacity: 0.3; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: auto;
    padding: 16px 0 8px;
}
.footer a { color: #6C63FF; text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* ========== MENÜ RAPOR KARTI ========== */
.report-card { background: #EEF6FF; border-color: #3B82F6; }
.report-card h3 { color: #3B82F6; }
.report-card p { color: #5577aa; }
.report-badge { background: #3B82F6 !important; }

/* ========== VELİ RAPORU / ANALİZ SEKMELERİ ========== */
.report-tabs {
    display: flex;
    gap: 8px;
    margin: 4px 0 4px;
}
.report-tab-btn {
    flex: 1;
    padding: 12px 10px;
    border: 2px solid #e4edf8;
    border-radius: 14px;
    background: #fff;
    color: #6b7b93;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.report-tab-btn.active {
    background: #6C63FF;
    border-color: #6C63FF;
    color: #fff;
    box-shadow: 0 6px 16px rgba(108,99,255,0.28);
}

#reportTabPanel {
    width: 100%;
}

.report-wrapper {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

/* Rapor başlığı */
.report-header {
    display: flex;
    align-items: center;
    gap: 18px;
    background: white;
    border-radius: 28px;
    padding: 24px 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}
.report-avatar {
    width: 72px; height: 72px;
    border-radius: 50%; border: 4px solid #FFD700; object-fit: cover; flex-shrink: 0;
}
.report-title-block { flex: 1; }
.report-title-block h2 { margin: 0 0 4px; color: #3B82F6; font-size: 1.4rem; }
.report-title-block p { margin: 0; color: #888; font-size: 0.95rem; }

.btn-print {
    padding: 10px 20px;
    border-radius: 16px;
    border: 2px solid #3B82F6;
    background: white;
    color: #3B82F6;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.btn-print:hover { background: #3B82F6; color: white; }

/* Özet istatistik kartları */
.report-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.stat-card {
    background: white;
    border-radius: 22px;
    padding: 20px 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.stat-icon { font-size: 1.8rem; margin-bottom: 8px; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: #3B82F6; line-height: 1; }
.stat-label { font-size: 0.78rem; color: #999; margin-top: 6px; font-weight: 500; }

/* Rapor bölümleri */
.report-section {
    background: white;
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.report-section h3 {
    margin: 0 0 16px;
    color: #333;
    font-size: 1.05rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}
.report-empty { color: #bbb; font-style: italic; margin: 0; }

.city-session-summary {
    display: grid;
    gap: 14px;
}

.city-session-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #edf7ff 0%, #f6fbff 100%);
    border: 1px solid #d7e8f6;
}

.city-session-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dff0ff;
    color: #2461a4;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.city-session-hero strong {
    display: block;
    color: #1f446c;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.city-session-hero p {
    margin: 0;
    color: #5d7591;
}

.city-session-meta {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    color: #2b5f9d;
    font-weight: 800;
    white-space: nowrap;
}

.city-session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.city-session-card {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #d9e6f3;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.city-session-card h4 {
    margin: 0 0 8px;
    color: #24466c;
    font-size: 1rem;
}

.city-session-card p {
    margin: 0 0 10px;
    color: #5b7490;
    font-size: 0.9rem;
}

.city-session-card span {
    display: block;
    color: #6b8199;
    line-height: 1.55;
    font-size: 0.84rem;
}

/* Terapi logu */
.therapy-log { display: flex; flex-direction: column; gap: 10px; }
.therapy-entry {
    background: #f8f9ff;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #555;
    border-left: 3px solid var(--accent);
}
.therapy-entry .therapy-q { font-weight: 700; color: var(--accent); margin-bottom: 4px; font-size: 0.85rem; }

/* Takvimli geçmiş */
.report-history-section {
    display: grid;
    gap: 18px;
}

.report-history-header h3 {
    margin-bottom: 8px;
}

.report-history-header p {
    margin: 0;
    color: #72819a;
    line-height: 1.6;
}

.history-calendar-card {
    border-radius: 20px;
    border: 1px solid #e3edf7;
    background: linear-gradient(180deg, #f9fbff 0%, #f3f8ff 100%);
    padding: 18px;
}

.history-calendar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #264a7a;
}

.calendar-nav-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: white;
    color: #3b82f6;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.14);
}

.history-weekdays,
.history-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.history-weekdays {
    margin-bottom: 10px;
}

.history-weekdays span {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: #90a0b7;
    text-transform: uppercase;
}

.calendar-day,
.calendar-day-empty {
    min-height: 64px;
    border-radius: 16px;
}

.calendar-day {
    border: 1px solid #dbe7f5;
    background: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
    color: #355070;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.calendar-day:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(59, 130, 246, 0.12);
}

.calendar-day-empty {
    background: rgba(255,255,255,0.35);
    border: 1px dashed rgba(178, 194, 215, 0.5);
}

.calendar-day-number {
    font-size: 0.96rem;
    font-weight: 800;
}

.calendar-day-meta {
    font-size: 0.74rem;
    color: #7a8aa3;
}

.calendar-day.used {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.calendar-day.used .calendar-day-number {
    color: #2563eb;
}

.calendar-day.selected {
    border-color: #2563eb;
    background: linear-gradient(135deg, #2d7ff9 0%, #5aa0ff 100%);
    color: white;
    box-shadow: 0 16px 24px rgba(45, 127, 249, 0.28);
}

.calendar-day.selected .calendar-day-meta {
    color: rgba(255,255,255,0.86);
}

.history-day-details {
    display: grid;
    gap: 14px;
}

.history-detail-card {
    border-radius: 20px;
    background: #f8fbff;
    border: 1px solid #e1ebf7;
    padding: 18px;
}

.history-detail-card h4 {
    margin: 0 0 8px;
    color: #22436c;
    font-size: 1rem;
}

.history-detail-meta {
    color: #6f7f97;
    font-size: 0.9rem;
    line-height: 1.7;
}

.history-session-list {
    display: grid;
    gap: 12px;
}

.history-session-item {
    border-radius: 18px;
    border: 1px solid #e1ebf7;
    background: white;
    padding: 14px 16px;
}

.history-session-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.history-session-top strong {
    color: #294567;
}

.history-session-time {
    font-size: 0.8rem;
    color: #8b9ab0;
    font-weight: 700;
}

.history-session-summary {
    color: #66768f;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* AI Değerlendirme */
.ai-section { background: linear-gradient(135deg, #EBE9FF 0%, #f0f8ff 100%); border: 2px solid var(--soft-purple); }
.ai-eval-loading {
    display: flex; align-items: center; gap: 14px;
    color: var(--accent); font-size: 0.95rem; font-weight: 500;
}
.eval-spinner {
    width: 24px; height: 24px;
    border: 3px solid #ddd;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
.ai-eval-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
    white-space: pre-wrap;
}

.report-footer-note {
    text-align: center;
    color: #bbb;
    font-size: 0.82rem;
    padding-bottom: 10px;
}

/* ========== YAZDIRMA ========== */
@media print {
    body { background: white; overflow: visible; }
    #analysis-screen { min-height: auto; padding: 0; }
    .btn-back, .btn-print, .report-tabs, #analysisTabPanel { display: none !important; }
    .report-wrapper { margin-top: 10px; }
    #reportTabPanel { display: flex !important; }
}

/* ========== TERAPI İLERLEME ÇUBUĞU ========== */
.therapy-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 2px;
    margin-bottom: 4px;
}

.therapy-progress-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #7a90aa;
    white-space: nowrap;
    min-width: 64px;
}

.therapy-progress-track {
    flex: 1;
    height: 6px;
    background: #dce8f6;
    border-radius: 999px;
    overflow: hidden;
}

.therapy-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10998d 0%, #2d7ff9 100%);
    border-radius: 999px;
    transition: width 0.5s ease;
    width: 0%;
}

/* ========== SORU ÇUBUĞU SARICI + TEKRAR BUTONU ========== */
.question-bar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.question-bar-wrap .question-bar {
    margin: 0;
    flex: 1;
    border-radius: 15px;
    border: 3px solid var(--accent);
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    color: var(--accent);
    padding: 15px 50px 15px 15px;
    background: #f9f9f9;
}

.btn-reread {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 2px solid var(--accent);
    background: white;
    color: var(--accent);
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.15);
}

.btn-reread:hover {
    background: var(--soft-purple);
    transform: scale(1.08);
}

/* ========== KATEGORİ EMOJI ========== */
.therapy-cat-emoji {
    font-size: 1.1rem;
    margin-right: 2px;
}

.therapy-category-btn {
    font-size: 0.88rem;
    padding: 14px 10px;
}

/* ========== AI MOD BUTONLARI ========== */
.ai-mode-btns {
    display: flex;
    gap: 8px;
    padding: 10px 0 4px;
    width: 100%;
    flex-wrap: wrap;
}

.ai-mode-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 14px;
    border: 2px solid #dbe5f2;
    background: #f5f9ff;
    color: #3a5a7c;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.ai-mode-btn:hover {
    transform: translateY(-1px);
    border-color: #6c8fff;
    background: #eef5ff;
}

.ai-mode-simplify {
    border-color: #22c55e;
    color: #157a52;
    background: #f0fdf4;
}

.ai-mode-simplify:hover {
    background: #dcfce7;
}

/* ========== ANİMASYONLAR ========== */
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes pulse-btn { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatAnim { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes excitedPulse {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
}
@keyframes avatarBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ========== MOBİL ========== */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        align-items: flex-start;
        padding: 10px;
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
        min-height: 100vh;
    }

    #menu-screen { width: 100%; max-width: none; padding: 25px 20px; margin-top: 10px; }
    .menu-topbar { flex-direction: column; align-items: stretch; }
    .menu-topbar-actions { width: 100%; flex-direction: column; }
    .menu-ghost-btn, .menu-cta-btn { width: 100%; }
    .menu-app-shell { grid-template-columns: 1fr; }
    .menu-sidebar { position: static; }
    .menu-header { flex-direction: column; text-align: center; }
    .menu-workspace-nav { flex-direction: column; }
    .workspace-tab { width: 100%; }
    .students-section-actions { flex-direction: column; }
    .menu-insights { grid-template-columns: 1fr; }
    .student-detail-head { flex-direction: column; }
    .student-detail-grid,
    .student-detail-meta-row { grid-template-columns: 1fr; }
    .menu-cards { flex-direction: column; }
    .city-scene-shell { grid-template-columns: 1fr; }
    .city-scene { min-height: auto; }
    .city-option-grid { grid-template-columns: 1fr; }
    .city-focus-panel,
    .city-session-hero { padding: 18px; }
    .city-session-hero { flex-direction: column; align-items: flex-start; }
    .module-strip { grid-template-columns: 1fr; }
    .guide-grid,
    .activity-playbook { grid-template-columns: 1fr; }
    .menu-card { padding: 22px 16px; }
    .onboarding-panel { padding: 18px; }
    .onboarding-steps { grid-template-columns: 1fr; }

    #game-container { flex-direction: column; height: auto; width: 100%; gap: 15px; margin-top: 0; }
    .main-card, .side-card { flex: none; width: 100%; border-radius: 20px; padding: 15px; box-sizing: border-box; }
    .main-card { order: 1; }
    .side-card { order: 2; max-height: none; overflow: visible; }
    .therapy-category-bar { margin-top: 36px; }
    .media-box { margin-top: 10px; height: 24vh; min-height: 130px; flex: none; }
    #avatarCanvas { width: 96px; height: 96px; margin-bottom: 6px; }
    #chat-bubbles { max-height: 30vh; }
    .question-bar { font-size: 1.1rem; padding: 10px; }
    .btn-mic { width: 70px; height: 70px; font-size: 2.2rem; }
    .question-bar-wrap .question-bar { font-size: 1.05rem; }
    .ai-mode-btns { gap: 6px; }
    .btn-next { width: 55px; height: 55px; font-size: 1.5rem; }
    #info { font-size: 0.9rem; margin-top: 10px; }
    #start-screen { width: 90%; padding: 25px 20px; margin-top: 20px; }
    #avatar-img { width: 120px; height: 120px; }
    #start-screen h1 { font-size: 1.6rem; }

    .report-stats { grid-template-columns: repeat(2, 1fr); }
    .report-header { flex-wrap: wrap; gap: 12px; }
    .btn-print { width: 100%; text-align: center; }
    .history-weekdays,
    .history-calendar-grid { gap: 8px; }
    .calendar-day,
    .calendar-day-empty { min-height: 56px; }
    .history-session-top { flex-direction: column; align-items: flex-start; }
}

.auth-portal {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.92) 0, rgba(255,255,255,0) 28%),
        radial-gradient(circle at 85% 12%, rgba(138,99,255,0.22) 0, rgba(138,99,255,0) 26%),
        linear-gradient(140deg, #f6fbff 0%, #e8f0ff 38%, #eef6ef 100%);
}

.auth-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
    width: min(1020px, 100%);
    min-height: 620px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 44px 32px;
    color: white;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.32) 0, rgba(255,255,255,0) 34%),
        linear-gradient(160deg, #0f9d8f 0%, #2d7ff9 55%, #7856ff 100%);
}

.visual-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.55;
}

.visual-orb-one {
    width: 220px;
    height: 220px;
    top: -60px;
    right: -40px;
    background: rgba(255, 255, 255, 0.14);
}

.visual-orb-two {
    width: 180px;
    height: 180px;
    bottom: 34px;
    left: -54px;
    background: rgba(255, 209, 102, 0.2);
}

.visual-badge {
    position: absolute;
    top: 26px;
    left: 26px;
    z-index: 2;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.24);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

#avatar-img {
    width: 184px;
    height: 184px;
    margin-bottom: 0;
    border: 8px solid rgba(255,255,255,0.82);
    box-shadow: 0 22px 45px rgba(16, 33, 77, 0.24);
    position: relative;
    z-index: 2;
}

.visual-glow {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    filter: blur(66px);
}

.visual-text {
    position: relative;
    z-index: 2;
    max-width: 260px;
}

.visual-text h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.visual-text p {
    margin: 10px 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
}

.auth-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 56px;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at top right, rgba(138,99,255,0.08) 0, rgba(138,99,255,0) 34%),
        linear-gradient(180deg, rgba(255,255,255,0.9) 0%, #ffffff 100%);
}

.auth-eyebrow {
    margin: 0 0 12px;
    color: #0f9d8f;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#auth-main-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1;
    color: var(--auth-ink);
    letter-spacing: -0.04em;
}

.auth-sub {
    margin: 14px 0 28px;
    max-width: 420px;
    color: var(--auth-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
    margin-bottom: 26px;
    border-radius: 18px;
    background: #eef3fb;
    border: 1px solid #dde7f5;
}

.tab-btn {
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    cursor: pointer;
    background: transparent;
    color: #66708b;
    font-size: 0.96rem;
    font-weight: 700;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.tab-btn:hover {
    color: var(--auth-ink);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: white;
    color: #265dff;
    box-shadow: 0 10px 24px rgba(36, 78, 168, 0.12);
}

.input-group {
    display: grid;
    gap: 2px;
}

.input-group .field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #5f6a86;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.field input,
.field select {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1.5px solid #dbe5f2;
    background: #f9fbff;
    color: var(--auth-ink);
    font-size: 0.98rem;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.field input::placeholder {
    color: #99a4bc;
}

.student-shell {
    width: 100%;
}

.student-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #d9e7f4;
    border-radius: 34px;
    box-shadow: 0 18px 42px rgba(31, 72, 128, 0.12);
    padding: 34px;
}

.student-panel-head h2,
.student-form-card h3 {
    margin: 0;
    color: #1f3653;
}

.student-panel-head p {
    margin: 12px 0 0;
    color: #64748b;
    line-height: 1.65;
}

.student-eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e8f5f2;
    color: #0f8a73;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.student-status {
    margin: 22px 0 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: #eef5ff;
    color: #47607d;
    font-weight: 700;
}

.student-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.student-card {
    border: 1px solid #dbe7f3;
    border-radius: 22px;
    background: white;
    padding: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.student-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(32, 74, 128, 0.12);
    border-color: #9fc2f3;
}

.student-card.active {
    border-color: #2d7ff9;
    box-shadow: 0 16px 32px rgba(45, 127, 249, 0.18);
}

.student-card h4 {
    margin: 0 0 8px;
    color: #1f3653;
    font-size: 1.05rem;
}

.student-card p {
    margin: 0;
    color: #6b7b93;
    line-height: 1.55;
    font-size: 0.9rem;
}

.student-card-meta {
    display: inline-flex;
    margin-top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #2d5ea8;
    font-size: 0.78rem;
    font-weight: 700;
}

.student-form-card {
    border-radius: 24px;
    background: white;
    border: 1px solid #dbe7f3;
    padding: 22px;
}

.student-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.student-secondary-btn {
    margin-top: 8px;
}

.student-detail-panel {
    margin: 0 0 22px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f6fbff 52%, #f3fbf7 100%);
    border: 1px solid #dbe7f3;
    box-shadow: 0 18px 34px rgba(31, 72, 128, 0.1);
}

.student-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.student-detail-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f5f2;
    color: #0f8a73;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.student-detail-head h3 {
    margin: 0;
    color: #1f3653;
    font-size: 1.4rem;
}

.student-detail-head p {
    margin: 8px 0 0;
    color: #6b7b93;
    line-height: 1.6;
}

.student-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.student-detail-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    border: 1px solid #dbe7f3;
}

.student-detail-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #6b7b93;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.student-detail-card p {
    margin: 0;
    color: #27425f;
    line-height: 1.6;
}

.student-detail-meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.student-mini-stat {
    padding: 16px 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dbe7f3;
}

.student-mini-stat span {
    display: block;
    color: #6b7b93;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.student-mini-stat strong {
    color: #1f3653;
    font-size: 1.1rem;
}

.student-form-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 14px;
}

.field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1.5px solid #dbe5f2;
    background: #f9fbff;
    color: var(--auth-ink);
    font-size: 0.98rem;
    resize: vertical;
    min-height: 96px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.field textarea:focus {
    outline: none;
    background: white;
    border-color: #5b8cff;
    box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.14);
}

.student-chip {
    min-width: 180px;
}

.field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #5b6b86 50%),
        linear-gradient(135deg, #5b6b86 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.field input:focus,
.field select:focus {
    outline: none;
    background: white;
    border-color: #5b8cff;
    box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.14);
}

.btn-primary-gradient {
    width: 100%;
    margin-top: 8px;
    padding: 17px 20px;
    border: none;
    border-radius: 18px;
    background: var(--brand-grad);
    color: white;
    font-size: 1.04rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(44, 112, 230, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(44, 112, 230, 0.28);
}

.btn-primary-gradient:disabled {
    opacity: 0.68;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.forgot-link {
    margin: 16px 0 0;
    text-align: center;
}

.forgot-link a {
    color: #5b63ff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

#auth-status {
    min-height: 24px;
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f5f8fd;
    color: #f44336;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.45;
}

.auth-note {
    margin: 14px 0 0;
    color: #8d96ac;
    font-size: 0.84rem;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 900px) {
    .auth-portal {
        padding: 20px;
    }

    .auth-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-visual {
        min-height: 280px;
        padding: 80px 24px 36px;
    }

    .auth-content {
        padding: 36px 24px 30px;
    }
}

@media (max-width: 768px) {
    #start-screen {
        width: 100%;
        margin-top: 0;
        padding: 0;
    }

    .auth-portal {
        min-height: 100vh;
        padding: 12px;
    }

    .auth-container {
        border-radius: 28px;
    }

    .auth-visual {
        min-height: 240px;
        padding: 78px 20px 28px;
    }

    .visual-badge {
        top: 18px;
        left: 18px;
        font-size: 0.72rem;
    }

    #avatar-img {
        width: 132px;
        height: 132px;
    }


    .visual-text h2 {
        font-size: 1.7rem;
    }

    .auth-content {
        padding: 28px 18px 24px;
    }

    #auth-main-title {
        font-size: 1.9rem;
    }

    .auth-sub {
        margin-bottom: 22px;
        font-size: 0.95rem;
    }

    .auth-tabs {
        gap: 6px;
        padding: 6px;
        border-radius: 16px;
    }

    .tab-btn {
        padding: 12px 10px;
        font-size: 0.92rem;
    }

    .field input,
    .field select {
        padding: 14px;
        border-radius: 14px;
    }

    .student-form-grid {
        grid-template-columns: 1fr;
    }

    .student-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary-gradient {
        border-radius: 16px;
    }
}

/* ================================================================
   MODERN SADE MENÜ — tüm eski karmaşık override'lar burada
   ================================================================ */

/* Temel reset */
#menu-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    background: linear-gradient(160deg, #e8f0ff 0%, #f1ecff 30%, #ffeef5 62%, #fff8ec 100%);
    overflow-x: hidden;
}

#menu-screen::before,
#menu-screen::after { display: none !important; }

/* Üst çubuk */
#menu-screen .menu-topbar {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid #e8eef6;
    border-radius: 0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.menu-brand strong {
    font-size: 1rem;
    color: #1a2f4a;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid #d8e6f3;
    background: #f5f9ff;
    color: #1a2f4a;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-pill:hover {
    border-color: #4c8dff;
    background: #eef5ff;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
    transition: background 0.3s;
}

.pill-chevron {
    color: #8aa0b8;
    font-size: 1rem;
    flex-shrink: 0;
}

.icon-btn-logout {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1.5px solid #fde8e8;
    background: #fff5f5;
    color: #c14444;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, transform 0.18s;
    flex-shrink: 0;
}

.icon-btn-logout:hover {
    background: #fee2e2;
    transform: scale(1.05);
}

/* Karşılama */
.menu-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 44px 24px 28px;
    gap: 10px;
    align-self: center;
    width: 100%;
    box-sizing: border-box;
}

.welcome-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 4px solid #ffd700;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(255,215,0,0.28);
    display: block;
}
.welcome-avatar-wrap {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 4px;
    cursor: pointer;
}
.welcome-avatar-wrap.wave { animation: bearWave 0.9s ease-in-out 2; }
@keyframes bearWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-7deg) scale(1.05); }
    75% { transform: rotate(7deg) scale(1.05); }
}
.welcome-accessory {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.9rem;
    pointer-events: none;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.welcome-accessory.acc-top    { top: -22px; }
.welcome-accessory.acc-mid    { top: 22px; }
.welcome-accessory.acc-bottom { bottom: -8px; }
.welcome-star-badge {
    position: absolute;
    bottom: -6px;
    right: -18px;
    background: linear-gradient(135deg, #ffd700, #f7b520);
    color: #5c4400;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(247,181,32,0.4);
    white-space: nowrap;
}
.menu-nudge {
    margin-top: 10px;
    max-width: 100%;
    background: #fff;
    border: 2px solid #ffd88a;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #8a6100;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(247,181,32,0.18);
    transition: transform 0.15s, box-shadow 0.15s;
}
.menu-nudge:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(247,181,32,0.28); }

/* ========== YILDIZ BİLGİ MODALI ========== */
.star-info-body { padding: 4px 2px 2px; }
.star-info-balance {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #f7b520);
    color: #5c4400;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.star-info-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.star-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #2d3a5c;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 12px;
}
.star-info-purpose {
    font-size: 0.88rem;
    color: #6b7b93;
    line-height: 1.5;
    margin: 0 0 16px;
}
.star-info-store-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
}

/* ========== NESNE TANIMA ========== */
#object-screen {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    background: linear-gradient(180deg, #f1ecff 0%, #faf8ff 45%, #fff 75%);
}
.object-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 64px 16px 40px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.object-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.object-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #2d2a5c;
    letter-spacing: -0.01em;
}
.object-progress-badge {
    background: linear-gradient(135deg, #6C63FF, #a29bfe);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(108,99,255,0.35);
}
.object-canvas-card {
    position: relative;
    background: radial-gradient(circle at 50% 38%, #f6f3ff 0%, #ffffff 68%);
    border-radius: 26px;
    box-shadow: 0 10px 32px rgba(108,99,255,0.18), inset 0 0 0 1px rgba(108,99,255,0.07);
    height: 280px;
    overflow: hidden;
}
#objectCanvas { width: 100%; height: 100%; display: block; touch-action: none; }
.object-hint {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.74rem;
    font-weight: 600;
    color: #6C63FF;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(108,99,255,0.15);
    pointer-events: none;
    white-space: nowrap;
}
.object-prompt {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #2d2a5c;
    margin: 0;
    background: #f5f2ff;
    border-radius: 16px;
    padding: 12px 16px;
}
.object-feedback {
    min-height: 26px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}
.object-feedback.correct { color: #22a06b; }
.object-feedback.wrong { color: #e74c3c; animation: sortShake 0.4s ease; }
.object-feedback.skip { color: #6b7b93; }
.object-skip-btn {
    align-self: center;
    background: #f5f2ff;
    border: 2px solid #e6defe;
    border-radius: 999px;
    color: #6C63FF;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 22px;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.object-skip-btn:hover {
    background: #ece5ff;
    box-shadow: 0 4px 14px rgba(108,99,255,0.2);
}
.object-skip-btn:active { transform: scale(0.96); }
.object-answer-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.object-mic-btn {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6C63FF, #8e7cf7);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(108,99,255,0.38);
    transition: transform 0.15s ease;
}
.object-mic-btn:hover { transform: translateY(-1px); }
.object-mic-btn.listening { animation: basketReadyPulse 1s ease-in-out infinite; }
.object-mic-btn:disabled { opacity: 0.6; cursor: default; }
.object-text-input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    min-height: 48px;
    border: 2px solid #e6defe;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 0.92rem;
    transition: border-color 0.15s ease;
}
.object-text-input:focus {
    outline: none;
    border-color: #a29bfe;
}
.object-submit-btn {
    flex-shrink: 0;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #6C63FF, #8e7cf7);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(108,99,255,0.32);
    transition: transform 0.15s ease;
}
.object-submit-btn:hover { transform: translateY(-1px); }
.therapy-complete {
    position: relative;
    width: min(100%, 560px);
    margin: 28px auto 10px;
    padding: 30px 24px 24px;
    border-radius: 30px;
    border: 1px solid rgba(125, 146, 220, 0.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,248,255,0.96) 100%);
    box-shadow: 0 26px 54px rgba(82, 101, 154, 0.16);
    text-align: center;
    overflow: hidden;
}

.therapy-complete-glow {
    position: absolute;
    inset: -40% auto auto 50%;
    width: 280px;
    height: 280px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(110, 119, 255, 0.18) 0%, rgba(110, 119, 255, 0) 72%);
    pointer-events: none;
}

.therapy-complete-badge {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff6cf 0%, #ffe49f 100%);
    box-shadow:
        0 14px 30px rgba(227, 176, 42, 0.24),
        inset 0 1px 0 rgba(255,255,255,0.82);
    font-size: 2rem;
}

.therapy-complete-copy {
    position: relative;
    z-index: 1;
}

.therapy-complete h2 {
    margin: 0;
    color: #20314d;
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
}

.therapy-complete p {
    margin: 12px auto 0;
    max-width: 34ch;
    color: #60728e;
    font-size: 1rem;
    line-height: 1.7;
}

.therapy-complete-actions {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin: 28px auto 0;
    width: min(100%, 380px);
}

.therapy-complete-btn {
    width: 100%;
    min-height: 58px;
    margin-top: 0;
    padding: 16px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

.menu-ghost-btn.therapy-complete-btn {
    border: 1px solid #d9e4f4;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 10px 24px rgba(106, 123, 159, 0.08);
}

.menu-ghost-btn.therapy-complete-btn:hover {
    background: #ffffff;
}

.object-complete { text-align: center; padding: 40px 16px 20px; }
.object-complete-icon { font-size: 5rem; margin-bottom: 14px; }
.object-complete h2 { font-size: 1.7rem; color: #2d3a5c; margin-bottom: 8px; }
.object-complete p { color: #6b7b93; font-size: 1rem; margin-bottom: 20px; }
.object-complete-btns { display: flex; flex-direction: column; gap: 10px; align-items: center; }

@media (max-width: 768px) {
    .therapy-complete {
        margin-top: 22px;
        padding: 24px 18px 18px;
        border-radius: 24px;
    }

    .therapy-complete-badge {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
        border-radius: 22px;
        font-size: 1.8rem;
    }

    .therapy-complete p {
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .therapy-complete-actions {
        width: 100%;
        margin-top: 22px;
    }

    .therapy-complete-btn {
        min-height: 54px;
        border-radius: 16px;
    }
}

/* ========== GİYİM MAĞAZASI ========== */
#store-screen {
    min-height: 100vh;
    width: 100%;
    flex-direction: column;
    background: linear-gradient(180deg, #fff8ec 0%, #fff 60%);
    position: relative;
}
.store-wrapper {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 64px 16px 40px;
    box-sizing: border-box;
    position: relative;
}
.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.store-header h2 { margin: 0; font-size: 1.35rem; color: #2d3a5c; }
.store-balance {
    background: linear-gradient(135deg, #ffd700, #f7b520);
    color: #5c4400;
    font-weight: 900;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(247,181,32,0.35);
}
.store-mannequin-card {
    display: flex;
    justify-content: center;
    padding: 18px 0 22px;
}
.store-mannequin {
    position: relative;
    width: 148px;
    height: 148px;
}
.store-mannequin img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}
.store-mannequin-item {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    text-shadow: 0 3px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}
.store-mannequin-item.acc-top    { top: -34px; }
.store-mannequin-item.acc-mid    { top: 42px; }
.store-mannequin-item.acc-bottom { bottom: -14px; }

.store-cat-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
}
.store-cat-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid #ffe1a1;
    background: #fff;
    color: #8a6100;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}
.store-cat-tab.active { background: #f7b520; border-color: #f7b520; color: #fff; }

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.store-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 2.5px solid #ffe1a1;
    border-radius: 18px;
    padding: 16px 10px 14px;
}
.store-item-card.equipped { border-color: #10ac84; background: #f0fff8; }
.store-item-card.locked { opacity: 0.8; }
.store-item-card.locked .store-item-emoji { filter: grayscale(0.7); opacity: 0.7; }
.store-item-emoji { font-size: 2.4rem; }
.store-item-label { font-size: 0.88rem; font-weight: 800; color: #2d3a5c; text-align: center; }
.store-item-status { font-size: 0.75rem; font-weight: 700; color: #a08430; }
.store-item-status.equipped { color: #10ac84; }
.store-item-status.price { color: #d98c00; font-size: 0.9rem; }
.store-item-need { font-size: 0.7rem; font-weight: 700; color: #b0433a; text-align: center; }
.store-item-btn {
    width: 100%;
    min-height: 38px;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    background: #f0f2f8;
    color: #4b6079;
}
.store-item-btn.primary { background: linear-gradient(135deg, #ffd700, #f7b520); color: #5c4400; }
.store-item-btn.secondary { background: #fdecea; color: #c0392b; }

.welcome-title {
    font-size: 2rem;
    color: #1a2f4a;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.welcome-sub {
    color: #7a8fa8;
    font-size: 1rem;
    margin: 0;
}

/* 4×2 tile grid (8 tiles) */
.menu-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 20px 48px;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .menu-tiles {
        grid-template-columns: repeat(3, 1fr);
        max-width: 720px;
        gap: 18px;
    }
}

.menu-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 22px 12px;
    border-radius: 22px;
    border: 2px solid #e4edf8;
    background: white;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 4px 16px rgba(40,84,145,0.05);
    -webkit-tap-highlight-color: transparent;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a2f4a;
    text-align: center;
    line-height: 1.3;
}

.menu-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(40,84,145,0.13);
    border-color: #a8c8ff;
}

.menu-tile:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(40,84,145,0.1);
}

.tile-primary {
    background: linear-gradient(140deg, #4a7bff 0%, #5fb8ff 100%);
    border-color: transparent;
    box-shadow: 0 8px 28px rgba(74,123,255,0.32);
}

.tile-primary:hover {
    box-shadow: 0 16px 40px rgba(74,123,255,0.42);
    border-color: transparent;
}

.tile-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.tile-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1a2f4a;
    text-align: center;
    line-height: 1.3;
}

.tile-desc {
    font-size: 0.74rem;
    font-weight: 600;
    color: #7a8fa8;
    text-align: center;
    line-height: 1.25;
    opacity: 0.9;
}

.tile-primary .tile-label,
.tile-schedule .tile-label,
.tile-aac .tile-label,
.tile-sequence .tile-label,
.tile-store .tile-label,
.tile-analysis .tile-label,
.tile-primary .tile-desc,
.tile-schedule .tile-desc,
.tile-aac .tile-desc,
.tile-sequence .tile-desc,
.tile-store .tile-desc,
.tile-analysis .tile-desc {
    color: white;
}

.tile-primary .tile-desc,
.tile-schedule .tile-desc,
.tile-aac .tile-desc,
.tile-sequence .tile-desc,
.tile-store .tile-desc,
.tile-analysis .tile-desc {
    opacity: 0.85;
}

/* Dinamik eklenen karmaşık elementleri gizle */
.menu-insights,
#student-detail-panel,
.menu-app-shell,
.menu-workspace-nav,
.menu-workspace-section,
.menu-sidebar {
    display: none !important;
}

/* Öğrenci setup ekranı */
#student-setup-screen {
    display: none;
    width: 100%;
    min-height: 100vh;
    background: #f4f7fc;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.6s ease;
}

.setup-shell {
    width: 100%;
    max-width: 560px;
}

.setup-panel {
    background: white;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(31,72,128,0.1);
    border: 1px solid #e0eaf5;
}

.setup-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.setup-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.setup-head h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #1a2f4a;
    font-weight: 800;
}

.setup-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: #8aa0b8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.setup-divider::before,
.setup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e4edf8;
}

/* Yeni tile renkleri */
.tile-schedule { background: linear-gradient(140deg, #ff9f43 0%, #ffbe76 100%); border-color: transparent; box-shadow: 0 8px 24px rgba(255,159,67,0.28); color: white; }
.tile-aac      { background: linear-gradient(140deg, #48dbfb 0%, #0abde3 100%); border-color: transparent; box-shadow: 0 8px 24px rgba(72,219,251,0.28); color: white; }

.tile-sequence { background: linear-gradient(140deg, #a29bfe 0%, #6c5ce7 100%); border-color: transparent; box-shadow: 0 8px 24px rgba(162,155,254,0.28); color: white; }
.tile-store    { background: linear-gradient(140deg, #fd79a8 0%, #e84393 100%); border-color: transparent; box-shadow: 0 8px 24px rgba(253,121,168,0.28); color: white; }
.tile-analysis { background: linear-gradient(140deg, #00b894 0%, #00cec9 100%); border-color: transparent; box-shadow: 0 8px 24px rgba(0,184,148,0.28); color: white; }

/* Erişilebilirlik topbar butonu */
.icon-btn-a11y {
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.18s;
}
.icon-btn-a11y:hover { background: rgba(255,255,255,0.32); }

/* ======================================================
   ERİŞİLEBİLİRLİK PANELİ
   ====================================================== */
.a11y-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(10,20,50,0.45);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.a11y-panel-inner {
    background: white;
    border-radius: 20px;
    width: 340px;
    max-width: 95vw;
    max-height: min(640px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(10,20,60,0.22);
    overflow: hidden;
    animation: slideInRight 0.25s ease;
}
@keyframes slideInRight {
    from { transform: translateX(40px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
.a11y-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    flex-shrink: 0;
}
.a11y-panel-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.a11y-close-btn {
    background: rgba(255,255,255,0.22);
    border: none;
    border-radius: 50%;
    width: 40px; height: 40px;
    min-width: 44px; min-height: 44px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.a11y-close-btn:hover { background: rgba(255,255,255,0.32); }
.a11y-panel-body {
    overflow-y: auto;
    overscroll-behavior: contain;
}
.a11y-settings-list { padding: 8px 0 16px; }
.a11y-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.14s;
    gap: 12px;
    min-height: 44px;
}
.a11y-setting-row:hover { background: #f5f7ff; }
.a11y-setting-label {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.a11y-setting-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f2ff;
    border-radius: 12px;
}
.a11y-setting-label strong { display: block; font-size: 0.92rem; color: #1a2f4a; }
.a11y-setting-label small  { display: block; font-size: 0.78rem; color: #7a8fa8; margin-top: 2px; }
.a11y-toggle {
    width: 42px; height: 24px;
    appearance: none;
    background: #dde3ee;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.a11y-toggle::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    transition: left 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.a11y-toggle:checked { background: #6c5ce7; }
.a11y-toggle:checked::after { left: 21px; }

/* Erişilebilirlik body sınıfları */
body.a11y-large-text    { font-size: 118%; }
body.a11y-large-touch button,
body.a11y-large-touch .menu-tile,
body.a11y-large-touch .aac-card { min-height: 56px !important; }
body.a11y-high-contrast { filter: contrast(1.25) saturate(1.15); }
body.a11y-reduce-motion * { transition: none !important; animation: none !important; }

/* ======================================================
   GÜNLÜK PROGRAM
   ====================================================== */
#schedule-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(180deg, #fff9f0 0%, #fff 100%);
    padding: 0 0 40px;
    box-sizing: border-box;
}
.schedule-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 64px 20px 0;
    box-sizing: border-box;
    position: relative;
}
.schedule-header {
    padding: 20px 0 16px;
    border-bottom: 2px solid #ffe0b2;
    margin-bottom: 16px;
}
.schedule-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.schedule-title { margin: 0; font-size: 1.4rem; color: #1a2f4a; }
.schedule-date-badge {
    background: #ff9f43;
    color: white;
    border-radius: 10px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.schedule-sub { margin: 0; font-size: 0.86rem; color: #7a8fa8; line-height: 1.4; }

.schedule-list { display: flex; flex-direction: column; gap: 12px; }
.task-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: white;
    border: 2px solid #ffe0b2;
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 8px rgba(255,159,67,0.07);
}
.task-card:hover { border-color: #ff9f43; transform: translateY(-2px); }
.task-card.done {
    background: #f0fff4;
    border-color: #38a169;
    opacity: 0.85;
}
.task-icon { font-size: 1.8rem; flex-shrink: 0; }
.task-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.task-label { font-size: 0.92rem; font-weight: 700; color: #1a2f4a; }
.task-card.done .task-label { color: #2f855a; }
.task-progress-track {
    height: 8px;
    background: #ffe0b2;
    border-radius: 4px;
    overflow: hidden;
}
.task-card.done .task-progress-track { background: #c6f6d5; }
.task-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff9f43, #ff6b35);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.task-card.done .task-progress-fill { background: linear-gradient(90deg, #38a169, #2f855a); }
.task-progress-text { font-size: 0.76rem; color: #7a8fa8; font-weight: 600; }

.task-all-done {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, #fff8ec, #fff);
    border: 2px dashed #f7b520;
    border-radius: 18px;
}
.task-all-done span { font-size: 2.6rem; display: block; margin-bottom: 8px; }
.task-all-done strong { display: block; font-size: 1.05rem; color: #1a2f4a; margin-bottom: 4px; }
.task-all-done p { margin: 0; font-size: 0.86rem; color: #7a8fa8; }

/* ======================================================
   AAC PANOSU
   ====================================================== */
#aac-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background: #f0fbff;
    box-sizing: border-box;
}
.aac-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}
.aac-sentence-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-bottom: 3px solid #48dbfb;
    padding: 12px 16px;
    min-height: 70px;
    box-shadow: 0 4px 16px rgba(72,219,251,0.12);
}
.aac-sentence-words {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 40px;
}
.aac-sentence-placeholder { color: #a0b4c8; font-size: 0.9rem; font-style: italic; }
.aac-word-chip {
    background: #e0f8ff;
    border: 2px solid #48dbfb;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0078a8;
    cursor: pointer;
    transition: background 0.15s;
}
.aac-word-chip:hover { background: #c8f2ff; }
.aac-sentence-actions { display: flex; gap: 8px; flex-shrink: 0; }
.aac-speak-btn {
    background: #48dbfb;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.18s;
}
.aac-speak-btn:hover { background: #0abde3; }
.aac-clear-btn {
    background: #ffe0e0;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #c0392b;
    cursor: pointer;
}

.aac-categories {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background: white;
    border-bottom: 1px solid #dff5fb;
}
.aac-cat-btn {
    border: 2.5px solid var(--cat-color, #48dbfb);
    background: white;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a2f4a;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s;
}
.aac-cat-btn.active {
    background: var(--cat-color, #48dbfb);
    color: white;
}

.aac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 14px 14px 32px;
    overflow-y: auto;
}
.aac-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: white;
    border: 3px solid var(--cat-color, #48dbfb);
    border-radius: 16px;
    padding: 14px 8px 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    min-height: 90px;
}
.aac-card:hover  { transform: scale(1.06); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.aac-card:active { transform: scale(0.97); }
.aac-card-emoji { font-size: 2rem; line-height: 1; }
.aac-card-text  { font-size: 0.72rem; font-weight: 700; color: #1a2f4a; text-align: center; line-height: 1.3; }

/* ======================================================
   GİZLİ YILDIZ ÖDÜL MODALI
   ====================================================== */
.star-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
}
.star-modal-card {
    background: #fff; border-radius: 28px;
    padding: 40px 32px 32px;
    max-width: 340px; width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: star-card-in 0.35s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes star-card-in {
    from { opacity: 0; transform: scale(0.7) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.star-modal-stars {
    display: flex; justify-content: center; gap: 8px;
    margin-bottom: 20px;
}
.star-icon {
    font-size: 2.4rem;
    display: inline-block;
    animation: star-pop 0.4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes star-pop {
    from { opacity: 0; transform: scale(0) rotate(-20deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}
.star-off { filter: grayscale(1) opacity(0.3); }
.star-modal-title {
    font-size: 1.5rem; font-weight: 900; color: #2d3a5c; margin-bottom: 8px;
}
.star-modal-sub {
    font-size: 0.95rem; color: #5a6a8a; line-height: 1.5; margin-bottom: 24px;
}
.star-modal-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #feca57, #ff9f43);
    color: #fff; font-size: 1rem; font-weight: 800;
    border: none; border-radius: 16px; cursor: pointer;
    box-shadow: 0 6px 18px rgba(254,202,87,0.4);
    transition: transform .15s, opacity .15s;
}
.star-modal-btn:hover { opacity: .9; transform: translateY(-1px); }

/* Responsive */
@media (max-width: 480px) {
    .menu-tiles {
        max-width: 100%;
        gap: 10px;
        padding: 0 14px 40px;
    }

    .menu-tile {
        padding: 18px 10px;
        border-radius: 18px;
    }

    .tile-icon { font-size: 2rem; }
    .tile-label { font-size: 0.8rem; }
    .tile-desc { font-size: 0.68rem; }

    .welcome-title { font-size: 1.6rem; }
    .menu-welcome { padding: 32px 16px 20px; }

    #menu-screen .menu-topbar { padding: 12px 16px; }
    .menu-brand-logo { width: 30px; height: 30px; }

    .student-pill { max-width: 140px; font-size: 0.82rem; }

    .aac-grid { grid-template-columns: repeat(3, 1fr); }
    .a11y-panel { align-items: flex-end; padding: 0; }
    .a11y-panel-inner { width: 100%; border-radius: 20px 20px 0 0; max-height: 85vh; }
}

/* ======================================================
   GİRİŞ EKRANI (LOGIN)
   ====================================================== */
#login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    background: linear-gradient(180deg, #f0f4ff 0%, #fff 60%);
    box-sizing: border-box;
    padding: 0 20px 40px;
}
.login-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 40px;
}
.login-logo {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 28px rgba(40,84,145,0.2);
    background: #fff;
}
.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.login-title {
    font-size: 1.8rem; font-weight: 900; color: #1a2f4a;
    margin: 0; text-align: center;
}
.login-subtitle { margin: 0; color: #7a8fa8; font-size: 1rem; }
.login-students {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.login-student-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 140px;
    background: white;
    border: 2.5px solid #e4edf8;
    border-radius: 22px;
    padding: 18px 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(40,84,145,0.06);
}
.login-student-card:hover { transform: translateY(-4px); border-color: #a8c8ff; box-shadow: 0 12px 32px rgba(40,84,145,0.12); }
.login-student-card:active { transform: scale(0.97); }
.login-student-emoji {
    width: 68px; height: 68px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #f0f6ff, #e4edf8);
    border-radius: 50%;
    font-size: 2.3rem; line-height: 1;
}
.login-student-name { font-size: 0.9rem; font-weight: 800; color: #1a2f4a; text-align: center; }
.login-empty { text-align: center; padding: 32px; color: #a0b4c8; font-size: 0.9rem; line-height: 1.7; }

.login-add-btn {
    width: 100%;
    background: white;
    border: 2.5px dashed #a8c8ff;
    border-radius: 16px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4a7bff;
    cursor: pointer;
    transition: all 0.18s;
}
.login-add-btn:hover { background: #f0f6ff; border-color: #4a7bff; }

.login-add-form {
    width: 100%;
    background: white;
    border: 2px solid #e4edf8;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(40,84,145,0.08);
}
.login-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    justify-content: center;
}
.emoji-pick-btn {
    width: 44px; height: 44px;
    font-size: 1.5rem;
    background: #f5f7ff;
    border: 2px solid #e4edf8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.emoji-pick-btn.selected { border-color: #4a7bff; background: #e8f0ff; }
.login-name-input {
    width: 100%; box-sizing: border-box;
    border: 2px solid #e4edf8; border-radius: 12px;
    padding: 12px 16px; font-size: 1rem; margin-bottom: 12px;
}
.login-form-btns { display: flex; gap: 10px; }
.login-save-btn {
    flex: 1; background: linear-gradient(135deg, #4a7bff, #5fb8ff);
    border: none; border-radius: 12px; padding: 12px;
    font-size: 0.95rem; font-weight: 700; color: white; cursor: pointer;
}
.login-cancel-btn {
    background: #f0f3f8; border: 2px solid #dde3ee; border-radius: 12px;
    padding: 12px 20px; font-size: 0.9rem; font-weight: 600; color: #7a8fa8; cursor: pointer;
}

/* ======================================================
   ÖĞRENCİ PROFİLİ SİHİRBAZI (adım adım form)
   ====================================================== */
.login-add-form.wiz { padding: 22px 20px 20px; overflow: hidden; }
.wiz-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.wiz-progress {
    flex: 1; height: 8px; border-radius: 999px;
    background: #eaf0fb; overflow: hidden;
}
.wiz-progress-bar {
    height: 100%; width: 20%; border-radius: 999px;
    background: linear-gradient(90deg, #4a7bff, #5fb8ff);
    transition: width .35s cubic-bezier(.4,0,.2,1);
}
.wiz-step-counter {
    font-size: 0.78rem; font-weight: 800; color: #7a8fa8;
    min-width: 34px; text-align: right; font-variant-numeric: tabular-nums;
}

.wiz-step { display: none; }
.wiz-step.active { display: block; animation: wizStepIn .3s ease; }
@keyframes wizStepIn {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: none; }
}

.wiz-step-head { text-align: center; margin-bottom: 18px; }
.wiz-step-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; margin-bottom: 12px;
    border-radius: 50%; font-size: 1.8rem;
    background: linear-gradient(180deg, #eef4ff, #e2ecfb);
    box-shadow: 0 6px 16px rgba(74,123,255,0.15);
}
.wiz-step-title { margin: 0 0 4px; font-size: 1.25rem; font-weight: 900; color: #1a2f4a; }
.wiz-step-sub  { margin: 0; font-size: 0.88rem; color: #7a8fa8; line-height: 1.5; }

.wiz-text-input {
    width: 100%; box-sizing: border-box; text-align: center;
    border: 2px solid #e4edf8; border-radius: 14px;
    padding: 15px 16px; font-size: 1.15rem; font-weight: 700; color: #1a2f4a;
    transition: border-color .15s, box-shadow .15s;
}
.wiz-text-input:focus {
    outline: none; border-color: #4a7bff;
    box-shadow: 0 0 0 4px rgba(74,123,255,0.14);
}

.login-add-form.wiz .login-emoji-picker { gap: 10px; margin-bottom: 0; }
.login-add-form.wiz .emoji-pick-btn { width: 52px; height: 52px; font-size: 1.7rem; }

.wiz-choice-group { display: flex; flex-direction: column; gap: 10px; }
.wiz-choice-card {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 15px 16px; border-radius: 15px;
    border: 2px solid #e4edf8; background: #f7faff;
    cursor: pointer; transition: all .16s; user-select: none;
}
.wiz-choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.wiz-choice-body { flex: 1; }
.wiz-choice-title { font-size: 0.98rem; font-weight: 700; color: #33415c; }
.wiz-choice-mark {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    border: 2px solid #cdd8ec;
    display: flex; align-items: center; justify-content: center;
    transition: all .16s;
}
.wiz-choice-card:has(input:checked) { border-color: #6c5ce7; background: #f2f0ff; }
.wiz-choice-card:has(input:checked) .wiz-choice-title { color: #4a3fbf; }
.wiz-choice-card:has(input:checked) .wiz-choice-mark { border-color: #6c5ce7; background: #6c5ce7; }
.wiz-choice-card:has(input:checked) .wiz-choice-mark::after {
    content: '✓'; color: #fff; font-size: 0.8rem; font-weight: 900;
}

.wiz-cond-grid { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.wiz-cond-chip {
    display: inline-flex; align-items: center;
    padding: 10px 16px; border-radius: 999px;
    border: 2px solid #e4edf8; background: #f7faff;
    font-size: 0.86rem; font-weight: 700; color: #5a6a8a;
    cursor: pointer; transition: all .15s; user-select: none;
}
.wiz-cond-chip input { display: none; }
.wiz-cond-chip:has(input:checked) { border-color: #6c5ce7; background: #ebe9ff; color: #4a3fbf; }

.wiz-summary {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; margin-bottom: 14px;
    border-radius: 16px; background: #f5f8ff; border: 1.5px solid #e4edf8;
}
.wiz-summary-avatar {
    width: 52px; height: 52px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1.7rem;
    background: linear-gradient(180deg, #f0f6ff, #e4edf8);
}
.wiz-summary-rows { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wiz-summary-name { font-size: 1.05rem; font-weight: 800; color: #1a2f4a; }
.wiz-summary-meta { font-size: 0.82rem; color: #7a8fa8; }
.veli-consent-label.wiz-consent {
    background: #fff7ed; border: 1.5px solid #ffe4c4; border-radius: 14px;
    padding: 12px 14px; margin: 0;
}

.wiz-nav { display: flex; gap: 10px; margin-top: 22px; }
.wiz-back-btn {
    background: #f0f3f8; border: 2px solid #dde3ee; border-radius: 14px;
    padding: 13px 20px; font-size: 0.9rem; font-weight: 700; color: #7a8fa8;
    cursor: pointer; transition: all .15s;
}
.wiz-back-btn:hover { background: #e6ebf5; }
.wiz-next-btn {
    flex: 1; border: none; border-radius: 14px; padding: 13px;
    font-size: 1rem; font-weight: 800; color: #fff; cursor: pointer;
    background: linear-gradient(135deg, #4a7bff, #5fb8ff);
    box-shadow: 0 6px 18px rgba(74,123,255,0.28);
    transition: transform .12s, box-shadow .15s;
}
.wiz-next-btn:hover { box-shadow: 0 8px 22px rgba(74,123,255,0.36); }
.wiz-next-btn:active { transform: scale(0.98); }
.login-add-form.wiz .wiz-save-btn {
    flex: 1; padding: 13px; font-size: 1rem; font-weight: 800;
    border-radius: 14px; box-shadow: 0 6px 18px rgba(74,123,255,0.28);
}
.wiz-exit-btn {
    display: block; margin: 12px auto 0; background: none; border: none;
    font-size: 0.85rem; font-weight: 600; color: #9aa8bd; cursor: pointer;
    padding: 6px 10px;
}
.wiz-exit-btn:hover { color: #6c5ce7; }
.wiz-login-link { display: none; }
body.mobile-first-launch .wiz-login-link { display: block; }
.login-teacher-btn {
    background: none; border: 2px solid #dde3ee; border-radius: 14px;
    padding: 12px 24px; font-size: 0.88rem; font-weight: 700; color: #6c5ce7;
    cursor: pointer; transition: all 0.18s;
}
.login-teacher-btn:hover { border-color: #6c5ce7; background: #f5f0ff; }

/* ======================================================
   ÖĞRETMEN PANELİ OVERLAY
   ====================================================== */
.teacher-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,20,50,0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.teacher-overlay-inner {
    background: white;
    border-radius: 24px;
    width: 340px; max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(10,20,60,0.22);
    animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* PIN view */
#teacherPinView { padding: 28px 24px; text-align: center; }
#teacherPinView h3 { margin: 0 0 6px; font-size: 1.1rem; color: #1a2f4a; }
.teacher-pin-hint { color: #7a8fa8; font-size: 0.88rem; margin: 0 0 20px; }
.teacher-pin-dots {
    display: flex; gap: 12px; justify-content: center; margin-bottom: 24px;
}
.teacher-pin-dots span {
    width: 16px; height: 16px; border-radius: 50%;
    background: #dde3ee; transition: background 0.15s;
}
.teacher-pin-pad {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    max-width: 220px; margin: 0 auto 16px;
}
.teacher-pin-pad button {
    height: 52px; border-radius: 14px;
    border: 2px solid #e4edf8; background: #f8faff;
    font-size: 1.2rem; font-weight: 700; color: #1a2f4a;
    cursor: pointer; transition: all 0.15s;
}
.teacher-pin-pad button:hover { background: #eef4ff; border-color: #a8c8ff; }
.teacher-pin-pad button:active { transform: scale(0.93); }
.pin-clear { color: #7a8fa8 !important; font-size: 1rem !important; }
.pin-cancel { color: #e74c3c !important; }
.teacher-pin-error { color: #e74c3c; font-size: 0.88rem; min-height: 20px; margin-bottom: 8px; }
.teacher-pin-setup-hint { font-size: 0.78rem; color: #a0b4c8; margin: 0; }

/* Panel menu */
.teacher-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid #eee;
}
.teacher-panel-head h3 { margin: 0; font-size: 1rem; color: #1a2f4a; }
.teacher-panel-close {
    background: #f0f3f8; border: none; border-radius: 50%;
    width: 30px; height: 30px; font-size: 0.9rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.teacher-student-name {
    padding: 8px 20px 0;
    font-size: 0.85rem; font-weight: 700; color: #6c5ce7;
}
.teacher-tools-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; padding: 14px 16px;
}
.teacher-tool-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: #f8faff; border: 2px solid #e4edf8; border-radius: 16px;
    padding: 18px 12px; cursor: pointer; transition: all 0.18s;
    font-size: 0.82rem; font-weight: 700; color: #1a2f4a;
}
.teacher-tool-card span:first-child { font-size: 1.8rem; }
.teacher-tool-card:hover { border-color: #a8c8ff; transform: translateY(-2px); background: #f0f6ff; }
.teacher-tool-lock { color: #7a8fa8 !important; }
.teacher-tool-lock:hover { border-color: #e74c3c !important; background: #fff5f5 !important; }
.teacher-change-pin-btn {
    display: block; width: calc(100% - 32px); margin: 0 16px 16px;
    background: none; border: 2px solid #dde3ee; border-radius: 12px;
    padding: 10px; font-size: 0.82rem; font-weight: 700; color: #a0b4c8;
    cursor: pointer; transition: all 0.15s;
}
.teacher-change-pin-btn:hover { border-color: #6c5ce7; color: #6c5ce7; }
#changePinForm {
    margin: 0 16px 16px; display: flex; gap: 8px;
}
#changePinForm input {
    flex: 1; border: 2px solid #e4edf8; border-radius: 10px;
    padding: 10px 12px; font-size: 0.9rem;
}
#changePinForm button {
    background: #6c5ce7; border: none; border-radius: 10px;
    padding: 10px 16px; color: white; font-weight: 700; cursor: pointer;
}

/* Menü ekstra butonlar */
.icon-btn-teacher {
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.18s;
}
.icon-btn-teacher:hover { background: rgba(255,255,255,0.32); }
.auth-emoji-picker {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.auth-emoji-picker .emoji-pick-btn {
    background: #f4f6fb; border: 2px solid transparent; border-radius: 10px;
    width: 38px; height: 38px; font-size: 1.3rem; cursor: pointer; transition: all 0.15s;
}
.auth-emoji-picker .emoji-pick-btn.selected {
    border-color: #6c5ce7; background: #ebe9ff;
}

#splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(180deg, #92d8e8 0%, #109486 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 18px;
    overflow: hidden;
    transition: opacity 0.35s ease;
}
#splash-screen.splash-hide { opacity: 0; pointer-events: none; }
.splash-bear-ring {
    width: 148px; height: 148px; border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.95);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0,0,0,0.22);
    animation: splash-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.splash-bear-ring .splash-logo {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
}
.splash-app-name {
    font-size: 1.7rem; font-weight: 800; color: #fffaf0;
    text-shadow: 0 2px 6px rgba(8, 90, 82, 0.45);
    animation: splash-rise 0.5s ease 0.45s both;
}
.splash-spinner {
    width: 32px; height: 32px;
    border: 4px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: splash-spin 0.8s linear infinite, splash-rise 0.4s ease 0.8s both;
}
.splash-star {
    position: absolute;
    color: rgba(255,255,255,0.9);
    pointer-events: none;
    user-select: none;
    animation: splash-twinkle 1.6s ease-in-out infinite;
}
.splash-star.s1 { top: 12%; left: 18%; font-size: 22px; }
.splash-star.s2 { top: 20%; right: 15%; font-size: 16px; animation-delay: 0.3s; }
.splash-star.s3 { top: 38%; left: 8%; font-size: 14px; animation-delay: 0.6s; }
.splash-star.s4 { bottom: 24%; right: 12%; font-size: 20px; animation-delay: 0.2s; }
.splash-star.s5 { bottom: 14%; left: 22%; font-size: 15px; animation-delay: 0.5s; }
.splash-star.s6 { top: 8%; right: 38%; font-size: 13px; animation-delay: 0.8s; }
@keyframes splash-spin { to { transform: rotate(360deg); } }
@keyframes splash-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes splash-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes splash-twinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.85); }
    50%      { opacity: 0.95; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
    .splash-bear-ring, .splash-app-name, .splash-star { animation: none; }
    .splash-spinner { animation: splash-spin 0.8s linear infinite; }
    #splash-screen { transition: none; }
}

/* =============================================
   ANALİZ / BEP EKRANI
   ============================================= */
#analysis-screen {
    min-height: 100vh; width: 100%; background: #f4f6fb;
    flex-direction: column;
    padding: 8px 16px 60px;
    box-sizing: border-box;
    position: relative;
}
.analysis-wrapper {
    width: 100%; max-width: 560px; margin: 0 auto;
    padding-top: 56px;
    display: flex; flex-direction: column; gap: 16px;
    position: relative;
}
.analysis-title {
    font-size: 1.4rem; font-weight: 800; color: #2d3a5c;
    margin: 8px 0 0; text-align: center;
}
.analysis-student-badge {
    text-align: center; font-size: 0.95rem; font-weight: 700;
    color: #6c5ce7; background: #ebe9ff; border-radius: 20px;
    padding: 6px 18px; align-self: center;
}
.bep-section {
    background: #fff; border-radius: 18px;
    box-shadow: 0 2px 12px rgba(44,62,100,.08);
    padding: 20px 20px 16px;
}
.bep-section-title {
    font-size: 1rem; font-weight: 800; color: #2d3a5c;
    margin: 0 0 14px;
}
.bep-field-label {
    font-size: 0.78rem; font-weight: 700; color: #5a6a8a;
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.bep-radio-group {
    display: flex; flex-direction: column; gap: 8px;
}
.bep-radio {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; color: #2d3a5c; cursor: pointer;
}
.bep-radio input[type="radio"] { accent-color: #6c5ce7; width: 16px; height: 16px; }
.bep-checkbox-group {
    display: flex; flex-direction: column; gap: 8px;
}
.bep-check {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; color: #2d3a5c; cursor: pointer;
}
.bep-check input[type="checkbox"] { accent-color: #6c5ce7; width: 16px; height: 16px; }
.bep-save-btn {
    margin-top: 16px; padding: 10px 24px;
    background: #6c5ce7; color: #fff; border: none;
    border-radius: 10px; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: opacity .2s;
}
.bep-save-btn:hover { opacity: .88; }
.bep-profile-row {
    display: flex; gap: 10px; padding: 5px 0;
    border-bottom: 1px solid #f0f2f8; font-size: 0.88rem;
}
.bep-profile-row:last-child { border-bottom: none; }
.bep-profile-key { color: #8892a4; min-width: 60px; font-weight: 600; }
.bep-profile-val { color: #2d3a5c; font-weight: 500; }

/* Kayıt formu — kademe & tanı */
.reg-level-group {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.reg-level-opt {
    cursor: pointer; user-select: none;
}
.reg-level-opt input[type="radio"] { display: none; }
.reg-level-opt span {
    display: block;
    background: #f0f2f8; border-radius: 14px;
    padding: 7px 13px; font-size: 0.82rem; font-weight: 600;
    color: #5a6a8a; transition: background .15s, color .15s;
}
.reg-level-opt input[type="radio"]:checked + span {
    background: #ebe9ff; color: #6c5ce7;
}
.reg-condition-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.reg-chip {
    display: flex; align-items: center;
    background: #f0f2f8; border-radius: 14px;
    padding: 7px 13px; font-size: 0.82rem; font-weight: 600;
    color: #5a6a8a; cursor: pointer; transition: background .15s, color .15s;
    user-select: none;
}
.reg-chip:has(input:checked) {
    background: #ebe9ff; color: #6c5ce7;
}
.reg-chip input[type="checkbox"] { display: none; }

.analysis-session-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid #f0f2f8;
    font-size: 0.86rem; flex-wrap: wrap;
}
.analysis-session-row:last-child { border-bottom: none; }
.analysis-session-date { color: #5a6a8a; min-width: 110px; }
.analysis-session-module { color: #2d3a5c; font-weight: 600; flex: 1; }
.analysis-session-stat { color: #8892a4; white-space: nowrap; }
.analysis-empty { color: #8892a4; font-size: 0.88rem; text-align: center; padding: 12px 0; }
.bep-report-btn {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff; border: none; border-radius: 16px;
    font-size: 1.05rem; font-weight: 700; cursor: pointer;
    transition: opacity .2s, transform .1s;
    box-shadow: 0 6px 20px rgba(0,184,148,.28);
}
.bep-report-btn:hover { opacity: .9; transform: translateY(-1px); }
.bep-report-btn:disabled { opacity: .6; cursor: default; transform: none; }
.bep-report-output {
    background: #f7f9fc; border-radius: 16px;
    border: 1px solid #e8ecf4;
    padding: 20px 18px 18px;
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 14px;
}
.bep-report-header {
    font-size: 1.05rem; font-weight: 800; color: #2d3a5c;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f2f8;
}
.bep-disclaimer {
    background: #fff8e1; border: 2px solid #f59e0b;
    padding: 12px 16px; border-radius: 10px; margin: 14px 0;
    font-size: 0.9rem; font-weight: 600; color: #92400e; line-height: 1.6;
    display: flex; gap: 10px; align-items: flex-start;
}
.bep-report-text {
    width: 100%; box-sizing: border-box;
    min-height: 360px; padding: 20px;
    border: none; border-radius: 14px;
    font-size: 0.97rem; line-height: 1.85; color: #2d3a5c;
    font-family: inherit; resize: vertical;
    background: #f7f9fc;
    letter-spacing: 0.01em;
}
.bep-copy-btn {
    align-self: stretch; padding: 14px;
    background: linear-gradient(135deg, #2d3a5c, #4a5e8a);
    color: #fff; border: none;
    border-radius: 14px; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: opacity .2s;
    text-align: center;
}
.bep-copy-btn:hover { opacity: .88; }

/* =============================================
   ANALİZ EKRANI – AZ VE ÖZ KARTLAR
   ============================================= */
.az-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 14px rgba(44,62,100,.09);
    padding: 22px 20px 18px;
}
.az-card-title {
    font-size: 1rem; font-weight: 800; color: #2d3a5c;
    margin: 0 0 4px;
}
.az-card-sub {
    font-size: 0.82rem; color: #7a8ba8; margin: 0 0 16px; line-height: 1.4;
}
.az-identity-card { display: flex; flex-direction: column; gap: 10px; }
.az-identity-top { display: flex; align-items: center; gap: 14px; }
.az-identity-icon { font-size: 2rem; }
.az-identity-title { font-size: 1rem; font-weight: 800; color: #2d3a5c; }
.az-identity-sub { font-size: 1.15rem; font-weight: 700; color: #4a5e8a; }
.az-identity-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.az-tag {
    font-size: 0.76rem; font-weight: 700; padding: 4px 10px;
    border-radius: 30px; white-space: nowrap;
}
.az-tag-level { background: #e8f4fd; color: #2980b9; }
.az-tag-cond { background: #fef9e7; color: #b7770d; }
.az-tag-empty { font-size: 0.78rem; color: #b0bec5; font-style: italic; }
.az-session-meta { font-size: 0.78rem; color: #a0b0c8; }
.az-metric { margin-bottom: 18px; }
.az-metric:last-of-type { margin-bottom: 12px; }
.az-metric-label {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 5px;
    font-size: 0.88rem; font-weight: 700; color: #2d3a5c;
}
.az-metric-val { font-size: 1.05rem; font-weight: 800; }
.az-bar-track {
    height: 10px; background: #eef1f7; border-radius: 8px; overflow: hidden;
}
.az-bar-fill {
    height: 100%; border-radius: 8px;
    transition: width 0.7s cubic-bezier(.4,0,.2,1);
    width: 0%;
}
.az-bar-green { background: linear-gradient(90deg, #00b894, #55efc4); }
.az-bar-yellow { background: linear-gradient(90deg, #f9ca24, #f0932b); }
.az-bar-orange { background: linear-gradient(90deg, #e17055, #d63031); }
.az-metric-hint { font-size: 0.73rem; color: #9aa5b8; margin-top: 3px; }
.az-insight {
    background: #f0f4ff; border-radius: 12px;
    padding: 12px 14px; font-size: 0.85rem; color: #2d3a5c;
    line-height: 1.55; font-weight: 500; margin-top: 4px;
}

/* =============================================
   AUTH EKRANI (GİRİŞ / KAYIT)
   ============================================= */
#auth-screen {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: flex-start; justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px;
    overflow-y: auto;
}
.auth-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 28px 28px 24px;
    width: 100%; max-width: 380px;
    display: flex; flex-direction: column; align-items: center;
    gap: 0;
    margin: auto;
}
.auth-logo {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(102,126,234,.3);
}
.auth-app-name {
    font-size: 1.4rem; font-weight: 800;
    color: #2d3a5c; margin: 0 0 2px;
    text-align: center; letter-spacing: -0.5px;
}
.auth-tagline {
    font-size: 0.82rem; color: #8892a4;
    margin: 0 0 14px; text-align: center;
}
.auth-tabs {
    display: flex; width: 100%;
    background: #f0f2f8; border-radius: 12px;
    padding: 4px; gap: 4px;
    margin-bottom: 16px;
}
.auth-tabs button {
    flex: 1; padding: 10px 0;
    border: none; border-radius: 9px;
    background: transparent;
    color: #8892a4; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.auth-tabs button.active {
    background: #fff;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(102,126,234,.2);
}
#loginForm, #registerForm {
    width: 100%; display: flex; flex-direction: column; gap: 10px;
}
.auth-field {
    display: flex; flex-direction: column; gap: 6px;
}
.auth-field label {
    font-size: 0.82rem; font-weight: 600; color: #5a6a8a;
    text-transform: uppercase; letter-spacing: .5px;
}
.auth-field input {
    width: 100%; box-sizing: border-box;
    padding: 13px 16px;
    border: 2px solid #e8ebf4;
    border-radius: 12px;
    font-size: 1rem; color: #2d3a5c;
    outline: none; transition: border-color .2s;
    background: #f9fafd;
}
.auth-field input:focus {
    border-color: #667eea;
    background: #fff;
}
.auth-submit-btn {
    width: 100%; padding: 14px;
    margin-top: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; border: none; border-radius: 14px;
    font-size: 1.05rem; font-weight: 700;
    cursor: pointer; transition: opacity .2s, transform .1s;
    letter-spacing: .3px;
}
.auth-submit-btn:hover { opacity: .92; transform: translateY(-1px); }
.auth-submit-btn:active { opacity: 1; transform: translateY(0); }
.auth-submit-btn:disabled { opacity: .6; cursor: default; transform: none; }
.auth-error {
    min-height: 20px; margin-top: 10px;
    color: #e74c3c; font-size: 0.88rem;
    font-weight: 600; text-align: center;
}
.auth-forgot-link {
    width: 100%; margin-top: 10px; padding: 10px;
    background: none; border: none;
    color: #667eea; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; text-align: center;
    min-height: 44px;
}
.auth-forgot-link:hover { text-decoration: underline; }
.auth-reset-info {
    margin: 0 0 12px; padding: 10px 14px;
    background: #eef2ff; border-radius: 10px;
    font-size: 0.86rem; color: #4a5578;
}
.recovery-modal-overlay {
    position: fixed; inset: 0; z-index: 9700;
    background: rgba(20, 25, 60, 0.65);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.recovery-modal-card {
    position: relative;
    background: #fff; border-radius: 24px;
    padding: 28px 24px; max-width: 380px; width: 100%;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0,0,0,0.3);
}
.recovery-modal-dismiss {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #eef2ff;
    color: #5060a8;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.recovery-modal-dismiss:hover {
    background: #dde5ff;
}
.recovery-modal-icon { font-size: 2.4rem; margin-bottom: 8px; }
.recovery-modal-card h3 { margin: 0 0 8px; color: #1d2746; }
.recovery-modal-card p { margin: 0 0 16px; font-size: 0.9rem; color: #6e7894; line-height: 1.5; }
.recovery-code-box {
    background: #f0f4ff; border: 2px dashed #667eea;
    border-radius: 14px; padding: 16px;
    font-size: 1.6rem; font-weight: 800; letter-spacing: 3px;
    color: #3a4a8c; margin-bottom: 14px;
    -webkit-user-select: text; user-select: text;
}
.recovery-copy-btn {
    width: 100%; padding: 12px; margin-bottom: 8px;
    background: #eef2ff; color: #4a5aa8;
    border: none; border-radius: 12px;
    font-size: 0.95rem; font-weight: 700; cursor: pointer;
    min-height: 44px;
}
.verify-code-input {
    width: 100%; box-sizing: border-box;
    padding: 14px; margin-bottom: 12px;
    border: 2px solid #d8ddf0; border-radius: 12px;
    font-size: 1.5rem; font-weight: 800; letter-spacing: 6px;
    text-align: center; color: #3a4a8c;
}
.verify-code-input:focus { border-color: #667eea; outline: none; }
.recovery-text-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 2px solid #d8ddf0;
    border-radius: 12px;
    font-size: 1rem;
    color: #2d3a5c;
    background: #f9fafd;
}
.recovery-text-input:focus { border-color: #667eea; outline: none; background: #fff; }
.recovery-modal-card .recovery-close-btn { margin-bottom: 8px; }
.recovery-close-btn {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; border: none; border-radius: 12px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    min-height: 44px;
}

/* ========== İLK AÇILIŞ REHBERİ ========== */
.onboarding-overlay {
    position: fixed; inset: 0; z-index: 9600;
    background: rgba(20, 25, 60, 0.6);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.onboarding-card {
    background: #fff; border-radius: 24px;
    padding: 30px 24px 22px; max-width: 400px; width: 100%;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0,0,0,0.3);
}
.onboarding-icon { font-size: 3rem; margin-bottom: 10px; }
.onboarding-card h3 { margin: 0 0 10px; color: #1d2746; font-size: 1.2rem; }
.onboarding-card p { margin: 0; font-size: 0.92rem; color: #6e7894; line-height: 1.55; min-height: 88px; }
.onboarding-dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 14px; }
.ob-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #d8ddf0; transition: 0.2s;
}
.ob-dot.active { background: #667eea; width: 22px; border-radius: 5px; }
.onboarding-btns { display: flex; gap: 10px; }
.onboarding-skip {
    flex: 1; padding: 12px; min-height: 48px;
    background: #f0f2fa; color: #6e7894;
    border: none; border-radius: 12px;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.onboarding-next {
    flex: 2; padding: 12px; min-height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; border: none; border-radius: 12px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
}

/* ========== İLK KURULUM TANITIMI ========== */
#intro-screen {
    position: fixed; inset: 0; z-index: 9500;
    background: linear-gradient(180deg, #92d8e8 0%, #109486 100%);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.intro-skip {
    position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 2;
    background: rgba(255,255,255,0.22); color: #fff;
    border: none; border-radius: 999px;
    padding: 10px 22px; min-height: 44px;
    font-size: 0.95rem; font-weight: 700; cursor: pointer;
}
.intro-track {
    flex: 1; display: flex; align-items: stretch;
    transition: transform 0.35s ease;
}
.intro-slide {
    min-width: 100%; box-sizing: border-box;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 24px 32px;
}
.intro-slide h2 {
    margin: 26px 0 10px; color: #fffaf0; font-size: 1.45rem; font-weight: 800;
    text-shadow: 0 2px 6px rgba(8, 90, 82, 0.45);
}
.intro-slide p {
    margin: 0; max-width: 340px;
    color: rgba(255,255,255,0.94); font-size: 1rem; line-height: 1.6;
    text-shadow: 0 1px 3px rgba(8, 90, 82, 0.35);
}
.intro-visual {
    position: relative; width: 200px; height: 190px;
    display: flex; align-items: center; justify-content: center;
}
.intro-fx { pointer-events: none; user-select: none; }
.intro-avatar-ring {
    width: 132px; height: 132px; border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.95);
    overflow: hidden; background: #fff;
    box-shadow: 0 12px 36px rgba(0,0,0,0.22);
}
.intro-avatar-ring img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-slide.active .intro-avatar-ring { animation: intro-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.intro-wave {
    position: absolute; bottom: 2px; right: 6px; font-size: 42px;
    transform-origin: 70% 70%;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.intro-slide.active .intro-wave { animation: intro-wave 1.4s ease-in-out 0.5s 3; }
.intro-twinkle { position: absolute; animation: splash-twinkle 1.6s ease-in-out infinite; }
.intro-twinkle.tw1 { top: -4px; left: 4px; font-size: 26px; }
.intro-twinkle.tw2 { top: 20px; right: -2px; font-size: 18px; animation-delay: 0.4s; }
.intro-twinkle.tw3 { bottom: 14px; left: -10px; font-size: 17px; animation-delay: 0.7s; }
.intro-twinkle.tw4 { bottom: -2px; right: 34px; font-size: 21px; animation-delay: 0.2s; }
.intro-emoji-main {
    font-size: 84px;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}
.intro-slide.active .intro-emoji-main { animation: intro-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.intro-mic-rings span {
    position: absolute; inset: 32px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.75);
    opacity: 0;
}
.intro-slide.active .intro-mic-rings span { animation: intro-ring 1.8s ease-out infinite; }
.intro-slide.active .intro-mic-rings span:nth-child(2) { animation-delay: 0.9s; }
.intro-bubble { position: absolute; font-size: 34px; opacity: 0; }
.intro-bubble.bb1 { top: 2px; left: -4px; }
.intro-bubble.bb2 { top: 30px; right: -8px; font-size: 28px; }
.intro-slide.active .intro-bubble { animation: intro-rise-in 0.5s ease 0.5s both, intro-bob 2.4s ease-in-out 1s infinite; }
.intro-slide.active .intro-bubble.bb2 { animation-delay: 0.8s, 1.3s; }
.intro-cards { display: flex; gap: 14px; }
.intro-card {
    width: 74px; height: 88px;
    background: #fff; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    opacity: 0;
}
.intro-slide.active .intro-card { animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.intro-slide.active .intro-card.ic2 { animation-delay: 0.18s; }
.intro-slide.active .intro-card.ic3 { animation-delay: 0.36s; }
.intro-drop { position: absolute; top: -6px; font-size: 30px; opacity: 0; }
.intro-drop.dr1 { left: 20px; }
.intro-drop.dr2 { left: 88px; font-size: 24px; }
.intro-drop.dr3 { right: 18px; }
.intro-slide.active .intro-drop { animation: intro-drop 2.2s ease-in infinite; }
.intro-slide.active .intro-drop.dr2 { animation-delay: 0.6s; }
.intro-slide.active .intro-drop.dr3 { animation-delay: 1.2s; }
.intro-footer {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    padding: 10px 24px calc(26px + env(safe-area-inset-bottom));
}
#intro-screen .ob-dot { background: rgba(255,255,255,0.4); }
#intro-screen .ob-dot.active { background: #fff; }
.intro-next {
    width: 100%; max-width: 340px; min-height: 54px;
    background: #fff; color: #0e7a6e;
    border: none; border-radius: 16px;
    font-size: 1.1rem; font-weight: 800; cursor: pointer;
    box-shadow: 0 10px 26px rgba(0,0,0,0.2);
}
.intro-next:active { transform: scale(0.98); }
@keyframes intro-pop {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes intro-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-16deg); }
    60% { transform: rotate(14deg); }
}
@keyframes intro-ring {
    from { opacity: 0.9; transform: scale(0.55); }
    to   { opacity: 0; transform: scale(1.3); }
}
@keyframes intro-rise-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes intro-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
@keyframes intro-drop {
    0%   { opacity: 0; transform: translateY(-16px); }
    12%  { opacity: 1; }
    75%  { opacity: 1; transform: translateY(118px); }
    100% { opacity: 0; transform: translateY(146px); }
}
@media (prefers-reduced-motion: reduce) {
    .intro-track { transition: none; }
    #intro-screen * { animation: none !important; }
    .intro-bubble, .intro-card { opacity: 1; }
    .intro-mic-rings, .intro-drop { display: none; }
}

/* ========== ANALİZ İLERLEME GRAFİĞİ ========== */
.az-trend-chart { position: relative; margin-top: 6px; touch-action: pan-y; }
.az-trend-tooltip {
    position: absolute; z-index: 5;
    background: #2a3352; color: #fff;
    padding: 6px 10px; border-radius: 8px;
    font-size: 0.8rem; font-weight: 600;
    pointer-events: none; white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.az-trend-details { margin-top: 10px; }
.az-trend-details summary {
    cursor: pointer; font-size: 0.85rem; color: #667eea;
    font-weight: 600; min-height: 44px; display: flex; align-items: center;
}
.az-trend-table-wrap { overflow-x: auto; }
.az-trend-table {
    width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.az-trend-table th, .az-trend-table td {
    padding: 7px 10px; text-align: left;
    border-bottom: 1px solid #edf0f6; color: #4a5578;
}
.az-trend-table th { color: #8a93a8; font-weight: 700; }
.auth-offline-note {
    margin-top: 12px; padding: 10px 14px;
    background: #fff8e1; border-radius: 10px;
    font-size: 0.83rem; color: #7c6a00;
    text-align: center; width: 100%; box-sizing: border-box;
}

/* ========== ÖĞRETMEN PANELİ EDITÖR BUTONU ========== */
.teacher-tool-editor {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #eef4ff 0%, #e8efff 100%) !important;
    border-color: #b8caf5 !important;
    color: #1a3a7a !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px !important;
}
.teacher-tool-editor span:first-child { font-size: 1.4rem !important; }


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
    .login-student-card { width: calc(50% - 8px); }
    .iep-form-row { grid-template-columns: 1fr; }
    .iep-trial-btns { gap: 8px; }
    .skills-grid { grid-template-columns: 1fr; }
    .behavior-form-row { grid-template-columns: 1fr; }
    .teacher-tools-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 20px 24px; }
}


/* =============================================
   KVKK & HESAP AYARLARI
   ============================================= */
.kvkk-consent-row {
    margin: 12px 0 8px;
    padding: 12px 14px;
    background: #f0f6ff;
    border-radius: 10px;
    border: 1px solid #c8dcf5;
}
.kvkk-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.5;
}
.kvkk-consent-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}
.kvkk-consent-label a { color: #3b7dd8; text-decoration: underline; }

.veli-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 4px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #4a5568;
    line-height: 1.5;
}
.veli-consent-label input[type="checkbox"] {
    margin-top: 2px;
    width: 15px; height: 15px;
    flex-shrink: 0; cursor: pointer;
}
.veli-consent-label a { color: #3b7dd8; text-decoration: underline; font-weight: 600; }

.guest-name-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 4px;
}

.kvkk-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 16px;
}
.kvkk-modal-box {
    background: white; border-radius: 18px; max-width: 560px; width: 100%;
    max-height: 80vh; display: flex; flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.kvkk-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px; border-bottom: 1px solid #eef2f7;
}
.kvkk-modal-head h3 { font-size: 1.05rem; color: #1a2744; margin: 0; }
.kvkk-modal-close {
    background: none; border: none; font-size: 1.2rem;
    cursor: pointer; color: #8899aa; padding: 4px 8px;
}
.kvkk-modal-body {
    padding: 20px 24px; overflow-y: auto; font-size: 0.88rem;
    color: #4a5568; line-height: 1.65;
}
.kvkk-modal-body h4 {
    color: #1a2744; margin: 16px 0 6px; font-size: 0.95rem;
}
.kvkk-modal-body p { margin: 0 0 10px; }

.a11y-section-title {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    color: #8899bb; letter-spacing: 0.06em; margin-bottom: 12px;
}
.a11y-account-section {
    padding: 18px 20px 16px;
    border-bottom: 1px solid #eef2f7;
}
.a11y-account-user {
    font-size: 0.9rem; color: #3b7dd8; font-weight: 600; margin-bottom: 14px;
}
.a11y-account-meta {
    margin-top: 4px;
    color: #6d7f99;
    font-size: 0.84rem;
    font-weight: 500;
}
.a11y-email-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #dce8f4;
}
.a11y-email-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.a11y-email-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a99b2;
}
.a11y-email-value {
    font-size: 0.96rem;
    color: #223a58;
    overflow-wrap: anywhere;
}
.a11y-email-status {
    font-size: 0.8rem;
    font-weight: 700;
    color: #5a73d8;
}
.a11y-email-edit-btn,
.a11y-email-save-btn,
.a11y-email-cancel-btn {
    min-height: 40px;
    border: none;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}
.a11y-email-edit-btn,
.a11y-email-save-btn {
    background: linear-gradient(135deg, #667eea, #7b5fe8);
    color: #fff;
}
.a11y-email-cancel-btn {
    background: #eef2ff;
    color: #5e6e9f;
}
.a11y-email-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fbfcff;
    border: 1px solid #e2eaf5;
}
.a11y-email-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 2px solid #dfe7f2;
    border-radius: 12px;
    font-size: 0.96rem;
    color: #223a58;
    background: #fff;
}
.a11y-email-input:focus {
    outline: none;
    border-color: #667eea;
}
.a11y-email-editor-actions {
    display: flex;
    gap: 10px;
}
.a11y-account-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.a11y-account-btn {
    min-height: 44px;
    padding: 10px 16px; border-radius: 12px; font-size: 0.9rem;
    font-weight: 600; cursor: pointer; border: 1.5px solid #dce8f4;
    background: white; color: #4a5568; text-align: left;
    display: flex; align-items: center;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.a11y-account-btn:hover { background: #f0f6ff; border-color: #c8def4; }
.a11y-account-btn:active { transform: scale(0.98); }
.a11y-danger-btn { border-color: #fdd; color: #c0392b; }
.a11y-danger-btn:hover { background: #fff5f5; border-color: #f7c4c4; }
.a11y-kvkk-link {
    display: inline-block;
    font-size: 0.82rem; color: #6C63FF; text-decoration: none;
    font-weight: 600;
}
.a11y-kvkk-link:hover { text-decoration: underline; }

/* ---- Yardım paneli ---- */
.help-section { padding: 18px 20px; border-bottom: 1px solid #eef2f7; }
.help-section:last-child { border-bottom: none; }
.help-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
}
.help-item-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f2ff;
    border-radius: 12px;
}
.help-item-text strong { display: block; font-size: 0.92rem; color: #1a2f4a; margin-bottom: 2px; }
.help-item-text p { margin: 0; font-size: 0.82rem; color: #7a8fa8; line-height: 1.45; }
.help-faq-item {
    border: 1.5px solid #eef2f7;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.help-faq-item:last-child { margin-bottom: 0; }
.help-faq-item summary {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2d2a5c;
    cursor: pointer;
    list-style: none;
}
.help-faq-item summary::-webkit-details-marker { display: none; }
.help-faq-item summary::after { content: '+'; float: right; color: #6C63FF; font-weight: 800; }
.help-faq-item[open] summary::after { content: '−'; }
.help-faq-item p { margin: 10px 0 0; font-size: 0.84rem; color: #6b7b93; line-height: 1.5; }

/* =============================================
   AAC TOOLBAR & EMOJİ PICKER
   ============================================= */
.aac-toolbar {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px 4px;
    flex-shrink: 0;
}
.aac-card-search {
    flex: 1; min-width: 0;
    padding: 8px 12px; border-radius: 20px;
    border: 2px solid #dce8f4; font-size: 0.95rem;
    background: #f4f8ff; color: #1f3653; outline: none;
    transition: border-color 0.18s;
}
.aac-card-search:focus { border-color: #4c8dff; background: white; }

.aac-add-symbol-btn {
    padding: 8px 14px; border-radius: 20px;
    border: 2px solid #c3d8ff; background: #eef5ff;
    color: #2d6bc4; font-size: 0.85rem; font-weight: 700;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: background 0.18s;
}
.aac-add-symbol-btn:hover { background: #dceeff; }

/* Modal overlay */
.aac-search-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: flex-end;
    justify-content: center; z-index: 9000;
    padding: 0;
}
@media (min-width: 520px) {
    .aac-search-overlay { align-items: center; padding: 16px; }
}

.aac-search-box {
    background: white; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 520px;
    max-height: 85vh; display: flex; flex-direction: column;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
}
@media (min-width: 520px) {
    .aac-search-box { border-radius: 20px; }
}

.aac-search-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 12px; border-bottom: 1px solid #eef2f7; flex-shrink: 0;
}
.aac-search-head h3 { margin: 0; font-size: 1rem; color: #1a2744; }
.aac-search-close {
    background: none; border: none; font-size: 1.15rem;
    cursor: pointer; color: #8899aa; padding: 4px 8px; line-height: 1;
}

/* Emoji / Fotoğraf mod sekmeleri */
.aac-mode-tabs {
    display: flex; gap: 6px; padding: 10px 14px 6px; flex-shrink: 0;
    border-bottom: 1px solid #eef2f7;
}
.aac-mode-tab {
    flex: 1; padding: 7px; border-radius: 10px;
    border: 1.5px solid #dce8f4; background: #f4f8ff;
    color: #4a5568; font-size: 0.85rem; font-weight: 700;
    cursor: pointer; transition: all 0.15s;
}
.aac-mode-tab.active { background: #6C63FF; color: white; border-color: #6C63FF; }

/* Fotoğraf arama */
.aac-photo-search-row {
    display: flex; gap: 8px; padding: 10px 14px 6px; flex-shrink: 0;
}
.aac-photo-search-row input[type="text"] {
    flex: 1; padding: 9px 13px; border-radius: 12px;
    border: 2px solid #dce8f4; font-size: 0.95rem; color: #1f3653;
    background: #f8fbff; outline: none; transition: border-color 0.18s;
}
.aac-photo-search-row input[type="text"]:focus { border-color: #6C63FF; background: white; }
.aac-photo-search-btn {
    padding: 9px 18px; border-radius: 12px; border: none;
    background: #6C63FF; color: white; font-size: 0.9rem;
    font-weight: 700; cursor: pointer; transition: opacity 0.15s;
}
.aac-photo-search-btn:hover { opacity: 0.88; }

.aac-photo-grid {
    flex: 1; overflow-y: auto; padding: 6px 12px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    align-content: start; min-height: 140px;
}
.aac-photo-hint {
    grid-column: 1 / -1; text-align: center;
    color: #9baabb; font-size: 0.82rem; padding: 24px 0; margin: 0;
}
.aac-photo-item {
    border: 2px solid transparent; border-radius: 10px;
    background: none; padding: 0; cursor: pointer; overflow: hidden;
    aspect-ratio: 4/3; transition: border-color 0.15s;
}
.aac-photo-item:hover { border-color: #6C63FF; }
.aac-photo-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: 8px;
}
.aac-pexels-credit {
    display: block; text-align: center; font-size: 0.68rem; color: #b0b8c4;
    padding: 5px 14px 6px; text-decoration: none; flex-shrink: 0;
}
.aac-pexels-credit:hover { color: #6C63FF; }
.aac-pexels-badge {
    position: absolute; bottom: 2px; right: 3px;
    font-size: 9px; font-weight: 700; color: #fff;
    background: rgba(0,0,0,0.35); border-radius: 3px;
    padding: 0 3px; line-height: 14px; pointer-events: none;
    letter-spacing: 0;
}

/* Emoji kategori sekmeleri */
.aac-emoji-tabs {
    display: flex; gap: 6px; padding: 10px 14px 6px;
    overflow-x: auto; flex-shrink: 0; scrollbar-width: none;
}
.aac-emoji-tabs::-webkit-scrollbar { display: none; }
.aac-emoji-tab {
    padding: 5px 12px; border-radius: 16px; border: 1.5px solid #dce8f4;
    background: #f4f8ff; color: #4a5568; font-size: 0.78rem; font-weight: 700;
    cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all 0.15s;
}
.aac-emoji-tab.active { background: #6C63FF; color: white; border-color: #6C63FF; }

/* Emoji grid */
.aac-emoji-grid {
    flex: 1; overflow-y: auto; padding: 8px 12px;
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
    align-content: start; min-height: 120px;
}
.aac-emoji-btn {
    font-size: 1.6rem; line-height: 1; padding: 6px;
    border: 2px solid transparent; border-radius: 10px;
    background: none; cursor: pointer; text-align: center;
    transition: background 0.12s, border-color 0.12s;
}
.aac-emoji-btn:hover { background: #f0f0ff; border-color: #6C63FF; }

/* Seçilen emoji + isim satırı */
.aac-emoji-label-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-top: 1px solid #eef2f7; flex-shrink: 0;
}
.aac-selected-emoji { font-size: 2rem; flex-shrink: 0; }
.aac-emoji-label-row input[type="text"] {
    flex: 1; padding: 9px 13px; border-radius: 12px;
    border: 2px solid #dce8f4; font-size: 0.95rem; color: #1f3653;
    background: #f8fbff; outline: none; transition: border-color 0.18s;
}
.aac-emoji-label-row input[type="text"]:focus { border-color: #6C63FF; background: white; }
.aac-emoji-add-btn {
    padding: 9px 18px; border-radius: 12px; border: none;
    background: #6C63FF; color: white; font-size: 0.9rem;
    font-weight: 700; cursor: pointer; flex-shrink: 0; transition: opacity 0.15s;
}
.aac-emoji-add-btn:hover { opacity: 0.88; }

/* =============================================
   DİL TOGGLE BUTONU
   ============================================= */
.lang-toggle-btn {
    background: rgba(255,255,255,0.92);
    border: 1.5px solid #e0e7ff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6C63FF;
    cursor: pointer;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    transition: background 0.15s, transform 0.12s;
    touch-action: manipulation;
    flex-shrink: 0;
}
.lang-toggle-btn:hover { background: #f0eeff; transform: scale(1.05); }


/* =============================================
   MOBİL UYGULAMA İYİLEŞTİRMELERİ
   ============================================= */

/* Tüm dokunulabilir elemanlar için hızlı tap geri bildirimi */
button, [role="button"], .menu-tile, .aac-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
button:active, .menu-tile:active {
    transform: scale(0.96);
    transition: transform 0.08s;
}

/* Çocuklar için büyütülmüş font (480px altı) */
@media (max-width: 480px) {
    .question-bar {
        font-size: 1.3rem !important;
        line-height: 1.5;
        padding: 14px 12px;
    }
    .tile-icon { font-size: 2.6rem; }
    .tile-label { font-size: 0.92rem; font-weight: 700; }
    .tile-desc { font-size: 0.76rem; }
    .welcome-title { font-size: 1.8rem; }
    .welcome-sub { font-size: 1rem; }
    .btn-mic { width: 80px; height: 80px; font-size: 2.5rem; }
    .btn-next { width: 64px; height: 64px; font-size: 1.8rem; }
    .ai-mode-btn { font-size: 0.95rem; padding: 10px 14px; }
    .topic-card-title { font-size: 1.4rem; }
    .topic-card-sub { font-size: 1rem; }
    .topic-level-btn {
        padding: 13px 14px;
        border-radius: 16px;
    }
    .topic-level-btn strong {
        font-size: 0.94rem;
    }
    .topic-level-btn span {
        font-size: 0.8rem;
    }
    .topic-chip { font-size: 1rem; padding: 10px 16px; }
    .topic-start-btn { font-size: 1.2rem; padding: 14px; }
    #info { font-size: 1rem !important; }
    .aac-card-emoji { font-size: 2.2rem; }
    .aac-card-label { font-size: 0.9rem; }
}

/* Dinamik viewport yüksekliği — klavye açılınca doğru hesaplama */
@supports (height: 100dvh) {
    body { min-height: 100dvh; }
    #game-container { min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px); }
}

/* Scroll momentum iOS'ta pürüzsüz */
.main-card, .side-card, #chat-bubbles, .menu-screen-inner, #menu-screen {
    -webkit-overflow-scrolling: touch;
}

.offline-banner {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    border: 1.5px solid #cbd5e0;
    color: #334155;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 8px 24px rgba(51, 65, 85, 0.12);
    animation: fadeInModal 0.3s ease;
}

.sound-hint-banner {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff8e6;
    border: 1.5px solid #f2d491;
    color: #7a5b13;
    border-radius: 14px;
    padding: 8px 8px 8px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(122, 91, 19, 0.15);
    animation: fadeInModal 0.3s ease;
}
.sound-hint-banner span { flex: 1; }
.sound-hint-close {
    flex-shrink: 0;
    border: none;
    background: rgba(122, 91, 19, 0.08);
    color: #7a5b13;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
}

/* iOS 16px altı input yazısına odaklanınca sayfayı kalıcı zoom'lar */
@media (max-width: 768px) {
    input[type="text"], input[type="search"], input[type="email"],
    input[type="password"], input[type="number"], textarea, select {
        font-size: 16px !important;
    }
}

/* =============================================
   BOTTOM NAVIGATION BAR
   ============================================= */
.bottom-nav {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    height: 66px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 1px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
    padding-bottom: 0;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 14px;
    color: #94a3b8;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
    margin: 4px;
}

.bottom-nav-item:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.05);
}

.bottom-nav-item.active {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
}

.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.22) translateY(-2px);
}

.bottom-nav-icon {
    font-size: 1.45rem;
    line-height: 1;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.bottom-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
}

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

/* İçerik alanına alt nav için boşluk bırak */
body.has-bottom-nav #menu-screen,
body.has-bottom-nav #aac-screen,
body.has-bottom-nav #schedule-screen,
body.has-bottom-nav #analysis-screen,
body.has-bottom-nav #store-screen,
body.has-bottom-nav #object-screen {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

/* Geniş ekranda bottom nav gizle (tablet/desktop) */
@media (min-width: 769px) {
    .bottom-nav { display: none !important; }
    body.has-bottom-nav #menu-screen,
    body.has-bottom-nav #aac-screen,
    body.has-bottom-nav #schedule-screen,
    body.has-bottom-nav #analysis-screen,
    body.has-bottom-nav #store-screen,
    body.has-bottom-nav #object-screen {
        padding-bottom: 0;
    }
}

/* =============================================
   SKELETON / LOADING STATES
   ============================================= */
@keyframes skeleton-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton {
    background: linear-gradient(90deg,
        #ececec 25%, #d8d8d8 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.4s ease infinite;
    border-radius: 10px;
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}
.skeleton * { visibility: hidden !important; }

/* Öğrenci kartı iskeleti */
.login-student-card.skeleton {
    height: 120px;
    width: 140px;
    border-radius: 16px;
}

/* Analiz metrik barı iskeleti */
.az-metric-label.skeleton,
.az-bar-track.skeleton {
    border-radius: 8px;
    height: 18px;
}
.az-bar-track.skeleton { height: 10px; margin: 6px 0; }

/* Terapi sorusu iskeleti */
.question-bar.skeleton {
    min-height: 64px;
    border-radius: 16px;
}

/* Genel yardımcılar */
.skel-line {
    height: 16px;
    border-radius: 8px;
    margin: 6px 0;
}
.skel-line.skel-short { width: 45%; }
.skel-line.skel-med   { width: 70%; }
.skel-line.skel-full  { width: 100%; }

/* Yükleme durumunda soluk kart */
.az-card.az-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ---- Rapor: ozet satiri (Nesne Tanima vb.) ---- */
.report-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.report-summary-row:last-child { border-bottom: none; }
.report-summary-icon { font-size: 1.6rem; }
.report-summary-info { display: flex; flex-direction: column; gap: 2px; }
.report-summary-info span { font-size: 0.82rem; color: #6b7a90; }

/* ---- Analiz: kartla yanit metrigi ---- */
.az-bar-blue { background: #4d9de0; }

/* Custom Confirm Modal */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 20px;
    animation: fadeInModal 0.2s ease-out;
}
.confirm-modal-card {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: scaleInModal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.confirm-modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: pulseIcon 1.5s infinite;
}
.confirm-modal-card h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    color: #1e293b;
    font-weight: 700;
}
.confirm-modal-card p {
    margin: 0 0 24px;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
}
.confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.confirm-btn-cancel, .confirm-btn-ok {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.confirm-btn-cancel {
    background: #f1f5f9;
    color: #475569;
}
.confirm-btn-cancel:hover {
    background: #e2e8f0;
}
.confirm-btn-ok {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.confirm-btn-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}
.confirm-btn-ok:active {
    transform: translateY(0);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleInModal {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===================== VELİ KAPISI ===================== */
.parent-gate-question {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--auth-ink);
    margin: 10px 0 4px;
}

/* ===================== MİSAFİR MODU ===================== */
.menu-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 14px;
    padding: 12px 16px;
    border: 1.5px solid rgba(108, 99, 255, 0.35);
    background: var(--soft-purple);
    color: #3a3577;
    border-radius: 14px;
    font-size: 0.92rem;
    text-align: left;
    cursor: pointer;
    min-height: 44px;
    box-sizing: border-box;
}
.menu-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.menu-banner-text strong { font-weight: 700; }
.menu-banner-text small { font-size: 0.8rem; color: #5b55a8; }
.menu-banner-cta {
    flex-shrink: 0;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.auth-guest-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fbf9 0%, #eef4ff 100%);
    border: 1.5px solid #b5e0d8;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    min-height: 60px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.auth-guest-btn:hover {
    box-shadow: 0 8px 20px rgba(15, 157, 143, 0.18);
    transform: translateY(-1px);
}
.auth-guest-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f9d8f;
    border-radius: 12px;
    font-size: 1.15rem;
}
.auth-guest-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1px;
}
.auth-guest-text strong { color: #0b7c71; font-size: 1rem; }
.auth-guest-text small { color: #5b7a76; font-size: 0.8rem; }
.auth-guest-chevron {
    color: #0f9d8f;
    font-size: 1.4rem;
    font-weight: 700;
}

/* ===================== HAFTALIK ÖZET KARTI ===================== */
.weekly-card {
    max-width: 1080px;
    margin: 0 auto 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1.5px solid #e2e6f5;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(29, 39, 70, 0.06);
}
.weekly-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.weekly-card-head strong { font-size: 1.02rem; color: var(--auth-ink); }
.weekly-refresh-btn {
    border: 1px solid #dfe4f2;
    background: #f7f8fd;
    color: var(--auth-muted);
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 36px;
}
.weekly-text { margin: 0; color: #37415f; font-size: 0.95rem; line-height: 1.55; }
.weekly-muted { color: var(--auth-muted); }
.weekly-tip {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f1fbf5;
    border: 1.5px solid #bfe8cd;
    border-radius: 12px;
}
.weekly-tip strong { display: block; font-size: 0.82rem; color: #1d7a43; margin-bottom: 4px; }
.weekly-tip p { margin: 0; color: #245c3c; font-size: 0.93rem; line-height: 1.5; }
.weekly-start-btn {
    margin-top: 12px;
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
}

/* ===================== RUTİN HATIRLATMA KARTI ===================== */
.routine-card {
    max-width: 1080px;
    margin: 14px auto 0;
    padding: 18px 20px;
    background: #fff;
    border: 1.5px solid #e2e6f5;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.routine-info { flex: 1 1 260px; }
.routine-info strong { display: block; font-size: 1rem; color: var(--auth-ink); margin-bottom: 4px; }
.routine-info p { margin: 0 0 6px; color: var(--auth-muted); font-size: 0.88rem; line-height: 1.5; }
.routine-status { font-size: 0.85rem; font-weight: 700; color: #1d7a43; }
.routine-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.routine-controls input[type="time"] {
    border: 1.5px solid #dfe4f2;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 1rem;
    min-height: 44px;
    background: #f7f8fd;
    color: var(--auth-ink);
}
.routine-btn {
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
}
.routine-btn:disabled { background: #c3c7d9; cursor: not-allowed; }

/* ===================== SEANS SONU BAŞARI KARTI ===================== */
.therapy-complete-stat {
    font-size: 1.15rem !important;
    font-weight: 800;
    color: var(--auth-ink);
}
.therapy-complete-date {
    font-size: 0.85rem !important;
    color: var(--auth-muted);
    margin-top: 2px;
}
.therapy-complete-show {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #fff4d6;
    border: 1.5px solid #f2ce74;
    border-radius: 20px;
    color: #8a6410;
    font-weight: 700;
    font-size: 0.92rem;
}

/* ========== KONU HARİTASI ========== */
#speechmap-screen {
    width: min(1080px, 96vw);
    flex-direction: column;
    align-items: stretch;
}

.map-viewport {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background:
        url('map-assets/map-bg.jpg') center top / cover no-repeat,
        radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 9%),
        radial-gradient(circle at 85% 22%, rgba(255, 255, 255, 0.45) 0%, transparent 8%),
        radial-gradient(circle at 70% 62%, rgba(96, 165, 250, 0.35) 0%, transparent 14%),
        radial-gradient(circle at 20% 78%, rgba(74, 222, 128, 0.5) 0%, transparent 16%),
        linear-gradient(180deg, #8ecdf3 0%, #a9dcf5 16%, #9fd77e 32%, #7fc95e 62%, #8ed072 100%);
    box-shadow: 0 24px 70px rgba(29, 47, 86, 0.25);
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.map-back-btn {
    top: 18px;
    left: 18px;
}

.map-avatar-chip {
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 20px;
    margin-top: 56px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(29, 47, 86, 0.18);
    font-family: inherit;
}
.map-avatar-chip img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(29, 47, 86, 0.2);
}
.map-avatar-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 900;
    color: #1d4ed8;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}
.map-avatar-name small {
    color: #64748b;
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0;
}

.map-hello {
    flex: 1;
    text-align: center;
    padding-top: 6px;
}
.map-hello h1 {
    margin: 0 0 6px;
    color: #1e3a8a;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
}
.map-hello p {
    margin: 0 auto;
    color: #1f3a63;
    font-weight: 700;
    font-size: 0.95rem;
    max-width: 430px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.map-star-badge {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding: 12px 18px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(29, 47, 86, 0.18);
}
.map-star-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: #1e3a8a;
}
.map-star-badge small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-weight: 700;
    font-size: 0.75rem;
}

.map-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.map-sign-title {
    background: linear-gradient(180deg, #9a6631 0%, #7a4c1c 100%);
    color: #f7e7c8;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 900;
    padding: 12px 36px;
    border-radius: 14px;
    border: 3px solid #5d3a12;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 8px 18px rgba(63, 38, 8, 0.35);
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.35);
}
.map-level-chip {
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid #c7d2fe;
    color: #3730a3;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 999px;
    padding: 10px 18px;
    min-height: 44px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(29, 47, 86, 0.16);
    font-family: inherit;
}
.map-level-chip:hover { background: #eef2ff; }

.map-trail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 36px;
    column-gap: 8px;
    padding: 16px 4px 10px;
    justify-items: center;
}
.map-path-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
#mapRoad {
    stroke: #ecca72;
    stroke-width: 26;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 0 rgba(120, 86, 28, 0.4));
}
#mapRoadDash {
    stroke: #fdf3d7;
    stroke-width: 4;
    stroke-dasharray: 14 18;
    stroke-linecap: round;
}

.map-node {
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    padding: 14px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: min(160px, 100%);
    font-family: inherit;
}
.map-node-num {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #475569;
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #cbd5e1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}
.map-node-circle {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid #fff;
    box-shadow: 0 10px 24px rgba(29, 47, 86, 0.28);
    display: flex;
}
.map-node-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.map-node-lock {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #475569;
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
}
.map-node-check {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(21, 128, 61, 0.4);
}
.map-node-flag {
    position: absolute;
    top: -12px;
    right: -10px;
    font-size: 1.5rem;
    filter: drop-shadow(0 3px 4px rgba(15, 23, 42, 0.3));
}
.map-node-plate {
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 8px 14px;
    min-height: 44px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.map-node-label {
    font-weight: 800;
    color: #1f2937;
    font-size: 0.88rem;
    line-height: 1.2;
    text-align: center;
}
.map-node-stars {
    font-size: 0.82rem;
    letter-spacing: 2px;
}

.map-node-locked { cursor: not-allowed; }
.map-node-locked .map-node-img { filter: grayscale(1); opacity: 0.85; }
.map-node-locked .map-node-circle { border-color: #e2e8f0; }
.map-node-locked .map-node-label { color: #94a3b8; }

.map-node-done .map-node-circle { border-color: #facc15; }
.map-node-done .map-node-num { background: #facc15; border-color: #fff; color: #713f12; }
.map-node-done .map-node-plate { background: #fefce8; border-color: #fde68a; }

.map-node-current .map-node-circle {
    border-color: #3b82f6;
    animation: mapNodePulse 1.8s ease-in-out infinite;
}
.map-node-current .map-node-num { background: #3b82f6; border-color: #fff; color: #fff; }
.map-node-current .map-node-plate { border-color: #bfdbfe; }

@keyframes mapNodePulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.3), 0 12px 26px rgba(29, 47, 86, 0.3); }
    50% { box-shadow: 0 0 0 13px rgba(59, 130, 246, 0.12), 0 12px 26px rgba(29, 47, 86, 0.3); }
}

.map-node.shake { animation: mapNodeShake 0.4s ease; }
@keyframes mapNodeShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    50% { transform: translateX(7px); }
    75% { transform: translateX(-4px); }
}

.map-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.map-progress-sign {
    background: linear-gradient(180deg, #9a6631 0%, #7a4c1c 100%);
    border: 3px solid #5d3a12;
    border-radius: 14px;
    color: #f7e7c8;
    padding: 12px 18px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 210px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 8px 18px rgba(63, 38, 8, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.map-progress-track {
    background: rgba(0, 0, 0, 0.35);
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
}
.map-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    transition: width 0.5s ease;
}
.map-progress-sign b { font-size: 1rem; }

.map-mascot-tip {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.map-tip-bubble {
    position: relative;
    background: #fef9c3;
    border: 2px solid #fde68a;
    color: #713f12;
    border-radius: 18px 18px 4px 18px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    max-width: 260px;
    box-shadow: 0 8px 18px rgba(113, 63, 18, 0.2);
}
.map-tip-mascot {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(29, 47, 86, 0.25);
}

.map-level-card { max-width: 620px; }
.map-level-card .topic-level-options { margin-top: 14px; }

.therapy-complete-stars {
    font-size: 1.6rem;
    letter-spacing: 6px;
    margin: 4px 0 2px;
    filter: drop-shadow(0 3px 6px rgba(202, 138, 4, 0.4));
}
.therapy-complete-unlock {
    margin: 6px 0 0;
    font-weight: 800;
    color: #15803d;
    background: #dcfce7;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 8px 14px;
    display: inline-block;
}

@media (max-width: 640px) {
    .map-viewport { padding: 14px 10px 16px; border-radius: 22px; }
    .map-header { flex-wrap: wrap; }
    .map-hello { order: 3; flex-basis: 100%; padding-top: 0; }
    .map-avatar-chip img { width: 50px; height: 50px; }
    .map-star-badge { padding: 10px 14px; }
    .map-star-value { font-size: 1.1rem; }
    .map-trail { row-gap: 26px; column-gap: 4px; }
    .map-node-circle { width: 74px; height: 74px; border-width: 4px; }
    .map-node-num { width: 28px; height: 28px; font-size: 0.85rem; }
    .map-node-label { font-size: 0.74rem; }
    .map-node-plate { padding: 6px 8px; border-radius: 12px; }
    #mapRoad { stroke-width: 18; }
    .map-footer { justify-content: center; }
    .map-tip-bubble { font-size: 0.82rem; padding: 10px 12px; }
    .map-tip-mascot { width: 56px; height: 56px; }
}

/* ========== GENİŞ EKRAN ========== */
@media (min-width: 900px) {
    .store-wrapper { max-width: 900px; }
    .analysis-wrapper { max-width: 860px; }
}

/* ========== EKRAN GEÇİŞ ANİMASYONU ========== */
.screen-enter { animation: screen-enter 0.22s ease both; }
@keyframes screen-enter {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
.screen-enter-fwd { animation: screen-enter-fwd 0.26s cubic-bezier(.22,.61,.36,1) both; }
@keyframes screen-enter-fwd {
    from { opacity: 0; transform: translateX(36px); }
    to   { opacity: 1; transform: none; }
}
.screen-enter-back { animation: screen-enter-back 0.26s cubic-bezier(.22,.61,.36,1) both; }
@keyframes screen-enter-back {
    from { opacity: 0; transform: translateX(-36px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .screen-enter, .screen-enter-fwd, .screen-enter-back { animation: none; }
}
