/* =========================================================
   Cozy ile Korece · tasarım sistemi
   Renkleri değiştirmek için yalnızca :root içini düzenle.
   ========================================================= */
:root {
  /* Marka renkleri */
  --cream: #fff9f0;      /* arka plan */
  --brick: #aa4744;      /* ana renk */
  --brick-deep: #8a3734; /* ana renk, koyu */
  --gold: #e1b157;       /* vurgu */
  --sand: #e0d7c7;       /* çizgi, yüzey */
  --ink: #1f1b1a;        /* yazı (logodaki siyah) */

  /* Türetilmiş tonlar */
  --paper: #fffdf9;
  --sand-soft: #f3ede2;
  --brick-tint: #f6e4df;
  --gold-tint: #f8ecd2;
  --ink-soft: #6a5f58;
  --ok: #4f7a52;
  --ok-tint: #e5efe1;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 0 rgba(31, 27, 26, .04), 0 12px 32px -12px rgba(90, 55, 40, .18);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-ko: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.ko, [lang="ko"] { font-family: var(--font-ko); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
section { padding: 88px 0; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.muted { color: var(--ink-soft); }
.accent { color: var(--brick); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 700; letter-spacing: .02em;
  color: var(--brick);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brick); color: var(--cream); }
.btn-primary:hover { background: var(--brick-deep); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d6a243; }
.btn-ghost { background: transparent; border-color: var(--sand); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-soft); }
.btn-light { background: var(--cream); color: var(--brick-deep); }
.btn-light:hover { background: #fff; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { width: 103px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; list-style: none; padding: 0; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--ink-soft);
}
.site-nav ul a:hover { color: var(--ink); background: var(--sand-soft); }
.site-nav ul a[aria-current="page"] { color: var(--brick); font-weight: 700; }
.nav-account { display: flex; align-items: center; gap: 14px; }
.nav-login { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-login:hover { color: var(--brick); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--cream); padding: 16px 20px 24px;
    border-bottom: 1px solid var(--sand);
    box-shadow: 0 20px 30px -20px rgba(31,27,26,.2);
    display: none;
  }
  .site-header.open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px; font-size: 1.05rem; }
  .nav-account { justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--sand); }
  .site-header.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Kartlar ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: var(--sand-soft); color: var(--ink-soft);
}
.chip-brick { background: var(--brick-tint); color: var(--brick-deep); }
.chip-gold { background: var(--gold-tint); color: #8a6420; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 .ko-hl { font-family: var(--font-ko); font-weight: 800; color: var(--brick); }
.hero .lead { margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }

.wotd { position: relative; padding: 32px; }
.wotd::before {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 120px; height: 120px;
  background: var(--gold); border-radius: 50%; z-index: -1; opacity: .9;
}
.wotd::after {
  content: ""; position: absolute; inset: auto auto -18px -18px; width: 90px; height: 90px;
  background: var(--brick-tint); border-radius: 24px; z-index: -1; transform: rotate(-8deg);
}
.wotd-top { display: flex; justify-content: space-between; align-items: center; }
.wotd-word { font-family: var(--font-ko); font-size: clamp(3rem, 7vw, 4.4rem); font-weight: 700; line-height: 1.1; margin-top: 22px; }
.wotd-roman { color: var(--ink-soft); font-size: 1.05rem; margin-top: 4px; }
.wotd-mean { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; margin-top: 14px; }
.wotd-ex { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--sand); }
.wotd-ex .ko { font-size: 1.05rem; }
.wotd-ex p + p { color: var(--ink-soft); font-size: .95rem; margin-top: 2px; }

.speak-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--sand); background: var(--cream); color: var(--brick);
  transition: background .15s, transform .15s;
}
.speak-btn:hover { background: var(--brick-tint); }
.speak-btn svg { width: 20px; height: 20px; }
.speak-btn.sm { width: 36px; height: 36px; }
.speak-btn.sm svg { width: 17px; height: 17px; }

/* ---------- Özellikler ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 26px; }
.feature .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brick-tint); color: var(--brick); margin-bottom: 18px;
}
.feature:nth-child(2n) .icon { background: var(--gold-tint); color: #9a6f1f; }
.feature .icon svg { width: 24px; height: 24px; }
.feature p { color: var(--ink-soft); font-size: .96rem; margin-top: 8px; }

/* ---------- Seviyeler ---------- */
.band-sand { background: var(--sand-soft); }
.levels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.level {
  background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 22px 20px; position: relative; overflow: hidden;
}
.level .cefr { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--brick); line-height: 1; }
.level .topik { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 700; color: #8a6420; background: var(--gold-tint); padding: 3px 9px; border-radius: 999px; }
.level h3 { margin-top: 14px; font-size: 1.05rem; }
.level p { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }
.level .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--gold); }
.levels-note { margin-top: 18px; font-size: .88rem; color: var(--ink-soft); text-align: center; }

/* ---------- Fiyatlar ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price { display: flex; flex-direction: column; padding: 32px; }
.price .tag { display: flex; gap: 8px; flex-wrap: wrap; }
.price h3 { margin-top: 16px; font-size: 1.35rem; }
.price .amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; margin-top: 14px; letter-spacing: -.03em; }
.price .amount small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.student-price {
  display: inline-block; justify-self: start; align-self: flex-start; margin-top: 8px;
  font-size: .9rem; padding: 4px 12px; border-radius: 999px;
  background: var(--gold-tint); color: #7a5618;
}
.price.featured .student-price { background: color-mix(in srgb, var(--cream) 16%, transparent); color: var(--cream); }
.price ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; font-size: .96rem; }
.price li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--brick-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aa4744' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}
.price .btn { margin-top: auto; }
.price.featured { background: var(--brick); color: var(--cream); border-color: var(--brick); }
.price.featured .amount small, .price.featured p { color: color-mix(in srgb, var(--cream) 78%, transparent); }
.price.featured li::before {
  background-color: color-mix(in srgb, var(--cream) 18%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1b157' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}
.price.featured .chip { background: color-mix(in srgb, var(--cream) 16%, transparent); color: var(--cream); }
.price.featured .chip-gold { background: var(--gold); color: var(--ink); }
.pricing-note { text-align: center; margin-top: 22px; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Hakkımda ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo {
  aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 25%, var(--gold) 0 18%, transparent 19%),
    linear-gradient(160deg, var(--brick-tint), var(--sand));
  display: grid; place-items: center; color: var(--brick-deep);
  border: 1px solid var(--sand);
}
.about-photo span { font-family: var(--font-ko); font-size: 4.5rem; font-weight: 700; opacity: .85; }
.about-text p { margin-top: 16px; color: var(--ink-soft); }
.about { align-items: start; }
.about-photo { position: sticky; top: 100px; }
.about-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.about-stats div { background: var(--paper); border: 1px solid var(--sand); border-radius: 16px; padding: 10px 16px; display: grid; }
.about-stats b { font-family: var(--font-head); font-size: 1.35rem; color: var(--brick); line-height: 1.2; }
.about-stats span { font-size: .82rem; color: var(--ink-soft); }
.about-quote { margin: 24px 0 4px; padding: 6px 0 6px 20px; border-left: 4px solid var(--gold); font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; line-height: 1.4; color: var(--ink); }
.about-more { margin-top: 14px; }
.about-more summary { cursor: pointer; font-weight: 700; color: var(--brick-deep); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.about-more summary::-webkit-details-marker { display: none; }
.about-more summary::after { content: "↓"; transition: transform .2s; }
.about-more[open] summary { display: none; }
@media (max-width: 860px) { .about-photo { position: static; } }
.about-sign { margin-top: 26px; display: flex; align-items: center; gap: 14px; }

/* ---------- SSS ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 4px 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-family: var(--font-head); font-weight: 600; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brick); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); }

/* ---------- Instagram bandı ---------- */
.cta-band {
  background: var(--brick); color: var(--cream); border-radius: var(--radius-lg);
  padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: "따뜻하게"; position: absolute; right: -10px; bottom: -36px;
  font-family: var(--font-ko); font-weight: 800; font-size: 8rem; opacity: .08; pointer-events: none;
}
.cta-band p { color: color-mix(in srgb, var(--cream) 80%, transparent); margin-top: 10px; max-width: 36em; }
.cta-band .btn svg { width: 20px; height: 20px; }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--cream) 82%, transparent); margin-top: 96px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 40px; }
.footer-brand img { width: 124px; height: auto; }
.footer-brand p { margin-top: 14px; font-size: .95rem; max-width: 24em; }
.site-footer h4 { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; padding: 20px 0 28px; border-top: 1px solid rgba(255,249,240,.12); font-size: .88rem; }

/* ---------- Sayfa başlığı ---------- */
.page-head { padding: 56px 0 28px; }
.page-head p { margin-top: 12px; }

/* ---------- Formlar ---------- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.input {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid var(--sand); background: var(--paper);
  font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 4px var(--brick-tint); }
select.input { appearance: none; padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a5f58' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center/18px no-repeat; }
.form-error { background: var(--brick-tint); color: var(--brick-deep); padding: 10px 14px; border-radius: 12px; font-size: .92rem; font-weight: 600; }

/* ---------- Giriş ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 960px; margin: 48px auto 0; overflow: hidden; padding: 0; }
.auth-side {
  background: var(--brick); color: var(--cream); padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.auth-side .big { font-family: var(--font-ko); font-size: 3.4rem; font-weight: 800; line-height: 1.05; }
.auth-side ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; }
.auth-side li::before { content: "✦"; color: var(--gold); }
.auth-form { padding: 44px 40px; display: grid; gap: 18px; align-content: start; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand-soft); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: none; padding: 10px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; cursor: pointer; color: var(--ink-soft); }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px rgba(31,27,26,.08); }
.demo-note { font-size: .82rem; color: var(--ink-soft); background: var(--gold-tint); border-radius: 12px; padding: 10px 14px; }

/* ---------- Üyelik kapısı ---------- */
.gate { max-width: 620px; margin: 24px auto 0; text-align: center; padding: 48px 36px; }
.gate .ko-big { font-family: var(--font-ko); font-size: 3rem; font-weight: 800; color: var(--brick); }
.gate h2 { font-size: 1.7rem; margin-top: 10px; }
.gate p { color: var(--ink-soft); margin-top: 12px; }
.gate .row { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Sözlük ---------- */
.dict-search { display: grid; grid-template-columns: 1fr 180px 200px; gap: 12px; }
.dict-search .search-box { position: relative; }
.dict-search .search-box svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--ink-soft); }
.dict-search .search-box .input { padding-left: 46px; font-size: 1.05rem; }
.dict-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 16px; flex-wrap: wrap; }
.dict-bar .count { color: var(--ink-soft); font-size: .92rem; }
.toggle-fav { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.toggle-fav input { accent-color: var(--brick); width: 18px; height: 18px; }
.dict-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.entry { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 10px; }
.entry-top { display: flex; align-items: flex-start; gap: 12px; }
.entry-word { font-family: var(--font-ko); font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.entry-roman { color: var(--ink-soft); font-size: .92rem; }
.entry-actions { margin-left: auto; display: flex; gap: 8px; }
.fav-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--sand); background: var(--cream); cursor: pointer; display: grid; place-items: center; color: var(--ink-soft); }
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn[aria-pressed="true"] { color: var(--brick); background: var(--brick-tint); border-color: var(--brick-tint); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.entry-mean { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.entry-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.entry-ex { border-top: 1px dashed var(--sand); padding-top: 10px; font-size: .95rem; }
.entry-ex .tr { color: var(--ink-soft); font-size: .9rem; }
.entry-ex-row { display: flex; align-items: center; gap: 8px; }
.empty { text-align: center; padding: 56px 20px; color: var(--ink-soft); }
.empty .ko { font-size: 2.4rem; color: var(--brick); display: block; margin-bottom: 8px; }
mark { background: var(--gold-tint); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Seviye testi ---------- */
.test-shell { max-width: 760px; margin: 0 auto; }
.test-intro { display: grid; gap: 22px; padding: 40px; }
.test-intro .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.test-intro .fact { background: var(--sand-soft); border-radius: 16px; padding: 16px; }
.test-intro .fact b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--brick); }
.test-intro .fact span { font-size: .88rem; color: var(--ink-soft); }
.progress { height: 8px; background: var(--sand-soft); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--brick), var(--gold)); width: 0; transition: width .3s ease; border-radius: 999px; }
.q-meta { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 14px; font-size: .9rem; color: var(--ink-soft); }
.q-card { padding: 36px; }
.q-prompt { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.q-ko { font-family: var(--font-ko); font-size: 1.45rem; font-weight: 500; line-height: 1.6; margin-top: 16px; padding: 18px 20px; background: var(--cream); border-radius: 14px; border: 1px solid var(--sand); }
.q-ko.reading { font-size: 1.12rem; line-height: 1.9; }
.q-ko .blank { display: inline-block; min-width: 64px; border-bottom: 2.5px solid var(--brick); margin: 0 4px; }
.options { display: grid; gap: 10px; margin-top: 22px; }
.option {
  text-align: left; cursor: pointer; padding: 15px 18px; border-radius: 14px;
  border: 1.5px solid var(--sand); background: var(--paper); font-size: 1.02rem;
  display: flex; align-items: center; gap: 14px; transition: border-color .12s, background .12s;
}
.option:hover { border-color: var(--brick); background: var(--brick-tint); }
.option .key { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--sand-soft); font-weight: 700; font-size: .85rem; font-family: var(--font-head); }
.option .ko { font-size: 1.08rem; }
.q-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.link-btn { background: none; border: 0; cursor: pointer; color: var(--ink-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.link-btn:hover { color: var(--brick); }

.test-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; background: var(--cream); border: 1px solid var(--sand); border-radius: 16px; }
.q-passage { background: var(--cream); border: 1px solid var(--sand); border-left: 4px solid var(--gold); border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; }
.q-passage p { font-family: var(--font-ko); font-size: 1.06rem; line-height: 1.95; margin-top: 10px; }
.q-instruction { font-size: .95rem; color: var(--ink-soft); margin-bottom: 12px; display: grid; gap: 2px; }
.q-instruction small { font-size: .82rem; }
.q-text { font-family: var(--font-ko); font-size: 1.35rem; font-weight: 500; line-height: 1.6; }
.q-text b { font-family: var(--font-head); color: var(--brick); margin-right: 4px; }
.q-text .blank { display: inline-block; min-width: 64px; border-bottom: 2.5px solid var(--brick); margin: 0 4px; }
.option.chosen { border-color: var(--brick); background: var(--brick-tint); }
.option.chosen .key { background: var(--brick); color: var(--cream); }
.option-dk { border-style: dashed; background: transparent; }
.option-dk .key { background: transparent; border: 1.5px dashed var(--sand); }
.link-btn[disabled] { opacity: .35; cursor: default; text-decoration: none; }
.result-note { margin: 16px auto 0; max-width: 34em; font-size: .9rem; background: var(--gold-tint); color: #6e4f17; padding: 10px 16px; border-radius: 12px; }
.band-row .meter > div.near { background: var(--gold); }
.band-row.dim { opacity: .45; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: .8rem; color: var(--ink-soft); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--brick); vertical-align: -1px; }
.legend i.pass { background: var(--ok); }
.legend i.near { background: var(--gold); }

.result-hero { text-align: center; padding: 44px 36px; }
.result-level { display: inline-flex; gap: 14px; align-items: stretch; margin-top: 18px; }
.result-level .box { background: var(--brick); color: var(--cream); border-radius: 20px; padding: 18px 26px; min-width: 150px; }
.result-level .box.gold { background: var(--gold); color: var(--ink); }
.result-level .box small { display: block; font-size: .8rem; font-weight: 600; opacity: .85; }
.result-level .box b { font-family: var(--font-head); font-size: 2.2rem; line-height: 1.1; }
.result-level .box.gold b { font-size: 1.25rem; display: block; margin-top: 6px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.band-row { display: grid; grid-template-columns: 44px 1fr 46px; gap: 12px; align-items: center; margin-top: 12px; font-size: .95rem; }
.band-row b { font-family: var(--font-head); }
.band-row .meter { height: 10px; background: var(--sand-soft); border-radius: 999px; overflow: hidden; }
.band-row .meter > div { height: 100%; background: var(--brick); border-radius: 999px; }
.band-row .meter > div.pass { background: var(--ok); }
.band-row span { text-align: right; color: var(--ink-soft); }

/* ---------- TOPIK sayfası ---------- */
.topik-hero { padding: 64px 0 80px; }
.topik-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.next-exam { padding: 30px; position: relative; overflow: hidden; isolation: isolate; }
.next-exam::after { content: "시험"; position: absolute; right: -6px; bottom: -28px; z-index: -1; font-family: var(--font-ko); font-weight: 800; font-size: 6.5rem; color: var(--brick); opacity: .05; pointer-events: none; }
.next-no { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--brick); margin-top: 16px; line-height: 1.1; }
.next-date { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin-top: 4px; }
.next-count { display: inline-block; margin-top: 16px; background: var(--brick); color: var(--cream); padding: 6px 14px; border-radius: 999px; font-size: .92rem; }
.next-count b { font-family: var(--font-head); font-size: 1.1rem; }
.next-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--sand); }
.next-meta small { display: block; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.next-meta span { font-weight: 600; font-size: .95rem; }

.exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.exam-card { display: grid; gap: 18px; align-content: start; }
.exam-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.exam-top h3 { font-size: 1.8rem; margin-top: 10px; }
.exam-total { text-align: center; background: var(--cream); border: 1px solid var(--sand); border-radius: 18px; padding: 10px 18px; }
.exam-total b { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--brick); }
.exam-total span { font-size: .8rem; color: var(--ink-soft); }
.part-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.part-table th { text-align: left; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; padding: 0 8px 8px; border-bottom: 1.5px solid var(--sand); }
.part-table td { padding: 11px 8px; border-bottom: 1px solid var(--sand-soft); }
.part-table td:first-child [lang="ko"] { font-weight: 700; color: var(--brick); margin-right: 6px; }
.part-table th:not(:first-child), .part-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.part-table tr.session td { text-align: left; font-size: .8rem; font-weight: 700; color: #8a6420; background: var(--gold-tint); padding: 6px 10px; }
.exam-note { font-size: .9rem; color: var(--ink-soft); }

.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.score-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.score-head h3 { font-size: 1.4rem; }
.score-scale { margin: 6px 0 22px; }
.scale-track { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--sand-soft), var(--brick-tint) 45%, var(--gold-tint)); border: 1px solid var(--sand); margin-top: 26px; }
.scale-track .tick { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: var(--brick); border-radius: 2px; }
.scale-track .tick i { position: absolute; bottom: calc(100% + 4px); left: 50%; translate: -50% 0; font-style: normal; font-size: .75rem; font-weight: 700; color: var(--brick-deep); }
.scale-ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-soft); margin-top: 6px; }
.score-row { display: grid; grid-template-columns: 56px 1fr auto 48px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--sand-soft); }
.score-row > b { font-family: var(--font-ko); font-size: 1.35rem; font-weight: 800; }
.score-min strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--brick); }
.score-row .chip { justify-self: end; }

.cal-card { padding: 8px 8px; overflow: hidden; }
.cal-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.cal-table th { text-align: left; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); padding: 14px 16px; border-bottom: 1.5px solid var(--sand); }
.cal-table td { padding: 16px; border-bottom: 1px solid var(--sand-soft); vertical-align: middle; }
.cal-table tr:last-child td { border-bottom: 0; }
.cal-table td:first-child { white-space: nowrap; }
.cal-table td:first-child .chip { margin-left: 8px; }
.cal-table tr.next td { background: var(--brick-tint); }
.cal-table tr.next td:first-child { border-radius: 14px 0 0 14px; }
.cal-table tr.next td:last-child { border-radius: 0 14px 14px 0; }
.cal-table tr.past td { color: var(--ink-soft); }
.cal-warn { margin-top: 16px; background: var(--gold-tint); border-radius: 16px; padding: 14px 18px; font-size: .93rem; color: #5e4313; }
.cal-warn a { color: var(--brick-deep); font-weight: 700; }

.grade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grade { display: grid; gap: 10px; align-content: start; padding: 24px; }
.grade > b { font-family: var(--font-ko); font-size: 2rem; font-weight: 800; color: var(--brick); line-height: 1; }
.grade .chip { justify-self: start; }
.grade p { color: var(--ink-soft); font-size: .95rem; }
.faq a { color: var(--brick-deep); font-weight: 600; }

@media (max-width: 860px) {
  .topik-hero-grid, .exam-grid, .score-grid { grid-template-columns: 1fr; }
  .grade-grid { grid-template-columns: 1fr 1fr; }
  .cal-table thead { display: none; }
  .cal-table, .cal-table tbody, .cal-table tr, .cal-table td { display: block; width: 100%; }
  .cal-table tr { padding: 14px 12px; border-bottom: 1px solid var(--sand); }
  .cal-table tr:last-child { border-bottom: 0; }
  .cal-table td { border: 0; padding: 4px 4px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .cal-table td::before { content: attr(data-label); color: var(--ink-soft); font-size: .85rem; font-weight: 600; text-align: left; }
  .cal-table td:first-child { font-size: 1.05rem; }
  .cal-table td:first-child::before { content: none; }
  .cal-table tr.next { background: var(--brick-tint); border-radius: 14px; }
  .cal-table tr.next td { background: none; }
}
@media (max-width: 560px) {
  .grade-grid { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 48px 1fr 44px; }
  .score-row > .muted { display: none; }
}

/* ---------- Hangul sayfası ---------- */
.hangul-hero-card { padding: 32px; text-align: center; }
.hh-block { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; width: 170px; height: 170px; margin: 0 auto; gap: 6px; }
.hh-part { display: grid; place-items: center; font-family: var(--font-ko); font-weight: 800; font-size: 3.2rem; border-radius: 18px; }
.hh-part.c { background: var(--brick-tint); color: var(--brick); }
.hh-part.v { background: var(--gold-tint); color: #9a6f1f; }
.hh-part.f { grid-column: span 2; background: var(--sand-soft); color: var(--ink); }
.hh-eq { margin-top: 18px; font-family: var(--font-ko); font-size: 1.4rem; }
.hh-eq b { color: var(--brick); font-size: 1.9rem; }

.letter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.letter { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; align-content: start; }
.letter-main { display: flex; align-items: baseline; gap: 10px; background: var(--cream); border: 1.5px solid var(--sand-soft); border-radius: 14px; padding: 10px 14px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.letter-main:hover { border-color: var(--brick); background: var(--brick-tint); }
.letter-ch { font-family: var(--font-ko); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--brick); }
.letter-rom { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.letter-tr { font-size: .85rem; color: var(--ink-soft); line-height: 1.4; }
.letter-ex { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font-size: .92rem; }
.letter-ex:hover [lang="ko"] { color: var(--brick); text-decoration: underline; }
.letter-ex [lang="ko"] { font-weight: 600; }

.compare { margin-top: 36px; }
.compare-rows { margin-top: 16px; display: grid; gap: 8px; max-width: 560px; }
.compare-head, .compare-row { display: grid; grid-template-columns: 110px repeat(3, 1fr); gap: 10px; align-items: center; }
.compare-head span { font-size: .8rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.compare-row > span:first-child { font-size: .85rem; }
.compare-row .muted { text-align: center; }
.syl-btn { font-family: var(--font-ko); font-size: 1.5rem; font-weight: 700; padding: 10px; border-radius: 14px; border: 1.5px solid var(--sand); background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.syl-btn:hover { border-color: var(--brick); background: var(--brick-tint); }
.syl-btn.big { font-size: 2.2rem; min-width: 96px; padding: 16px 20px; }
.syl-btn.right { background: var(--ok-tint); border-color: var(--ok); }
.syl-btn.wrong { background: var(--brick-tint); border-color: var(--brick); }

.builder { display: grid; grid-template-columns: 1fr 260px; gap: 28px; padding: 28px; }
.builder-cols { display: grid; gap: 18px; }
.builder-cols h4 { font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-btn { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; border: 1.5px solid var(--sand); background: var(--paper); font-family: var(--font-ko); font-size: 1.1rem; cursor: pointer; }
.pick-btn:hover { border-color: var(--brick); }
.pick-btn[aria-pressed="true"] { background: var(--brick); border-color: var(--brick); color: var(--cream); }
.builder-out { background: var(--cream); border: 1px solid var(--sand); border-radius: 22px; display: grid; justify-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center; }
.builder-syl { font-family: var(--font-ko); font-size: 6rem; font-weight: 800; line-height: 1; color: var(--brick); }
.builder-parts { font-family: var(--font-ko); color: var(--ink-soft); }

.batchim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.batchim { padding: 20px; display: grid; gap: 10px; align-content: start; }
.batchim-sound { display: flex; align-items: baseline; gap: 10px; }
.batchim-sound b { font-family: var(--font-ko); font-size: 2rem; color: var(--brick); }
.batchim-letters { font-size: .92rem; }
.batchim-ex { display: grid; gap: 4px; }

.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rule { display: grid; gap: 12px; align-content: start; padding: 24px; }
.rule-head { display: flex; align-items: center; gap: 12px; }
.rule-no { width: 32px; height: 32px; border-radius: 50%; background: var(--brick); color: var(--cream); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: none; }
.rule-head h3 { font-size: 1.08rem; }
.rule p { font-size: .93rem; }
.rule-ex { display: grid; gap: 6px; }
.rule-row { display: grid; grid-template-columns: auto auto auto 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--sand-soft); background: var(--cream); cursor: pointer; font-size: .95rem; }
.rule-row:hover { border-color: var(--brick); }
.rule-row .rw { font-weight: 700; }
.rule-row .rp { color: var(--brick); font-weight: 700; }
.rule-row .arrow { color: var(--ink-soft); }
.rule-row .rm { font-size: .85rem; }

.ear-quiz { max-width: 560px; margin: 0 auto; padding: 32px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.ear-top { display: flex; justify-content: space-between; width: 100%; font-size: .9rem; }
.ear-opts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ear-start, .ear-done { display: grid; gap: 14px; justify-items: center; }
.ear-done .ko-big { font-family: var(--font-ko); font-size: 2.6rem; font-weight: 800; color: var(--brick); }

@media (max-width: 860px) {
  .builder { grid-template-columns: 1fr; }
  .letter-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .rules { grid-template-columns: 1fr; }
  .compare-head, .compare-row { grid-template-columns: 80px repeat(3, 1fr); }
}

/* ---------- Kelime kartları ---------- */
.fc-setup { display: grid; gap: 16px; padding: 28px; max-width: 760px; margin: 0 auto; }
.fc-setup-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fc-wrap { max-width: 620px; margin: 0 auto; display: grid; gap: 16px; }
.fc-top { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--ink-soft); }
.fc-card { perspective: 1200px; cursor: pointer; height: 340px; }
.fc-inner { position: relative; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.fc-card.flipped .fc-inner { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: grid; place-items: center; align-content: center; gap: 10px; padding: 28px; text-align: center; }
.fc-back { transform: rotateY(180deg); background: var(--cream); }
.fc-big { font-family: var(--font-ko); font-size: clamp(2.6rem, 8vw, 3.8rem); font-weight: 700; line-height: 1.15; }
.fc-big.tr { font-family: var(--font-head); font-size: clamp(1.6rem, 5vw, 2.2rem); }
.fc-hint { position: absolute; bottom: 16px; left: 0; right: 0; font-size: .8rem; color: var(--ink-soft); }
.fc-mean { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }
.fc-ex { font-size: .95rem; color: var(--ink-soft); border-top: 1px dashed var(--sand); padding-top: 12px; margin-top: 4px; }
.fc-actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.fc-actions .btn { width: 100%; }
.btn-know { background: var(--ok); color: #fff; }
.btn-know:hover { background: #3f6642; }
.btn-dont { background: var(--brick-tint); color: var(--brick-deep); }
.btn-dont:hover { background: #efd3cb; }
.fc-done { text-align: center; padding: 36px; display: grid; gap: 14px; justify-items: center; }
.fc-done .ko-big { font-family: var(--font-ko); font-size: 2.6rem; font-weight: 800; color: var(--brick); }
.fc-stats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fc-stats div { background: var(--cream); border: 1px solid var(--sand); border-radius: 16px; padding: 10px 18px; }
.fc-stats b { font-family: var(--font-head); font-size: 1.5rem; display: block; }
.fc-stats .ok b { color: var(--ok); }
.fc-stats .no b { color: var(--brick); }
.fc-missed { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fc-missed span { font-family: var(--font-ko); background: var(--brick-tint); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 560px) { .fc-setup-row { grid-template-columns: 1fr; } .fc-card { height: 300px; } }

/* ---------- Dikte ---------- */
.dk-wrap { max-width: 680px; margin: 0 auto; display: grid; gap: 16px; }
.dk-card { padding: 30px; display: grid; gap: 18px; }
.dk-play { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dk-input { font-family: var(--font-ko); font-size: 1.35rem; padding: 16px 18px; }
.dk-result { border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; }
.dk-result.ok { background: var(--ok-tint); }
.dk-result.no { background: var(--brick-tint); }
.dk-line { font-family: var(--font-ko); font-size: 1.25rem; line-height: 1.8; }
.dk-line .miss { background: var(--gold); color: var(--ink); border-radius: 4px; padding: 0 2px; }
.dk-line .bad { color: var(--brick-deep); text-decoration: line-through; text-decoration-thickness: 2px; }
.dk-line .good { color: var(--ok); }
.dk-tip { font-size: .88rem; color: var(--ink-soft); background: var(--sand-soft); border-radius: 12px; padding: 10px 14px; }

/* ---------- Menü: açılır alt menü ---------- */
.has-sub { position: relative; }
.sub-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; border: 0; background: none; font: inherit; font-weight: 500; font-size: .96rem; color: var(--ink-soft); cursor: pointer; }
.sub-toggle:hover, .has-sub.open .sub-toggle { color: var(--ink); background: var(--sand-soft); }
.sub-toggle[aria-current="page"] { color: var(--brick); font-weight: 700; }
.sub-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--paper); border: 1px solid var(--sand); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 60; }
.has-sub.open .sub-menu { display: flex; }
.site-nav .sub-menu a { display: grid; gap: 0; padding: 9px 12px; border-radius: 10px; }
.site-nav .sub-menu a small { font-size: .78rem; color: var(--ink-soft); font-weight: 400; }
@media (max-width: 900px) {
  .sub-toggle { display: none; }
  .sub-menu { position: static; display: flex; border: 0; box-shadow: none; padding: 0; background: none; min-width: 0; }
  .site-nav .sub-menu a small { display: none; }
}

/* ---------- İsim çevirici ---------- */
.name-box { max-width: 720px; margin: 0 auto; padding: 32px; display: grid; gap: 16px; }
.name-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.name-form .input { font-size: 1.2rem; padding: 15px 18px; }
.name-examples { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.name-examples .filter-chip { padding: 6px 14px; font-size: .88rem; }
.name-result { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 28px 16px 8px; border-top: 1px dashed var(--sand); margin-top: 6px; }
.name-ko { font-family: var(--font-ko); font-size: clamp(3rem, 11vw, 5.6rem); font-weight: 800; line-height: 1.1; color: var(--ink); word-break: keep-all; }
.name-tr { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--brick); }
.name-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.name-break { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.break-word { display: flex; gap: 6px; }
.break-syl { display: grid; justify-items: center; gap: 2px; min-width: 62px; padding: 10px 10px 8px; border-radius: 14px; border: 1.5px solid var(--sand); background: var(--cream); cursor: pointer; }
.break-syl:hover { border-color: var(--brick); background: var(--brick-tint); }
.break-syl b { font-family: var(--font-ko); font-size: 1.6rem; color: var(--brick); }
.break-syl span { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.name-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin: 32px auto 0; }
.name-info p { margin-top: 8px; font-size: .95rem; }
.name-teaser { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; }
.name-teaser form { display: flex; gap: 10px; }
.name-teaser .input { min-width: 220px; }
@media (max-width: 760px) {
  .name-info, .name-teaser { grid-template-columns: 1fr; }
  .name-form { grid-template-columns: 1fr; }
  .name-teaser form { flex-direction: column; }
}

/* ---------- Dizi ifadeleri ---------- */
.drama-hero { position: relative; height: 320px; overflow: hidden; background: linear-gradient(160deg, var(--paper), var(--brick-tint)); }
.bubble { position: absolute; font-family: var(--font-ko); font-weight: 800; padding: 12px 22px; border-radius: 26px; background: var(--paper); border: 1.5px solid var(--sand); box-shadow: var(--shadow); font-size: 1.6rem; }
.bubble::after { content: ""; position: absolute; bottom: -9px; left: 26px; width: 16px; height: 16px; background: inherit; border-right: 1.5px solid var(--sand); border-bottom: 1.5px solid var(--sand); transform: rotate(45deg); }
.bubble.b1 { top: 30px; left: 28px; color: var(--brick); font-size: 2.2rem; }
.bubble.b2 { top: 60px; right: 30px; background: var(--gold); border-color: var(--gold); }
.bubble.b3 { top: 150px; left: 70px; background: var(--brick); border-color: var(--brick); color: var(--cream); font-size: 1.9rem; }
.bubble.b4 { bottom: 40px; right: 40px; color: var(--brick); }
.bubble.b5 { bottom: 36px; left: 30px; font-size: 1.3rem; }
.banmal { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; padding: 28px; margin-bottom: 28px; }
.banmal p { margin-top: 8px; font-size: .95rem; }
.banmal-ex { display: grid; gap: 8px; }
.banmal-ex div { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px solid var(--sand); border-radius: 14px; padding: 10px 14px; }
.banmal-ex b { font-family: var(--font-ko); font-size: 1.2rem; }
.banmal-ex .chip { min-width: 64px; justify-content: center; }
.drama-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.drama { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.drama.rude { border-color: color-mix(in srgb, var(--brick) 40%, var(--sand)); }
.drama-top { display: flex; align-items: center; gap: 8px; }
.drama-no { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--ink-soft); width: 26px; height: 26px; border-radius: 50%; background: var(--sand-soft); display: grid; place-items: center; }
.drama-tags { flex: 1; }
.drama-ko { font-family: var(--font-ko); font-size: 2rem; font-weight: 800; line-height: 1.2; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink); margin-top: 6px; }
.drama-ko:hover { color: var(--brick); }
.drama-rom { font-size: .9rem; }
.drama-tr { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--brick); }
.drama-note { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.drama-polite { align-self: flex-start; background: var(--cream); border: 1px solid var(--sand); border-radius: 999px; padding: 5px 12px; font-size: .88rem; cursor: pointer; margin-top: 4px; }
.drama-polite:hover { border-color: var(--brick); }
.drama-polite b { font-family: var(--font-ko); }
.scene { font-size: 1.12rem; font-weight: 600; text-align: left; width: 100%; background: var(--cream); border: 1px solid var(--sand); border-radius: 16px; padding: 16px 18px; }
.scene-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.scene-opts .option { justify-content: center; }
.option.right { background: var(--ok-tint); border-color: var(--ok); }
.option.wrong { background: var(--brick-tint); border-color: var(--brick); }
@media (max-width: 760px) { .banmal { grid-template-columns: 1fr; } .drama-hero { height: 260px; } }

/* ---------- Sertifika ---------- */
.cert-tools { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; padding: 20px 24px; margin-bottom: 18px; }
.cert-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cert-preview { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--sand); box-shadow: var(--shadow); background: var(--cream); }
.cert-ready { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(120deg, var(--gold-tint), var(--brick-tint)); border-radius: 16px; padding: 16px 18px; }
.cert-ready b { font-family: var(--font-head); font-size: 1.1rem; }

/* ---------- Öğrenci yorumları ---------- */
.quotes-grid { columns: 3 300px; column-gap: 18px; }
.quotes-grid .quote-card { break-inside: avoid; margin-bottom: 18px; }
.quote-card { margin: 0; padding: 24px; display: grid; gap: 14px; position: relative; }
.quote-card::before { content: "“"; position: absolute; top: 4px; right: 18px; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--gold); opacity: .45; }
.quote-card blockquote { margin: 0; font-size: 1rem; line-height: 1.65; white-space: pre-line; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card figcaption b { display: block; font-family: var(--font-head); font-size: .98rem; }
.quote-card figcaption small { color: var(--ink-soft); font-size: .82rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brick-tint); color: var(--brick); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: none; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.stars span { color: var(--sand); }
.review-card { display: grid; gap: 16px; padding: 28px; }
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.review-form { display: grid; gap: 14px; }
.review-form textarea { resize: vertical; min-height: 110px; font: inherit; }
.review-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.star-input { display: flex; gap: 4px; }
.star-input button { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--sand); padding: 0 2px; }
.star-input button.on { color: var(--gold); }
.review-preview .quote-card { box-shadow: none; background: var(--cream); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brick); color: var(--cream); font-size: .75rem; font-weight: 700; margin-left: 4px; }
.review-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.review-item { padding: 16px; display: grid; gap: 12px; align-content: start; }
.review-item.pending { border-color: var(--gold); }
.review-item .quote-card { box-shadow: none; background: var(--cream); padding: 18px; }
.review-item-head, .review-item-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .review-row { grid-template-columns: 1fr; } }

/* ---------- Yeni dönem ---------- */
.announce-bar { background: var(--ink); color: var(--cream); font-size: .9rem; }
.announce-inner { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 6px 0; }
.announce-inner > span:nth-child(2) { flex: 1; }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.announce-seats { color: var(--gold); font-weight: 700; }
.announce-link { color: var(--gold); font-weight: 700; text-decoration: none; white-space: nowrap; }
.announce-link:hover { text-decoration: underline; }
.announce-x { background: none; border: 0; color: color-mix(in srgb, var(--cream) 70%, transparent); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.announce-x:hover { color: var(--cream); }
.term-list { display: grid; gap: 16px; }
.term { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 32px; border: 2px solid var(--gold); background: linear-gradient(120deg, var(--paper) 55%, var(--gold-tint)); }
.term.full { border-color: var(--sand); background: var(--paper); }
.term h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 8px; }
.term-info { display: grid; gap: 12px; align-content: start; }
.term-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; }
.term-seats { display: grid; gap: 6px; max-width: 360px; font-size: .92rem; }
.term-side { display: grid; gap: 14px; align-content: center; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.countdown div { background: var(--ink); color: var(--cream); border-radius: 14px; padding: 12px 6px; text-align: center; display: grid; }
.countdown b { font-family: var(--font-head); font-size: 2rem; line-height: 1.1; }
.countdown span { font-size: .78rem; opacity: .8; }
.ann-admin { display: grid; gap: 12px; }
.ann-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; }
.ann-item.off { opacity: .6; }
.ann-item h4 { font-family: var(--font-head); font-size: 1.05rem; }
.ann-form { display: grid; gap: 14px; margin-bottom: 16px; }
.ann-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) {
  .term { grid-template-columns: 1fr; padding: 24px; }
  .ann-grid { grid-template-columns: 1fr 1fr; }
  .announce-inner { font-size: .82rem; }
}

/* ---------- Ders takvimi ---------- */
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: .85rem; margin-bottom: 18px; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.cal-legend i.free { background: var(--ok); }
.cal-legend i.group { background: var(--gold); }
.cal-legend i.full { background: var(--sand); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; }
.day { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 10px; display: grid; gap: 8px; min-height: 140px; align-content: start; }
.day.today { border: 2px solid var(--brick); }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 2px 4px 6px; border-bottom: 1px solid var(--sand-soft); }
.day-head b { font-family: var(--font-head); font-size: .92rem; }
.day-head .chip { padding: 2px 8px; font-size: .7rem; }
.day-none { font-size: .82rem; text-align: center; padding: 14px 0; }
.slot { border-radius: 12px; padding: 9px 10px; display: grid; gap: 2px; font-size: .85rem; border: 1.5px solid transparent; }
.slot.free { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.slot.group { background: var(--gold-tint); border-color: color-mix(in srgb, var(--gold) 70%, transparent); }
.slot.full { background: var(--sand-soft); color: var(--ink-soft); }
.slot-time { font-family: var(--font-head); font-weight: 700; font-size: .98rem; }
.slot.full .slot-time { text-decoration: line-through; text-decoration-color: var(--ink-soft); }
.slot-title { font-weight: 600; line-height: 1.3; }
.slot-status { font-weight: 700; font-size: .8rem; }
.slot.free .slot-status { color: var(--ok); }
.slot.group .slot-status { color: #7a5618; }
.slot-note { font-size: .78rem; color: var(--ink-soft); line-height: 1.35; }
.slot-ask { margin-top: 4px; justify-self: stretch; white-space: nowrap; border: 0; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 5px 10px; font-size: .76rem; font-weight: 700; cursor: pointer; }
.slot-ask:hover { background: var(--brick); }
/* Öğretmen paneli: takvim */
.slot-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.slot-admin .day { min-height: 0; }
.slot-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.slot-row .slot { margin: 0; }
.slot-tools { display: flex; flex-direction: column; gap: 4px; }
.slot-tools button { border: 1px solid var(--sand); background: var(--paper); border-radius: 8px; font-size: .74rem; padding: 4px 8px; cursor: pointer; white-space: nowrap; }
.slot-tools button:hover { border-color: var(--brick); }
.weekday-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.weekday-pick label { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--sand); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: .88rem; font-weight: 600; }
.weekday-pick input { accent-color: var(--brick); }
@media (max-width: 1000px) {
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week .empty-day { display: none; }
}
@media (max-width: 560px) { .week { grid-template-columns: 1fr; } }

/* ---------- Günlük seri ---------- */
.streak-chip { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: .92rem; padding: 6px 12px; border-radius: 999px; background: var(--gold-tint); color: #7a5618; position: relative; }
.streak-chip b { font-family: var(--font-head); }
.streak-chip.pending::after { content: ""; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--brick); border: 2px solid var(--cream); }
.streak-card { margin-bottom: 18px; padding: 28px; display: grid; gap: 18px; scroll-margin-top: 100px; }
.streak-head { display: flex; gap: 18px; align-items: center; }
.streak-head h3 { font-size: 1.4rem; margin-top: 4px; }
.streak-flame { flex: none; width: 88px; height: 88px; border-radius: 26px; background: linear-gradient(160deg, var(--gold), var(--brick)); display: grid; place-items: center; font-size: 1.9rem; line-height: 1; color: var(--cream); text-align: center; }
.streak-flame b { display: block; font-family: var(--font-head); font-size: 1.6rem; margin-top: -10px; }
.streak-flame.cold { background: linear-gradient(160deg, var(--sand), var(--ink-soft)); }
.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 460px; }
.week-dots div { display: grid; justify-items: center; gap: 4px; }
.week-dots span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-soft); border: 2px solid var(--sand); font-weight: 800; color: #fff; }
.week-dots .done span { background: var(--brick); border-color: var(--brick); }
.week-dots .today span { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.week-dots small { font-size: .75rem; color: var(--ink-soft); font-weight: 600; }
.streak-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }
.streak-word, .streak-q { background: var(--cream); border: 1px solid var(--sand); border-radius: 18px; padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.streak-word > small, .streak-q > small { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brick); }
.sw-top { display: flex; align-items: center; gap: 10px; }
.sw-top b { font-family: var(--font-ko); font-size: 2.2rem; font-weight: 700; }
.sw-mean { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.sw-ex { font-size: .9rem; border-top: 1px dashed var(--sand); padding-top: 8px; margin-top: 4px; }
.sq-prompt { font-weight: 600; }
.sq-show { font-family: var(--font-ko); font-size: 1.8rem; font-weight: 700; color: var(--brick); }
.sq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sq-opts .option { padding: 11px 14px; font-size: .95rem; }
.sq-fb { font-size: .88rem; min-height: 1.3em; }
.sq-done { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 10px 0; }
.sq-done .ko-big { font-family: var(--font-ko); font-size: 2rem; font-weight: 800; color: var(--brick); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-item { display: grid; justify-items: center; min-width: 84px; padding: 10px 12px; border-radius: 16px; border: 1.5px dashed var(--sand); color: var(--ink-soft); opacity: .6; }
.badge-item b { font-family: var(--font-ko); font-size: 1.15rem; }
.badge-item span { font-size: .75rem; font-weight: 600; }
.badge-item.on { opacity: 1; border-style: solid; border-color: var(--gold); background: var(--gold-tint); color: #7a5618; }
@media (max-width: 760px) {
  .streak-grid { grid-template-columns: 1fr; }
  .streak-flame { width: 72px; height: 72px; }
  .week-dots span { width: 30px; height: 30px; }
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); }
.post-card:hover h3 { color: var(--brick); }
.post-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; font-family: var(--font-ko); font-size: 3.4rem; font-weight: 800; color: var(--brick); background: linear-gradient(150deg, var(--brick-tint), var(--gold-tint)); border-bottom: 1px solid var(--sand); }
.post-body { padding: 18px 20px 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.post-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .82rem; }
.post-body h3 { font-size: 1.15rem; line-height: 1.3; transition: color .15s; }
.post-body p { font-size: .93rem; }
.post-more { font-weight: 700; color: var(--brick-deep); font-size: .9rem; margin-top: 4px; }
.post-card.featured { grid-column: 1 / -1; flex-direction: row; }
.post-card.featured .post-cover { aspect-ratio: auto; width: 42%; min-height: 260px; border-bottom: 0; border-right: 1px solid var(--sand); font-size: 5rem; }
.post-card.featured .post-body { padding: 32px; align-content: center; }
.post-card.featured h3 { font-size: 1.7rem; }
.article { max-width: 720px; margin: 0 auto; }
.article-head { padding: 48px 0 24px; display: grid; gap: 14px; }
.article-back { color: var(--brick-deep); font-weight: 700; text-decoration: none; font-size: .92rem; }
.article-cover { width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; font-family: var(--font-ko); font-size: 2.6rem; font-weight: 800; color: var(--brick); background: linear-gradient(150deg, var(--brick-tint), var(--gold-tint)); }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.article-meta { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--sand); padding-top: 16px; }
.article-meta b { display: block; font-family: var(--font-head); }
.article-meta small { color: var(--ink-soft); font-size: .85rem; }
.prose { font-size: 1.08rem; line-height: 1.85; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .4em; }
.prose li::marker { color: var(--brick); font-weight: 700; }
.prose blockquote { margin-left: 0; border-left: 4px solid var(--gold); background: var(--gold-tint); border-radius: 0 14px 14px 0; padding: 14px 18px; font-weight: 500; }
.prose a { color: var(--brick-deep); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose [lang="ko"] { font-family: var(--font-body), var(--font-ko); }
.article-foot { margin-top: 48px; padding: 24px; border-radius: var(--radius-lg); background: var(--sand-soft); display: grid; gap: 14px; }
.article-more { max-width: 1120px; margin: 56px auto 0; }
.article-more h2 { font-size: 1.5rem; margin-bottom: 18px; }
.post-admin { display: grid; gap: 10px; }
.post-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap; }
.post-row .post-cover { width: 54px; height: 54px; aspect-ratio: auto; border-radius: 14px; font-size: 1.5rem; border: 0; flex: none; }
.post-row h4 { font-family: var(--font-head); font-size: 1rem; }
.post-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.post-editor textarea { min-height: 380px; font: inherit; font-size: .95rem; line-height: 1.6; resize: vertical; }
.post-preview { background: var(--paper); border: 1px solid var(--sand); border-radius: 16px; padding: 18px 22px; max-height: 560px; overflow: auto; }
.post-preview .prose { font-size: .98rem; }
.format-help { font-size: .82rem; color: var(--ink-soft); background: var(--sand-soft); border-radius: 12px; padding: 10px 14px; line-height: 1.7; }
.format-help code { background: var(--paper); border-radius: 6px; padding: 1px 6px; font-size: .8rem; }
@media (max-width: 860px) {
  .post-card.featured { flex-direction: column; }
  .post-card.featured .post-cover { width: 100%; min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--sand); }
  .post-editor { grid-template-columns: 1fr; }
}

/* ---------- Seviye kartları: tıklanabilir + ayrıntı ---------- */
button.level { font: inherit; color: inherit; text-align: left; cursor: pointer; display: grid; align-content: start; gap: 0; transition: transform .15s, border-color .15s, box-shadow .15s; }
button.level:hover { transform: translateY(-2px); border-color: var(--brick); }
button.level[aria-selected="true"] { border: 2px solid var(--brick); box-shadow: 0 12px 28px -16px rgba(170, 71, 68, .55); background: var(--paper); }
.level-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.level-ko { font-family: var(--font-ko); font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.topik { justify-self: start; }
.level-open { margin-top: 10px; font-size: .8rem; font-weight: 700; color: var(--brick-deep); }
button.level[aria-selected="true"] .level-open span { display: inline-block; transform: rotate(180deg); }
.level-detail { margin-top: 16px; padding: 28px; display: grid; gap: 22px; }
.ld-head { display: flex; gap: 18px; align-items: center; }
.ld-head h3 { font-size: 1.5rem; margin-top: 6px; }
.ld-badge { flex: none; width: 88px; height: 88px; border-radius: 24px; background: var(--brick); color: var(--cream); display: grid; place-items: center; align-content: center; }
.ld-badge b { font-family: var(--font-head); font-size: 1.9rem; line-height: 1; }
.ld-badge span { font-family: var(--font-ko); font-size: .85rem; opacity: .85; margin-top: 4px; }
.ld-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; }
.ld-grid h4 { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.ld-can { list-style: none; padding: 0; display: grid; gap: 8px; }
.ld-can li { display: flex; gap: 10px; font-size: .95rem; }
.ld-can li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); font-weight: 800; font-size: .75rem; display: grid; place-items: center; margin-top: 1px; }
.ld-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-topics span { background: var(--cream); border: 1px solid var(--sand); border-radius: 999px; padding: 5px 12px; font-size: .88rem; }
.ld-links { display: grid; gap: 8px; justify-items: start; }
@media (max-width: 560px) {
  button.level p { display: none; }
  button.level .topik { font-size: .72rem; }
}
@media (max-width: 860px) {
  .ld-grid { grid-template-columns: 1fr; }
  .ld-badge { width: 70px; height: 70px; }
}

/* ---------- Dizi, film, şarkı önerileri ---------- */
.today-strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 18px; }
.today-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; text-decoration: none; background: var(--paper); border: 1px solid var(--sand); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: .86rem; transition: border-color .15s, transform .15s; }
.today-pill:hover { border-color: var(--brick); transform: translateY(-1px); }
.today-pill b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.tp-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-tint); display: grid; place-items: center; font-size: .9rem; flex: none; }
.tp-label { color: var(--brick); font-weight: 700; white-space: nowrap; }
.tp-sub { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.today-all { font-size: .85rem; font-weight: 700; color: var(--brick-deep); text-decoration: none; margin-left: 4px; }
.today-strip + .hero { padding-top: 40px; }
.today-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 28px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rec { padding: 22px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 110px; }
.rec.today { border: 2px solid var(--gold); background: linear-gradient(150deg, var(--paper) 60%, var(--gold-tint)); }
.rec-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.rec-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--brick-tint); display: grid; place-items: center; font-size: 1.1rem; }
.rec h3 { font-size: 1.2rem; }
.rec-ko { font-family: var(--font-ko); font-weight: 700; color: var(--brick); }
.rec-sub { font-size: .88rem; }
.rec-why { font-size: .93rem; color: var(--ink-soft); margin-top: 4px; flex: 1; }
.rec-phrase { background: var(--cream); border: 1px dashed var(--sand); border-radius: 12px; padding: 8px 12px; margin-top: 4px; }
.rec-phrase small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.rec-phrase .link-btn { text-decoration: none; color: var(--ink); font-weight: 700; padding: 2px 0; text-align: left; }
.rec-link { align-self: flex-start; margin-top: 8px; }
@media (max-width: 760px) {
  .today-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .today-strip::-webkit-scrollbar { display: none; }
  .today-pill { flex: none; }
  .tp-sub { display: none; }
  .today-pill b { max-width: 150px; }
}

/* ---------- Onay kutusu ---------- */
.form-ok { background: var(--ok-tint); color: #2f4d31; border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px; }
.form-ok p { font-size: .95rem; }
.form-ok a { color: inherit; font-weight: 700; }

/* ---------- Öğretmen paneli ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 20px 22px; display: grid; gap: 2px; }
.stat b { font-family: var(--font-head); font-size: 2rem; color: var(--brick); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--ink-soft); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 900px; }
.admin-table th { text-align: left; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); padding: 14px 14px; border-bottom: 1.5px solid var(--sand); background: var(--sand-soft); position: sticky; top: 0; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--sand-soft); vertical-align: middle; }
.admin-table tr:hover td { background: var(--cream); }
.admin-table .c, .admin-table th:nth-child(n+5) { text-align: center; }
.admin-table .nowrap { white-space: nowrap; }
.score-pill { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 6px; border-radius: 8px; font-weight: 700; font-size: .85rem; background: var(--brick-tint); color: var(--brick-deep); }
.score-pill.pass { background: var(--ok-tint); color: #2f4d31; }
.score-pill.near { background: var(--gold-tint); color: #7a5618; }
@media (max-width: 860px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Öğretmen: öğrenciler ---------- */
.admin-tabs { max-width: 520px; margin: 28px 0 8px; }
.student-list { display: grid; gap: 12px; }
.student { padding: 20px 22px; display: grid; gap: 14px; }
.student-who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.student-who b { font-family: var(--font-head); font-size: 1.05rem; }
.student-form { display: grid; grid-template-columns: 170px 1.4fr 1fr 150px auto; gap: 12px; align-items: end; }
.student-form .field > span { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.student-form .input { padding: 10px 12px; font-size: .93rem; }
.student-form select.input { padding-right: 34px; }
.student-progress { display: grid; gap: 4px; font-size: .88rem; padding-bottom: 6px; }
.mini-progress { height: 8px; border-radius: 999px; background: var(--sand-soft); overflow: hidden; }
.mini-progress > div { height: 100%; background: linear-gradient(90deg, var(--brick), var(--gold)); border-radius: 999px; }
@media (max-width: 1000px) {
  .student-form { grid-template-columns: 1fr 1fr; }
  .student-form .student-note { grid-column: span 2; }
}

/* ---------- Hesabım: ders ilerlemesi ---------- */
.course-card { margin-bottom: 18px; display: grid; gap: 16px; padding: 30px; }
.course-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.course-head h2 { font-size: 1.6rem; margin-top: 8px; }
.course-ring { position: relative; width: 104px; height: 104px; flex: none; }
.course-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.course-ring circle { fill: none; stroke-width: 12; }
.course-ring .bg { stroke: var(--sand-soft); }
.course-ring .fg { stroke: var(--brick); stroke-linecap: round; }
.course-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.45rem; color: var(--brick); }
.course-now { background: var(--brick-tint); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.course-now.done { background: var(--ok-tint); }
.course-now small, .course-note small { font-size: .78rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.course-now b { font-family: var(--font-head); font-size: 1.2rem; }
.course-note { background: var(--gold-tint); border-radius: 16px; padding: 14px 18px; display: grid; gap: 4px; }
.course-bar { height: 10px; border-radius: 999px; background: var(--sand-soft); overflow: hidden; }
.course-bar > div { height: 100%; background: linear-gradient(90deg, var(--brick), var(--gold)); border-radius: 999px; }
.course-topics summary { cursor: pointer; font-weight: 600; color: var(--brick-deep); }
.course-topics ol { margin-top: 12px; padding-left: 0; list-style: none; display: grid; gap: 6px; counter-reset: t; }
.course-topics ol > li { counter-increment: t; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--cream); border: 1px solid var(--sand-soft); color: var(--ink-soft); font-size: .95rem; }
.course-topics ol > li::before { content: counter(t); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--sand-soft); color: var(--ink-soft); }
.course-topics ol > li.ok { color: var(--ink); }
.course-topics ol > li.ok::before { content: "✓"; background: var(--ok); color: #fff; }
.course-topics ol > li.part { color: var(--ink); }
.course-topics ol > li.part::before { background: var(--gold-tint); color: #7a5618; }
.course-topics ol > li.now { border-color: var(--brick); background: var(--brick-tint); color: var(--ink); font-weight: 600; }
.course-topics ol > li.now::before { background: var(--brick); color: var(--cream); }
.course-topics ul { grid-column: 2; list-style: none; padding: 0; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; font-weight: 400; }
.course-topics ul li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--sand); font-family: var(--font-ko); font-size: .88rem; color: var(--ink-soft); }
.course-topics ul li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--sand); flex: none; }
.course-topics ul li.ok { color: var(--ink); border-color: color-mix(in srgb, var(--ok) 35%, var(--sand)); }
.course-topics ul li.ok::before { content: "✓"; display: grid; place-items: center; font-size: .65rem; font-weight: 800; color: #fff; background: var(--ok); border-color: var(--ok); }
.course-topics ul li.now { color: var(--ink); border-color: var(--brick); background: var(--paper); font-weight: 600; }
.course-topics ul li.now::before { border-color: var(--brick); background: radial-gradient(circle, var(--brick) 0 4px, transparent 5px); }

/* ---------- Mağaza ---------- */
.shop-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-chip { border: 1.5px solid var(--sand); background: var(--paper); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--ink-soft); }
.filter-chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.product:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(31,27,26,.04), 0 18px 40px -14px rgba(90,55,40,.28); }
.product-img { aspect-ratio: 1 / 1; background: linear-gradient(160deg, var(--brick-tint), var(--sand)); border-bottom: 1px solid var(--sand); position: relative; display: grid; place-items: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .ph { font-family: var(--font-ko); font-size: 3.2rem; font-weight: 800; color: var(--brick); opacity: .55; }
.product-body .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.product-img .sale { position: absolute; bottom: 12px; right: 12px; background: var(--brick); color: var(--cream); font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 1.08rem; line-height: 1.3; }
.product-body p { color: var(--ink-soft); font-size: .92rem; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; }
.product-price b { font-family: var(--font-head); font-size: 1.4rem; }
.product-price s { color: var(--ink-soft); font-size: .95rem; }
.product .btn { margin-top: 6px; }
.shop-note { display: flex; gap: 14px; align-items: center; margin-top: 28px; padding: 16px 20px; border-radius: 16px; background: var(--gold-tint); color: #5e4313; font-size: .93rem; }
.shop-note a { color: var(--brick-deep); font-weight: 700; }

/* ---------- Hesabım ---------- */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.history { display: grid; gap: 10px; margin-top: 14px; }
.history-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--cream); border-radius: 14px; border: 1px solid var(--sand); }
.fav-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fav-mini span { font-family: var(--font-ko); background: var(--cream); border: 1px solid var(--sand); padding: 6px 12px; border-radius: 999px; }

/* ---------- Bildirim ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0;
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px;
  font-size: .92rem; z-index: 100; transition: opacity .2s, translate .2s; pointer-events: none;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .about, .pricing, .auth-wrap, .account-grid, .result-grid { grid-template-columns: 1fr; }
  .wotd { margin: 10px 10px 0; }
  .about-photo { max-width: 340px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .dict-search { grid-template-columns: 1fr 1fr; }
  .dict-search .search-box { grid-column: span 2; }
  .auth-side { padding: 36px 28px; }
  .auth-form { padding: 32px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr 1fr; }
  .test-info { grid-template-columns: 1fr; }
  .q-text { font-size: 1.2rem; }
  .test-intro, .q-card { padding: 24px; }
  .test-intro .facts { grid-template-columns: 1fr; }
  .result-level { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
