/* SoruKampüsü — tema */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #1a1d2e;
  --muted: #6b7280;
  --line: #e6e9f2;
  --brand: #5b53ff;
  --brand-2: #8b5cf6;
  --brand-soft: #eceaff;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --no: #dc2626;
  --no-soft: #fee2e2;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(20,25,50,.06), 0 8px 24px rgba(20,25,50,.05);
  --shadow-lg: 0 10px 40px rgba(91,83,255,.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
/* hidden özelliği her zaman gizler (display:flex/block kuralları bunu ezmesin). */
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
.muted { color: var(--muted); }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.4rem;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow-lg);
}
.topnav { display: flex; align-items: center; gap: 1.1rem; font-weight: 600; }
.topnav a { color: var(--muted); transition: color .15s; }
.topnav a:hover { color: var(--ink); }
.btn-nav {
  background: var(--brand); color: #fff !important; padding: .5rem .95rem;
  border-radius: 10px;
}
.user-chip { display: flex; align-items: center; gap: .5rem; background: var(--brand-soft); padding: .3rem .35rem .3rem .65rem; border-radius: 999px; font-weight: 600; color: var(--ink) !important; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.logout { color: #dc2626 !important; display: inline-flex; align-items: center; padding: .15rem .3rem; border-radius: 8px; transition: background .12s; }
.logout:hover { background: #fee2e2; }
.logout svg { display: block; }

/* ---------- Layout ---------- */
.container { max-width: 1040px; margin: 0 auto; padding: 1.6rem 1.2rem 4rem; }
.block { margin-top: 2.2rem; }
.footer { text-align: center; color: var(--muted); padding: 2rem 1rem; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, #5b53ff, #8b5cf6);
  color: #fff; border-radius: 22px; padding: 1.8rem; box-shadow: var(--shadow-lg);
}
.hero h1 { color: #fff; }
.hero .muted { color: rgba(255,255,255,.85); }
.hero-stats { display: flex; gap: .8rem; }
.stat { background: rgba(255,255,255,.16); border-radius: 14px; padding: .8rem 1.1rem; text-align: center; min-width: 92px; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; }
.stat-lbl { font-size: .78rem; opacity: .9; }

/* ---------- Tabs ---------- */
.sinav-tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .25rem; gap: .25rem; margin: .8rem 0; }
.tab { padding: .45rem 1rem; border-radius: 9px; font-weight: 700; color: var(--muted); }
.tab.active { background: var(--brand); color: #fff; }

/* ---------- Quick cards ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.quick-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quick-card h3 { font-size: 1.1rem; }
.quick-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.qc-ico { font-size: 1.8rem; display: block; margin-bottom: .5rem; }
.qc-adapt { border-color: var(--brand); background: linear-gradient(180deg, #fff, #f7f6ff); }

/* ---------- Weak cards ---------- */
.weak-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.weak-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); transition: transform .15s; }
.weak-card:hover { transform: translateY(-2px); }
.weak-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.weak-card h4 { font-size: 1rem; }
.weak-bar { height: 7px; background: var(--line); border-radius: 6px; overflow: hidden; margin: .5rem 0; }
.weak-bar-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #ef4444); }
.weak-meta { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- Pills & badges ---------- */
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.pill-c1{background:#eef2ff;color:#4f46e5}.pill-c2{background:#ecfdf5;color:#059669}
.pill-c3{background:#fef2f2;color:#dc2626}.pill-c4{background:#fffbeb;color:#d97706}
.pill-c5{background:#f0f9ff;color:#0284c7}.pill-c6{background:#fdf4ff;color:#c026d3}
.pill-c7{background:#f7fee7;color:#65a30d}.pill-c8{background:#fff1f2;color:#e11d48}
.pill-c9{background:#f5f3ff;color:#7c3aed}
.badge { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.badge-iyi { background: var(--ok-soft); color: var(--ok); }
.badge-orta { background: var(--warn-soft); color: var(--warn); }
.badge-zayif { background: var(--no-soft); color: var(--no); }
.badge-atlanan { background: #fff7ed; color: #ea580c; }
.badge-az { background: #eef2ff; color: #4f46e5; }
.badge-bos { background: #f1f5f9; color: #64748b; }

/* ---------- Ders accordion ---------- */
.ders-list { display: flex; flex-direction: column; gap: .6rem; }
.ders-acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ders-acc summary { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; }
.ders-acc summary::-webkit-details-marker { display: none; }
.ders-meta { color: var(--muted); font-size: .88rem; }
.ders-test { margin-left: auto; }
.konu-list { border-top: 1px solid var(--line); padding: .4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: .3rem; }
.konu-item { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; border-radius: 10px; font-size: .92rem; transition: background .12s; }
.konu-item:hover { background: var(--brand-soft); }
.konu-cnt { color: var(--muted); font-size: .8rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; font-family: inherit; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: .6rem 1.1rem; border-radius: 11px; cursor: pointer; transition: all .15s; font-size: .95rem; }
.btn:hover { border-color: var(--brand); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-lg); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: .35rem .8rem; font-size: .82rem; border-radius: 9px; }
.btn-xs { padding: .25rem .65rem; font-size: .78rem; border-radius: 8px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 65vh; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); }
.auth-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .9rem; }
.auth-card input { width: 100%; margin-top: .35rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 11px; font-size: 1rem; font-family: inherit; }
.auth-card input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.auth-alt { text-align: center; margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.auth-alt a { color: var(--brand); font-weight: 700; }
.alert { background: var(--no-soft); color: var(--no); padding: .7rem .9rem; border-radius: 11px; font-size: .9rem; margin-bottom: 1rem; }

/* ---------- History ---------- */
.test-history { display: flex; flex-direction: column; gap: .5rem; }
.hist-row { display: grid; grid-template-columns: 1fr auto 120px 50px; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; }
.hist-title { font-weight: 600; }
.hist-score { color: var(--muted); font-size: .9rem; }
.hist-bar { height: 7px; background: var(--line); border-radius: 6px; overflow: hidden; }
.hist-bar span { display: block; height: 100%; background: var(--brand); }
.hist-pct { font-weight: 700; text-align: right; }

/* ---------- Stats table ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.ders-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.ders-block-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: .8rem; }
.ders-block-head .btn { margin-left: auto; }
.stat-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.stat-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; padding: .4rem .6rem; border-bottom: 1px solid var(--line); }
.stat-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.stat-table tr:last-child td { border-bottom: none; }
.td-konu { font-weight: 600; }
.mini-bar { display: inline-block; width: 90px; height: 7px; background: var(--line); border-radius: 6px; overflow: hidden; vertical-align: middle; }
.mini-bar-fill { height: 100%; }
.mini-bar-fill.og, .og { background: var(--ok); }
.mini-bar-fill.oy, .oy { background: var(--warn); }
.mini-bar-fill.or, .or { background: var(--no); }
.oran-txt { font-size: .82rem; color: var(--muted); margin-left: .4rem; }

/* ---------- Quiz ---------- */
.quiz-loading { text-align: center; padding: 3rem; color: var(--muted); }
.quiz-head { margin-bottom: 1rem; }
.quiz-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.quiz-title { font-weight: 700; }
.quiz-counter { color: var(--muted); font-weight: 700; }
.quiz-progress { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .3s; }
.quiz-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; box-shadow: var(--shadow); }
.quiz-tags { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.quiz-konu { font-weight: 700; }
.quiz-yil { margin-left: auto; color: var(--muted); font-size: .82rem; background: #f1f5f9; padding: .15rem .6rem; border-radius: 999px; }
.quiz-img-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; text-align: center; }
.quiz-img { max-width: 100%; height: auto; border-radius: 8px; }
.quiz-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin: 1.2rem 0; }
.opt { display: grid; place-items: center; padding: 1rem 0; border: 2px solid var(--line); background: #fff; border-radius: 13px; cursor: pointer; font-family: inherit; transition: all .12s; }
.opt:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.opt:disabled { cursor: default; }
.opt-letter { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.opt-correct { border-color: var(--ok); background: var(--ok-soft); }
.opt-correct .opt-letter { color: var(--ok); }
.opt-wrong { border-color: var(--no); background: var(--no-soft); }
.opt-wrong .opt-letter { color: var(--no); }
.quiz-feedback { min-height: 0; font-weight: 700; border-radius: 11px; }
.quiz-feedback.fb-correct { color: var(--ok); background: var(--ok-soft); padding: .7rem 1rem; }
.quiz-feedback.fb-wrong { color: var(--no); background: var(--no-soft); padding: .7rem 1rem; }
.quiz-feedback.fb-empty { color: var(--muted); background: #f1f5f9; padding: .7rem 1rem; }
.quiz-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }

/* ---------- Result ---------- */
.result-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem; box-shadow: var(--shadow); }
.result-score { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.result-ring {
  width: 130px; height: 130px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0);
}
.result-ring::before { content: ''; position: absolute; width: 100px; height: 100px; border-radius: 50%; background: var(--card); }
.result-pct { position: relative; font-size: 1.8rem; font-weight: 800; }
.result-nums { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.rn { font-weight: 700; font-size: .88rem; padding: .25rem .7rem; border-radius: 999px; }
.rn-ok { background: var(--ok-soft); color: var(--ok); }
.rn-no { background: var(--no-soft); color: var(--no); }
.rn-bo { background: #f1f5f9; color: #64748b; }
.result-block { margin-top: 2rem; }
.result-kirilim { display: flex; flex-direction: column; gap: .5rem; }
.rk-row { display: grid; grid-template-columns: 1fr 120px 50px; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .6rem 1rem; }
.rk-info { display: flex; flex-direction: column; }
.rk-konu { font-weight: 600; font-size: .92rem; }
.rk-ders { font-size: .78rem; }
.rk-pct { font-weight: 700; text-align: right; font-size: .88rem; }
.oneri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.oneri-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); transition: transform .15s; }
.oneri-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.oneri-card h4 { font-size: .98rem; margin: .5rem 0 .2rem; }
.result-actions { display: flex; gap: .7rem; margin-top: 2rem; flex-wrap: wrap; }

/* ---------- Genel deneme kartı ---------- */
.deneme-genel {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #5b53ff, #8b5cf6); color: #fff;
  border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-lg);
  transition: transform .15s; margin-bottom: 1.2rem;
}
.deneme-genel:hover { transform: translateY(-3px); }
.dg-left { display: flex; align-items: center; gap: 1rem; }
.dg-ico { font-size: 2.4rem; }
.deneme-genel h3 { color: #fff; margin-bottom: .3rem; }
.dg-dersler { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.dg-dersler span { background: rgba(255,255,255,.18); border-radius: 999px; padding: .15rem .6rem; font-size: .78rem; font-weight: 600; }
.dg-dersler b { font-weight: 800; }
.dg-go { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.deneme-alt { font-size: 1rem; color: var(--muted); margin: .5rem 0 .8rem; }

/* ---------- Deneme kartları ---------- */
.deneme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.deneme-card {
  background: linear-gradient(150deg, #1a1d2e, #2d2a55);
  color: #fff; border-radius: var(--radius); padding: 1.2rem;
  display: flex; flex-direction: column; gap: .15rem; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden;
}
.deneme-card::after { content: '📝'; position: absolute; right: -6px; bottom: -10px; font-size: 3.2rem; opacity: .12; }
.deneme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.deneme-yil { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.deneme-sinav { font-size: .85rem; opacity: .85; font-weight: 600; }
.deneme-cnt { font-size: .78rem; opacity: .7; margin-top: .3rem; }

/* ---------- Yarıda kalan denemeler ---------- */
.devam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.devam-card { background: var(--card); border: 1px solid var(--brand); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); transition: transform .15s; display: flex; flex-direction: column; gap: .6rem; }
.devam-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.devam-info { display: flex; flex-direction: column; }
.devam-baslik { font-weight: 700; }
.devam-meta { font-size: .82rem; color: var(--muted); }
.devam-bar { height: 7px; background: var(--line); border-radius: 6px; overflow: hidden; }
.devam-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.devam-btn { font-weight: 700; color: var(--brand); font-size: .9rem; }

/* ---------- Deneme başlangıç ekranı (süre seçimi) ---------- */
.exam-intro { display: grid; place-items: center; min-height: 60vh; }
.intro-card { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); text-align: center; }
.intro-ico { font-size: 2.6rem; display: block; margin-bottom: .4rem; }
.intro-form { margin-top: 1.4rem; text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.intro-toggle { display: flex; align-items: flex-start; gap: .9rem; background: #f8f9ff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.intro-toggle strong { font-size: .98rem; }
.intro-toggle p { margin: .2rem 0 0; font-size: .82rem; }
.intro-sure { display: flex; align-items: center; gap: .8rem; }
.intro-sure label { font-weight: 600; font-size: .9rem; flex: 1; }
.intro-sure input { width: 100%; margin-top: .3rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 11px; font-size: 1rem; font-family: inherit; }
.intro-sure input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; cursor: pointer; inset: 0; background: #cbd0e0; border-radius: 999px; transition: .2s; }
.switch-slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .switch-slider { background: var(--brand); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }

/* ---------- Süre sayacı ---------- */
.quiz-head-right { display: inline-flex; align-items: center; gap: .8rem; }
.exam-timer { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; background: var(--brand-soft); color: var(--brand); padding: .25rem .7rem; border-radius: 999px; }
.exam-timer.timer-warn { background: var(--warn-soft); color: var(--warn); }
.exam-timer.timer-danger { background: var(--no-soft); color: var(--no); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Deneme arayüzü (navigasyon + palet) ---------- */
.opt-selected { border-color: var(--brand); background: var(--brand-soft); }
.opt-selected .opt-letter { color: var(--brand); }
.exam-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1rem; }
.exam-palette { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; box-shadow: var(--shadow); margin-top: 1rem; }
.palette-title { font-weight: 700; font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.palette-section { margin-bottom: 1rem; }
.palette-ders { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.palette-ders-cnt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: .4rem; }
.palette-cell {
  aspect-ratio: 1; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--muted); font-family: inherit;
  transition: all .12s;
}
.palette-cell:hover { border-color: var(--brand); }
.palette-cell.answered { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); }
.palette-cell.current { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-lg); }
.palette-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.palette-actions .exam-finish { flex: 1; }
.wa-bos { background: #f1f5f9; color: #64748b; }

/* ---------- Yanlış analizi ---------- */
.wrong-list { display: flex; flex-direction: column; gap: 1rem; }
.wrong-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); }
.wrong-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.wrong-no { font-weight: 800; color: var(--muted); }
.wrong-konu { font-weight: 600; font-size: .9rem; }
.wrong-ans { margin-left: auto; display: flex; gap: .5rem; }
.wa { font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.wa-no { background: var(--no-soft); color: var(--no); }
.wa-ok { background: var(--ok-soft); color: var(--ok); }
.wrong-img-wrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .8rem; text-align: center; }
.wrong-img-wrap img { max-width: 100%; height: auto; border-radius: 6px; }

/* ---------- Puan rozeti (topbar) ---------- */
.puan-rozet { display: inline-flex; align-items: center; gap: .35rem; background: linear-gradient(135deg, #fde68a, #fbbf24); color: #7c2d12 !important; font-weight: 800; padding: .35rem .8rem; border-radius: 999px; font-size: .9rem; transition: transform .12s; }
.puan-rozet:hover { transform: translateY(-1px); }
.puan-rozet-admin { background: linear-gradient(135deg, #f0abfc, #c084fc); color: #4a044e !important; }
.puan-gem { font-size: .95rem; }
.chip-unvan { font-size: 1rem; margin: 0 -.15rem; }

/* ---------- Sonuç ekranı puan ---------- */
.result-puan { margin-top: .7rem; font-weight: 800; color: #b45309; background: #fef3c7; display: inline-block; padding: .4rem .9rem; border-radius: 999px; }
.result-puan .muted { font-weight: 600; }

/* ---------- Market ---------- */
.market-hero { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 22px; padding: 1.8rem; box-shadow: var(--shadow-lg); }
.market-hero h1 { color: #fff; }
.market-hero .muted { color: rgba(255,255,255,.85); }
.market-bakiye { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.18); border-radius: 16px; padding: .9rem 1.3rem; }
.mb-gem { font-size: 2rem; }
.mb-num { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.mb-lbl { font-size: .78rem; opacity: .9; }
.market-msg { margin-top: 1rem; padding: .8rem 1.1rem; border-radius: 12px; font-weight: 700; }
.market-msg-ok { background: var(--ok-soft); color: var(--ok); }
.market-msg-no { background: var(--no-soft); color: var(--no); }
.puan-kurallar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: .9rem 1.2rem; }
.puan-kurallar span { font-weight: 700; }
.puan-kurallar em { color: var(--muted); font-style: normal; font-size: .9rem; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.market-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow); text-align: center; }
.market-card.aktif { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.market-card h4 { font-size: .95rem; margin: .6rem 0 .5rem; }
.mc-onizleme { height: 80px; border-radius: 12px; display: grid; place-items: center; position: relative; }
.mc-emoji { font-size: 2.2rem; }
.mc-unvan { background: var(--brand-soft); }
.mc-koyu-rozet { position: absolute; bottom: 6px; right: 6px; font-size: .65rem; background: rgba(0,0,0,.5); color: #fff; padding: .1rem .4rem; border-radius: 6px; }
.market-card form { margin: 0; }

/* Özel ürünler */
.market-grid-ozel { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.mc-ozel.sahip { border-color: var(--ok); }
.mc-ozel-resim { width: 100%; border-radius: 12px; margin-bottom: .5rem; }
.mc-ozel-mesaj { font-size: .9rem; color: var(--ink); background: var(--brand-soft); border-radius: 10px; padding: .6rem .8rem; margin: .4rem 0; text-align: left; }
.mc-sahip-rozet { display: inline-block; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: .8rem; padding: .2rem .7rem; border-radius: 999px; }
.mc-ozel-kilit { position: relative; }
.mc-kilit { position: absolute; bottom: 6px; right: 8px; font-size: 1.1rem; }
.mc-ozel-ipucu { font-size: .82rem; min-height: 2.4em; }

/* ---------- Admin paneli ---------- */
.admin-form { display: flex; flex-direction: column; gap: 1rem; max-width: 540px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.admin-form label { font-weight: 600; font-size: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.admin-form input[type=text], .admin-form input[type=number], .admin-form textarea { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 11px; font-size: 1rem; font-family: inherit; }
.admin-form input:focus, .admin-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.admin-form button { align-self: flex-start; }
.admin-urun-list { display: flex; flex-direction: column; gap: .8rem; }
.admin-urun { display: flex; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow); }
.au-resim { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.au-resim-bos { display: grid; place-items: center; font-size: 1.8rem; background: var(--brand-soft); }
.au-bilgi { flex: 1; min-width: 0; }
.au-bilgi p { margin: .2rem 0; font-size: .88rem; }
.au-fiyat { font-weight: 700; font-size: .85rem; color: var(--warn); }
.au-etiket { display: inline-block; font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: #f1f5f9; color: #475569; margin-left: .35rem; }
.au-etiket.au-ozel { background: #fef3c7; color: #b45309; }
.mc-ozel-rozet { font-size: .68rem; font-weight: 800; background: #fef3c7; color: #b45309; padding: .1rem .5rem; border-radius: 999px; vertical-align: middle; }
.btn-sil { background: var(--no-soft); color: var(--no); border-color: var(--no-soft); }
.btn-sil:hover { border-color: var(--no); }

/* ---------- Mesaj zili + balon ---------- */
.mesaj-zil { position: relative; font-size: 1.15rem; }
.mesaj-badge { position: absolute; top: -6px; right: -8px; background: var(--no); color: #fff; font-size: .65rem; font-weight: 800; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; }
.mesaj-zil.var { animation: zil 1.2s ease-in-out 2; }
@keyframes zil { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-15deg)} 40%{transform:rotate(12deg)} 60%{transform:rotate(-8deg)} 80%{transform:rotate(5deg)} }
.mesaj-balon { position: fixed; top: 64px; right: 18px; width: 320px; max-width: calc(100vw - 36px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 200; padding: 1rem; animation: balonGir .35s ease; }
@keyframes balonGir { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mb-ok { position: absolute; top: -8px; right: 90px; width: 16px; height: 16px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.mb-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: .6rem; }
.mb-kapat { background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--muted); }
.mb-liste { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .7rem; max-height: 280px; overflow: auto; }
.mb-mesaj { background: var(--brand-soft); border-radius: 10px; padding: .6rem .7rem; }
.mb-mesaj strong { font-size: .9rem; display: block; }
.mb-mesaj p { margin: .2rem 0; font-size: .85rem; }
.mb-gonderen { font-size: .72rem; color: var(--muted); }

/* ---------- Mesajlar sayfası ---------- */
.mesaj-listesi { display: flex; flex-direction: column; gap: .8rem; }
.mesaj-kart { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; box-shadow: var(--shadow); }
.mesaj-kart.yeni { border-color: var(--brand); border-left: 4px solid var(--brand); }
.mk-head { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.mk-baslik { font-size: 1.05rem; margin-bottom: .3rem; }
.mk-govde { margin: 0; }

/* ---------- Sıralama (leaderboard) ---------- */
.lider-listesi { display: flex; flex-direction: column; gap: .4rem; }
.lider-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; }
.lider-row.top3 { border-color: #fbbf24; background: linear-gradient(90deg, #fffbeb, var(--card) 60%); }
.lider-row.ben { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.lider-sira { font-size: 1.2rem; font-weight: 800; text-align: center; }
.lider-isim { font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.lider-unvan { font-size: 1.1rem; }
.lider-ben { font-size: .7rem; background: var(--brand); color: #fff; padding: .1rem .5rem; border-radius: 999px; }
.lider-dogru { color: var(--muted); font-size: .85rem; }
.lider-puan { font-weight: 800; color: var(--warn); white-space: nowrap; }
.online-nokta { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; display: inline-block; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }

/* ---------- Aktif kullanıcılar paneli (admin) ---------- */
.aktif-canli { font-size: .7rem; background: #dcfce7; color: #16a34a; padding: .15rem .55rem; border-radius: 999px; vertical-align: middle; font-weight: 700; }
.aktif-panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); }
.aktif-sayi { font-weight: 800; margin-bottom: .6rem; }
.aktif-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.aktif-chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-weight: 600; font-size: .88rem; }
.aktif-chip.admin { background: #f5f3ff; border-color: #ddd6fe; }
.aktif-chip small { color: var(--muted); font-weight: 400; font-size: .72rem; }

/* ---------- Admin form ek ---------- */
.admin-select { padding: .5rem; border: 1px solid var(--line); border-radius: 11px; font-family: inherit; font-size: .95rem; }
.onay-satir { flex-direction: row !important; align-items: center; gap: .5rem; }
.onay-satir input { width: auto; }

/* ---------- Site ayarları ---------- */
.ayar-satir { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.ayar-satir p { margin: .2rem 0 0; font-size: .85rem; }

/* ---------- Kullanıcı tablosu (admin) ---------- */
.kul-tablo { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.kul-head, .kul-row { display: grid; grid-template-columns: 2fr 1fr .8fr .8fr 1fr auto; gap: .6rem; align-items: center; padding: .7rem 1rem; }
.kul-head { background: var(--bg); font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.kul-row { border-top: 1px solid var(--line); font-size: .9rem; }
.kul-ad { font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.kul-rozet { font-size: .65rem; background: #f5f3ff; color: #7c3aed; font-weight: 800; padding: .1rem .45rem; border-radius: 999px; text-transform: uppercase; }
.kul-durum { font-size: .82rem; color: var(--muted); }

/* ---------- Kullanıcı detay (admin) ---------- */
.geri-link { color: var(--muted); font-weight: 600; font-size: .9rem; }
.kd-ozet { display: flex; gap: 1rem; flex-wrap: wrap; }
.kd-kutu { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.4rem; text-align: center; box-shadow: var(--shadow); min-width: 110px; }
.kd-num { display: block; font-size: 1.5rem; font-weight: 800; }
.kd-lbl { font-size: .78rem; color: var(--muted); }
.kd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.kd-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.kd-panel h3 { font-size: 1rem; margin-bottom: .8rem; }
.kd-form { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .8rem; }
.kd-form label { font-weight: 600; font-size: .85rem; display: flex; flex-direction: column; gap: .3rem; }
.kd-form input, .kd-form textarea { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .92rem; }
.kd-form input:focus, .kd-form textarea:focus { outline: none; border-color: var(--brand); }
.kd-form .btn { align-self: flex-start; }

/* Puan artış animasyonu */
.puan-artti { animation: puanZipla .8s ease; }
@keyframes puanZipla { 0%,100%{transform:scale(1)} 30%{transform:scale(1.25)} }

/* ---------- Canlı toast bildirimleri ---------- */
.toast-kutu { position: fixed; top: 70px; right: 16px; z-index: 300; display: flex; flex-direction: column; gap: .6rem; width: 300px; max-width: calc(100vw - 32px); }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .7rem .9rem; opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .3s; }
.toast.goster { opacity: 1; transform: translateX(0); }
.toast b { font-size: .9rem; }
.toast p { margin: .2rem 0; font-size: .85rem; color: var(--ink); }
.toast small { color: var(--muted); font-size: .72rem; }

/* ---------- Sohbet baloncuğu ---------- */
.sohbet-btn { position: fixed; bottom: 22px; right: 22px; z-index: 250; width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow-lg); transition: transform .15s; }
.sohbet-btn:hover { transform: scale(1.08); }
.sohbet-badge { position: absolute; top: -3px; right: -3px; background: var(--no); color: #fff; font-size: .72rem; font-weight: 800; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--card); }
.sohbet-panel { position: fixed; bottom: 90px; right: 22px; z-index: 250; width: 340px; max-width: calc(100vw - 32px); height: 460px; max-height: calc(100vh - 130px); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.sohbet-panel[hidden] { display: none !important; }
.sp-head { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; }
.sp-head .sp-online { width: 8px; height: 8px; display: inline-block; background: #4ade80; border-radius: 50%; }
.sp-geri, .sp-kapat { background: rgba(255,255,255,.2); border: none; color: #fff; cursor: pointer; width: 26px; height: 26px; border-radius: 8px; font-size: 1rem; line-height: 1; }
#spBaslik { flex: 1; }
.sp-liste { flex: 1; overflow-y: auto; }
.sp-grup { padding: .6rem 1rem .3rem; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sp-kisi { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; cursor: pointer; transition: background .12s; }
.sp-kisi:hover { background: var(--brand-soft); }
.sp-avatar { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.sp-avatar .sp-online { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; background: #22c55e; border: 2px solid var(--card); border-radius: 50%; }
.sp-kisi-bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-kisi-bilgi b { font-size: .92rem; }
.sp-aktif-yazi { font-size: .68rem; font-weight: 700; color: #16a34a; background: #dcfce7; padding: .05rem .4rem; border-radius: 999px; vertical-align: middle; }
.sp-kisi-bilgi small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-kisi-badge { background: var(--no); color: #fff; font-size: .7rem; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; }
.sp-konusma { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sp-mesajlar { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.sp-balon { max-width: 78%; padding: .5rem .75rem; border-radius: 14px; font-size: .9rem; line-height: 1.4; word-wrap: break-word; }
.sp-balon.ben { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.sp-balon.karsi { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sp-balon.hata { opacity: .5; }
.sp-bos, .sp-yukleniyor { color: var(--muted); text-align: center; padding: 1.5rem; font-size: .9rem; }
.sp-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); }
.sp-form input { flex: 1; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-family: inherit; font-size: .92rem; }
.sp-form input:focus { outline: none; border-color: var(--brand); }

/* ---------- Empty ---------- */
.empty-state { text-align: center; padding: 3.5rem 1rem; }
.empty-state .btn { margin-top: 1rem; }

/* ---------- Responsive ---------- */
/* ======================= RESPONSIVE ======================= */

/* Tablet ve altı */
@media (max-width: 820px) {
  .container { padding: 1.2rem .9rem 4rem; }
  .topbar { padding: .7rem .9rem; }
  .topnav { gap: .7rem; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
  .kd-grid { grid-template-columns: 1fr; }
}

/* Telefon */
@media (max-width: 600px) {
  /* --- Üst menü: kaydırılabilir, kompakt --- */
  .topbar { flex-wrap: wrap; gap: .4rem .2rem; padding: .55rem .7rem; }
  .brand { font-size: 1rem; gap: .4rem; flex: 1 1 auto; }
  .brand-mark { width: 30px; height: 30px; }
  .topnav {
    order: 3; width: 100%; gap: .35rem;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: .2rem; flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { white-space: nowrap; font-size: .9rem; }
  .puan-rozet { padding: .3rem .6rem; font-size: .82rem; }
  .user-chip { padding: .25rem .3rem .25rem .3rem; gap: .3rem; }
  .user-chip > span:not(.avatar):not(.chip-unvan) { display: none; }  /* kullanıcı adını gizle, avatar kalsın */
  .btn-nav { padding: .4rem .7rem; font-size: .85rem; }

  /* --- Hero --- */
  .hero { padding: 1.2rem; gap: 1rem; }
  .hero h1 { font-size: 1.3rem; }
  .hero-stats { width: 100%; gap: .5rem; }
  .stat { flex: 1; min-width: 0; padding: .6rem .4rem; }
  .stat-num { font-size: 1.3rem; }

  /* --- Quiz / şıklar --- */
  .quiz-card { padding: 1rem; border-radius: 16px; }
  .quiz-options { grid-template-columns: repeat(5, 1fr); gap: .25rem; }
  .opt { padding: .65rem 0; border-width: 2px; border-radius: 11px; }
  .opt-letter { font-size: 1rem; }
  .quiz-img-wrap { padding: .5rem; }
  .quiz-tags { gap: .4rem; }
  .quiz-yil { margin-left: 0; }
  .quiz-actions .btn { flex: 1; }

  /* --- Deneme paleti --- */
  .palette-grid { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: .3rem; }
  .palette-cell { font-size: .78rem; }
  .palette-actions { flex-direction: column; }
  .palette-actions .btn { width: 100%; }
  .exam-timer { font-size: .95rem; }

  /* --- Sonuç --- */
  .result-wrap { padding: 1.2rem; }
  .result-score { gap: 1rem; justify-content: center; text-align: center; }
  .result-ring { width: 110px; height: 110px; }
  .rk-row { grid-template-columns: 1fr 70px 44px; }
  .result-actions { flex-direction: column; }
  .result-actions .btn { width: 100%; }

  /* --- Geçmiş / istatistik --- */
  .hist-row { grid-template-columns: 1fr auto; }
  .hist-bar, .hist-pct { display: none; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .stat-table { font-size: .85rem; }
  .stat-table th, .stat-table td { padding: .45rem .35rem; }
  .mini-bar { width: 60px; }
  .ders-block-head .btn { margin-left: 0; }

  /* --- Hızlı kartlar / ızgaralar tek sütun --- */
  .quick-grid { grid-template-columns: 1fr; }
  .weak-grid { grid-template-columns: 1fr; }
  .deneme-grid { grid-template-columns: repeat(2, 1fr); }
  .deneme-genel { flex-direction: column; align-items: flex-start; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .konu-list { grid-template-columns: 1fr; }

  /* --- Kullanıcı tablosu (admin): ikincil sütunları gizle --- */
  .kul-head, .kul-row { grid-template-columns: 1fr auto auto; gap: .5rem; }
  .kul-head span:nth-child(3), .kul-head span:nth-child(4), .kul-head span:nth-child(5),
  .kul-row  span:nth-child(3), .kul-row  span:nth-child(4), .kul-row  span:nth-child(5) { display: none; }

  /* --- Ayar satırı --- */
  .ayar-satir { flex-direction: column; align-items: flex-start; }

  /* --- Sohbet: mobilde POPUP kart (tüm ekranı kaplamaz) --- */
  .sohbet-btn { width: 52px; height: 52px; bottom: 16px; right: 16px; font-size: 1.4rem; }
  .sohbet-panel {
    position: fixed;
    left: 12px; right: 12px; width: auto;          /* kenarlardan boşluklu */
    top: auto; bottom: 82px;                        /* butonun üstünde */
    height: 68vh; max-height: calc(100vh - 130px);  /* SABİT yükseklik -> basık olmaz, içeride kayar */
    border-radius: 16px;
    z-index: 260;
  }
  .sp-head { padding: .7rem .9rem; font-size: 1rem; flex: 0 0 auto; }
  .sp-geri, .sp-kapat { width: 30px; height: 30px; font-size: 1.1rem; }
  .sp-mesajlar { padding: .8rem; gap: .4rem; }
  .sp-balon { font-size: .9rem; padding: .5rem .72rem; max-width: 82%; }
  .sp-kisi { padding: .65rem .9rem; }
  .sp-form { padding: .6rem; gap: .45rem; flex: 0 0 auto; }
  .sp-form input { padding: .6rem .8rem; font-size: .95rem; }
  .toast-kutu { top: 64px; bottom: auto; right: 8px; left: 8px; width: auto; }

  /* --- Auth kartı --- */
  .auth-card { padding: 1.5rem; border-radius: 16px; }

  /* --- Mesaj balonu (varsa) --- */
  .mesaj-balon { left: 10px; right: 10px; width: auto; top: auto; bottom: 80px; }
}

/* Çok dar telefon */
@media (max-width: 380px) {
  .deneme-grid, .market-grid { grid-template-columns: 1fr; }
  .opt-letter { font-size: .9rem; }
  .topnav a { font-size: .85rem; }
}
