/* ═══════════════════════════════════════════════════════════
   canlitv.mov — "Live Crimson" bright EPG
   kavuntv (krem+sidebar) ve kolaytv (koyu+grid) ile alakasız:
   açık tema, crimson vurgu, "Şimdi Ekranda" şeridi + tam
   genişlik kanal panelleri, saran program pill'leri, DM Sans.
   class öneki: ctv-
═══════════════════════════════════════════════════════════ */

/* ── Theme tokens (frontend) ── */
:root {
  --paper:    #ffffff;
  --mist:     #f4f5f8;
  --panel:    #ffffff;
  --line:     #e6e8ee;
  --line-2:   #eff1f5;
  --red:      #e11d48;
  --red-dk:   #be123c;
  --red-soft: #fff1f3;
  --ink:      #141820;
  --ink-2:    #59636f;
  --ink-3:    #9aa3b1;
  --r:        12px;
  --r-sm:     8px;
  --pill:     999px;
  --tr:       .17s ease;
  --bar-h:    60px;
  --wrap:     1160px;

  /* ── Legacy tokens — admin panel (değiştirilmedi) ── */
  --cream:       #fef9f0;
  --white:       #ffffff;
  --orange:      #f97316;
  --orange-dark: #ea580c;
  --orange-light:#fff7ed;
  --border:      #fde8d0;
  --text:        #1c1917;
  --text-dim:    #78716c;
  --text-mute:   #a8a29e;
  --radius:      8px;
  --transition:  .18s ease;
  --nav-h:       58px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--mist);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .ctv-brand { font-family: 'DM Sans', system-ui, sans-serif; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dk); }

/* ════════════════ HEADER ════════════════ */
.ctv-bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.ctv-bar__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  height: var(--bar-h); display: flex; align-items: center; gap: 18px;
}
.ctv-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 700; letter-spacing: -.5px;
  color: var(--ink); white-space: nowrap; flex-shrink: 0;
}
.ctv-brand:hover { color: var(--ink); }
.ctv-brand span { color: var(--red); }
.ctv-brand__dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px var(--red-soft);
  animation: ctv-beat 1.5s ease-in-out infinite;
}
@keyframes ctv-beat { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .55; } }

.ctv-menu { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.ctv-menu a {
  color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  padding: 8px 13px; border-radius: var(--pill); transition: var(--tr);
}
.ctv-menu a:hover { color: var(--ink); background: var(--mist); }
.ctv-menu a.on { color: var(--red); background: var(--red-soft); }

.ctv-q { display: flex; align-items: center; margin-left: auto; background: var(--mist); border: 1px solid var(--line); border-radius: var(--pill); overflow: hidden; transition: var(--tr); }
.ctv-q:focus-within { border-color: var(--red); background: var(--paper); }
.ctv-q input { background: transparent; border: none; color: var(--ink); padding: 8px 15px; font-size: 13px; width: 200px; outline: none; }
.ctv-q input::placeholder { color: var(--ink-3); }
.ctv-q button { background: transparent; border: none; color: var(--ink-2); padding: 8px 13px; cursor: pointer; font-size: 14px; transition: var(--tr); }
.ctv-q button:hover { color: var(--red); }

.ctv-ham { display: none; margin-left: auto; background: var(--mist); border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); width: 40px; height: 38px; font-size: 19px; cursor: pointer; }

/* ── Ad slots ── */
.ctv-ad { display: flex; align-items: center; justify-content: center; }
.ctv-ad--top { background: var(--paper); border-bottom: 1px solid var(--line); min-height: 52px; padding: 6px; }
.ctv-ad--mid { max-width: var(--wrap); margin: 24px auto; padding: 0 20px; }
.ctv-ad--row { margin: 6px 0 14px; }

/* ── Main ── */
.ctv-main { flex: 1; padding: 24px 0 48px; }
.ctv-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ════════════════ INTRO ════════════════ */
.ctv-intro { max-width: var(--wrap); margin: 0 auto 20px; padding: 0 20px; }
.ctv-intro__h { font-size: 26px; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; margin-bottom: 9px; }
.ctv-intro__h b { color: var(--red); }
.ctv-intro__p { color: var(--ink-2); font-size: 14.5px; line-height: 1.75; max-width: 880px; }
.ctv-intro__p strong { color: var(--ink); }
.ctv-intro__p em { color: var(--red); font-style: normal; font-weight: 600; }

/* ════════════════ NOW-ON-AIR STRIP ════════════════ */
.ctv-now { max-width: var(--wrap); margin: 0 auto 22px; padding: 0 20px; }
.ctv-now__head {
  display: flex; align-items: center; gap: 9px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--ink); margin-bottom: 12px;
}
.ctv-now__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); animation: ctv-beat 1.5s ease-in-out infinite; }
.ctv-now__rail {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.ctv-now__rail::-webkit-scrollbar { height: 6px; }
.ctv-now__rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.ctv-now__card {
  flex: 0 0 230px; display: flex; flex-direction: column; gap: 4px;
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--red); border-radius: var(--r);
  padding: 12px 14px; transition: var(--tr);
}
.ctv-now__card:hover { box-shadow: 0 8px 22px rgba(20,24,32,.08); transform: translateY(-2px); }
.ctv-now__card.is-hidden { display: none; }
.ctv-now__ch { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--red); display: flex; align-items: center; gap: 6px; }
.ctv-now__prog { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ctv-now__time { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ════════════════ CATEGORY BAR ════════════════ */
.ctv-cats { max-width: var(--wrap); margin: 0 auto 18px; padding: 0 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.ctv-cat {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-2);
  border-radius: var(--pill); padding: 7px 17px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--tr); white-space: nowrap; font-family: inherit;
}
.ctv-cat:hover { border-color: var(--red); color: var(--red); }
.ctv-cat.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(225,29,72,.28); }

/* ════════════════ CHANNEL PANELS ════════════════ */
.ctv-list { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.ctv-channel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ctv-channel.is-hidden { display: none; }
.ctv-channel__top {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-2); background: var(--mist);
}
.ctv-channel__bar { width: 4px; height: 24px; border-radius: 3px; flex-shrink: 0; }
.ctv-channel__name { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--ink); flex-shrink: 0; }
.ctv-channel__name:hover { color: var(--red); }
.ctv-channel__cat { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px 9px; flex-shrink: 0; }
.ctv-channel__now {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-2); min-width: 0;
}
.ctv-channel__now b { color: var(--ink); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 260px; }
.ctv-channel__live { display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .3px; padding: 3px 9px; border-radius: var(--pill); flex-shrink: 0; }

.ctv-progs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.ctv-prog {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 7px 14px; transition: var(--tr); max-width: 100%;
}
.ctv-prog:hover { border-color: var(--red); background: var(--paper); }
.ctv-prog__t { font-size: 12px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ctv-prog__n { font-size: 13px; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ctv-prog.is-live { background: var(--red); border-color: var(--red-dk); }
.ctv-prog.is-live .ctv-prog__t { color: rgba(255,255,255,.85); }
.ctv-prog.is-live .ctv-prog__n { color: #fff; font-weight: 600; }
.ctv-prog.is-past { opacity: .45; }
.ctv-progs__empty { font-size: 12.5px; color: var(--ink-3); font-style: italic; padding: 4px 0; }

/* ── Empty ── */
.ctv-empty { max-width: var(--wrap); margin: 0 auto; padding: 56px 20px; text-align: center; color: var(--ink-3); }
.ctv-empty__i { font-size: 44px; margin-bottom: 12px; }
.ctv-empty p { font-size: 15px; margin-bottom: 12px; }
.ctv-empty a { font-weight: 700; }

/* ════════════════ ABOUT / PROSE ════════════════ */
.ctv-about, .ctv-page { max-width: var(--wrap); margin: 30px auto 0; padding: 0 20px; }
.ctv-page { max-width: 820px; }
.ctv-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 30px;
}
.ctv-about h2, .ctv-page h1 { font-size: 21px; font-weight: 700; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--red-soft); }
.ctv-about h2 { font-size: 18px; }
.ctv-page h2 { font-size: 15px; font-weight: 700; color: var(--red-dk); margin: 22px 0 8px; }
.ctv-about p, .ctv-page p, .ctv-page li { color: var(--ink-2); font-size: 14px; line-height: 1.85; margin-bottom: 11px; }
.ctv-about strong, .ctv-page strong { color: var(--ink); }
.ctv-page ul { padding-left: 20px; }
.ctv-page a { color: var(--red-dk); font-weight: 600; }

/* ════════════════ FAQ ════════════════ */
.ctv-faq { max-width: var(--wrap); margin: 28px auto 0; padding: 0 20px; }
.ctv-faq__h { font-size: 18px; font-weight: 700; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--red-soft); }
.ctv-faq__item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 9px; overflow: hidden; transition: var(--tr); }
.ctv-faq__item[open] { border-color: var(--red); }
.ctv-faq__q { list-style: none; cursor: pointer; user-select: none; padding: 14px 46px 14px 18px; font-weight: 700; font-size: 14px; color: var(--ink); position: relative; }
.ctv-faq__q::-webkit-details-marker { display: none; }
.ctv-faq__q::after { content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-65%) rotate(45deg); transition: var(--tr); }
.ctv-faq__item[open] .ctv-faq__q::after { transform: translateY(-30%) rotate(225deg); }
.ctv-faq__a { padding: 2px 18px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }

/* ════════════════ CHANNEL DETAIL ════════════════ */
.ctv-hero { max-width: 900px; margin: 0 auto 18px; padding: 0 20px; display: flex; align-items: center; gap: 16px; }
.ctv-hero__bar { width: 6px; height: 48px; border-radius: 4px; flex-shrink: 0; }
.ctv-hero__meta { flex: 1; min-width: 0; }
.ctv-hero__name { font-size: 27px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.ctv-hero__cat { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; text-transform: capitalize; }
.ctv-hero__back { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line); border-radius: var(--pill); padding: 8px 15px; transition: var(--tr); }
.ctv-hero__back:hover { color: var(--red); border-color: var(--red); }

.ctv-lead { max-width: 900px; margin: 0 auto 20px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--r); font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.ctv-lead strong { color: var(--ink); }

/* Vertical timeline */
.ctv-timeline { max-width: 900px; margin: 0 auto 24px; padding: 0 20px; list-style: none; }
.ctv-tl { position: relative; display: flex; align-items: center; gap: 16px; padding: 11px 0 11px 28px; }
.ctv-tl::before { content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.ctv-tl:first-child::before { top: 50%; }
.ctv-tl:last-child::before { bottom: 50%; }
.ctv-tl__dot { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-3); z-index: 1; }
.ctv-tl__time { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 50px; flex-shrink: 0; }
.ctv-tl__title { flex: 1; font-size: 14px; color: var(--ink); }
.ctv-tl__live { display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: var(--pill); flex-shrink: 0; }
.ctv-tl.is-live .ctv-tl__dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.ctv-tl.is-live .ctv-tl__time { color: var(--red); }
.ctv-tl.is-live .ctv-tl__title { font-weight: 700; }
.ctv-tl.is-past { opacity: .5; }
.ctv-tl.is-past .ctv-tl__title { text-decoration: line-through; text-decoration-color: var(--ink-3); }

.ctv-prime { max-width: 900px; margin: 0 auto 24px; padding: 0 20px; }
.ctv-prime__h { font-size: 17px; font-weight: 700; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 2px solid var(--red-soft); }
.ctv-prime__lead { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.ctv-prime__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px; }
.ctv-prime__item { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; transition: var(--tr); }
.ctv-prime__item:hover { border-color: var(--red); }
.ctv-prime__t { font-size: 13px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; min-width: 46px; flex-shrink: 0; }
.ctv-prime__n { font-size: 13px; color: var(--ink); }

/* ════════════════ SEARCH ════════════════ */
.ctv-search { max-width: 820px; margin: 0 auto 22px; padding: 0 20px; }
.ctv-search__box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.ctv-search__h { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.ctv-search__form { display: flex; gap: 10px; }
.ctv-search__form input { flex: 1; background: var(--mist); border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; outline: none; transition: var(--tr); font-family: inherit; }
.ctv-search__form input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.ctv-search__form input::placeholder { color: var(--ink-3); }
.ctv-search__form button { background: var(--red); border: none; color: #fff; border-radius: var(--r-sm); padding: 12px 26px; font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--tr); font-family: inherit; }
.ctv-search__form button:hover { background: var(--red-dk); }

.ctv-count { max-width: 820px; margin: 14px auto; padding: 0 20px; font-size: 13px; color: var(--ink-2); }
.ctv-count strong { color: var(--ink); }

.ctv-hit { display: flex; align-items: center; gap: 13px; max-width: 820px; margin: 0 auto 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 16px; transition: var(--tr); }
.ctv-hit:hover { border-color: var(--red); transform: translateX(3px); }
.ctv-hit__bar { width: 4px; height: 36px; border-radius: 3px; flex-shrink: 0; }
.ctv-hit__ch { font-size: 12px; font-weight: 700; color: var(--ink-2); width: 110px; flex-shrink: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ctv-hit__t { font-size: 12px; font-weight: 700; color: var(--red); width: 50px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ctv-hit__n { flex: 1; font-size: 14px; color: var(--ink); }
.ctv-hit__live { display: inline-flex; align-items: center; gap: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: var(--pill); flex-shrink: 0; }

/* ── Forms ── */
.ctv-form label { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.ctv-form input, .ctv-form textarea { width: 100%; background: var(--mist); border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; outline: none; transition: var(--tr); font-family: inherit; }
.ctv-form input:focus, .ctv-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.ctv-form textarea { resize: vertical; min-height: 130px; }
.ctv-btn { background: var(--red); border: none; color: #fff; border-radius: var(--r-sm); padding: 12px 28px; font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--tr); font-family: inherit; }
.ctv-btn:hover { background: var(--red-dk); box-shadow: 0 6px 16px rgba(225,29,72,.3); }
.ctv-msg { padding: 13px 16px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; margin-bottom: 18px; }
.ctv-msg--ok  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.ctv-msg--err { background: var(--red-soft); border: 1px solid #fecdd3; color: var(--red-dk); }

/* live dot */
.ctv-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ctv-beat 1.4s ease-in-out infinite; }

/* ════════════════ FOOTER ════════════════ */
.ctv-foot { margin-top: auto; background: var(--paper); border-top: 1px solid var(--line); padding: 28px 0; }
.ctv-foot__in { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; text-align: center; }
.ctv-foot__note { font-size: 12px; color: var(--ink-3); line-height: 1.75; max-width: 880px; margin: 0 auto 16px; }
.ctv-foot__nav { display: flex; justify-content: center; gap: 22px; margin-bottom: 12px; flex-wrap: wrap; }
.ctv-foot__nav a { font-size: 13px; color: var(--ink-2); font-weight: 600; transition: var(--tr); }
.ctv-foot__nav a:hover { color: var(--red); }
.ctv-foot__copy { font-size: 11.5px; color: var(--ink-3); }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 760px) {
  .ctv-bar__in { gap: 10px; }
  .ctv-menu { display: none; position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; gap: 4px; padding: 12px; background: var(--paper); border-bottom: 1px solid var(--line); margin-left: 0; }
  .ctv-menu.open { display: flex; }
  .ctv-menu a { width: 100%; }
  .ctv-ham { display: inline-flex; align-items: center; justify-content: center; }
  .ctv-q { order: 3; flex: 1; }
  .ctv-q input { width: 100%; }
  .ctv-channel__top { flex-wrap: wrap; }
  .ctv-channel__now { margin-left: 0; width: 100%; order: 5; }
  .ctv-intro__h { font-size: 21px; }
  .ctv-hero__name { font-size: 22px; }
  .ctv-prime__grid { grid-template-columns: 1fr; }
  .ctv-search__form { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL — değiştirilmedi (legacy tokenlar üstte :root'ta)
═══════════════════════════════════════════════════════════ */
.admin-layout { display: flex; min-height: 100vh; background: var(--cream); color: var(--text); }
.admin-sidebar { width: 220px; min-height: 100vh; background: var(--white); border-right: 1.5px solid var(--border); padding: 20px 0; flex-shrink: 0; display: flex; flex-direction: column; }
.admin-sidebar .brand { padding: 0 16px 16px; font-family: Georgia, serif; font-weight: 700; font-size: 15px; border-bottom: 1.5px solid var(--border); margin-bottom: 12px; color: var(--text); }
.admin-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text-dim); font-size: 13px; font-weight: 500; text-decoration: none; transition: all var(--transition); border-left: 3px solid transparent; }
.admin-nav-link:hover { background: var(--orange-light); color: var(--text); text-decoration: none; }
.admin-nav-link.active { color: var(--orange-dark); background: var(--orange-light); border-left-color: var(--orange); }
.admin-content { flex: 1; padding: 30px; max-width: 1300px; color: var(--text); }
.admin-content h1 { font-family: Georgia, serif; font-size: 22px; margin-bottom: 24px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.admin-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.admin-card h2 { font-size: 14px; margin-bottom: 18px; color: var(--text); font-weight: 700; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px; }
.form-ctrl { width: 100%; background: var(--cream); border: 1.5px solid var(--border); color: var(--text); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; outline: none; transition: border-color var(--transition), box-shadow var(--transition); font-family: inherit; }
.form-ctrl:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
select.form-ctrl { cursor: pointer; }
.btn { border: none; border-radius: var(--radius); padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 2px 8px rgba(249,115,22,.3); }
.btn-danger  { background: #dc2626; color: var(--white); }
.btn-sm      { padding: 6px 11px; font-size: 12px; }
.btn-ghost   { background: var(--cream); color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.w-100 { width: 100%; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 10px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-mute); border-bottom: 2px solid var(--border); font-weight: 700; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--orange-light); }
.admin-table code { background: var(--cream); padding: 3px 8px; border-radius: 4px; font-size: 11px; color: var(--orange-dark); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red   { background: #fee2e2; color: #b91c1c; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--text); padding: 20px; }
.login-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 40px; width: 360px; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.login-card h2 { font-family: Georgia, serif; text-align: center; margin-bottom: 28px; font-size: 18px; font-weight: 700; color: var(--text); }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.alert-danger  { background: #fee2e2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #dcfce7; border: 1px solid #bbf7d0; color: #15803d; }
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; min-height: auto; border-right: none; border-bottom: 1.5px solid var(--border); flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .admin-sidebar .brand { width: 100%; border-bottom: none; padding-bottom: 8px; }
  .admin-nav-link { border-left: none; border-radius: 6px; flex: 1; justify-content: center; }
  .admin-content { padding: 16px; }
}
