/* KdmPlayer — site, müşteri paneli ve yönetim paneli stilleri */

:root {
  --ink: #0f1b33;
  --ink-2: #172645;
  --ink-3: #22345a;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --text: #18233a;
  --muted: #5d6b82;
  --faint: #8a96aa;
  --line: #dde3ee;
  --line-strong: #c6cfdd;
  --cobalt: #2b50e8;
  --cobalt-dark: #1f3ec4;
  --cobalt-soft: #e8edfd;
  --signal: #13a985;
  --signal-soft: #e2f6f0;
  --amber: #c9831a;
  --amber-soft: #fcf1df;
  --danger: #d13b3b;
  --danger-soft: #fbe7e7;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-lift: 0 1px 2px rgba(15, 27, 51, .06), 0 8px 24px -12px rgba(15, 27, 51, .18);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid rgba(43, 80, 232, .45); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: inherit;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 700;
}
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9eefb; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }
.btn-danger { background: transparent; color: var(--danger); border-color: #efc4c4; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Site üst menü ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; }
.site-header.is-solid { position: relative; background: var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 700 21px/1 var(--font-display); letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand-mark { width: 32px; height: 32px; }
.brand.is-dark { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: rgba(255,255,255,.78); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.site-nav .btn { margin-left: 4px; }
.site-nav a.btn-light, .site-nav a.btn-light:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 76px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 12px; }
  .site-nav .btn { margin: 6px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% 58%, rgba(43, 80, 232, .34), transparent 70%),
    var(--ink);
  color: #fff;
  padding: 150px 0 120px;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 700; letter-spacing: -.035em; max-width: 12ch; }
.hero-lead { margin-top: 22px; max-width: 46ch; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.74); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.55); }

/* TV çizimi: uygulamanın gerçek aktivasyon ekranı */
.tv-stage { position: relative; padding-bottom: 150px; margin-top: -40px; }
.tv {
  position: relative;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(180deg, #2a2f3a, #14171d);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08);
}
.tv-screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 6px;
  background: radial-gradient(120% 120% at 0% 0%, #1d3270 0%, #0c1530 55%, #070d1f 100%);
  display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr auto; align-items: center;
  padding: 6% 7.5% 0; column-gap: 6%;
  font-size: clamp(9px, 1.15vw, 14px);
}
.tv-foot { width: 34%; height: 18px; margin: 0 auto; background: linear-gradient(180deg, #1a1d24, #0e1015); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.tv-app-name { display: flex; align-items: center; gap: .6em; font: 700 1.25em/1 var(--font-display); color: #fff; }
.tv-app-name svg { width: 1.7em; height: 1.7em; }
.tv-title { margin-top: 1.4em; font-size: 1.05em; color: rgba(255,255,255,.7); }
.tv-field { margin-top: 1.1em; }
.tv-field span { display: block; font-size: .78em; color: rgba(255,255,255,.5); }
.tv-field strong { display: block; margin-top: .2em; font: 600 1.7em/1.1 var(--font-display); letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }
.tv-url { margin-top: 1.3em; font-size: .85em; color: #8fb0ff; }
.tv-qr { justify-self: end; width: 82%; padding: 6%; background: #fff; border-radius: 6px; }
.tv-qr svg { width: 100%; height: auto; }
.tv-qr-caption { margin-top: .7em; text-align: center; font-size: .78em; line-height: 1.5; color: rgba(255,255,255,.6); }
.tv-bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1.1em 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .82em; color: rgba(255,255,255,.6); }
.tv-bar .tv-url { margin: 0; font-size: 1em; }
.tv-trial { display: inline-flex; align-items: center; gap: .5em; }
.tv-trial i { width: .55em; height: .55em; border-radius: 50%; background: #3be3b5; }

.phone {
  position: absolute; right: 6%; bottom: 0; width: 30%; max-width: 196px;
  padding: 7px; border-radius: 26px;
  background: #0b0f17;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.12);
  animation: phone-in .9s cubic-bezier(.2,.8,.2,1) .5s both;
}
.phone-screen { border-radius: 20px; background: #fff; color: var(--text); padding: 18px 14px 16px; font-size: 12px; }
.phone-bar { width: 38%; height: 5px; margin: 0 auto 14px; border-radius: 99px; background: #e4e8f0; }
.phone-check { width: 36px; height: 36px; border-radius: 50%; background: var(--signal-soft); color: var(--signal); display: grid; place-items: center; }
.phone h4 { margin-top: 10px; font-size: 15px; }
.phone p { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.phone-row { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.phone-row b { font-variant-numeric: tabular-nums; }
@keyframes phone-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero { padding: 120px 0 80px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .phone { right: 0; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .tv-stage { padding-bottom: 150px; }
  .tv-bar .tv-trial { display: none; }
  .tv-screen { grid-template-columns: 1fr; }
  .tv-qr-wrap { display: none; }
  .phone { width: 46%; }
}

/* ---------- Bölümler ---------- */
.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Kurulum adımları (gerçek sıra) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 36px 0 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font: 700 18px/1 var(--font-display);
  position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: var(--line-strong); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-top: 24px; font-size: 22px; }
.steps p { margin-top: 10px; color: var(--muted); max-width: 32ch; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps li { padding: 0 0 0 68px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .steps li::after { top: 52px; left: 22px; right: auto; bottom: -32px; width: 1px; height: auto; }
  .steps h3 { margin-top: 6px; }
}

/* Platformlar */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.platform { padding: 30px 30px 32px; }
.platform + .platform { border-left: 1px solid var(--line); }
.platform h3 { font-size: 22px; }
.platform p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.platform-tag { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--signal); }
@media (max-width: 820px) {
  .platforms { grid-template-columns: 1fr; }
  .platform + .platform { border-left: 0; border-top: 1px solid var(--line); }
}

/* Özellikler: iki sütunlu düz liste */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--cobalt-soft); color: var(--cobalt); display: grid; place-items: center; }
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 19px; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* Fiyat */
.pricing { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.price-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 40px; position: relative; overflow: hidden; }
.price-card::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(43,80,232,.5), transparent 70%); }
.price-name { font-size: 15px; color: rgba(255,255,255,.65); }
.price-amount { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.price-amount strong { font: 700 64px/1 var(--font-display); letter-spacing: -.04em; }
.price-amount span { color: rgba(255,255,255,.65); }
.price-list { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.86); }
.price-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #3be3b5; }
.price-card .btn { position: relative; z-index: 1; }
.price-trial { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.55); position: relative; z-index: 1; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; gap: 40px; } .price-card { padding: 32px 24px; } }

/* Güven notu */
.notice-band { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.notice-band .feature-icon { background: var(--signal-soft); color: var(--signal); }
.notice-band h3 { font-size: 20px; }
.notice-band p { margin-top: 8px; color: var(--muted); max-width: 70ch; }
@media (max-width: 600px) { .notice-band { grid-template-columns: 1fr; padding: 24px; } }

/* SSS */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 600 18px/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 26px/1 var(--font-body); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }

/* Kapanış */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.2vw, 40px); max-width: 18ch; }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,.7); }
@media (max-width: 600px) { .cta-band { padding: 36px 24px; } .cta-band .btn { width: 100%; } }

/* Alt bilgi */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 40px; }
.footer-grid p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 38ch; }
.footer-grid h4 { font: 600 15px/1.2 var(--font-body); letter-spacing: 0; color: var(--text); }
.footer-grid ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--muted); font-size: 15px; }
.footer-grid ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.pay-badges { display: flex; gap: 8px; align-items: center; }
.pay-badges span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Yazı sayfaları (KVKK vb.) */
.prose-page { padding: 72px 0 96px; }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); }
.prose .updated { margin-top: 10px; color: var(--faint); font-size: 14px; }
.prose h2 { font-size: 22px; margin-top: 40px; }
.prose p, .prose li { color: #33405a; margin-top: 14px; }
.prose ul { padding-left: 20px; }

/* ---------- Formlar ---------- */
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 18px; }
.label { font-size: 14px; font-weight: 600; color: var(--text); }
.hint { font-size: 13px; color: var(--muted); }
.input, .select {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; color: var(--text);
  font: 400 16px/1.2 var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(43, 80, 232, .14); }
.input.is-code { font: 600 20px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 76px; }
.reveal-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px 10px; color: var(--muted); font: 600 13px/1 var(--font-body); cursor: pointer; }
.has-error .input { border-color: var(--danger); }
.error { font-size: 13.5px; color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cobalt); flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .field + .field { margin-top: 0; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Bildirimler ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: 15px; margin-bottom: 24px; }
.alert svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.alert-success { background: var(--signal-soft); color: #0b6e56; }
.alert-error { background: var(--danger-soft); color: #9c2626; }
.alert-warn { background: var(--amber-soft); color: #87560c; }
.alert-info { background: var(--cobalt-soft); color: #1f3ab0; }

/* ---------- Giriş / kayıt ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-aside {
  background: radial-gradient(700px 420px at 30% 80%, rgba(43, 80, 232, .38), transparent 70%), var(--ink);
  color: #fff; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside h2 { font-size: clamp(28px, 3vw, 40px); max-width: 15ch; }
.auth-aside p { margin-top: 14px; color: rgba(255,255,255,.7); max-width: 40ch; }
.auth-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; color: rgba(255,255,255,.82); font-size: 15px; }
.auth-points svg { flex: none; width: 20px; height: 20px; color: #3be3b5; margin-top: 2px; }
.auth-aside small { color: rgba(255,255,255,.45); font-size: 13px; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; background: var(--surface); }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 32px; }
.auth-box > p { margin-top: 8px; color: var(--muted); }
.auth-box form { margin-top: 32px; }
.auth-switch { margin-top: 28px; text-align: center; color: var(--muted); font-size: 15px; }
.auth-mobile-brand { display: none; margin-bottom: 32px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-brand { display: inline-flex; }
}

/* ---------- Panel (müşteri + yönetim) ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); background: linear-gradient(90deg, var(--ink) 252px, var(--paper) 252px); }
.sidebar { background: var(--ink); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 4px 10px 26px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm);
  color: rgba(255,255,255,.7); font-size: 15px; font-weight: 500;
}
.side-nav a svg { width: 19px; height: 19px; opacity: .85; }
.side-nav a:hover { background: var(--ink-2); color: #fff; }
.side-nav a.is-active { background: var(--ink-3); color: #fff; }
.side-group { margin: 22px 12px 8px; font-size: 12.5px; color: rgba(255,255,255,.42); }
.side-foot { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--ink-3); }
.side-user { font-size: 14px; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-mail { font-size: 13px; color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot form { margin-top: 12px; }
.side-foot button { background: none; border: 0; padding: 0; color: rgba(255,255,255,.7); font: 500 14px/1 var(--font-body); cursor: pointer; }
.side-foot button:hover { color: #fff; }

.app-top { display: none; }
.main { padding: 40px 48px 64px; max-width: 1180px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; }
.page-head p { margin-top: 6px; color: var(--muted); }
.crumb { display: inline-flex; gap: 6px; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--text); }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; background: var(--paper); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(15, 27, 51, .45); }
  .app-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--ink); position: sticky; top: 0; z-index: 30; }
  .app-top button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
  .main { padding: 28px 16px 48px; }
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.panel + .panel { margin-top: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 19px; }
.panel-head p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.panel-body { padding: 24px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.grid-2 > .panel + .panel { margin-top: 0; }
.stack > * + * { margin-top: 24px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

/* Durum etiketi */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-active { background: var(--signal-soft); color: #0b7a5f; }
.pill-trial { background: var(--amber-soft); color: #94600f; }
.pill-expired, .pill-failed { background: var(--danger-soft); color: #a52b2b; }
.pill-blocked { background: #eceff4; color: #4a5568; }
.pill-free { background: #e8f0ff; color: #2a55b8; }
.pill-paid { background: var(--signal-soft); color: #0b7a5f; }
.pill-pending { background: var(--amber-soft); color: #94600f; }
.pill-refunded { background: #eceff4; color: #4a5568; }

/* Cihaz listesi */
.device-list { display: grid; gap: 16px; }
.device-row {
  display: grid; grid-template-columns: 52px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: inherit;
}
.device-row:hover { border-color: var(--line-strong); color: inherit; box-shadow: var(--shadow-lift); }
.device-glyph { width: 52px; height: 40px; border-radius: 6px; background: var(--ink); color: #8fb0ff; display: grid; place-items: center; }
.device-glyph svg { width: 22px; height: 22px; }
.device-name { font: 600 17px/1.3 var(--font-display); }
.device-meta { margin-top: 3px; color: var(--muted); font-size: 14px; }
.code { font-family: var(--font-display); font-weight: 600; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.device-until { font-size: 14px; color: var(--muted); }
.device-until strong { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
@media (max-width: 760px) {
  .device-row { grid-template-columns: 44px 1fr; row-gap: 12px; }
  .device-glyph { width: 44px; height: 34px; }
  .device-row > :nth-child(3), .device-row > :nth-child(4) { grid-column: 2; }
}

/* Boş durum */
.empty { text-align: center; padding: 56px 24px; }
.empty-art { width: 96px; margin: 0 auto 22px; color: var(--line-strong); }
.empty h2 { font-size: 22px; }
.empty p { margin: 10px auto 0; color: var(--muted); max-width: 44ch; }
.empty .btn { margin-top: 24px; }

/* Bilgi listesi */
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14.5px; }
.facts dd { margin: 0; font-weight: 600; text-align: right; font-size: 15px; }

/* Lisans kutusu */
.license-box { padding: 24px; border-radius: var(--r-md); background: var(--ink); color: #fff; }
.license-box .pill { margin-bottom: 14px; }
.license-box h3 { font-size: 24px; }
.license-box p { margin-top: 6px; color: rgba(255,255,255,.68); font-size: 15px; }
.license-box .btn { margin-top: 20px; }
.meter { margin-top: 18px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: #3be3b5; }
.meter.is-trial i { background: #f2b75b; }

/* Liste (playlist) satırları */
.playlist { border-top: 1px solid var(--line); }
.playlist:first-child { border-top: 0; }
.playlist summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 18px 24px; }
.playlist summary::-webkit-details-marker { display: none; }
.playlist-name { font-weight: 600; }
.playlist-host { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-edit { color: var(--cobalt); font-size: 14px; font-weight: 600; }
.playlist[open] .playlist-edit { color: var(--muted); }
.playlist-form { padding: 4px 24px 24px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.toggle input { width: 18px; height: 18px; accent-color: var(--cobalt); }

/* Tablolar */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a.row-link { color: var(--text); font-weight: 600; }
.table a.row-link:hover { color: var(--cobalt); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* Yönetim istatistikleri */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 24px; }
.stat { padding: 22px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat span { display: block; font-size: 14px; color: var(--muted); }
.stat strong { display: block; margin-top: 6px; font: 700 32px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 6px; font-size: 13px; color: var(--faint); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .input { max-width: 340px; min-height: 42px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; }
.tabs a:hover { color: var(--text); background: #eaeef5; }
.tabs a.is-active { background: var(--ink); color: #fff; }

.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form .input { width: 96px; min-height: 38px; }

/* Sayfalama */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pager-links { display: flex; gap: 8px; }

/* Test ödeme sayfası */
.checkout { max-width: 520px; margin: 0 auto; }
.checkout.checkout-wide { max-width: 760px; }
.test-banner { padding: 12px 16px; border-radius: var(--r-sm); background: var(--amber-soft); color: #87560c; font-size: 14px; margin-bottom: 20px; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.checkout-total strong { font: 700 30px/1 var(--font-display); }

.copy-btn { background: none; border: 0; padding: 0 0 0 8px; color: var(--cobalt); font: 600 13px/1 var(--font-body); cursor: pointer; }

/* Dikey adım listesi (panel içi) */
.steps.is-vertical { grid-template-columns: 1fr; gap: 28px; }
.steps.is-vertical li { padding: 0 0 0 60px; }
.steps.is-vertical li::before { position: absolute; left: 0; top: 0; width: 38px; height: 38px; font-size: 16px; }
.steps.is-vertical li::after { top: 46px; left: 19px; right: auto; bottom: -24px; width: 1px; height: auto; }
.steps.is-vertical h3 { margin-top: 7px; font-size: 17px; }
.steps.is-vertical p { font-size: 15px; }
.nav-toggle svg, .app-top button svg { width: 26px; height: 26px; }
.btn svg { width: 18px; height: 18px; }
.alert svg, .empty-art svg { width: 100%; height: 100%; }
.alert svg { width: 20px; height: 20px; }
@media (max-width: 960px) { .tv-stage { margin-top: 0; } }

/* Roller, bayi, hesaba girme */
.side-credit { margin: 22px 12px 0; padding: 14px; border-radius: var(--r-sm); background: var(--ink-2); font-size: 13px; color: rgba(255,255,255,.6); }
.side-credit strong { display: block; margin-top: 2px; font: 700 26px/1 var(--font-display); color: #fff; }
.impersonation { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 24px; border-radius: var(--r-md); background: var(--ink); color: rgba(255,255,255,.85); font-size: 14.5px; }
.impersonation span { display: flex; gap: 10px; align-items: center; }
.impersonation svg { width: 18px; height: 18px; flex: none; color: #8fb0ff; }
.impersonation b { color: #fff; margin-right: 4px; }
.pill-role-admin { background: #e8edfd; color: #1f3ab0; }
.pill-role-dealer { background: #f1e8fd; color: #6b2fb3; }
.pill-role-customer { background: #eceff4; color: #4a5568; }
.pill-suspended { background: var(--danger-soft); color: #a52b2b; }
.danger-zone { border-color: #f0cccc; }
.danger-zone .panel-head h2 { color: #a52b2b; }
.danger-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--line); }
.danger-row:first-of-type { border-top: 0; }
.danger-row p { color: var(--muted); font-size: 14px; max-width: 46ch; }
.danger-row strong { display: block; color: var(--text); font-size: 15px; }
.credit-amount.is-plus { color: #0b7a5f; font-weight: 600; }
.credit-amount.is-minus { color: #a52b2b; font-weight: 600; }
.select { appearance: auto; }

/* ---------- İstatistikler ---------- */
.stats-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .stats-5 { grid-template-columns: repeat(3, 1fr); } .stats-5 .stat:nth-child(4) { border-left: 0; } .stats-5 .stat:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .stats-5 { grid-template-columns: 1fr 1fr; } .stats-5 .stat { border-left: 0 !important; border-top: 1px solid var(--line); } .stats-5 .stat:nth-child(even) { border-left: 1px solid var(--line) !important; } .stats-5 .stat:nth-child(-n+2) { border-top: 0; } }
.t-active { color: #0b7a5f; }
.t-trial { color: #94600f; }
.t-expired { color: #a52b2b; }

.s-active { background: #1aa37f; }
.s-trial { background: #e0a23a; }
.s-expired { background: #d9534f; }
.s-blocked { background: #9aa3b2; }

.hstack { display: flex; gap: 2px; height: 14px; }
.hstack-seg:first-child, .hstack-empty { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.hstack-seg:last-child, .hstack-empty { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.hstack-seg { display: block; min-width: 4px; position: relative; outline-offset: 2px; }
.hstack-seg:hover, .hstack-seg:focus { filter: brightness(.92); }
.hstack-empty { flex: 1; background: var(--line); }
.legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--text); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.grid-3 > .panel + .panel { margin-top: 0; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-2.even { grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
@media (max-width: 1100px) { .grid-2.even { grid-template-columns: 1fr; } }
.big-figure { font: 700 40px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.figure-note { margin-top: 10px; color: var(--muted); font-size: 14px; }

.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 48px 0 16px; }
.section-title h2 { font-size: 22px; }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mini-stats div { padding: 16px 24px; }
.mini-stats div + div { border-left: 1px solid var(--line); }
.mini-stats b { display: block; font: 700 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.mini-stats span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Dikey çubuk grafik */
.vchart { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.vchart-axis { height: var(--h); display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.vchart-plot { position: relative; min-width: 0; }
.vchart-grid { position: absolute; inset: 0 0 auto; height: var(--h); border-top: 1px dashed var(--line); border-bottom: 1px solid var(--line-strong); pointer-events: none; }
.vbars { position: relative; height: var(--h); display: flex; align-items: flex-end; gap: 2px; }
.vbar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; outline: none; cursor: default; }
.vbar { width: 100%; background: var(--cobalt); border-radius: 4px 4px 0 0; }
.vbar-col:hover .vbar, .vbar-col:focus .vbar { background: var(--cobalt-dark); }
.vbar-col:hover::before, .vbar-col:focus::before { content: ""; position: absolute; inset: 0; background: rgba(43, 80, 232, .06); border-radius: 4px; }
.vlabels { display: flex; gap: 2px; margin-top: 6px; }
.vlabels span { flex: 1; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: visible; text-align: left; }

/* Üzerine gelince açıklama */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  z-index: 10; padding: 7px 10px; border-radius: 6px; background: var(--ink); color: #fff;
  font: 500 12.5px/1.3 var(--font-body); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-lift);
}
.vbar-col[data-tip]:hover::after, .vbar-col[data-tip]:focus::after { bottom: auto; top: -36px; }
.vbars .vbar-col:first-child[data-tip]::after { left: 0; transform: none; }
.vbars .vbar-col:last-child[data-tip]::after { left: auto; right: 0; transform: none; }

.platform-bars { display: grid; gap: 18px; }
.platform-name { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.platform-name span { font-weight: 400; color: var(--muted); font-size: 14px; }

/* ---------- Dil seçici ---------- */
.lang-switch { position: relative; }
.lang-switch summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500;
  color: var(--muted); padding: 6px 10px; border-radius: var(--r-sm); user-select: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary svg { width: 17px; height: 17px; flex: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--text); background: rgba(15, 27, 51, .06); }
.lang-switch.is-dark summary { color: rgba(255, 255, 255, .78); }
.lang-switch.is-dark summary:hover, .lang-switch.is-dark[open] summary { color: #fff; background: rgba(255, 255, 255, .1); }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 180px; max-height: 340px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lift); }
.lang-switch.is-up ul { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
.lang-switch li a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--text); }
.lang-switch li a:hover { background: var(--paper); color: var(--text); }
.lang-switch li a.is-current { font-weight: 600; color: var(--cobalt); background: var(--cobalt-soft); }
.side-foot .lang-switch { margin-bottom: 10px; }
.auth-lang { position: absolute; top: 18px; right: 18px; }

/* Yönetim menüsü: onay bekleyen havale sayısı */
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #f59e0b; color: #1a1300; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }

/* ---------- Duyurular ---------- */
.textarea { min-height: 150px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; font-size: 14.5px; background: #fff; }
.choice:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-soft); }
.choice input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--cobalt); flex: none; }
.choice b { display: block; font-weight: 600; color: var(--text); }
.choice small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.choice.is-off { opacity: .55; }
.form-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-section > h3 { font-size: 16px; margin-bottom: 14px; }
.pill-draft { background: #eceff4; color: #4a5568; }
.pill-live { background: var(--signal-soft); color: #0b7a5f; }
.pill-ended { background: #f3f4f6; color: #6b7280; }
.pill-type-campaign { background: #f3e8ff; color: #6b21a8; }
.pill-type-update { background: #e8edfd; color: #1f3ab0; }
.pill-type-news { background: #ccfbf1; color: #0f766e; }
.mail-frame { display: block; width: 100%; height: 820px; border: 0; border-radius: 0 0 var(--r-md) var(--r-md); background: #eef1f7; }
.reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.reach > div { padding: 18px 20px; }
.reach > div + div { border-left: 1px solid var(--line); }
.reach span { display: block; font-size: 13.5px; color: var(--muted); }
.reach strong { display: block; margin-top: 4px; font: 700 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.reach small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--faint); line-height: 1.4; }
@media (max-width: 700px) { .reach { grid-template-columns: 1fr; } .reach > div + div { border-left: 0; border-top: 1px solid var(--line); } .mail-frame { height: 640px; } }

/* ---------- Destek merkezi (herkese açık) ---------- */
.support-hero { background: linear-gradient(160deg, var(--ink) 0%, #1b2f63 100%); color: #fff; padding: 64px 0 56px; }
.support-hero .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.support-hero h1 { margin-top: 10px; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.03em; }
.support-lead { margin-top: 12px; font-size: 18px; color: rgba(255,255,255,.72); }
.support-search { position: relative; max-width: 640px; margin-top: 28px; }
.support-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--faint); pointer-events: none; }
[dir="rtl"] .support-search svg { left: auto; right: 18px; }
.support-search .input { min-height: 58px; padding: 0 20px 0 52px; border: 0; border-radius: 14px; font-size: 17px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
[dir="rtl"] .support-search .input { padding: 0 52px 0 20px; }
.support-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.support-topics a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 14.5px; font-weight: 500; }
.support-topics a:hover { background: rgba(255,255,255,.18); color: #fff; }
.support-topics svg { width: 17px; height: 17px; opacity: .8; }
.support-body { padding-top: 56px; padding-bottom: 96px; }
.support-group { margin-bottom: 48px; scroll-margin-top: 24px; }
.support-group > h2 { font-size: 24px; margin-bottom: 6px; }
.support-group .faq { max-width: none; }
.support-group .faq summary { font-size: 17px; }
.support-empty { padding: 32px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); text-align: center; margin-bottom: 48px; }
.support-empty p { margin-top: 6px; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.guide-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.guide-card h3 { font-size: 18px; }
.guide-card ol { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; flex: 1; }
.guide-card .btn { align-self: flex-start; }
.guide-soon { font-size: 13px; color: var(--faint); }
.support-cta { margin-top: 16px; }
.support-cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.support-cta-note { font-size: 13.5px; color: rgba(255,255,255,.6); }
.support-mail { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* ---------- Destek talepleri (panel) ---------- */
.nav-badge.is-blue { background: var(--cobalt); color: #fff; }
.pill-t-open { background: var(--amber-soft); color: #94600f; }
.pill-t-answered { background: var(--cobalt-soft); color: #1f3ab0; }
.pill-t-closed { background: #eceff4; color: #4a5568; }
.pill-high { background: var(--danger-soft); color: #a52b2b; }
.ticket-row-unread td:first-child a { font-weight: 700; }
.ticket-row-unread td:first-child a::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-start: 8px; border-radius: 50%; background: var(--cobalt); vertical-align: middle; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ticket-layout.is-single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
@media (max-width: 980px) { .ticket-layout { grid-template-columns: minmax(0, 1fr); } }
.thread { display: grid; gap: 16px; }
.msg { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.msg-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.msg-head strong { font-size: 14.5px; }
.msg-head time { color: var(--faint); font-size: 13px; }
.msg-body { padding: 16px 18px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
.msg.is-staff { border-color: #c9d5fb; }
.msg.is-staff .msg-head { background: var(--cobalt-soft); border-bottom-color: #c9d5fb; border-radius: var(--r-md) var(--r-md) 0 0; }
.msg.is-internal { border-style: dashed; border-color: #e6c27a; background: #fffbf1; }
.msg.is-internal .msg-head { background: #fdf3dc; border-radius: var(--r-md) var(--r-md) 0 0; border-bottom-color: #f0dcae; }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--text); background: var(--paper); max-width: 100%; }
.file-chip svg { width: 15px; height: 15px; flex: none; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip.is-gone { color: var(--faint); }
.msg-files img { display: block; max-width: 220px; max-height: 160px; border-radius: 8px; border: 1px solid var(--line); }
.reply-box .textarea { min-height: 130px; }
.file-input { font-size: 14px; color: var(--muted); }
.file-input input { display: block; margin-top: 6px; }
.ticket-closed-note { padding: 18px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 30px; line-height: 1; color: var(--line-strong); cursor: pointer; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f5b301; }
.stars input:focus-visible + label { outline: 2px solid var(--cobalt); border-radius: 4px; }
.suggest { border: 1px solid #c9d5fb; background: var(--cobalt-soft); border-radius: var(--r-md); padding: 16px 18px; margin-top: 18px; }
.suggest h3 { font-size: 15px; margin-bottom: 8px; }
.suggest details { border-top: 1px solid #c9d5fb; padding: 10px 0; }
.suggest details:first-of-type { border-top: 0; }
.suggest summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.suggest p { margin-top: 6px; font-size: 14px; color: #33405a; }
.reply-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.ticket-layout .form-row { align-items: start; }
