/* =====================================================================
   SesTranskript — web arayüzü
   Mobil uygulamayla (mobil/src/stil.css) aynı tasarım dili: lacivert üst çubuk, yumuşak kartlar,
   degrade birincil düğmeler, halka odaklı alanlar. Renkler değişkenlerden gelir; koyu tema otomatik.
   ===================================================================== */
:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #eceff6;
  --border: #e3e7ef;
  --border-strong: #cfd6e3;
  --text: #111827;
  --muted: #5f6b7d;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-text: #ffffff;
  --accent-soft: #e8efff;
  --accent-ring: rgba(59, 130, 246, .28);
  --danger: #c4302b;
  --danger-soft: #fdecea;
  --ok: #18794e;
  --ok-soft: #e6f6ee;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --navy: #0b1736;
  --navy-2: #142a63;
  --radius: 16px;
  --radius-s: 11px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 48px -24px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .06);
  --ease: 160ms cubic-bezier(.2, .7, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #131a2a;
    --surface-2: #1a2235;
    --surface-3: #212b41;
    --border: #243049;
    --border-strong: #34415e;
    --text: #e6e9f2;
    --muted: #97a3b8;
    --accent: #6d98ff;
    --accent-2: #5583f5;
    --accent-text: #08101f;
    --accent-soft: #1b2a4d;
    --accent-ring: rgba(109, 152, 255, .3);
    --danger: #ff6b63;
    --danger-soft: #3a1c1c;
    --ok: #4ccf8f;
    --ok-soft: #133022;
    --warn: #f2c14e;
    --warn-soft: #33270f;
    --navy: #070d1d;
    --navy-2: #12224d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 24px 48px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1100px 380px at 50% -160px, rgba(37, 99, 235, .10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.55 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.85rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 750; margin: 0 0 .35rem; }
h2 { font-size: 1.12rem; letter-spacing: -.01em; font-weight: 700; margin: 0 0 .8rem; }
h3 { letter-spacing: -.01em; }
p.lead { color: var(--muted); margin: 0 0 1.75rem; font-size: 1rem; max-width: 46rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; }
::selection { background: var(--accent-soft); }

/* =====================================================================
   Üst çubuk
   ===================================================================== */
.topbar {
  display: flex; align-items: center; gap: 1.75rem;
  padding: .65rem 1.5rem; position: sticky; top: 0; z-index: 10; flex-wrap: wrap;
  color: #fff;
  background: linear-gradient(110deg, var(--navy-2), var(--navy) 65%);
  box-shadow: 0 8px 24px -14px rgba(7, 14, 34, .8);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .01em; color: inherit; font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, #60a5fa, #2563eb 55%, #1e3a8a);
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-mark svg { width: 19px; height: 19px; fill: #fff; }
.topbar nav { display: flex; gap: .2rem; flex: 1; flex-wrap: wrap; }
.topbar nav a {
  padding: .45rem .85rem; border-radius: 10px; color: rgba(255, 255, 255, .72); font-weight: 550; font-size: .93rem;
  transition: background var(--ease), color var(--ease);
}
.topbar nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.topbar nav a.active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.user-menu { display: flex; align-items: center; gap: .35rem; }
.account-link {
  display: flex; align-items: center; gap: .55rem; padding: .25rem .7rem .25rem .3rem; border-radius: 999px;
  color: rgba(255, 255, 255, .85); font-weight: 550; font-size: .92rem; transition: background var(--ease);
}
.account-link:hover, .account-link.active { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.avatar {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #818cf8, #3b82f6);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2);
}
.topbar button.link { color: rgba(255, 255, 255, .65); }
.topbar button.link:hover { color: #fff; }

.container { max-width: 1040px; margin: 0 auto; padding: 2.25rem 1.25rem 5rem; }
.narrow { max-width: 440px; margin: 8vh auto; padding: 0 1rem; }

/* =====================================================================
   Giriş sayfaları: solda tanıtım, sağda form
   ===================================================================== */
.auth-shell { height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }
.auth-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #e6edff;
  padding: 2.5rem 3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  min-height: 0;
  background:
    radial-gradient(520px 380px at 85% 8%, rgba(59, 130, 246, .55), transparent 65%),
    radial-gradient(460px 420px at 0% 100%, rgba(168, 85, 247, .28), transparent 65%),
    linear-gradient(160deg, #142a63, #0b1736 60%, #070e22);
}
.auth-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 20%, #000 15%, transparent 70%);
}
.auth-hero::after {
  content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -140px; top: -120px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 50px rgba(255, 255, 255, .03), 0 0 0 110px rgba(255, 255, 255, .02);
}
.auth-hero .brand { color: #fff; }
.auth-copy h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 1rem; color: #fff; font-weight: 800; }
.auth-copy h2 span {
  background: linear-gradient(90deg, #93c5fd, #c4b5fd 55%, #f9a8d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-copy p { color: rgba(230, 237, 255, .78); font-size: 1.02rem; max-width: 30rem; margin: 0 0 1.5rem; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.auth-points li { display: flex; align-items: center; gap: .65rem; color: rgba(230, 237, 255, .88); font-size: .95rem; }
.auth-points li::before {
  content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  font-size: .72rem; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .14);
}
.auth-shell > main.narrow {
  margin: 0; width: 100%; max-width: none; padding: 1.5rem; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center;
}
/* kart dikeyde ortalanır; sığmazsa üstten başlar ve bu alan kayar */
.auth-shell > main.narrow::before, .auth-shell > main.narrow::after { content: ""; flex: 1 0 0; }
.auth-shell > main.narrow > * { width: min(440px, 100%); flex: none; }
.auth-shell .card { box-shadow: var(--shadow-lg); padding: 1.6rem 1.75rem; margin-bottom: 0; }
.auth-shell .card h1 { font-size: 1.5rem; margin-bottom: .15rem; }
.auth-shell .card p.lead { font-size: .92rem; margin-bottom: 1.1rem; }
.auth-shell .field { margin-bottom: .75rem; }
.auth-shell .sso { margin-bottom: .6rem; }
.auth-shell .login-alt { padding-top: .7rem; margin-top: .7rem; }
.auth-shell .login-alt > summary { margin-bottom: .7rem; }
/* kısa ekranlar: tanıtım sadeleşir */
@media (max-height: 860px) and (min-width: 861px) {
  .auth-points { display: none; }
  .auth-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
  .auth-hero { padding: 2rem 2.5rem; }
}
@media (max-height: 720px) and (min-width: 861px) {
  .auth-shell .sso > p, .auth-shell .card p.lead { display: none; }
  .auth-shell > main.narrow { padding: 1rem 1.5rem; }
  .auth-shell .card h1 { margin-bottom: .9rem; }
}
@media (max-height: 640px) and (min-width: 861px) {
  .auth-copy p { display: none; }
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; height: auto; min-height: 100dvh; }
  .auth-shell > main.narrow { overflow: visible; }
  .auth-shell > main.narrow::before, .auth-shell > main.narrow::after { display: none; }
  .auth-hero { padding: 1.5rem 1.25rem 2.5rem; }
  .auth-copy p, .auth-points { display: none; }
  .auth-copy h2 { font-size: 1.75rem; margin: 0; }
  .auth-shell > main.narrow { padding: 0 1rem 3rem; margin-top: -1.25rem; }
  .auth-shell .card { padding: 1.5rem; }
}

/* =====================================================================
   Kartlar ve formlar
   ===================================================================== */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.25rem;
}
.grid { display: grid; gap: 1rem 1.1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: start; }
label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
input[type=text], input[type=password], input[type=url], input[type=search], input[type=email],
input[type=number], input[type=tel], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; padding: .62rem .8rem; border: 1px solid var(--border-strong); border-radius: var(--radius-s);
  background: var(--surface); color: var(--text); font: inherit; min-height: 44px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px;
}
textarea { resize: vertical; min-height: 300px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.field { margin-bottom: 1rem; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; cursor: pointer; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 42px; padding: .55rem 1.05rem; border-radius: var(--radius-s); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease), border-color var(--ease), filter var(--ease);
}
button:hover, .btn:hover { background: var(--surface-2); border-color: var(--border-strong); text-decoration: none; }
button:active, .btn:active { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }
button.primary, .btn.primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(180deg, #3b82f6, var(--accent-2));
  box-shadow: 0 10px 22px -12px rgba(29, 78, 216, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
}
button.primary:hover, .btn.primary:hover { filter: brightness(1.07); background: linear-gradient(180deg, #3b82f6, var(--accent-2)); }
button.danger { color: var(--danger); }
button.danger:hover { background: var(--danger-soft); border-color: transparent; }
button.link { border: none; background: none; color: var(--muted); padding: .35rem .6rem; min-height: 0; box-shadow: none; }
button.link:hover { color: var(--text); background: none; }
button:disabled, .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.actions { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }

/* ---------- sekmeler: segment denetimi */
.tabs {
  display: flex; gap: .25rem; padding: 4px; margin-bottom: 1.4rem; width: fit-content; max-width: 100%;
  background: var(--surface-3); border-radius: 13px;
}
.tabs button {
  border: none; border-radius: 10px; background: none; min-height: 38px;
  color: var(--muted); padding: .45rem 1rem; font-weight: 600; box-shadow: none;
}
.tabs button:hover { background: rgba(255, 255, 255, .45); color: var(--text); }
.tabs button.active { background: var(--surface); color: var(--accent); box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .18); }
@media (prefers-color-scheme: dark) {
  .tabs button:hover { background: rgba(255, 255, 255, .05); }
  .tabs button.active { background: var(--surface-2); }
}

/* ---------- dosya bırakma alanı */
.drop {
  display: block; position: relative; border: 2px dashed var(--border-strong); border-radius: var(--radius);
  padding: 2.6rem 1rem 2.2rem; text-align: center; cursor: pointer; font-weight: 400;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color var(--ease), background var(--ease);
}
.drop::before {
  content: ""; display: block; width: 52px; height: 52px; margin: 0 auto .9rem; border-radius: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3M7 8l5-5 5 5'/%3E%3Cpath d='M20 15v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4'/%3E%3C/svg%3E") center / 24px no-repeat,
    linear-gradient(135deg, #60a5fa, #2563eb 60%, #1e3a8a);
  box-shadow: 0 12px 24px -12px rgba(37, 99, 235, .9);
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop strong { display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.drop .file-name { margin-top: .7rem; font-weight: 650; color: var(--accent); }

/* ---------- ilerleme */
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #60a5fa, var(--accent)); transition: width .4s; }

/* ---------- rozetler */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 99px;
  font-size: .76rem; font-weight: 650; background: var(--surface-3); color: var(--muted); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge:empty::before { display: none; }
.badge.done { background: var(--ok-soft); color: var(--ok); }
.badge.error, .badge.cancelled { background: var(--danger-soft); color: var(--danger); }
.badge.live { background: var(--danger-soft); color: var(--danger); }
.badge.live::before { animation: pulse 1.2s infinite; }
.badge.queued, .badge.downloading, .badge.converting, .badge.transcribing { background: var(--warn-soft); color: var(--warn); }

/* ---------- liste */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: none; }
.list a.item { display: block; padding: 1rem .75rem; margin: 0 -.75rem; border-radius: 12px; color: var(--text); transition: background var(--ease); }
.list a.item:hover { background: var(--surface-2); text-decoration: none; }
.item-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.item-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-preview { color: var(--muted); font-size: .88rem; margin-top: .25rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* ---------- transkript */
.segments { line-height: 1.75; }
.seg { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; padding: .35rem .5rem; margin: 0 -.5rem; border-radius: 10px; }
.seg:hover { background: var(--surface-2); }
.seg time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; padding-top: .2rem; }
.plain-text { white-space: pre-wrap; line-height: 1.75; }
.meta { display: flex; gap: .4rem 1.1rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .88rem; margin: .5rem 0 1.5rem; }
.title-row { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.title-row h1 { margin: 0; }
.alert { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid transparent; }
.alert.error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert.info { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
mark { background: var(--warn-soft); color: inherit; padding: 0 .1em; border-radius: 3px; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: .35rem; min-width: 230px; z-index: 20; display: none;
}
.dropdown.open .dropdown-menu { display: block; animation: fadein .15s ease-out; }
.dropdown-menu a { display: block; padding: .55rem .75rem; border-radius: 9px; color: var(--text); }
.dropdown-menu a:hover { background: var(--surface-2); text-decoration: none; }

/* ---------- canlı */
.live-controls { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.rec-btn { min-width: 180px; min-height: 48px; padding: .75rem 1.3rem; font-size: 1rem; border-radius: 14px; }
.rec-btn.recording {
  border-color: transparent; color: #fff;
  background: linear-gradient(180deg, #ef4444, #b91c1c); box-shadow: 0 10px 22px -12px rgba(220, 38, 38, .9);
}
.rec-btn.recording:hover { background: linear-gradient(180deg, #ef4444, #b91c1c); filter: brightness(1.06); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.rec-btn.recording .rec-dot { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.meter { flex: 1; min-width: 140px; height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; position: relative; }
.meter > div { height: 100%; width: 0; border-radius: 99px; background: var(--ok); transition: width .08s; }
.meter > div.speaking { background: linear-gradient(90deg, #60a5fa, var(--accent)); }
.live-status { font-size: .88rem; color: var(--muted); min-width: 10rem; }
.live-output { min-height: 320px; max-height: 60vh; overflow-y: auto; }
.live-output .seg.new { animation: fadein .4s; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.pending-line { color: var(--muted); font-style: italic; padding: .3rem 0 .3rem 5.25rem; }

/* ---------- tablo */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--border); font-size: .92rem; }
th { color: var(--muted); font-weight: 650; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr { transition: background var(--ease); }
tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }

.provider { border: 1px solid var(--border); border-radius: 14px; padding: 1.15rem; margin-bottom: 1rem; background: var(--surface); }
.provider-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; gap: .5rem; flex-wrap: wrap; }

#toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(150%);
  background: #111827; color: #fff; padding: .75rem 1.2rem; border-radius: 14px; font-weight: 500;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
  transition: transform .25s, opacity .25s, visibility .25s; z-index: 50; max-width: calc(100% - 2rem);
  opacity: 0; visibility: hidden; pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
#toast.error { background: #b42318; }

@media (max-width: 760px) {
  .topbar { gap: .35rem .5rem; padding: .55rem .85rem; }
  /* telefonda: logo ve hesap üst satırda, menü alt satırda yan yana (gerekirse kaydırılır) */
  .topbar nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -.25rem; }
  .topbar nav a { white-space: nowrap; }
  .user-menu { margin-left: auto; }
  .account-name { display: none; }
  .account-link { padding: .25rem; }
  .container { padding: 1.5rem 1rem 3rem; }
  h1 { font-size: 1.5rem; }
  .card { padding: 1.15rem; }
  .seg { grid-template-columns: 3.5rem 1fr; gap: .5rem; }
  .pending-line { padding-left: 4rem; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; }
}

/* =====================================================================
   Yapay zekâ
   ===================================================================== */
.ai-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ai-head h2 { margin: 0; display: flex; align-items: center; gap: .5rem; }
.ai-head h2::before {
  content: ""; width: 28px; height: 28px; border-radius: 9px; flex: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z'/%3E%3Cpath d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E") center / 17px no-repeat,
    linear-gradient(135deg, #a78bfa, #6366f1 55%, #2563eb);
}
.ai-form { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.ai-out { border: 1px solid var(--border); border-radius: 14px; margin-top: 1rem; background: var(--surface); overflow: hidden; }
.ai-out > summary {
  list-style: none; cursor: pointer; padding: .8rem 1.1rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
  transition: background var(--ease);
}
.ai-out > summary:hover { background: var(--surface-2); }
.ai-out > summary::-webkit-details-marker { display: none; }
.ai-out > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.ai-out[open] > summary::before { transform: rotate(90deg); }
.ai-out[open] > summary { border-bottom: 1px solid var(--border); }
.ai-out .ai-kind { font-weight: 700; }
.ai-out .ai-meta { color: var(--muted); font-size: .84rem; }
.ai-body { padding: 1rem 1.1rem 1.2rem; }
.ai-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ai-actions .btn, .ai-actions button { min-height: 36px; padding: .35rem .8rem; font-size: .86rem; border-radius: 10px; }
.markdown { line-height: 1.7; }
.markdown h2 { font-size: 1.12rem; margin: 1.3rem 0 .45rem; }
.markdown h3, .markdown h4 { font-size: 1rem; margin: 1.05rem 0 .35rem; }
.markdown h2:first-child, .markdown p:first-child { margin-top: 0; }
.markdown ul, .markdown ol { padding-left: 1.4rem; margin: .4rem 0 .8rem; }
.markdown li { margin: .2rem 0; }
.markdown li::marker { color: var(--accent); }
.markdown p { margin: .5rem 0; }
.markdown blockquote { margin: .6rem 0; padding: .45rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.markdown table { margin: .6rem 0 1rem; border: 1px solid var(--border); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.markdown th { background: var(--surface-2); }
.markdown tr:last-child td { border-bottom: none; }

.slides { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.slide {
  container-type: inline-size; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; position: relative;
  background: #f8fafc; color: #1e293b; border: 1px solid var(--border); box-shadow: var(--shadow);
  font-family: "Segoe UI", system-ui, sans-serif;
}
.slide .in { position: absolute; inset: 6.5cqw 6.5cqw 6cqw 7cqw; display: flex; flex-direction: column; }
.slide .st { font-size: 4.4cqw; font-weight: 700; line-height: 1.2; border-left: .8cqw solid #2563eb; padding-left: 1.8cqw; margin: 0 0 3cqw -2.6cqw; }
.slide ul { margin: 0; padding-left: 3.4cqw; font-size: 2.7cqw; line-height: 1.35; }
.slide li { margin-bottom: 1.1cqw; }
.slide li::marker { color: #2563eb; }
.slide .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; }
.slide .ch { font-weight: 700; color: #2563eb; font-size: 3cqw; border-top: .5cqw solid #2563eb; padding-top: 1cqw; margin-bottom: 1.5cqw; }
.slide .cols > div + div .ch { color: #1e293b; border-color: #64748b; }
.slide .num { position: absolute; right: 4cqw; bottom: 2.5cqw; font-size: 1.8cqw; color: #64748b; }
.slide.cover { background: #0f172a; color: #fff; border-left: 2cqw solid #2563eb; }
.slide.cover .in { justify-content: center; }
.slide.cover h3 { font-size: 6cqw; margin: 0 0 2.5cqw; line-height: 1.15; }
.slide.cover p { font-size: 3cqw; color: #cbd5e1; margin: 0; border-top: .6cqw solid #2563eb; padding-top: 2cqw; width: fit-content; }
.slide.section { background: #2563eb; color: #fff; }
.slide.section .in { justify-content: center; }
.slide.section h3 { font-size: 6cqw; margin: 0 0 1.5cqw; }
.slide.section p { font-size: 3cqw; color: #dbeafe; margin: 0; }
.slide .quote { font-size: 3.6cqw; font-style: italic; line-height: 1.4; margin: auto 0; padding-left: 4cqw; position: relative; }
.slide .quote::before { content: "“"; position: absolute; left: -1cqw; top: -4cqw; font-size: 12cqw; color: #2563eb; font-style: normal; font-weight: 700; }
.slide .attr { font-size: 2.4cqw; color: #64748b; padding-left: 4cqw; }
.slide-notes { font-size: .82rem; color: var(--muted); margin-top: .35rem; }

/* ---------- yönetim: model seçimi */
.mp { margin-top: .9rem; }
.mp-head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.mp-head label { margin: 0; }
.mp-tools { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .45rem 0; }
.mp-tools button { min-height: 34px; padding: .3rem .75rem; font-size: .86rem; }
.mp-tools .mp-filter { width: auto; flex: 1; min-width: 160px; max-width: 280px; min-height: 34px; padding: .3rem .65rem; }
.mp-list { border: 1px solid var(--border); border-radius: 12px; max-height: 260px; overflow-y: auto; padding: .25rem .6rem; background: var(--surface); }
.mp-row { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; padding: .4rem .1rem; margin: 0; font-weight: 400; cursor: pointer; border-bottom: 1px solid var(--border); }
.mp-row:last-child { border-bottom: none; }
.mp-row code { font-size: .86rem; }
.mp-row.missing code { text-decoration: line-through; color: var(--danger); }
.mp-others summary { cursor: pointer; color: var(--muted); font-size: .85rem; padding: .35rem .1rem; }
.mp-add { display: flex; gap: .5rem; margin-top: .5rem; }
.mp-add input { max-width: 320px; min-height: 34px; padding: .3rem .65rem; }
.mp-add button { min-height: 34px; padding: .3rem .75rem; font-size: .86rem; }

/* ---------- giriş ve hesap */
.sso { display: grid; gap: .6rem; margin-bottom: 1rem; }
.sso-btn { width: 100%; min-height: 48px; padding: .7rem 1rem; gap: .65rem; font-weight: 650; }
.sso-btn svg { width: 20px; height: 20px; flex: none; }
.login-alt { border-top: 1px solid var(--border); padding-top: .9rem; margin-top: .9rem; }
.login-alt > summary { cursor: pointer; color: var(--muted); font-weight: 600; margin-bottom: .9rem; }
.login-alt[open] > summary { color: var(--text); }
.login-alt button.primary { width: 100%; min-height: 46px; }
.nav-badge { display: inline-block; min-width: 1.35em; padding: 0 .4em; border-radius: 99px; background: #ef4444; color: #fff; font-size: .72rem; font-weight: 750; text-align: center; line-height: 1.55; }
.kv { width: 100%; margin: .5rem 0 1rem; }
.kv th { width: 9rem; text-transform: none; letter-spacing: 0; font-size: .88rem; }
.account-grid { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.ident { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 0; }
.ident .btn { min-height: 34px; padding: .3rem .75rem; font-size: .86rem; }
.qr svg { width: 180px; height: 180px; background: #fff; border-radius: 12px; padding: 8px; }
.codes { font-size: 1rem; line-height: 1.7; background: var(--surface-2); color: var(--text); padding: .7rem 1rem; border-radius: 12px; margin: .6rem 0 0; columns: 2; }
.pending-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.pending-row:last-child { border-bottom: none; }
.settings-block { border: 1px solid var(--border); border-radius: 14px; padding: 1.15rem; margin-bottom: 1rem; }
.settings-block h3 { margin: 0 0 .3rem; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.copy-field { display: flex; gap: .4rem; }
.copy-field input { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
@media (max-width: 640px) { .account-grid { grid-template-columns: 1fr; } }
.pw-rules { list-style: none; margin: .45rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .8rem; color: var(--muted); }
.pw-rules li::before { content: "○ "; }
.pw-rules li.ok { color: var(--ok); }
.pw-rules li.ok::before { content: "✓ "; }

/* ---------- yönetim sekmeleri */
.admin-tabs { overflow-x: auto; scrollbar-width: thin; }
.admin-tabs button { flex: none; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.admin-tabs .badge { font-size: .7rem; padding: 0 .45rem; }
.admin-tabs .badge::before { display: none; }

/* ---------- bölümlü telefon alanı */
.phone-tr { display: flex; gap: .35rem; align-items: stretch; }
.phone-tr[hidden] { display: none; }
.phone-tr .cc { display: flex; align-items: center; padding: 0 .7rem; border: 1px solid var(--border-strong); border-radius: var(--radius-s);
  background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.phone-tr input { min-width: 0; text-align: center; letter-spacing: .08em; font-variant-numeric: tabular-nums; padding-left: .3rem; padding-right: .3rem; }
.phone-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 1.6rem; }
.phone-hint { font-size: .8rem; color: var(--danger); }
.phone-toggle { font-size: .8rem; padding: .2rem 0 !important; margin-left: auto; }
.phone-field.invalid .phone-tr input, .phone-field.invalid .phone-intl { border-color: var(--danger); }

/* ---------- toplantı tutanağı */
.meeting-time { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 6ch; }
.meeting-more { margin-top: 1.1rem; }
.meeting-more > summary { cursor: pointer; color: var(--muted); font-size: .92rem; font-weight: 550; }
#setup textarea { width: 100%; min-height: 6.5rem; line-height: 1.45; }

/* ---------- çıktıyı e-postayla gönderme */
.ai-mail { display: flex; gap: .5rem; flex-wrap: wrap; margin: .6rem 0 1rem; padding: .75rem; border-radius: 12px; background: var(--surface-2); }
.ai-mail input { flex: 1; min-width: 220px; }
.ai-sent { margin: .4rem 0 .8rem; }

/* ---------- konuşmacılar */
.spk { display: inline-block; font-weight: 650; font-size: .78rem; padding: .08rem .55rem; border-radius: 999px; margin-right: .25rem; white-space: nowrap; }
.spk-0 { background: #e0ecff; color: #1d4ed8; } .spk-1 { background: #fde7e9; color: #b42318; }
.spk-2 { background: #e3f5ea; color: #067647; } .spk-3 { background: #fff1db; color: #b54708; }
.spk-4 { background: #f1e8ff; color: #6927da; } .spk-5 { background: #dff5f6; color: #0e7090; }
.spk-6 { background: #fce7f6; color: #c11574; } .spk-7 { background: #eef0f3; color: #344054; }
@media (prefers-color-scheme: dark) {
  .spk { filter: brightness(.85) saturate(1.2); }
}
.speakers { display: grid; gap: .65rem; }
.speaker-row { display: grid; grid-template-columns: 8.5rem minmax(10rem, 16rem) 1fr; gap: .75rem; align-items: center; }
.speaker-row .spk { justify-self: start; }
@media (max-width: 720px) { .speaker-row { grid-template-columns: 1fr; gap: .3rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- ses şiddetine göre dalgalanan spiral (ses-dalgasi.js) */
.dalga-sahne { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: .5rem auto 0; }
.dalga-sahne.kucuk { width: min(280px, 100%); }
.ses-dalgasi { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dalga-merkez {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .15rem;
  pointer-events: none; text-align: center;
}
.dalga-merkez .meeting-time { font-size: 2.3rem; min-width: 0; text-shadow: 0 2px 12px var(--surface); }
.dalga-merkez .live-status { min-width: 0; font-weight: 600; }
.dalga-eylem { justify-content: center; margin-top: .75rem; }
.canli-kart { padding-bottom: 1.25rem; }


/* ---------- telif satırı */
body.app { min-height: 100vh; display: flex; flex-direction: column; }
body.app > main { flex: 1 0 auto; width: 100%; }
.container { padding-bottom: 2.5rem; }
.site-footer {
  text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .01em;
  padding: 1.25rem 1rem 1.75rem; border-top: 1px solid var(--border); margin-top: 1rem;
}
.auth-shell .site-footer { border-top: none; margin-top: 1rem; padding: 0; }

/* ---------- paket ve kullanım (Hesabım, Yönetim → Abonelik) */
.plan-card { grid-column: 1 / -1; }
.usage-row { margin: .9rem 0; }
.usage-row .usage-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; margin-bottom: .35rem; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s; }
.meter.warn > span { background: #d97706; }
.meter.full > span { background: var(--danger); }
.plan-options { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1rem; }
.plan-option { border: 1px solid var(--border); border-radius: var(--radius-s); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.plan-option.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.plan-option h3 { margin: 0; font-size: 1.05rem; }
.plan-option .price { font-size: 1.25rem; font-weight: 700; }
.plan-option ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--muted); flex: 1; }
.plan-table input { min-width: 0; padding: .45rem .55rem; }
.plan-table td { vertical-align: middle; }
