/* ===========================================================================
   REDVERSE UI — TASARIM SİSTEMİ
   ---------------------------------------------------------------------------
   Bu dosya tek başına sitenin görünümünü kurar.
   Yerini aldığı eski dosyalar: tabler tabanlı eski tema, redverse-theme.css
   Yükleme sırası: tabler(CDN) -> /theme.css (tokenlar) -> BU DOSYA -> sayfa CSS
   ---------------------------------------------------------------------------
   İçindekiler
     01  Tokenlar
     02  Reset & temel
     03  Tipografi
     04  Düzen iskeleti
     05  Marka kilidi (logo + yazı)
     06  Üst bar / public nav
     07  Sidebar
     08  Butonlar
     09  Form elemanları
     10  Kartlar
     11  Hero alanları
     12  Bölüm başlıkları & sekmeler
     13  İstatistik / metrik / sağlık kartları
     14  Tablolar
     15  Rozetler & avatarlar
     16  Galeri
     17  Akış / haber / izleme
     18  Yayın / radyo / proxy
     19  Profil / bildirim / arama / log
     20  Modal / toast / marquee
     21  Footer
     22  Yardımcı sınıflar
     23  Responsive
     24  Erişilebilirlik & yazdırma
   =========================================================================== */

/* ===========================================================================
   01  TOKENLAR
   /theme.css bu değerleri Tema Studio'dan override eder. Buradakiler yedektir.
   =========================================================================== */
:root {
  /* --- Marka renkleri (design pack) ------------------------------------- */
  --rv-primary: #ff1744;          /* crimson   */
  --rv-accent:  #ff2f55;          /* hot-red   */
  --rv-deep:    #8b001b;          /* dark-red  */
  --rv-ember:   #ff4a2e;          /* ember     */
  --rv-rose:    #ff5c7a;          /* rose-glow */

  /* --- Yuzeyler ---------------------------------------------------------- */
  --rv-bg:      #050508;          /* void-black  */
  --rv-bg-2:    #0b0b12;          /* panel-black */
  --rv-surface: #101019;          /* deep-night  */
  --rv-card:    rgba(21, 21, 31, .80);   /* glass-card #15151F */
  --rv-card-2:  rgba(24, 20, 30, .92);
  --rv-card-blur: 16px;

  /* --- Metin ------------------------------------------------------------- */
  --rv-text:  #f5f2f4;
  --rv-muted: #a8a1ad;
  --rv-dim:   #76707c;

  /* --- Cizgiler: paket kirmizi tonlu kenarlik kullaniyor ------------------ */
  --rv-line:     rgba(255, 255, 255, .08);
  --rv-line-2:   rgba(255, 255, 255, .14);
  --rv-line-red: rgba(255, 23, 68, .28);   /* border-red #4A121D */

  /* --- Turetilmis kirmizilar --------------------------------------------- */
  --rv-primary-soft: rgba(255, 23, 68, .13);
  --rv-primary-line: rgba(255, 23, 68, .28);
  --rv-primary-glow: rgba(255, 23, 68, .45);
  --rv-grad:       linear-gradient(135deg, #ff1744, #ff2f55);
  --rv-grad-hover: linear-gradient(135deg, #ff2f55, #ff1744);
  --rv-grad-deep:  linear-gradient(135deg, #ff1744, #8b001b);

  /* --- Durum ------------------------------------------------------------- */
  --rv-ok:   #22c55e;
  --rv-warn: #f59e0b;
  --rv-bad:  #ef4444;
  --rv-info: #38bdf8;

  /* --- Yaricap (design pack) --------------------------------------------- */
  --rv-radius-sm:  10px;
  --rv-radius-btn: 16px;
  --rv-radius:     22px;
  --rv-radius-lg:  28px;
  --rv-radius-pill: 999px;

  /* --- Golge ------------------------------------------------------------- */
  --rv-glow:        0 0 32px rgba(255, 23, 68, .32);
  --rv-glow-strong: 0 0 48px rgba(255, 23, 68, .46);
  --rv-shadow:      0 24px 80px rgba(0, 0, 0, .38);
  --rv-shadow-sm:   0 10px 34px rgba(0, 0, 0, .32);
  --rv-shadow-red:  0 14px 42px rgba(255, 23, 68, .36);

  /* --- Olcu -------------------------------------------------------------- */
  --rv-gap: 18px;
  --rv-content-max: 1680px;
  --rv-ease: cubic-bezier(.22, .61, .36, 1);
  --rv-t: 220ms var(--rv-ease);
  --rv-t-slow: 380ms var(--rv-ease);

  /* --- Tipografi (design pack) ------------------------------------------- */
  --rv-font-display: "Oxanium", "Space Grotesk", system-ui, sans-serif;
  --rv-font-heading: "Space Grotesk", "Inter", system-ui, sans-serif;
  --rv-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rv-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Tabler CDN'i kendi paletimize bağlar */
  --tblr-primary: var(--rv-primary);
  --tblr-primary-rgb: 255, 23, 68;
  --tblr-body-bg: var(--rv-bg);
  --tblr-body-color: var(--rv-text);
  --tblr-border-color: var(--rv-line);
  --tblr-secondary: var(--rv-muted);
  --tblr-dark: var(--rv-surface);
  --tblr-font-sans-serif: var(--rv-font);
  --tblr-navbar-width: 280px;
}

/* ===========================================================================
   02  RESET & TEMEL
   =========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body,
body.theme-dark {
  margin: 0;
  min-height: 100vh;
  background: var(--rv-bg);
  color: var(--rv-text);
  font-family: var(--rv-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Sahne ışıkları — sabit, repaint yapmaz */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 8%, rgba(255, 23, 68, .20), transparent 34%),
    radial-gradient(circle at 16% 82%, rgba(139, 0, 27, .20), transparent 30%),
    linear-gradient(135deg, #050508 0%, #090914 48%, #12040a 100%);
}

/* İnce grid dokusu */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 24%, #000 8%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 24%, #000 8%, transparent 76%);
}

img, svg, video { max-width: 100%; }
img, video { height: auto; }

a { color: var(--rv-accent); text-decoration: none; transition: color var(--rv-t); }
a:hover { color: var(--rv-primary); }

::selection { background: var(--rv-primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--rv-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 23, 68, .45) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 23, 68, .5), rgba(139, 0, 26, .5));
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--rv-grad); background-clip: padding-box; }

@keyframes rvFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rvFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes rvPop    { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rvShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes rvPulse  { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ÖNEMLİ: Burada transform KULLANILMAZ.
   Transform'lu bir ata, içindeki position:fixed öğeler için containing block
   oluşturur; bu da yüzen sohbet panelini viewport yerine .page-body'ye
   bağlayıp ekran dışına taşıyordu. Giriş efekti sadece opacity ile yapılır. */
.page-body, .th-public-main { animation: rvFade .42s var(--rv-ease) both; }

/* ===========================================================================
   03  TİPOGRAFİ
   =========================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: #fff;
  font-family: var(--rv-font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-shadow: none;              /* legacy mor text-shadow iptal */
}
h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h3 { font-size: 1.05rem; }
h4 { font-size: .95rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

small, .small { font-size: .82rem; }

.text-muted, .text-secondary, .muted, .th-muted {
  color: var(--rv-muted) !important;
}

.page-pretitle, .eyebrow {
  display: block;
  font-family: var(--rv-font-display);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rv-accent);
  margin-bottom: 6px;
}

.page-title, .th-page-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 6px; }

code, kbd, samp {
  font-family: var(--rv-mono);
  font-size: .85em;
  background: rgba(0, 0, 0, .42);
  color: var(--rv-accent);
  border: 1px solid var(--rv-line);
  border-radius: 6px;
  padding: 2px 6px;
  word-break: break-all;
}
pre {
  font-family: var(--rv-mono);
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius-sm);
  padding: 14px 16px;
  color: var(--rv-muted);
  font-size: .8rem;
  line-height: 1.6;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
pre code { background: none; border: 0; padding: 0; }

hr { border: 0; border-top: 1px solid var(--rv-line); margin: 20px 0; }

/* ===========================================================================
   04  DÜZEN İSKELETİ
   =========================================================================== */
/* Sidebar Tabler CDN'inde position:fixed. Buna karsi savasmak yerine ayni
   modeli benimsiyoruz ve offseti kendimiz veriyoruz: boylece duzen CDN'in
   --tblr-navbar-width degiskenine bagli kalmiyor, tahmin edilebilir oluyor. */
:root { --rv-sidebar-w: 280px; }  /* design pack: layout.sidebar */

.page, .th-app { display: block; min-height: 100vh; width: 100%; }

.page-wrapper {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: var(--rv-sidebar-w);
  transition: margin-left var(--rv-t);
}
/* Tabler'in .navbar-vertical~.page-wrapper kuralini esitlemek icin ayni
   ozgullukte bir secici kullaniyoruz. */
.navbar-vertical ~ .page-wrapper,
.th-sidebar ~ .page-wrapper { margin-left: var(--rv-sidebar-w); }

.page-body { flex: 1 1 auto; padding: 26px 0 50px; }

.th-container, .container-xl, .container-fluid {
  width: 100%;
  max-width: var(--rv-content-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.th-public-main {
  width: 100%;
  max-width: var(--rv-content-max);
  margin: 0 auto;
  padding: 32px 24px 60px;
  min-height: calc(100vh - 160px);
}

.th-public-gate {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 24px 0;
}

.th-page-header {
  padding: 8px 0 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rv-line);
}

/* Tabler grid'inin boşluklarını normalize et */
.row { --tblr-gutter-x: var(--rv-gap); }
.row > * { padding-left: calc(var(--rv-gap) / 2); padding-right: calc(var(--rv-gap) / 2); }

/* ===========================================================================
   05  MARKA KİLİDİ (logo + yazı)
   Eski tema buraya ::after ile nokta ekliyordu — tamamen kaldırıldı.
   =========================================================================== */
.th-brand, .rv-brand, .studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--rv-text);
  min-width: 0;
}
.th-brand::after, .th-brand::before,
.th-brand span::after, .th-brand span::before,
.rv-brand-name::after, .rv-brand-name::before,
.rv-brand-tagline::after, .rv-brand-tagline::before { content: none !important; }

.th-brand img, .rv-brand img, .rv-logo {
  flex: 0 0 auto;
  width: auto;
  height: 42px;
  max-height: 42px;
  max-width: 52px;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--rv-primary-glow)) drop-shadow(0 2px 6px rgba(0, 0, 0, .65));
  transition: filter var(--rv-t), transform var(--rv-t);
}
.th-brand:hover img, .rv-brand:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 18px var(--rv-primary-glow)) drop-shadow(0 2px 8px rgba(0, 0, 0, .7));
}

.rv-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  line-height: 1;
}

.rv-brand-name {
  font-family: var(--rv-font-display);
  font-size: 1.08rem !important;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(94deg, #ffffff 0%, #ffd9e0 38%, var(--rv-accent) 72%, var(--rv-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.rv-brand-tagline {
  font-size: .56rem !important;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1;
  color: var(--rv-dim);
  white-space: nowrap;
  /* text-transform YOK: Türkçe locale'de "i" harfi "İ" oluyordu */
}

/* ===========================================================================
   06  ÜST BAR / PUBLIC NAV
   =========================================================================== */
.th-topbar, .th-public-nav, .navbar {
  background: rgba(8, 8, 14, .72) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--rv-line);
  box-shadow: 0 1px 0 rgba(255, 23, 68, .06);
  min-height: 62px;
  padding: 0;
}
.th-public-nav { position: sticky; top: 0; z-index: 60; }
.th-topbar { position: sticky; top: 0; z-index: 55; }

.th-topbar > .container-xl,
.th-public-nav > .container-xl {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}

.th-public-nav .navbar-nav { display: flex; align-items: center; gap: 4px; }
.navbar .nav-link {
  color: var(--rv-muted);
  padding: 7px 11px;
  border-radius: var(--rv-radius-sm);
  font-weight: 600;
  font-size: .86rem;
  transition: color var(--rv-t), background var(--rv-t);
}
.navbar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }

.th-local-greeting {
  font-weight: 700;
  font-size: .92rem;
  color: var(--rv-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 34vw;
}

.th-search { flex: 1 1 260px; max-width: 420px; min-width: 0; position: relative; }
.th-search .form-control {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--rv-line);
  border-radius: 99px;
  color: var(--rv-text);
  padding-left: 38px;
  height: 38px;
}
.th-search .input-icon-addon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rv-dim);
  pointer-events: none;
  z-index: 2;
}
.th-search .form-control:focus {
  background: rgba(255, 255, 255, .07);
  border-color: var(--rv-primary-line);
  box-shadow: 0 0 0 3px var(--rv-primary-soft);
}

.th-notify-link { position: relative; }
.th-notify-link span {
  position: absolute;
  top: 0;
  right: -1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--rv-primary);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 10px var(--rv-primary-glow);
}

.navbar-toggler, .btn-ghost-light {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--rv-line);
  color: var(--rv-text);
  border-radius: var(--rv-radius-sm);
  padding: 7px 11px;
}

/* ===========================================================================
   07  SIDEBAR
   =========================================================================== */
.th-sidebar, .navbar-vertical {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rv-sidebar-w) !important;
  max-width: var(--rv-sidebar-w);
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, rgba(10, 10, 18, .95), rgba(5, 5, 8, .975)) !important;
  border-right: 1px solid var(--rv-line-red);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 1px 0 0 rgba(255, 23, 68, .06), 18px 0 60px rgba(0, 0, 0, .45);
}
.th-sidebar > .container-fluid {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px 12px;
  max-width: none;
}

.th-sidebar .navbar-brand { padding: 6px 6px 18px; margin: 0 0 8px; border-bottom: 1px solid var(--rv-line); }
.th-sidebar .navbar-toggler { display: none; }
.th-sidebar .navbar-collapse { flex: 1 1 auto; }
.th-sidebar .navbar-nav { flex-direction: column; gap: 7px; padding: 0; margin: 0; list-style: none; width: 100%; }

.th-sidebar .navbar-heading {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rv-dim);
  padding: 16px 10px 6px;
  margin: 0;
}

.th-sidebar .nav-item { width: 100%; }
.th-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: var(--rv-radius-btn);
  color: var(--rv-muted);
  font-size: .875rem;
  font-weight: 600;
  position: relative;
  transition: background var(--rv-t), color var(--rv-t), transform var(--rv-t),
              border-color var(--rv-t), box-shadow var(--rv-t);
}
.th-sidebar .nav-link:hover,
.th-sidebar .nav-item.active > .nav-link,
.th-sidebar .nav-link.active {
  color: var(--rv-text);
  background: linear-gradient(135deg, rgba(255, 23, 68, .22), rgba(255, 47, 85, .08));
  border-color: var(--rv-line-red);
  box-shadow: var(--rv-glow);
  transform: translateX(3px);
}
.th-sidebar .nav-item.active > .nav-link::before,
.th-sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 58%;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--rv-accent), var(--rv-primary));
  box-shadow: 0 0 12px var(--rv-primary-glow);
}

.th-sidebar .nav-link-icon {
  flex: 0 0 auto;
  width: 20px;
  display: inline-grid;
  place-items: center;
  opacity: .85;
  font-size: .95rem;
}
.th-sidebar .nav-link-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.th-side-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--rv-line);
}
.th-side-user-meta { min-width: 0; line-height: 1.3; }
.th-side-user-meta b { display: block; font-size: .84rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-side-user-meta span { display: block; font-size: .68rem; color: var(--rv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===========================================================================
   08  BUTONLAR
   =========================================================================== */
.btn, button.btn, a.btn, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--rv-radius-btn);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--rv-t), box-shadow var(--rv-t), background var(--rv-t),
              border-color var(--rv-t), filter var(--rv-t), color var(--rv-t);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Birincil */
.btn-primary, .btn-cyan, .btn-pink, .btn-purple, .btn-azure, .btn-indigo,
button[type="submit"]:not(.btn-outline-light):not(.btn-ghost-light):not(.danger) {
  background: var(--rv-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--rv-shadow-red);
}
.btn-primary:hover, .btn-cyan:hover, .btn-pink:hover, .btn-purple:hover,
.btn-azure:hover, .btn-indigo:hover,
button[type="submit"]:not(.btn-outline-light):not(.btn-ghost-light):not(.danger):hover {
  background: var(--rv-grad-hover);
  color: #fff;
  box-shadow: 0 20px 60px rgba(255, 23, 68, .48);
  transform: translateY(-2px);
}

/* İkincil / hayalet */
.btn-outline-light, .btn-ghost-light, .btn-secondary, .btn-outline-secondary, .btn.ghost {
  background: rgba(255, 255, 255, .045);
  border-color: var(--rv-line-2);
  color: var(--rv-text);
  box-shadow: none;
}
.btn-outline-light:hover, .btn-ghost-light:hover, .btn-secondary:hover,
.btn-outline-secondary:hover, .btn.ghost:hover {
  background: var(--rv-primary-soft);
  border-color: var(--rv-primary-line);
  color: #fff;
}

/* Durum */
.btn-danger, button.danger, .btn-outline-danger {
  background: linear-gradient(135deg, var(--rv-bad), #991b1b);
  border-color: rgba(239, 68, 68, .45);
  color: #fff;
}
.btn-success, .btn-green { background: linear-gradient(135deg, var(--rv-ok), #15803d); border-color: rgba(34, 197, 94, .45); color: #fff; }
.btn-warning, .btn-orange, .btn-yellow { background: linear-gradient(135deg, var(--rv-warn), #b45309); border-color: rgba(245, 158, 11, .45); color: #fff; }

/* Boyut */
.btn-sm, .btn.small { padding: 6px 13px; font-size: .79rem; border-radius: calc(var(--rv-radius-btn) - 2px); }
.btn-lg { padding: 12px 26px; font-size: .95rem; }
.btn-icon { padding: 8px; width: 38px; height: 38px; }
.w-100 { width: 100%; }

/* İşaretsiz form butonları (çıplak <button>) */
form > button:not(.btn):not(.th-chat-icon-btn):not(.th-chat-send):not([data-icon-btn]),
.adminFormGrid button:not(.btn):not(.th-chat-icon-btn):not(.th-chat-send):not([data-icon-btn]) {
  padding: 9px 18px;
  border-radius: var(--rv-radius-btn);
  border: 1px solid var(--rv-primary-line);
  background: var(--rv-grad);
  color: #fff;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--rv-t), box-shadow var(--rv-t), filter var(--rv-t);
}
form > button:not(.btn):not(.th-chat-icon-btn):not(.th-chat-send):not([data-icon-btn]):hover { transform: translateY(-1px); filter: brightness(1.08); }

/* ===========================================================================
   09  FORM ELEMANLARI
   =========================================================================== */
label { display: block; color: var(--rv-muted); font-size: .8rem; font-weight: 600; margin-bottom: 6px; }

.form-control, .form-select, .form-input,
input[type="text"], input[type="url"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="date"], input[type="datetime-local"],
input[type="time"], input[type="color"], textarea, select {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: rgba(12, 12, 20, .75);
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius-btn);
  color: var(--rv-text);
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.5;
  transition: border-color var(--rv-t), box-shadow var(--rv-t), background var(--rv-t);
}
.form-control::placeholder, input::placeholder, textarea::placeholder { color: var(--rv-dim); opacity: 1; }

.form-control:focus, .form-select:focus,
input:focus, textarea:focus, select:focus {
  outline: none;
  background: rgba(255, 255, 255, .065);
  border-color: var(--rv-primary-line);
  box-shadow: 0 0 0 3px var(--rv-primary-soft);
  color: var(--rv-text);
}
input:disabled, textarea:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
input[readonly], textarea[readonly] { background: rgba(0, 0, 0, .3); color: var(--rv-muted); }

textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--rv-dim) 50%), linear-gradient(135deg, var(--rv-dim) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
option, optgroup { background: #14141f; color: var(--rv-text); }

input[type="checkbox"], input[type="radio"] { width: auto; display: inline-block; accent-color: var(--rv-primary); margin-right: 6px; }
input[type="file"] {
  padding: 9px;
  background: rgba(255, 255, 255, .03);
  border: 1px dashed var(--rv-line-2);
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 6px 13px;
  border: 0;
  border-radius: 8px;
  background: var(--rv-primary-soft);
  color: var(--rv-accent);
  font-family: inherit;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
}
input[type="color"] { padding: 4px; height: 42px; cursor: pointer; }
input[type="range"] { accent-color: var(--rv-primary); padding: 0; background: none; border: 0; }

.input-group { display: flex; align-items: stretch; gap: 0; }
.input-group .form-control { border-radius: var(--rv-radius-btn) 0 0 var(--rv-radius-btn); }
.input-group .btn { border-radius: 0 var(--rv-radius-btn) var(--rv-radius-btn) 0; }
.input-icon { position: relative; }

/* Form ızgaraları */
.adminFormGrid, .th-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  align-items: end;
}
.adminField { display: flex; flex-direction: column; gap: 6px; }
.adminField.full, .th-form-grid .full { grid-column: 1 / -1; }
.adminSectionTitle {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rv-dim);
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--rv-line);
  margin-bottom: 14px;
}

/* ===========================================================================
   10  KARTLAR
   =========================================================================== */
.card, .studio-card, .kick-panel, .th-admin-form-card, .th-upload-card,
.th-stat-card, .th-role-card, .th-log-table-card, .th-search-panel,
.th-profile-summary, .th-notification-list, .th-user-editor, .modal-content {
  position: relative;
  background: linear-gradient(180deg, rgba(24, 24, 34, .86), rgba(12, 12, 18, .86));
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  color: var(--rv-text);
  box-shadow: var(--rv-shadow);
  backdrop-filter: blur(var(--rv-card-blur));
  -webkit-backdrop-filter: blur(var(--rv-card-blur));
  transition: border-color var(--rv-t), box-shadow var(--rv-t), transform var(--rv-t);
}
.card:hover, .th-admin-form-card:hover, .th-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--rv-line-red);
  box-shadow: 0 24px 90px rgba(255, 23, 68, .16);
}

.card-body { padding: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rv-line);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-footer { padding: 14px 20px; border-top: 1px solid var(--rv-line); background: transparent; }
.card-title { margin: 0; font-size: 1rem; font-weight: 800; }
.card-table { margin: 0; }
.h-100 { height: 100%; }

/* Araç kartı — üstte ince neon şerit */
.th-tool-card {
  background: var(--rv-card);
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow);
  overflow: hidden;
}
.th-tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rv-primary), transparent);
  opacity: .7;
}

.th-tool-grid, .th-admin-tools, .th-upload-grid, .th-moderation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--rv-gap);
}

.th-admin-tool, .rv-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--rv-radius);
  background: var(--rv-card);
  border: 1px solid var(--rv-line);
  color: var(--rv-text);
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(var(--rv-card-blur));
  -webkit-backdrop-filter: blur(var(--rv-card-blur));
  transition: transform var(--rv-t), border-color var(--rv-t), box-shadow var(--rv-t);
}
.th-admin-tool::before, .rv-feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rv-primary), transparent);
  opacity: 0;
  transition: opacity var(--rv-t);
}
.th-admin-tool:hover, .rv-feature:hover {
  transform: translateY(-4px);
  border-color: var(--rv-primary-line);
  box-shadow: var(--rv-shadow), var(--rv-glow-strong);
  color: var(--rv-text);
}
.th-admin-tool:hover::before, .rv-feature:hover::before { opacity: 1; }

.rv-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--rv-gap);
  margin-bottom: 28px;
}
.rv-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--rv-radius-btn);
  display: grid;
  place-items: center;
  background: rgba(255, 23, 68, .13);
  border: 1px solid var(--rv-line-red);
  color: var(--rv-primary);
  box-shadow: inset 0 0 22px rgba(255, 23, 68, .12);
  margin-bottom: 4px;
}
.rv-feature-icon svg { width: 21px; height: 21px; }
.rv-feature h3 { font-size: 1rem; margin: 0; }
.rv-feature p { color: var(--rv-muted); font-size: .845rem; margin: 0; line-height: 1.55; flex: 1; }
.rv-feature-tag {
  margin-top: auto;
  padding-top: 10px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rv-dim);
}

/* ===========================================================================
   11  HERO ALANLARI
   =========================================================================== */
.rv-hero, .th-tool-hero, .th-admin-hub-hero, .th-community-hero,
.th-log-hero, .th-moderation-hero, .th-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--rv-radius-lg);
  border: 1px solid var(--rv-line);
  background:
    radial-gradient(700px 360px at 86% -14%, rgba(255, 23, 68, .20), transparent 64%),
    linear-gradient(135deg, rgba(21, 21, 33, .94), rgba(9, 9, 16, .96));
  box-shadow: var(--rv-shadow);
  padding: clamp(26px, 4.5vw, 44px) clamp(22px, 4vw, 44px);
  margin-bottom: 26px;
}
.rv-hero { padding: clamp(34px, 6vw, 70px) clamp(24px, 5vw, 56px); }

.rv-hero::after, .th-tool-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 23, 68, .2), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.rv-hero-inner { position: relative; z-index: 2; max-width: 740px; }
.rv-hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 10px 0 14px;
}
.rv-accent {
  background: linear-gradient(96deg, #fff 0%, var(--rv-accent) 46%, var(--rv-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.rv-hero p {
  color: var(--rv-muted);
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 0 26px;
}
.rv-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rv-hero-logo {
  position: absolute;
  right: clamp(-50px, -2vw, 8px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(190px, 27vw, 340px);
  opacity: .17;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 50px var(--rv-primary-glow));
}

/* Araç hero'su: başlık solda, damga sağda */
.th-tool-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.th-tool-hero > div { position: relative; z-index: 2; min-width: 0; }
.th-tool-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 4px 0 8px; }
.th-tool-hero p { color: var(--rv-muted); margin: 0; max-width: 62ch; line-height: 1.6; font-size: .92rem; }
.th-tool-mark {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  user-select: none;
  background: linear-gradient(135deg, rgba(255, 23, 68, .65), rgba(255, 23, 68, .06));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ===========================================================================
   12  BÖLÜM BAŞLIKLARI & SEKMELER
   =========================================================================== */
.rv-section-head, .th-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rv-line);
}
.rv-section-head h2, .th-section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  margin: 0;
}
.rv-section-head h2::before, .th-section-head h2::before {
  content: "";
  width: 3px;
  height: 19px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--rv-accent), var(--rv-deep));
  box-shadow: 0 0 10px var(--rv-primary-glow);
}
.rv-section-head p, .th-section-head p { color: var(--rv-muted); font-size: .85rem; margin: 3px 0 0; }
.th-section-head > span:first-child {
  display: block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rv-accent);
  margin-bottom: 3px;
}

/* Sekme çubuğu */
.rv-tabs, .th-workshop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--rv-line);
  width: fit-content;
  max-width: 100%;
  margin-bottom: 20px;
}
.rv-tabs a, .rv-tabs button, .th-workshop-tabs a {
  padding: 8px 17px;
  border-radius: 99px;
  border: 0;
  background: transparent;
  color: var(--rv-muted);
  font-family: inherit;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--rv-t), color var(--rv-t);
}
.rv-tabs a:hover, .rv-tabs button:hover, .th-workshop-tabs a:hover { color: #fff; background: rgba(255, 255, 255, .055); }
.rv-tabs a.active, .rv-tabs button.active, .th-workshop-tabs a.active {
  background: var(--rv-grad);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 23, 68, .3);
}

/* ===========================================================================
   13  İSTATİSTİK / METRİK / SAĞLIK
   =========================================================================== */
.th-admin-overview, .th-stream-status-grid, .rv-stat-row, .th-log-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.adminStat, .rv-stat, .th-log-stat, .th-stat-card,
.th-admin-overview > div, .th-stream-status-grid > div {
  padding: 18px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--rv-line);
  text-align: center;
  transition: border-color var(--rv-t), transform var(--rv-t);
}
.adminStat:hover, .rv-stat:hover, .th-log-stat:hover { border-color: var(--rv-primary-line); transform: translateY(-2px); }
.adminStat b, .rv-stat b, .th-log-stat b,
.th-admin-overview > div b, .th-stream-status-grid > div b {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
}
.adminStat span, .rv-stat span, .th-log-stat span,
.th-admin-overview > div span, .th-stream-status-grid > div span {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rv-dim);
  margin-top: 4px;
}
.th-live-on { color: var(--rv-ok) !important; }
.th-live-off { color: var(--rv-dim) !important; }

.th-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--rv-primary-soft);
  border: 1px solid var(--rv-primary-line);
  color: var(--rv-accent);
  margin: 0 auto 8px;
}

/* Sağlık kartları */
.th-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 13px;
  margin-bottom: 24px;
}
.th-health-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--rv-line);
  transition: border-color var(--rv-t);
}
.th-health-card > div { display: flex; align-items: center; gap: 8px; }
.th-health-card b { font-size: .84rem; font-weight: 700; }
.th-health-card strong { font-size: 1.1rem; font-weight: 800; color: #fff; }
.th-health-card small { font-size: .7rem; color: var(--rv-dim); }
.th-health-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rv-dim);
  box-shadow: 0 0 0 3px rgba(111, 111, 128, .16);
}
.th-health-card.online { border-color: rgba(34, 197, 94, .32); }
.th-health-card.online .th-health-dot { background: var(--rv-ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); animation: rvPulse 2.6s ease-in-out infinite; }
.th-health-card.offline { border-color: var(--rv-line); }
.th-health-card.error, .th-health-card.bad { border-color: rgba(239, 68, 68, .34); }
.th-health-card.error .th-health-dot, .th-health-card.bad .th-health-dot { background: var(--rv-bad); box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }

/* İlerleme çubuğu */
.progress {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--rv-line);
  overflow: hidden;
}
.progress-sm { height: 6px; }
.progress-bar {
  height: 100%;
  border-radius: 99px;
  background: var(--rv-grad);
  box-shadow: 0 0 12px var(--rv-primary-glow);
  transition: width var(--rv-t-slow);
}

/* ===========================================================================
   14  TABLOLAR
   =========================================================================== */
.table, .table-dark, .th-log-table, table {
  width: 100%;
  border-collapse: collapse;
  color: var(--rv-text);
  font-size: .855rem;
  --tblr-table-bg: transparent;
  --tblr-table-color: var(--rv-text);
  --tblr-table-border-color: var(--rv-line);
}
.table thead th, table thead th, th {
  padding: 11px 13px;
  text-align: left;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rv-dim);
  background: transparent;
  border-bottom: 1px solid var(--rv-line-2);
  white-space: nowrap;
}
.table td, table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--rv-line);
  border-top: 0;
  vertical-align: middle;
  background: transparent;
}
.table tbody tr, table tbody tr { transition: background var(--rv-t); }
.table tbody tr:hover, table tbody tr:hover { background: rgba(255, 23, 68, .045); }
.table tbody tr:last-child td { border-bottom: 0; }
.table-sm td, .table-sm th { padding: 8px 11px; }

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--rv-radius-sm);
  -webkit-overflow-scrolling: touch;
}
.table-responsive table { min-width: 560px; }

.text-end { text-align: right; }
.text-center { text-align: center; }

/* ===========================================================================
   15  ROZETLER & AVATARLAR
   =========================================================================== */
.badge, .th-action-badge, .th-target-pill, .th-hub-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.4;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--rv-line);
  color: var(--rv-muted);
  white-space: nowrap;
}
.badge.bg-success, .bg-success { background: rgba(34, 197, 94, .16) !important; color: #4ade80 !important; border-color: rgba(34, 197, 94, .3); }
.badge.bg-danger,  .bg-danger  { background: rgba(239, 68, 68, .16) !important; color: #fca5a5 !important; border-color: rgba(239, 68, 68, .3); }
.badge.bg-warning, .bg-warning { background: rgba(245, 158, 11, .16) !important; color: #fbbf24 !important; border-color: rgba(245, 158, 11, .3); }
.badge.bg-secondary, .bg-secondary { background: rgba(255, 255, 255, .07) !important; color: var(--rv-muted) !important; border-color: var(--rv-line); }
.badge.bg-cyan, .bg-cyan, .badge.bg-primary, .bg-primary {
  background: var(--rv-primary-soft) !important;
  color: var(--rv-accent) !important;
  border-color: var(--rv-primary-line);
}

.th-badge-row, .th-badge-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.avatar, .th-gallery-avatar, .th-feed-avatar, .th-watch-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--rv-primary-soft);
  background-size: cover;
  background-position: center;
  color: var(--rv-accent);
  font-weight: 800;
  border: 1px solid var(--rv-primary-line);
  overflow: hidden;
}
.avatar { width: 38px; height: 38px; font-size: .85rem; }
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar.rounded, .avatar.rounded-circle { border-radius: 50%; }
.th-gallery-avatar { width: 23px; height: 23px; font-size: .64rem; }
.th-feed-avatar { width: 36px; height: 36px; font-size: .82rem; }
.th-watch-avatar { width: 54px; height: 54px; font-size: 1.1rem; }

/* ===========================================================================
   16  GALERİ
   =========================================================================== */
.rv-gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.rv-gallery-toolbar .rv-tabs { margin-bottom: 0; }
.rv-gallery-search { position: relative; flex: 1 1 210px; min-width: 170px; max-width: 340px; }
.rv-gallery-search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--rv-line);
  color: var(--rv-text);
  font-size: .85rem;
}
.rv-gallery-search::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  background: var(--rv-dim);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.rv-gallery-count { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--rv-dim); }

.th-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--rv-gap);
}

.th-gallery-card {
  position: relative;
  display: block;
  padding: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--rv-radius);
  border: 1px solid var(--rv-line);
  background: var(--rv-surface);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--rv-shadow-sm);
  transition: transform var(--rv-t), border-color var(--rv-t), box-shadow var(--rv-t);
}
.th-gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--rv-primary-line);
  box-shadow: var(--rv-shadow), var(--rv-glow);
}

.th-gallery-hit { position: absolute; inset: 0; z-index: 5; }

.th-gallery-media { position: absolute; inset: 0; z-index: 0; }
.th-gallery-media img, .th-gallery-media video, .th-gallery-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  transition: transform var(--rv-t-slow), filter var(--rv-t);
}
.th-gallery-card:hover .th-gallery-media img,
.th-gallery-card:hover .th-gallery-media video { transform: scale(1.06); filter: brightness(1.06); }

.mediaPlaceholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--rv-dim);
  background: linear-gradient(135deg, rgba(255, 23, 68, .07), rgba(0, 0, 0, .35));
}
.mediaPlaceholder svg { width: 34px; height: 34px; }

.th-gallery-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 5, 9, .05) 0%, rgba(5, 5, 9, .5) 50%, rgba(5, 5, 9, .95) 100%);
}

.th-gallery-topline {
  position: absolute;
  z-index: 4;
  top: 11px;
  left: 11px;
  right: 50px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  pointer-events: none;
}
.th-gallery-category, .th-gallery-source {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.th-gallery-category { background: rgba(255, 23, 68, .85); color: #fff; box-shadow: 0 2px 12px rgba(255, 23, 68, .4); }
.th-gallery-source { background: rgba(0, 0, 0, .6); color: #d6d6e2; border: 1px solid var(--rv-line); }

.th-gallery-info {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}
.th-gallery-info h3 {
  margin: 0;
  font-size: .96rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.th-gallery-info p {
  margin: 0;
  font-size: .78rem;
  color: #b7b7c6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.th-gallery-owner { display: flex; align-items: center; gap: 7px; margin-top: 3px; min-width: 0; }
.th-gallery-owner b { font-size: .76rem; color: #e9e9f1; }
.th-gallery-owner span, .th-gallery-owner em { font-size: .66rem; font-style: normal; color: var(--rv-dim); }
.th-gallery-open {
  font-size: .66rem;
  color: var(--rv-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-card-favorite { position: absolute; z-index: 6; top: 10px; right: 10px; margin: 0; }
.th-card-favorite button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rv-line);
  background: rgba(0, 0, 0, .58);
  color: var(--rv-accent);
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--rv-t), background var(--rv-t), box-shadow var(--rv-t);
}
.th-card-favorite button:hover {
  transform: scale(1.12);
  background: var(--rv-primary-soft);
  box-shadow: 0 0 14px var(--rv-primary-glow);
}

.th-gallery-preview-btn {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--rv-primary-line);
  background: var(--rv-primary-soft);
  color: #fff;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity var(--rv-t), transform var(--rv-t), background var(--rv-t);
}
.th-gallery-card:hover .th-gallery-preview-btn { opacity: 1; transform: none; }
.th-gallery-preview-btn:hover { background: var(--rv-primary); }

/* Galeri detay */
.th-gallery-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: var(--rv-gap); }
.th-gallery-detail-media {
  border-radius: var(--rv-radius);
  overflow: hidden;
  border: 1px solid var(--rv-line);
  background: #000;
  display: grid;
  place-items: center;
}
.th-gallery-detail-media img, .th-gallery-detail-media video { width: 100%; max-height: 70vh; object-fit: contain; }

.th-building-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--rv-gap);
  margin-bottom: 20px;
}

/* Boş durum */
.rv-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 24px;
  border-radius: var(--rv-radius);
  border: 1px dashed var(--rv-line-2);
  background: rgba(255, 255, 255, .02);
  text-align: center;
}
.rv-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rv-primary-soft), rgba(139, 0, 26, .14));
  border: 1px solid var(--rv-primary-line);
  color: var(--rv-accent);
}
.rv-empty-icon svg { width: 27px; height: 27px; }
.rv-empty h3 { font-size: 1.05rem; margin: 0; }
.rv-empty p { color: var(--rv-muted); font-size: .86rem; margin: 0; max-width: 48ch; }

/* ===========================================================================
   17  AKIŞ / HABER / İZLEME
   =========================================================================== */
.th-home-community {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--rv-gap);
}
.th-home-section {
  padding: 20px;
  border-radius: var(--rv-radius);
  background: var(--rv-card);
  border: 1px solid var(--rv-line);
  backdrop-filter: blur(var(--rv-card-blur));
  -webkit-backdrop-filter: blur(var(--rv-card-blur));
}
.th-home-section.wide { grid-column: span 2; }
.th-home-list { display: flex; flex-direction: column; gap: 7px; }

.th-home-mini, .th-home-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
  color: var(--rv-text);
  text-decoration: none;
  min-width: 0;
  transition: background var(--rv-t), border-color var(--rv-t), transform var(--rv-t);
}
.th-home-mini:hover, .th-home-user:hover {
  background: var(--rv-primary-soft);
  border-color: var(--rv-primary-line);
  transform: translateX(3px);
  color: var(--rv-text);
}
.th-home-mini b, .th-home-user b { display: block; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-home-mini span, .th-home-user span { font-size: .68rem; color: var(--rv-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.th-feed-list { display: flex; flex-direction: column; gap: 9px; }
.th-feed-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
  transition: border-color var(--rv-t);
}
.th-feed-item:hover { border-color: var(--rv-primary-line); }
.th-feed-item > div { min-width: 0; flex: 1; }
.th-feed-item b { font-size: .84rem; display: block; }
.th-feed-item p { margin: 2px 0; font-size: .78rem; color: var(--rv-muted); overflow: hidden; text-overflow: ellipsis; }
.th-feed-item time { font-size: .68rem; color: var(--rv-dim); }

/* Haber slider */
.th-news-slider { position: relative; overflow: hidden; border-radius: var(--rv-radius); }
.th-news-track { display: flex; transition: transform var(--rv-t-slow); }
.th-news-slide { flex: 0 0 100%; min-width: 0; }
.th-news-image { width: 100%; height: 220px; object-fit: cover; border-radius: var(--rv-radius-sm); }
.th-news-controls { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }
.th-news-empty { padding: 36px; text-align: center; color: var(--rv-dim); }

/* İzleme sayfası */
.th-watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: var(--rv-gap); align-items: start; }
.th-watch-main { min-width: 0; }
.th-watch-player-card { padding: 0; overflow: hidden; border-radius: var(--rv-radius); }
.th-watch-player { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; border: 0; }
.th-watch-streamer { display: flex; align-items: center; gap: 13px; padding: 16px 0 0; }
.th-watch-streamer h1 { font-size: 1.2rem; margin: 2px 0; }
.th-watch-info { padding: 16px 0; }
.th-watch-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.th-watch-chat { position: sticky; top: 80px; }

/* ===========================================================================
   18  YAYIN / RADYO / PROXY
   =========================================================================== */
.th-stream-guide, .th-stream-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.th-stream-guide li, .th-stream-tips li {
  list-style: none;
  padding: 11px 14px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
  font-size: .83rem;
  color: var(--rv-muted);
  counter-increment: rvstep;
  position: relative;
  padding-left: 40px;
}
.th-stream-guide { counter-reset: rvstep; padding: 0; }
.th-stream-guide li::before {
  content: counter(rvstep);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rv-primary-soft);
  border: 1px solid var(--rv-primary-line);
  color: var(--rv-accent);
  font-size: .66rem;
  font-weight: 800;
}

.th-copy-stack, .th-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.th-copy-stack label, .th-radio-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 15px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
  margin: 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rv-dim);
}
.th-copy-stack label code, .th-radio-grid label code {
  display: block;
  padding: 8px 11px;
  background: rgba(0, 0, 0, .42);
  border-radius: 8px;
  font-size: .78rem;
  text-transform: none;
  letter-spacing: 0;
  overflow-x: auto;
  white-space: nowrap;
}
.th-radio-actions, .th-mod-actions, .th-modal-actions, .th-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  align-items: center;
}
.th-radio-actions form, .th-modal-actions form, .th-mod-actions form { margin: 0; }

.th-radio-player { width: 100%; margin-top: 12px; }
.th-radio-player audio { width: 100%; }

/* ===========================================================================
   19  PROFİL / BİLDİRİM / ARAMA / LOG
   =========================================================================== */
.th-profile-cover {
  height: 180px;
  border-radius: var(--rv-radius);
  background-size: cover;
  background-position: center;
  background-color: var(--rv-surface);
  border: 1px solid var(--rv-line);
  position: relative;
  overflow: hidden;
  margin-bottom: -46px;
}
.th-profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 9, .9));
}
.th-profile-summary { position: relative; z-index: 2; padding: 20px; }
.th-profile-uploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.th-profile-upload {
  border-radius: var(--rv-radius-sm);
  overflow: hidden;
  border: 1px solid var(--rv-line);
  aspect-ratio: 1;
  background: var(--rv-surface);
}
.th-profile-upload img { width: 100%; height: 100%; object-fit: cover; }

.th-notification-list { display: flex; flex-direction: column; gap: 9px; padding: 16px; }
.th-notification-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
  border-left: 3px solid var(--rv-primary);
}
.th-notification-item.read { border-left-color: var(--rv-line-2); opacity: .68; }

.th-search-panel { padding: 20px; margin-bottom: var(--rv-gap); }

.th-log-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border-radius: var(--rv-radius);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
  margin-bottom: var(--rv-gap);
}
.th-log-filter label { margin: 0; flex: 1 1 160px; min-width: 0; }
.th-log-table-card { padding: 0; overflow: hidden; }
.th-log-details {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--rv-muted);
  font-size: .78rem;
}
.th-log-date { white-space: nowrap; font-size: .76rem; color: var(--rv-dim); font-variant-numeric: tabular-nums; }
.th-log-glow { color: var(--rv-accent); }

.th-user-editor { padding: 16px; margin-bottom: 12px; }
.th-user-editor-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 11px;
  align-items: end;
}

.th-role-card { padding: 18px; }
.th-moderation-grid { margin-bottom: var(--rv-gap); }

/* ===========================================================================
   20  MODAL / TOAST / MARQUEE
   =========================================================================== */
dialog, .th-building-modal, .th-chat-modal {
  border: 1px solid var(--rv-line-2);
  border-radius: var(--rv-radius-lg);
  background: linear-gradient(160deg, rgba(19, 19, 29, .98), rgba(8, 8, 14, .99));
  color: var(--rv-text);
  padding: 0;
  max-width: min(980px, 94vw);
  width: 100%;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .72);
  overflow: hidden;
}
dialog::backdrop { background: rgba(3, 3, 7, .82); backdrop-filter: blur(5px); }
dialog[open] { animation: rvPop .26s var(--rv-ease) both; }

.th-building-modal-media { background: #000; max-height: 56vh; display: grid; place-items: center; overflow: hidden; }
.th-building-modal-media img, .th-building-modal-media video { width: 100%; max-height: 56vh; object-fit: contain; }
.th-building-modal-info { padding: 22px; display: flex; flex-direction: column; gap: 11px; }

.th-modal-close {
  position: absolute;
  z-index: 10;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rv-line);
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--rv-t);
}
.th-modal-close:hover { background: var(--rv-primary); }

.toast {
  position: fixed;
  z-index: 9000;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 19px;
  border-radius: var(--rv-radius-btn);
  background: rgba(18, 18, 28, .97);
  border: 1px solid var(--rv-line-2);
  color: var(--rv-text);
  font-size: .87rem;
  font-weight: 600;
  box-shadow: var(--rv-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: rvFadeUp .3s var(--rv-ease) both;
  max-width: calc(100vw - 40px);
}
.toast.hide { opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; }
.toast-success, .toast.ok { border-color: rgba(34, 197, 94, .38); }
.toast-error, .toast.bad { border-color: rgba(239, 68, 68, .4); }

.th-back-tick {
  position: fixed;
  z-index: 70;
  left: 14px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rv-line-2);
  background: rgba(18, 18, 28, .9);
  color: var(--rv-text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--rv-shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--rv-t), transform var(--rv-t), border-color var(--rv-t);
}
.th-back-tick:hover { background: var(--rv-primary-soft); border-color: var(--rv-primary-line); transform: translateX(-2px); }

.th-theme-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #ffe2e8;
  background: linear-gradient(90deg, rgba(139, 0, 26, .3), rgba(255, 23, 68, .16), rgba(139, 0, 26, .3));
  border-bottom: 1px solid var(--rv-primary-line);
}
.th-theme-marquee span { display: inline-block; padding-left: 100%; animation: rvMarquee var(--th-marquee-speed, 24s) linear infinite; }
@keyframes rvMarquee { to { transform: translateX(-100%); } }

/* ===========================================================================
   21  FOOTER
   =========================================================================== */
.th-footer {
  margin-top: 56px;
  padding: 28px 24px 36px;
  border-top: 1px solid var(--rv-line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .42));
  color: var(--rv-dim);
  font-size: .82rem;
}
.rv-footer-inner {
  max-width: var(--rv-content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rv-footer-brand { display: flex; align-items: center; gap: 11px; }
.rv-footer-brand img { height: 32px; width: auto; object-fit: contain; opacity: .92; filter: drop-shadow(0 0 8px var(--rv-primary-glow)); }
.rv-footer-brand b { display: block; color: var(--rv-text); font-size: .94rem; }
.rv-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.rv-footer-links a { color: var(--rv-dim); }
.rv-footer-links a:hover { color: var(--rv-accent); }

/* ===========================================================================
   22  YARDIMCI SINIFLAR (markup'ın kullandığı Tabler yardımcıları)
   =========================================================================== */
.d-flex { display: flex; }
.d-none { display: none; }
.d-grid { display: grid; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-middle { vertical-align: middle; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.ms-auto { margin-left: auto; }
.me-auto { margin-right: auto; }
.ms-2 { margin-left: .5rem; }
.mt-1 { margin-top: .25rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-0 { padding: 0; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.ps-2 { padding-left: .5rem; }
.pt-lg-3 { padding-top: 1rem; }
.gap-2 { gap: .5rem; }
.lh-1 { line-height: 1; }
.text-reset { color: inherit; }
.rounded { border-radius: var(--rv-radius-sm); }
.full { grid-column: 1 / -1; }

/* ===========================================================================
   23  RESPONSIVE
   =========================================================================== */

/* Geniş masaüstü */


/* Laptop */
@media (max-width: 1280px) {
  .th-home-section.wide { grid-column: span 1; }
  .rv-hero-logo { opacity: .12; }
}

/* Tablet — sidebar drawer'a dönüşür */
@media (max-width: 991.98px) {
  /* Tabler 768px'ten itibaren 240px bosluk birakiyor; drawer modunda bu
     bosluk sayfayi saga itiyordu. CDN kuralini burada bilerek eziyoruz. */
  :root { --rv-sidebar-w: 0px; --tblr-navbar-width: 0px; }
  .page-wrapper,
  .navbar-vertical ~ .page-wrapper,
  .th-sidebar ~ .page-wrapper { margin-left: 0 !important; }
  .th-sidebar, .navbar-vertical {
    width: 272px !important;
    max-width: 272px;
    z-index: 1100;
    transform: translateX(-104%);
    transition: transform 300ms var(--rv-ease);
  }
  body.sideOpen .th-sidebar { transform: none; box-shadow: 24px 0 70px rgba(0, 0, 0, .72); }
  body.sideOpen .page-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(3, 3, 7, .62);
    backdrop-filter: blur(2px);
    animation: rvFade .24s ease both;
  }
  .th-sidebar .navbar-toggler { display: inline-flex; }

  .th-local-greeting { display: none; }
  .th-watch-layout { grid-template-columns: 1fr; }
  .th-watch-chat { position: static; }
  .th-gallery-detail { grid-template-columns: 1fr; }
  .th-building-spotlight { grid-template-columns: 1fr 1fr; }
  .d-lg-none { display: inline-flex !important; }
}

/* Mobil */
@media (max-width: 767.98px) {
  body { font-size: 14.5px; }

  .th-container, .container-xl, .container-fluid { padding-left: 16px; padding-right: 16px; }
  .th-public-main { padding: 20px 16px 48px; }
  .page-body { padding: 18px 0 40px; }

  .th-topbar > .container-xl, .th-public-nav > .container-xl { gap: 10px; min-height: 56px; }
  .th-search { flex-basis: 100%; order: 10; max-width: none; margin-bottom: 10px; }
  .th-public-nav .navbar-nav { gap: 2px; }
  .navbar .nav-link { padding: 6px 8px; font-size: .8rem; }

  .rv-brand-name { font-size: .98rem !important; }
  .rv-brand-tagline { font-size: .5rem !important; letter-spacing: .16em; }
  .th-brand img, .rv-logo { height: 34px; max-height: 34px; max-width: 42px; }

  .rv-hero { padding: 26px 20px; border-radius: var(--rv-radius); }
  .rv-hero-logo { display: none; }
  .rv-hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .rv-hero-actions .btn { flex: 1 1 100%; }

  .th-tool-hero { padding: 22px 18px; border-radius: var(--rv-radius); }
  .th-tool-mark { display: none; }
  .th-tool-hero p { font-size: .87rem; }

  .th-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .th-gallery-card { aspect-ratio: 1 / 1; }
  .th-gallery-info { padding: 11px; }
  .th-gallery-info h3 { font-size: .85rem; }
  .th-gallery-info p { display: none; }
  .th-gallery-open { font-size: .62rem; }
  .th-gallery-preview-btn { opacity: 1; transform: none; font-size: .68rem; padding: 5px 11px; }

  .rv-gallery-toolbar { gap: 8px; }
  .rv-gallery-search { flex-basis: 100%; max-width: none; }
  .rv-gallery-count { margin-left: 0; width: 100%; }
  .rv-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .rv-tabs::-webkit-scrollbar { display: none; }

  .th-home-community, .rv-feature-grid, .th-tool-grid,
  .th-admin-tools, .th-moderation-grid, .th-upload-grid { grid-template-columns: 1fr; }
  .th-building-spotlight { grid-template-columns: 1fr; }
  .th-admin-overview, .th-stream-status-grid, .rv-stat-row,
  .th-log-stats, .th-health-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .adminStat b, .rv-stat b, .th-log-stat b { font-size: 1.3rem; }

  .adminFormGrid, .th-form-grid, .th-copy-stack, .th-radio-grid,
  .th-user-editor-row, .th-stream-guide, .th-stream-tips { grid-template-columns: 1fr; }

  .card-body { padding: 16px; }
  .card-header { padding: 14px 16px; }

  .table-responsive table { min-width: 460px; }
  .th-log-details { max-width: 180px; }

  .rv-footer-inner { flex-direction: column; text-align: center; }
  .rv-footer-links { justify-content: center; }

  .th-modal-actions .btn, .th-radio-actions .btn { flex: 1 1 auto; }
  .th-back-tick { bottom: 86px; }  /* chat butonunun altında kalmasın */

  .toast { left: 16px; right: 16px; bottom: 16px; }
}

/* Küçük mobil */
@media (max-width: 420px) {
  .th-admin-overview, .th-stream-status-grid, .rv-stat-row,
  .th-log-stats, .th-health-grid { grid-template-columns: 1fr; }
  .th-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rv-brand-tagline { display: none; }
  .th-tool-hero h1 { font-size: 1.35rem; }
}

/* ===========================================================================
   24  ERİŞİLEBİLİRLİK & YAZDIRMA
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .th-theme-marquee span { animation: none; padding-left: 0; }
  .th-gallery-card:hover { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --rv-line: rgba(255, 255, 255, .22); --rv-line-2: rgba(255, 255, 255, .34); --rv-muted: #d0d0da; }
}

@media print {
  body::before, body::after,
  .th-sidebar, .th-topbar, .th-public-nav, .th-chat-widget,
  .th-back-tick, .toast, .th-theme-marquee { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; box-shadow: none; background: #fff; }
}

/* ===========================================================================
   25  GİRİŞ / KAYIT KARTI
   =========================================================================== */
.rv-auth-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 200px);
  padding: 24px 0;
}
.rv-auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: 36px 32px;
  border-radius: var(--rv-radius-lg);
  background: linear-gradient(165deg, rgba(21, 21, 33, .92), rgba(9, 9, 16, .96));
  border: 1px solid var(--rv-line-2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 23, 68, .07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  animation: rvPop .34s var(--rv-ease) both;
}
.rv-auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rv-primary), transparent);
}
.rv-auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  text-align: center;
}
.rv-auth-logo img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 0 26px var(--rv-primary-glow));
}
.rv-auth-logo h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: .04em;
  background: linear-gradient(96deg, #fff, var(--rv-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.rv-auth-logo p {
  margin: 0;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--rv-dim);
}
.rv-auth-card form { display: flex; flex-direction: column; gap: 14px; }
.rv-auth-card form label { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-auth-card .btn { width: 100%; padding: 12px; font-size: .95rem; margin-top: 4px; }
.rv-auth-alt { margin-top: 20px; text-align: center; font-size: .85rem; color: var(--rv-muted); }
.rv-auth-alt a { color: var(--rv-accent); font-weight: 700; }
.rv-auth-alt a:hover { text-decoration: underline; }

.kick-panel {
  padding: 36px 30px;
  border-radius: var(--rv-radius-lg);
  text-align: center;
  max-width: 560px;
}
.kick-panel h1 { font-size: 1.4rem; }

/* ===========================================================================
   26  DUYURU / POPUP
   =========================================================================== */
.th-announcement-popup, .announcement-popup, .th-announce-card, .announcement-modal, .th-popup {
  background: linear-gradient(160deg, rgba(21, 21, 33, .97), rgba(9, 9, 16, .98)) !important;
  border: 1px solid var(--rv-line-2) !important;
  border-radius: var(--rv-radius) !important;
  box-shadow: var(--rv-shadow) !important;
  color: var(--rv-text) !important;
}

/* ===========================================================================
   27  ANASAYFA SLIDER (public)
   =========================================================================== */
.homeSliderOnly, .th-public-slider {
  position: relative;
  border-radius: var(--rv-radius-lg);
  overflow: hidden;
  border: 1px solid var(--rv-line);
  box-shadow: var(--rv-shadow);
  margin-bottom: 28px;
}
.homeSliderPro { position: relative; display: block; aspect-ratio: 21 / 9; min-height: 300px; background: var(--rv-surface); }
.homeSlidePro, .kick-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--rv-t-slow), visibility var(--rv-t-slow);
}
.homeSlidePro.is-active, .kick-slide.is-active { opacity: 1; visibility: visible; }
.homeSlidePro img, .homeSlidePro video { width: 100%; height: 100%; object-fit: cover; }
.homeSlideFallback {
  width: 100%;
  height: 100%;
  background: radial-gradient(600px 300px at 30% 20%, rgba(255, 23, 68, .2), transparent 60%), var(--rv-surface);
}
.homeSlideShade, .cleanShade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 9, .92) 0%, rgba(5, 5, 9, .55) 45%, transparent 85%);
}
.homeSlideText, .kick-slide-text {
  position: absolute;
  left: clamp(22px, 5vw, 56px);
  bottom: clamp(26px, 6vw, 56px);
  right: clamp(22px, 5vw, 56px);
  max-width: 600px;
  z-index: 2;
}
.homeSlideText > span, .kick-slide-text > span {
  display: block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rv-accent);
  margin-bottom: 8px;
}
.homeSlideText h3, .kick-slide-text h3 {
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.homeSlideText p, .kick-slide-text p { color: var(--rv-muted); font-size: .92rem; margin: 0 0 16px; max-width: 54ch; }
.homeSlideText a, .kick-slide-text a {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--rv-radius-btn);
  background: var(--rv-grad);
  color: #fff;
  font-weight: 700;
  font-size: .87rem;
  box-shadow: 0 6px 20px rgba(255, 23, 68, .26);
  transition: transform var(--rv-t), box-shadow var(--rv-t);
}
.homeSlideText a:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 10px 30px rgba(255, 23, 68, .42); }

.homeArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rv-line-2);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--rv-t), transform var(--rv-t);
}
.homeArrow:hover { background: var(--rv-primary); transform: translateY(-50%) scale(1.06); }
.homeArrow.left { left: 16px; }
.homeArrow.right { right: 16px; }

.homeDots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 7px; }
.homeDot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
  box-shadow: none;
  transition: width var(--rv-t), background var(--rv-t);
}
.homeDot.active { width: 24px; background: var(--rv-primary); box-shadow: 0 0 10px var(--rv-primary-glow); }

/* ===========================================================================
   28  ADMIN: KULLANICI / ROL / İZİN / MENÜ IZGARASI
   =========================================================================== */
.adminStats, .adminQuick, .twoCols, .threeCols, .copyGrid,
.userAdminGrid, .roleGrid, .permGrid, .menuManagerGrid, .menuFields {
  display: grid;
  gap: var(--rv-gap);
}
.adminStats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.adminQuick { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.twoCols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.threeCols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.copyGrid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.userAdminGrid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.roleGrid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.permGrid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; }
.menuManagerGrid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.menuFields { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }

.userAdminCard, .userCreateCard, .roleHead, .menuManagerCard,
.pageEditBlock, .themePreviewBox, .adminPreview, .dashHero {
  padding: 18px;
  border-radius: var(--rv-radius);
  background: var(--rv-card);
  border: 1px solid var(--rv-line);
  box-shadow: var(--rv-shadow-sm);
  backdrop-filter: blur(var(--rv-card-blur));
  -webkit-backdrop-filter: blur(var(--rv-card-blur));
  transition: border-color var(--rv-t);
}
.userAdminCard:hover, .menuManagerCard:hover { border-color: var(--rv-primary-line); }

.userAdminTop { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.userAdminMeta { min-width: 0; line-height: 1.35; }
.userAdminMeta b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userAdminMeta span { font-size: .72rem; color: var(--rv-dim); }
.userAdminActions, .roleActions, .menuActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.userAdminActions form, .roleActions form, .menuActions form { margin: 0; }
.userAvatarAdmin {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: var(--rv-primary-soft);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--rv-primary-line);
  color: var(--rv-accent);
  font-weight: 800;
  overflow: hidden;
}
.userUnifiedForm { display: flex; flex-direction: column; gap: 12px; }

.permCheck {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
  font-size: .8rem;
  margin: 0;
  cursor: pointer;
  transition: background var(--rv-t), border-color var(--rv-t);
}
.permCheck:hover { background: var(--rv-primary-soft); border-color: var(--rv-primary-line); }
.permCheck input { margin: 0; }

.menuEditPro { display: flex; flex-direction: column; gap: 10px; }
.menuIconBox { display: flex; align-items: center; gap: 9px; }
.menuIconBox input { max-width: 70px; text-align: center; }

.switchLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
  font-size: .83rem;
}
.switchLine label { margin: 0; }

.statusPill, .badgePill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .66rem;
  font-weight: 800;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--rv-line);
  color: var(--rv-muted);
}
.statusPill.ok, .statusPill.active { background: rgba(34, 197, 94, .16); color: #4ade80; border-color: rgba(34, 197, 94, .3); }
.statusPill.bad, .statusPill.passive { background: rgba(239, 68, 68, .16); color: #fca5a5; border-color: rgba(239, 68, 68, .3); }
.statusPill.info, .badgePill.info { background: var(--rv-primary-soft); color: var(--rv-accent); border-color: var(--rv-primary-line); }

.pauseDot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rv-warn);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}

.ghostBtn {
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--rv-line-2);
  color: var(--rv-text);
  box-shadow: none;
}
.ghostBtn:hover { background: var(--rv-primary-soft); border-color: var(--rv-primary-line); }

.adminProContent { min-width: 0; }
.cleanAdmin, .compact { gap: 12px; }
.form-label { display: block; color: var(--rv-muted); font-size: .8rem; font-weight: 600; margin-bottom: 6px; }
.h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; color: #fff; }

.bg-purple-lt, .bg-yellow-lt {
  background: var(--rv-primary-soft) !important;
  color: var(--rv-accent) !important;
  border: 1px solid var(--rv-primary-line);
}

.info { color: var(--rv-info); }
.ytProxyBox { padding: 20px; }

.th-news-admin { display: flex; flex-direction: column; gap: 12px; }
.th-news-admin-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
}
.th-news-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.th-log-admin { font-size: .8rem; color: var(--rv-muted); }

.th-building-preview { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }

/* ===========================================================================
   29  EK RESPONSIVE (bölüm 25-28)
   =========================================================================== */
@media (max-width: 991.98px) {
  .homeSliderPro { aspect-ratio: 16 / 9; min-height: 260px; }
  .homeSlideShade, .cleanShade { background: linear-gradient(180deg, rgba(5, 5, 9, .3) 0%, rgba(5, 5, 9, .88) 78%); }
}

@media (max-width: 767.98px) {
  .rv-auth-wrap { min-height: auto; padding: 12px 0 32px; }
  .rv-auth-card { padding: 26px 20px; border-radius: var(--rv-radius); }
  .rv-auth-logo img { width: 62px; height: 62px; }
  .rv-auth-logo h1 { font-size: 1.3rem; }

  .homeSliderPro { aspect-ratio: 4 / 3; min-height: 230px; }
  .homeSlideText, .kick-slide-text { left: 18px; right: 18px; bottom: 44px; }
  .homeSlideText h3, .kick-slide-text h3 { font-size: 1.25rem; }
  .homeSlideText p, .kick-slide-text p { display: none; }
  .homeArrow { width: 34px; height: 34px; font-size: 1.1rem; }
  .homeArrow.left { left: 8px; }
  .homeArrow.right { right: 8px; }

  .adminStats, .adminQuick, .twoCols, .threeCols, .copyGrid,
  .userAdminGrid, .roleGrid, .menuManagerGrid, .th-news-admin-row { grid-template-columns: 1fr; }
  .permGrid { grid-template-columns: repeat(2, 1fr); }
  .menuFields { grid-template-columns: repeat(2, 1fr); }
  .userAdminActions .btn, .roleActions .btn, .menuActions .btn { flex: 1 1 auto; }
  .kick-panel { padding: 26px 20px; }
}

@media (max-width: 420px) {
  .permGrid, .menuFields { grid-template-columns: 1fr; }
}

/* ===========================================================================
   30  HABER ŞERİDİ (dashboard)
   Boş durumda dev siyah kutu yerine markalı, ölçülü bir blok gösterilir.
   =========================================================================== */
.th-news-slider { overflow: hidden; }
.th-news-slider .card-body { padding: 20px; }
.th-news-track { display: flex; width: 100%; }

.th-news-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.th-news-slide > div { min-width: 0; }
.th-news-slide h2 { font-size: 1.15rem; margin: 2px 0 8px; }
.th-news-slide p {
  color: var(--rv-muted);
  font-size: .87rem;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.th-news-image {
  height: 150px;
  border-radius: var(--rv-radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--rv-surface);
  border: 1px solid var(--rv-line);
}

/* Görsel yoksa: marka rengiyle dolu, ölçülü yer tutucu */
.th-news-image.th-news-empty {
  display: grid;
  place-items: center;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--rv-accent);
  background:
    radial-gradient(220px 120px at 30% 20%, rgba(255, 23, 68, .18), transparent 70%),
    linear-gradient(135deg, rgba(255, 23, 68, .08), rgba(0, 0, 0, .35));
  border-color: var(--rv-primary-line);
  padding: 0;
  text-align: center;
}

.th-news-head { align-items: flex-start; }
.th-news-controls button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--rv-line);
  background: rgba(255, 255, 255, .045);
  color: var(--rv-text);
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--rv-t), border-color var(--rv-t);
}
.th-news-controls button:hover {
  background: var(--rv-primary-soft);
  border-color: var(--rv-primary-line);
  transform: none;
}

@media (max-width: 767.98px) {
  .th-news-slide { grid-template-columns: 1fr; gap: 14px; }
  .th-news-image { height: 120px; }
  .th-news-slide p { -webkit-line-clamp: 2; line-clamp: 2; }
}

/* ===========================================================================
   31  DASHBOARD KARŞILAMA KARTI
   =========================================================================== */
.th-hero-card { margin-bottom: 0; }
.th-hero-card h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 10px; }
.th-hero-card p { color: var(--rv-muted); margin: 0 0 18px; max-width: 56ch; }
.th-hero-card .btn + .btn { margin-left: 0; }
.th-hero-card .d-flex { gap: 10px; flex-wrap: wrap; }

/* Depolama kartı */
.card .progress { margin-top: 4px; }

/* row-cards boşlukları */
.row-cards { --tblr-gutter-x: var(--rv-gap); --tblr-gutter-y: var(--rv-gap); }
.row-cards > * { margin-bottom: var(--rv-gap); }

/* Tabler kolon yardımcıları (CDN yüklenmezse de düzen bozulmasın) */
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 992px) {
  .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
.row { display: flex; flex-wrap: wrap; }

/* ===========================================================================
   32  TABLER CDN NÖTRLEME
   Tabler'ın açık tema varsayılanları koyu temada beyaz kutular yapıyordu.
   =========================================================================== */
.card, .card-body, .card-header, .card-footer, .table, .dropdown-menu, .modal-content {
  --tblr-card-bg: transparent;
  --tblr-card-cap-bg: transparent;
  --tblr-bg-surface: transparent;
}
.dropdown-menu {
  background: rgba(17, 17, 27, .98);
  border: 1px solid var(--rv-line-2);
  border-radius: var(--rv-radius-sm);
  box-shadow: var(--rv-shadow);
  color: var(--rv-text);
}
.dropdown-item { color: var(--rv-text); border-radius: 8px; }
.dropdown-item:hover { background: var(--rv-primary-soft); color: #fff; }

.form-check-input { background-color: rgba(255, 255, 255, .06); border-color: var(--rv-line-2); }
.form-check-input:checked { background-color: var(--rv-primary); border-color: var(--rv-primary); }

.alert {
  border-radius: var(--rv-radius-sm);
  border: 1px solid var(--rv-line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--rv-text);
}
.alert-danger  { border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .1); color: #fca5a5; }
.alert-success { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .1); color: #4ade80; }
.alert-warning { border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .1); color: #fbbf24; }

/* Haber görseli yüklenemezse (inline background-image satır içi olduğu için
   stylesheet'ten ezilemez) arkada markalı bir zemin rengi kalsın. */
.th-news-image { background-color: #171722; }

/* ===========================================================================
   33  MOBİL ÜST BAR MARKASI
   Sidebar drawer'a gizlendiğinde üst barda marka görünür kalsın.
   =========================================================================== */
.rv-topbar-brand { display: none; }
.rv-topbar-brand img { height: 30px; max-height: 30px; max-width: 36px; }
.rv-topbar-brand .rv-brand-name { font-size: .92rem !important; }

@media (max-width: 991.98px) {
  .rv-topbar-brand { display: inline-flex; }
}
@media (max-width: 420px) {
  .rv-topbar-brand .rv-brand-text { display: none; }
}

/* ===========================================================================
   34  REDVERSE HUB — ana karşılama ekranı
   Referans tasarım dili: büyük hero, hızlı erişim kartları, canlı yayın
   bölümü, sunucu durumu, etkinlikler, topluluk istatistikleri.
   =========================================================================== */

/* --- Sayfa ızgarası ------------------------------------------------------- */
.rv-hub { display: flex; flex-direction: column; gap: 20px; }

.rv-hub-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 20px;
  align-items: start;
}
.rv-hub-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rv-hub-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ===========================================================================
   34.1  HERO BANNER
   =========================================================================== */
.rv-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--rv-radius-lg);
  border: 1px solid var(--rv-line-red);
  min-height: 268px;
  display: flex;
  align-items: center;
  box-shadow: var(--rv-shadow);
  isolation: isolate;
}
.rv-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-color: #0c0c16;
  transform: scale(1.02);
}
.rv-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 6, 11, .96) 0%, rgba(6, 6, 11, .86) 38%, rgba(6, 6, 11, .35) 68%, rgba(6, 6, 11, .55) 100%),
    radial-gradient(640px 300px at 78% 10%, rgba(255, 23, 68, .26), transparent 70%);
}
/* Paket referansindaki yumusak isik taramasi */
.rv-banner-sweep {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 1;
  pointer-events: none;
  opacity: .40;
  background: conic-gradient(from 90deg, transparent, rgba(255, 23, 68, .2), transparent 35%);
  animation: rvSweep 9s linear infinite;
}
@keyframes rvSweep { to { transform: rotate(360deg); } }

.rv-banner-inner {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 46px);
  max-width: 660px;
  width: 100%;
}
.rv-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rv-font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rv-accent);
  margin-bottom: 16px;
}
.rv-banner-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--rv-primary);
  box-shadow: 0 0 10px var(--rv-primary-glow);
}
.rv-banner h1 {
  font-family: var(--rv-font-heading);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .95;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.rv-banner h1 .hot { text-shadow: 0 0 26px rgba(255, 23, 68, .45); }
.rv-banner h1 .hot {
  background: linear-gradient(96deg, var(--rv-accent), var(--rv-primary) 60%, #ff6b85);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.rv-banner p {
  color: #c3c3d2;
  font-size: clamp(.9rem, 1.6vw, 1.02rem);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 24px;
}
.rv-banner-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.rv-banner-actions .btn { padding: 11px 24px; }

/* Sağdaki imza bloğu */
.rv-banner-sign {
  position: absolute;
  right: clamp(20px, 4vw, 54px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
.rv-banner-sign img {
  width: clamp(90px, 11vw, 132px);
  filter: drop-shadow(0 0 28px var(--rv-primary-glow));
  margin-bottom: 10px;
}
.rv-banner-sign b {
  display: block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .3em;
  color: #e9e9f2;
  line-height: 1.9;
}

/* ===========================================================================
   34.2  HIZLI ERİŞİM KARTLARI
   =========================================================================== */
.rv-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 14px;
}
.rv-quick-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--rv-radius);
  border: 1px solid var(--rv-line);
  background: linear-gradient(180deg, rgba(24, 24, 34, .86), rgba(12, 12, 18, .86));
  color: var(--rv-text);
  text-decoration: none;
  overflow: hidden;
  min-height: 92px;
  transition: transform var(--rv-t), border-color var(--rv-t), box-shadow var(--rv-t);
}
.rv-quick-card::after {
  content: "";
  position: absolute;
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 23, 68, .2), transparent 68%);
  opacity: .7;
  transition: opacity var(--rv-t);
  pointer-events: none;
}
.rv-quick-card:hover {
  transform: translateY(-3px);
  border-color: var(--rv-line-red);
  box-shadow: 0 24px 90px rgba(255, 23, 68, .16);
  color: var(--rv-text);
}
.rv-quick-card:hover::after { opacity: 1; }

.rv-quick-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--rv-radius-btn);
  background: rgba(255, 23, 68, .13);
  border: 1px solid var(--rv-line-red);
  color: var(--rv-primary);
  box-shadow: inset 0 0 22px rgba(255, 23, 68, .12);
}
.rv-quick-icon svg { width: 21px; height: 21px; }

.rv-quick-text { min-width: 0; position: relative; z-index: 2; }
.rv-quick-text b {
  display: block;
  font-family: var(--rv-font-display);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-quick-text span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .76rem;
  line-height: 1.45;
  color: var(--rv-muted);
}

/* ===========================================================================
   34.3  PANEL (başlıklı kutu)
   =========================================================================== */
.rv-panel {
  border-radius: var(--rv-radius);
  border: 1px solid var(--rv-line);
  background: linear-gradient(180deg, rgba(24, 24, 34, .86), rgba(12, 12, 18, .86));
  backdrop-filter: blur(var(--rv-card-blur));
  -webkit-backdrop-filter: blur(var(--rv-card-blur));
  box-shadow: var(--rv-shadow-sm);
  overflow: hidden;
}
.rv-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--rv-line);
}
.rv-panel-head h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
}
.rv-panel-dot {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--rv-primary-soft);
  border: 1px solid var(--rv-primary-line);
  color: var(--rv-accent);
}
.rv-panel-dot svg { width: 16px; height: 16px; }
.rv-panel-more {
  flex: 0 0 auto;
  font-size: .74rem;
  font-weight: 700;
  color: var(--rv-accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.rv-panel-more:hover { color: #fff; }
.rv-panel-body { padding: 16px 18px; }
.rv-panel-body.flush { padding: 0; }

/* ===========================================================================
   34.4  CANLI YAYINLAR
   =========================================================================== */
.rv-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 14px;
}

.rv-live-feature {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rv-line);
  aspect-ratio: 16 / 10;
  background: #0b0b14;
  display: block;
  text-decoration: none;
  color: var(--rv-text);
}
.rv-live-feature img, .rv-live-feature video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--rv-t-slow);
}
.rv-live-feature:hover img { transform: scale(1.04); }
.rv-live-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 9, .1) 38%, rgba(5, 5, 9, .93) 100%);
}
.rv-live-feature-foot {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 15px;
  display: flex;
  align-items: flex-end;
  gap: 11px;
}
.rv-live-feature-foot .avatar { width: 44px; height: 44px; border-width: 2px; }
.rv-live-feature-meta { min-width: 0; flex: 1; }
.rv-live-feature-meta b { display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.rv-live-feature-meta span {
  display: block;
  font-size: .78rem;
  color: #c0c0d0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-live-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.rv-live-tags em {
  font-style: normal;
  font-size: .63rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid var(--rv-line);
  color: #d4d4e0;
}

/* CANLI rozeti */
.rv-live-badge {
  position: absolute;
  z-index: 3;
  top: 11px;
  left: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--rv-primary);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 3px 12px rgba(255, 23, 68, .45);
}
.rv-live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: rvPulse 1.6s ease-in-out infinite;
}
.rv-live-viewers {
  position: absolute;
  z-index: 3;
  top: 11px;
  right: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .62);
  border: 1px solid var(--rv-line);
  color: #e6e6ef;
  font-size: .68rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rv-live-viewers svg { width: 12px; height: 12px; }

/* Yan liste */
.rv-live-list { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.rv-live-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--rv-line);
  background: rgba(255, 255, 255, .03);
  color: var(--rv-text);
  text-decoration: none;
  min-width: 0;
  transition: background var(--rv-t), border-color var(--rv-t), transform var(--rv-t);
}
.rv-live-item:hover {
  background: var(--rv-primary-soft);
  border-color: var(--rv-primary-line);
  transform: translateX(3px);
  color: var(--rv-text);
}
.rv-live-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: #0d0d17;
}
.rv-live-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-live-thumb em {
  position: absolute;
  top: 4px;
  left: 4px;
  font-style: normal;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--rv-primary);
  color: #fff;
}
.rv-live-item-meta { min-width: 0; flex: 1; line-height: 1.35; }
.rv-live-item-meta b { display: block; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-live-item-meta span { display: block; font-size: .7rem; color: var(--rv-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-live-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--rv-muted);
}
.rv-live-count svg { width: 11px; height: 11px; }

/* ===========================================================================
   34.5  SUNUCU DURUMU
   =========================================================================== */
.rv-status-list { display: flex; flex-direction: column; gap: 9px; }
.rv-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
}
.rv-status-ico {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--rv-primary-soft);
  border: 1px solid var(--rv-primary-line);
  color: var(--rv-accent);
}
.rv-status-ico svg { width: 15px; height: 15px; }
.rv-status-name { flex: 1; min-width: 0; font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-status-pill {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: .62rem;
  font-weight: 800;
  background: rgba(34, 197, 94, .16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .3);
}
.rv-status-pill.off { background: rgba(239, 68, 68, .16); color: #fca5a5; border-color: rgba(239, 68, 68, .3); }
.rv-status-pill.wait { background: rgba(255, 255, 255, .07); color: var(--rv-dim); border-color: var(--rv-line); }

/* Sinyal çubukları */
.rv-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: 0 0 auto; }
.rv-bars i { width: 3px; border-radius: 1px; background: var(--rv-ok); display: block; }
.rv-bars i:nth-child(1) { height: 5px; }
.rv-bars i:nth-child(2) { height: 8px; }
.rv-bars i:nth-child(3) { height: 11px; }
.rv-bars i:nth-child(4) { height: 14px; }
.rv-status-row.is-off .rv-bars i { background: rgba(255, 255, 255, .16); }
.rv-status-ping { flex: 0 0 auto; font-size: .68rem; color: var(--rv-dim); font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }

/* ===========================================================================
   34.6  ETKİNLİKLER
   =========================================================================== */
.rv-event-list { display: flex; flex-direction: column; gap: 10px; }
.rv-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
  transition: border-color var(--rv-t);
}
.rv-event:hover { border-color: var(--rv-primary-line); }
.rv-event-date {
  flex: 0 0 auto;
  width: 46px;
  padding: 7px 0;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--rv-primary-soft), rgba(139, 0, 26, .18));
  border: 1px solid var(--rv-primary-line);
  text-align: center;
  line-height: 1.1;
}
.rv-event-date b { display: block; font-size: 1.05rem; font-weight: 900; color: #fff; }
.rv-event-date span { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .08em; color: var(--rv-accent); text-transform: uppercase; }
.rv-event-meta { flex: 1; min-width: 0; line-height: 1.4; }
.rv-event-meta b { display: block; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-event-meta span { display: block; font-size: .7rem; color: var(--rv-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===========================================================================
   34.7  TOPLULUK İSTATİSTİKLERİ
   =========================================================================== */
.rv-community {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
}
.rv-community-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
  min-width: 0;
}
.rv-community-ico {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--rv-primary-soft);
  border: 1px solid var(--rv-primary-line);
  color: var(--rv-accent);
}
.rv-community-ico svg { width: 16px; height: 16px; }
.rv-community-item div { min-width: 0; line-height: 1.2; }
.rv-community-item b { display: block; font-size: 1.1rem; font-weight: 900; color: #fff; }
.rv-community-item span { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rv-dim); }

/* ===========================================================================
   34.8  MEDYA ŞERİDİ
   =========================================================================== */
.rv-media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 11px;
}
.rv-media-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--rv-line);
  background: #0d0d17;
  transition: transform var(--rv-t), border-color var(--rv-t);
}
.rv-media-tile:hover { transform: translateY(-3px); border-color: var(--rv-primary-line); }
.rv-media-tile img, .rv-media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-media-tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 9px 7px;
  font-size: .68rem;
  color: #e2e2ec;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 9, .92));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-media-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--rv-dim);
}
.rv-media-empty svg { width: 24px; height: 24px; }

/* ===========================================================================
   34.9  SIDEBAR MARKA BLOĞU + ALT CTA
   =========================================================================== */
.rv-side-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px 20px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--rv-line);
  text-decoration: none;
}
.rv-side-logo img {
  width: 86px;
  height: auto;
  max-height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--rv-primary-glow)) drop-shadow(0 3px 10px rgba(0, 0, 0, .7));
  transition: filter var(--rv-t), transform var(--rv-t);
}
.rv-side-logo:hover img { transform: scale(1.04); filter: drop-shadow(0 0 30px var(--rv-primary-glow)); }
.rv-side-logo b {
  font-family: var(--rv-font-display);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: .34em;
  text-indent: .34em;        /* letter-spacing'in sağda bıraktığı boşluğu dengeler */
  line-height: 1;
  background: linear-gradient(94deg, #fff 0%, #ffd5dd 40%, var(--rv-accent) 78%, var(--rv-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.rv-side-cta {
  margin: 14px 0 4px;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid var(--rv-primary-line);
  background:
    radial-gradient(260px 120px at 20% 0%, rgba(255, 23, 68, .2), transparent 70%),
    linear-gradient(150deg, rgba(28, 12, 18, .95), rgba(12, 10, 15, .95));
  text-align: left;
}
.rv-side-cta-ico {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--rv-primary-soft);
  border: 1px solid var(--rv-primary-line);
  color: var(--rv-accent);
  margin-bottom: 9px;
}
.rv-side-cta-ico svg { width: 16px; height: 16px; }
.rv-side-cta b { display: block; font-size: .86rem; font-weight: 800; margin-bottom: 4px; }
.rv-side-cta p { font-size: .72rem; color: var(--rv-muted); line-height: 1.45; margin: 0 0 12px; }
.rv-side-cta .btn { width: 100%; padding: 9px; font-size: .8rem; }

/* ===========================================================================
   34.10  ÜST BAR — arama + aksiyonlar + kullanıcı çipi
   =========================================================================== */
.rv-search { flex: 1 1 320px; max-width: 560px; min-width: 0; position: relative; }
.rv-search input {
  width: 100%;
  height: 48px;
  padding: 0 74px 0 46px;
  border-radius: 18px;
  background: rgba(12, 12, 20, .75);
  border: 1px solid var(--rv-line);
  color: var(--rv-text);
  font-size: .86rem;
}
.rv-search input:focus {
  background: rgba(255, 255, 255, .07);
  border-color: var(--rv-primary-line);
  box-shadow: 0 0 0 3px var(--rv-primary-soft);
}
.rv-search-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rv-dim);
  pointer-events: none;
  display: grid;
}
.rv-search-ico svg { width: 17px; height: 17px; }
.rv-search kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--rv-line);
  color: var(--rv-dim);
  font-family: inherit;
  font-size: .64rem;
  font-weight: 700;
  pointer-events: none;
}

.rv-top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.rv-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--rv-line);
  background: rgba(255, 255, 255, .04);
  color: var(--rv-muted);
  box-shadow: none;
  padding: 0;
  transition: background var(--rv-t), color var(--rv-t), border-color var(--rv-t);
}
.rv-icon-btn:hover { background: var(--rv-primary-soft); border-color: var(--rv-primary-line); color: #fff; transform: none; }
.rv-icon-btn svg { width: 18px; height: 18px; }
.rv-icon-btn i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rv-primary);
  box-shadow: 0 0 0 2px #0a0a12, 0 0 8px var(--rv-primary-glow);
}
.rv-icon-btn i.count {
  width: auto;
  height: 16px;
  min-width: 16px;
  top: 3px;
  right: 3px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  font-size: .58rem;
  font-weight: 900;
  font-style: normal;
  color: #fff;
  border-radius: 99px;
}

.rv-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 13px 5px 6px;
  border-radius: 13px;
  border: 1px solid var(--rv-line);
  background: rgba(255, 255, 255, .04);
  color: var(--rv-text);
  text-decoration: none;
  flex: 0 0 auto;
  transition: background var(--rv-t), border-color var(--rv-t);
}
.rv-user-chip:hover { background: var(--rv-primary-soft); border-color: var(--rv-primary-line); color: var(--rv-text); }
.rv-user-chip .avatar { width: 34px; height: 34px; }
.rv-user-chip-meta { line-height: 1.25; min-width: 0; }
.rv-user-chip-meta b {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-user-chip-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .66rem;
  color: var(--rv-dim);
}
.rv-user-chip-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rv-ok);
  box-shadow: 0 0 6px rgba(34, 197, 94, .7);
}

/* ===========================================================================
   34.11  RESPONSIVE
   =========================================================================== */
@media (max-width: 1400px) {
  .rv-hub-cols { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); }
}

@media (max-width: 1150px) {
  .rv-hub-cols { grid-template-columns: 1fr; }
  .rv-live-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .rv-banner-sign { display: none; }
  .rv-banner-inner { max-width: 100%; }
}

@media (max-width: 991.98px) {
  .rv-search { flex-basis: 100%; order: 10; max-width: none; }
  .rv-search kbd { display: none; }
}

@media (max-width: 767.98px) {
  .rv-banner { min-height: 210px; border-radius: 16px; }
  .rv-banner::after { background: linear-gradient(180deg, rgba(6, 6, 11, .72) 0%, rgba(6, 6, 11, .95) 72%); }
  .rv-banner-inner { padding: 22px 18px; }
  .rv-banner h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
  .rv-banner p { font-size: .86rem; margin-bottom: 18px; }
  .rv-banner-actions { width: 100%; }
  .rv-banner-actions .btn { flex: 1 1 100%; }

  /* Kartlar tam genislikte tek sutun: artwork ve aciklama birlikte sigar */
  .rv-quick { grid-template-columns: 1fr; gap: 10px; }
  .rv-quick-text b { font-size: .78rem; }

  .rv-live-grid { grid-template-columns: 1fr; }
  .rv-media-strip { grid-template-columns: repeat(2, 1fr); }
  .rv-community { grid-template-columns: repeat(2, 1fr); }

  .rv-panel-head { padding: 13px 14px; }
  .rv-panel-body { padding: 13px 14px; }

  .rv-side-logo img { width: 66px; }
  .rv-side-logo b { font-size: .98rem; letter-spacing: .26em; text-indent: .26em; }

  .rv-user-chip { padding: 4px; }
  .rv-user-chip-meta { display: none; }
  .rv-icon-btn { width: 36px; height: 36px; }
}

@media (max-width: 420px) {
  .rv-quick { grid-template-columns: 1fr 1fr; gap: 9px; }
  .rv-quick-card { padding: 11px; }
  .rv-quick-icon { width: 36px; height: 36px; }
  .rv-community { grid-template-columns: 1fr 1fr; }
  .rv-media-strip { grid-template-columns: 1fr 1fr; }
}

/* ===========================================================================
   35  INLINE SVG İKON BOYUTU — genel güvenlik kuralı
   SVG'lerin viewBox'ı var ama width/height'ı yok; flex/grid içinde kapsayıcıyı
   doldurup devleşebiliyorlar. Varsayılan bir boyut veriyoruz; bölüm bazlı
   kurallar bunu kendi değerleriyle eziyor.
   =========================================================================== */
svg:not([width]):not([height]) { width: 18px; height: 18px; flex: 0 0 auto; }

.btn svg,
button svg,
a.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-lg svg { width: 19px; height: 19px; }
.btn-sm svg, .btn.small svg { width: 15px; height: 15px; }

.rv-banner-actions .btn svg { width: 18px; height: 18px; }
.nav-link-icon svg { width: 18px; height: 18px; }
.rv-panel-more svg { width: 14px; height: 14px; }
.rv-live-count svg, .rv-live-viewers svg { width: 12px; height: 12px; }
.rv-user-chip-meta b svg { width: 13px; height: 13px; color: var(--rv-warn); }
.rv-empty-icon svg { width: 27px; height: 27px; }
.mediaPlaceholder svg { width: 34px; height: 34px; }

/* Geri butonu mobilde chat butonunun üstünde kalsın, içeriği örtmesin */
@media (max-width: 767.98px) {
  .th-back-tick { bottom: 92px; left: 12px; width: 36px; height: 36px; font-size: 1.1rem; opacity: .85; }
  .th-back-tick:hover { opacity: 1; }
}

/* ===========================================================================
   36  TABLER CDN ÇAKIŞMA DÜZELTMELERİ (design pack ölçüleri)
   ---------------------------------------------------------------------------
   Tabler kendi değerlerini sabit kodluyor ve seçici özgüllüğü bizimkinden
   yüksek. Design pack ölçüleri (sidebar 280px, nav radius 16px) geçerli
   olsun diye bu iki kuralı bilerek !important ile sabitliyoruz.
   =========================================================================== */
.navbar-vertical ~ .page-wrapper,
.th-sidebar ~ .page-wrapper,
.page > .page-wrapper {
  margin-left: var(--rv-sidebar-w) !important;   /* Tabler: sabit 15rem */
}

.th-sidebar .nav-link,
.navbar-vertical .nav-link,
.th-sidebar .nav-item .nav-link {
  border-radius: var(--rv-radius-btn) !important;  /* Tabler: --tblr-border-radius */
}

@media (max-width: 991.98px) {
  .navbar-vertical ~ .page-wrapper,
  .th-sidebar ~ .page-wrapper,
  .page > .page-wrapper { margin-left: 0 !important; }
}

/* ===========================================================================
   37  REDVERSE EVENTS
   Referans: _events-pack/mockups/redverse_events_page_mockup.png
   =========================================================================== */

/* --- Hero --------------------------------------------------------------- */
.rv-ev-hero { min-height: 220px; }
.rv-ev-hero .rv-banner-inner { max-width: 760px; }

/* --- İstatistik şeridi --------------------------------------------------- */
.rv-ev-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.rv-ev-stat {
  padding: 20px;
  border-radius: var(--rv-radius);
  border: 1px solid var(--rv-line-red);
  background: linear-gradient(180deg, rgba(24, 24, 34, .86), rgba(12, 12, 18, .86));
  transition: border-color var(--rv-t), transform var(--rv-t);
}
.rv-ev-stat:hover { transform: translateY(-3px); box-shadow: 0 24px 90px rgba(255, 23, 68, .16); }
.rv-ev-stat b {
  display: block;
  font-family: var(--rv-font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--rv-primary);
  margin-bottom: 6px;
}
.rv-ev-stat span { font-size: .78rem; font-weight: 600; color: var(--rv-muted); }

/* --- Sekmeler ------------------------------------------------------------ */
.rv-ev-tabs { margin-bottom: 20px; }

/* --- Kart ızgarası ------------------------------------------------------- */
.rv-ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--rv-gap);
  margin-bottom: 26px;
}

.rv-ev-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--rv-radius);
  border: 1px solid var(--rv-line);
  background: linear-gradient(180deg, rgba(24, 24, 34, .86), rgba(12, 12, 18, .86));
  overflow: hidden;
  box-shadow: var(--rv-shadow-sm);
  transition: transform var(--rv-t), border-color var(--rv-t), box-shadow var(--rv-t);
}
.rv-ev-card:hover {
  transform: translateY(-3px);
  border-color: var(--rv-line-red);
  box-shadow: 0 24px 90px rgba(255, 23, 68, .16);
}

.rv-ev-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(260px 140px at 30% 25%, rgba(255, 23, 68, .22), transparent 70%),
    linear-gradient(140deg, rgba(139, 0, 27, .3), rgba(10, 10, 16, .9));
  border-bottom: 1px solid var(--rv-line);
}
.rv-ev-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--rv-t-slow); }
.rv-ev-card:hover .rv-ev-cover img { transform: scale(1.05); }
.rv-ev-cover-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 23, 68, .5);
}
.rv-ev-cover-empty svg { width: 36px; height: 36px; }

/* Durum rozeti */
.rv-ev-badge {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 11px;
  padding: 5px 12px;
  border-radius: var(--rv-radius-pill);
  font-family: var(--rv-font-display);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  background: rgba(0, 0, 0, .62);
  border: 1px solid var(--rv-line);
  color: var(--rv-muted);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rv-ev-badge.is-live {
  background: var(--rv-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 14px rgba(255, 23, 68, .45);
}
.rv-ev-badge.is-soon { background: rgba(255, 23, 68, .18); border-color: var(--rv-line-red); color: var(--rv-accent); }
.rv-ev-badge.is-wait { background: rgba(245, 158, 11, .18); border-color: rgba(245, 158, 11, .35); color: #fbbf24; }
.rv-ev-badge.is-bad  { background: rgba(239, 68, 68, .18); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
.rv-ev-badge.is-past { opacity: .75; }

/* Kart gövdesi */
.rv-ev-body { display: flex; flex-direction: column; gap: 7px; padding: 17px; flex: 1; min-width: 0; }
.rv-ev-cat {
  display: inline-block;
  width: fit-content;
  font-family: var(--rv-font-display);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rv-accent);
}
.rv-ev-body h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.rv-ev-body h3 a {
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rv-ev-body h3 a:hover { color: var(--rv-accent); }
.rv-ev-when { margin: 0; font-size: .8rem; font-weight: 800; color: var(--rv-primary); }
.rv-ev-desc {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--rv-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rv-ev-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.rv-ev-count { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: var(--rv-muted); }
.rv-ev-count svg { width: 14px; height: 14px; }

/* --- Oluşturma formu ----------------------------------------------------- */
.rv-ev-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.rv-ev-form .full { grid-column: 1 / -1; }
.rv-ev-form label { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.rv-ev-form label > span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rv-dim);
}

/* --- Detay sayfası ------------------------------------------------------- */
.rv-ev-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: 20px;
  align-items: start;
}
.rv-ev-detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rv-ev-detail-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.rv-ev-detail-cover {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: var(--rv-radius);
  overflow: hidden;
  border: 1px solid var(--rv-line-red);
  background:
    radial-gradient(400px 200px at 30% 25%, rgba(255, 23, 68, .22), transparent 70%),
    linear-gradient(140deg, rgba(139, 0, 27, .3), rgba(10, 10, 16, .92));
  box-shadow: var(--rv-shadow);
}
.rv-ev-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.rv-ev-detail-desc { white-space: pre-wrap; line-height: 1.7; color: #d9d2d7; margin: 0; }

.rv-ev-dateblock { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.rv-ev-dateblock > div { min-width: 0; line-height: 1.35; }
.rv-ev-dateblock b { display: block; font-size: 1.1rem; color: #fff; }
.rv-ev-dateblock span { display: block; font-size: .74rem; color: var(--rv-dim); }

.rv-ev-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: .84rem;
  color: var(--rv-muted);
  word-break: break-word;
}
.rv-ev-meta svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--rv-accent); }

.rv-ev-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 13px; }
.rv-ev-counts > div {
  padding: 13px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rv-line);
  text-align: center;
}
.rv-ev-counts b { display: block; font-size: 1.4rem; font-weight: 900; color: #fff; line-height: 1.1; }
.rv-ev-counts span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rv-dim); }

.rv-ev-people { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }

.rv-ev-rsvp { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; }
.rv-ev-rsvp .btn { flex: 1 1 auto; padding: 10px 14px; font-size: .82rem; }

/* Bilgi notu */
.rv-ev-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 17px;
  border-radius: var(--rv-radius-sm);
  border: 1px solid rgba(245, 158, 11, .3);
  background: rgba(245, 158, 11, .08);
  color: #e9d7b4;
  font-size: .85rem;
  line-height: 1.6;
}
.rv-ev-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--rv-warn); }
.rv-ev-note.is-bad { border-color: rgba(239, 68, 68, .32); background: rgba(239, 68, 68, .09); color: #fca5a5; }
.rv-ev-note.is-bad svg { color: var(--rv-bad); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1150px) {
  .rv-ev-detail { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .rv-ev-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rv-ev-stat { padding: 15px; }
  .rv-ev-stat b { font-size: 1.6rem; }
  .rv-ev-grid { grid-template-columns: 1fr; }
  .rv-ev-form { grid-template-columns: 1fr; }
  .rv-ev-detail-cover { aspect-ratio: 16 / 9; }
  .rv-ev-rsvp .btn { flex-basis: 100%; }
  .rv-ev-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}

/* ===========================================================================
   38  ÖZEL DOSYA SEÇİCİ
   ---------------------------------------------------------------------------
   Tarayıcının yerleşik dosya butonu işletim sistemi dilini kullanıyor; EN
   sayfada "Dosya Seç" olarak kalıyordu. Gerçek input gizlenip yerine
   lokalize edilmiş bir etiket gösteriliyor.
   =========================================================================== */
.rv-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--rv-radius-btn);
  border: 1px dashed var(--rv-line-2);
  background: rgba(12, 12, 20, .6);
  cursor: pointer;
  transition: border-color var(--rv-t), background var(--rv-t);
}
.rv-file:hover, .rv-file:focus-within {
  border-color: var(--rv-line-red);
  background: rgba(255, 23, 68, .06);
}
.rv-file input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.rv-file-btn {
  flex: 0 0 auto;
  padding: 7px 15px;
  border-radius: 10px;
  background: var(--rv-primary-soft);
  border: 1px solid var(--rv-line-red);
  color: var(--rv-accent);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}
.rv-file-name {
  flex: 1;
  min-width: 0;
  font-size: .82rem;
  color: var(--rv-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-file.has-file .rv-file-name { color: var(--rv-text); }
.rv-file.has-file { border-style: solid; border-color: var(--rv-line-red); }

/* ===========================================================================
   39  HERO SLIDER
   Çoklu slide, yumuşak geçiş, ok + nokta kontrolleri.
   =========================================================================== */
/* Slide'lar tek hücrede üst üste yığılır (grid stack).
   Bölümün yüksekliği EN UZUN slide'a göre oluşur; "ilk slide akışta kalsın"
   hilesine gerek kalmaz, kısa bir slide aktifken uzun içerik kırpılmaz. */
.rv-slider {
  position: relative;
  display: grid;
  grid-template-areas: "slide";
  padding: 0;
  min-height: 300px;
}

.rv-slide {
  grid-area: slide;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 620ms var(--rv-ease), visibility 620ms, transform 900ms var(--rv-ease);
}
.rv-slide.is-active { opacity: 1; visibility: visible; transform: none; }

.rv-slide .rv-banner-bg { object-fit: cover; }

/* Okunabilirlik örtüsü — yoğunluğu slide başına ayarlanabilir */
.rv-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(6, 6, 11, calc(var(--rv-overlay, .7) * 1.32)) 0%,
      rgba(6, 6, 11, calc(var(--rv-overlay, .7) * 1.18)) 38%,
      rgba(6, 6, 11, calc(var(--rv-overlay, .7) * .48)) 68%,
      rgba(6, 6, 11, calc(var(--rv-overlay, .7) * .76)) 100%),
    radial-gradient(640px 300px at 78% 10%, rgba(255, 23, 68, .24), transparent 70%);
}

.rv-slide-sub {
  font-family: var(--rv-font-display);
  font-size: .82rem !important;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rv-accent) !important;
  margin: -6px 0 12px !important;
}

/* Kontroller */
.rv-slider-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--rv-line-2);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity var(--rv-t), background var(--rv-t), transform var(--rv-t);
}
.rv-slider:hover .rv-slider-arrow, .rv-slider-arrow:focus-visible { opacity: 1; }
.rv-slider-arrow:hover { background: var(--rv-primary); transform: translateY(-50%) scale(1.06); }
.rv-slider-arrow.prev { left: 16px; }
.rv-slider-arrow.next { right: 16px; }

.rv-slider-dots {
  position: absolute;
  z-index: 5;
  left: clamp(24px, 4vw, 46px);
  bottom: 18px;
  display: flex;
  gap: 7px;
}
.rv-slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  box-shadow: none;
  transition: width var(--rv-t), background var(--rv-t);
}
.rv-slider-dots button:hover { background: rgba(255, 255, 255, .55); transform: none; }
.rv-slider-dots button.active {
  width: 26px;
  background: var(--rv-primary);
  box-shadow: 0 0 12px var(--rv-primary-glow);
}

@media (max-width: 767.98px) {
  .rv-slider { min-height: 230px; }
  /* Oklar dikey ortada metnin üstüne biniyordu. Mobilde kaydırma (swipe) ve
     noktalar yeterli; oklar gizlenir. */
  .rv-slider-arrow { display: none; }
  .rv-slider-dots { left: 50%; transform: translateX(-50%); bottom: 12px; }
  .rv-slider-dots button { width: 8px; height: 8px; }
  .rv-slider-dots button.active { width: 22px; }
  .rv-slide::after {
    background:
      linear-gradient(180deg,
        rgba(6, 6, 11, calc(var(--rv-overlay, .7) * .72)) 0%,
        rgba(6, 6, 11, calc(var(--rv-overlay, .7) * 1.34)) 72%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-slide { transition: opacity .001ms, visibility .001ms; transform: none; }
}

/* ===========================================================================
   40  REFERANS HİZALAMA
   Kaynak: referans dashboard görseli
   =========================================================================== */

/* --- 3 sütunlu düzen: içerik | durum/etkinlik | sohbet ------------------- */
.rv-hub-cols.has-chat {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px) minmax(280px, 320px);
}
.rv-hub-chat { min-width: 0; display: flex; flex-direction: column; }

/* Sohbet panelini sütuna sabitle.
   SADECE geniş ekranda uygulanır; altında chat-widget.css'teki orijinal
   yüzen davranış hiç dokunulmadan geçerli kalır (override kavgası olmaz). */
@media (min-width: 1501px) {
  .rv-hub-chat .th-chat-widget {
    position: sticky;
    top: 86px;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    display: block;
    pointer-events: auto;
  }
  .rv-hub-chat .th-chat-button { display: none; }   /* sabitken açma butonu gereksiz */
  .rv-hub-chat .th-chat-window {
    display: flex !important;
    width: 100%;
    height: clamp(420px, calc(100vh - 140px), 760px);
    animation: none;
    border-radius: var(--rv-radius);
    border-color: var(--rv-line-red);
    box-shadow: var(--rv-shadow), var(--rv-glow);
  }
}

/* Eski dar görsel şeridi kaldırıldı; yerini bölüm 43'teki .rv-quick-art aldı. */

/* --- Sunucu durumu: genel rozet + uptime --------------------------------- */
.rv-status-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-size: .7rem;
  font-weight: 700;
  color: var(--rv-muted);
  white-space: nowrap;
}
.rv-status-all i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rv-ok);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
  animation: rvPulse 2.6s ease-in-out infinite;
}
.rv-status-all.warn i { background: var(--rv-warn); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.rv-status-all.off i { background: var(--rv-bad); box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); animation: none; }

.rv-status-uptime {
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 700;
  color: var(--rv-muted);
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  text-align: right;
}
.rv-status-row.is-off .rv-status-uptime { color: var(--rv-dim); }
.rv-status-row { gap: 8px; }
.rv-status-ping { min-width: 46px; }

/* --- Etkinlik satırı: saat + Hatırlat butonu ----------------------------- */
.rv-event { position: relative; }
.rv-event-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.rv-event-date, .rv-event-meta { position: relative; z-index: 2; pointer-events: none; }
.rv-event-meta { display: flex; flex-direction: column; gap: 1px; }
.rv-event-time {
  font-size: .68rem;
  font-weight: 700;
  color: var(--rv-accent);
  font-variant-numeric: tabular-nums;
}
.rv-event-remind { position: relative; z-index: 3; margin: 0; flex: 0 0 auto; }
.rv-event-remind button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--rv-radius-btn);
  border: 1px solid var(--rv-line-red);
  background: var(--rv-primary-soft);
  color: var(--rv-accent);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
  transition: background var(--rv-t), color var(--rv-t);
}
.rv-event-remind button:hover { background: var(--rv-primary); color: #fff; transform: none; }
.rv-event-remind svg { width: 13px; height: 13px; }

/* --- Üst bar: kırmızı daire içinde arama ikonu --------------------------- */
.rv-search input { padding-left: 56px; }
.rv-search-ico {
  left: 6px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rv-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 23, 68, .34);
}
.rv-search-ico svg { width: 16px; height: 16px; }

/* --- Sidebar: büyük logo kilidi ------------------------------------------ */
.rv-side-logo { padding: 22px 10px 22px; gap: 10px; }
.rv-side-logo img { width: 104px; max-height: 104px; }
.rv-side-logo b { font-size: 1.22rem; letter-spacing: .38em; text-indent: .38em; }

/* Menü öğeleri biraz daha ferah */
.th-sidebar .nav-link { padding: 12px 14px; font-size: .88rem; }
.th-sidebar .nav-link-icon { width: 22px; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1500px) {
  /* Sohbet sütunu sığmıyor: sütun kalkar, widget orijinal yüzen haline döner */
  .rv-hub-cols.has-chat { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); }
  .rv-hub-chat { display: contents; }
}

@media (max-width: 1150px) {
  .rv-hub-cols.has-chat { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .rv-quick-thumb { display: none; }
  .rv-side-logo img { width: 72px; max-height: 72px; }
  .rv-side-logo b { font-size: 1.02rem; letter-spacing: .28em; text-indent: .28em; }
  .rv-search input { padding-left: 50px; }
  .rv-search-ico { width: 30px; height: 30px; }
  .rv-event-remind button span { display: none; }
  .rv-event-remind button { padding: 7px 9px; }
  .rv-status-uptime { display: none; }
  .rv-status-all { display: none; }
}

/* ===========================================================================
   41  SUNUCU DURUMU SATIRI — sıkışıklık giderme
   Referansta satırda: ikon · ad · durum · sinyal · uptime · ping
   Hepsi dar sütuna sığsın diye öğeler kompaktlaştırıldı.
   =========================================================================== */
.rv-status-row { padding: 9px 11px; gap: 7px; }
.rv-status-ico { width: 26px; height: 26px; border-radius: 8px; }
.rv-status-ico svg { width: 13px; height: 13px; }
.rv-status-name { font-size: .78rem; flex: 1 1 auto; min-width: 0; }
.rv-status-pill { padding: 2px 7px; font-size: .58rem; letter-spacing: 0; }
.rv-bars { height: 12px; gap: 1.5px; }
.rv-bars i { width: 2.5px; }
.rv-bars i:nth-child(1) { height: 4px; }
.rv-bars i:nth-child(2) { height: 7px; }
.rv-bars i:nth-child(3) { height: 9.5px; }
.rv-bars i:nth-child(4) { height: 12px; }
.rv-status-uptime { font-size: .64rem; min-width: 34px; }
.rv-status-ping { font-size: .64rem; min-width: 38px; }

/* Panel başlığındaki genel rozet uzun metinde taşmasın */
.rv-panel-head { flex-wrap: wrap; row-gap: 6px; }
.rv-status-all { font-size: .66rem; }

/* Dar sütunda uptime gizlenir, ad okunur kalır */
@media (max-width: 1400px) {
  .rv-status-uptime { display: none; }
}

/* ===========================================================================
   42  SOHBET PANELİ — sabitken başlık ve sekmeler kompakt
   =========================================================================== */
.rv-hub-chat .th-chat-header { padding: 12px 14px; }
.rv-hub-chat .th-chat-tabs { padding: 7px 9px; }
.rv-hub-chat .th-chat-tab { font-size: .74rem; padding: 7px 8px; }
.rv-hub-chat .th-chat-messages { padding: 12px 11px; }
.rv-hub-chat .th-chat-footer { padding: 9px 10px; }
.rv-hub-chat .th-chat-online { padding: 8px 11px; }


/* ===========================================================================
   43  FEATURE KARTLARI — Redverse artwork
   ---------------------------------------------------------------------------
   Referans: _cards-pack/reference/feature_cards_strip_reference.png
   Paketteki crop'lar 140x59 px olduğu için kullanılmadı; her kart için
   public/img/cards/*.svg altında vektörel Redverse artwork üretildi
   (her çözünürlükte net, ~2 KB, harici bağımlılık yok).
   Yapı: görsel sağdan taşar, üstüne soldan sağa karartma gradyanı biner.
   =========================================================================== */
.rv-quick-card {
  position: relative;
  padding: 0;
  min-height: 118px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 50%, rgba(255, 31, 75, .20), transparent 40%),
    linear-gradient(135deg, rgba(255, 31, 75, .07), rgba(255, 255, 255, .025) 42%, rgba(8, 8, 14, .9)),
    var(--rv-surface);
}

/* Artwork: kartın sağ %56'sı */
.rv-quick-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 58%;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  opacity: .9;
  transition: opacity var(--rv-t), transform var(--rv-t-slow);
  transform-origin: right center;
}
.rv-quick-card:hover .rv-quick-art { opacity: 1; transform: scale(1.05); }

/* Okunabilirlik örtüsü: soldan opak, sağa doğru şeffaf */
.rv-quick-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(7, 6, 12, .96) 0%,
    rgba(7, 6, 12, .88) 34%,
    rgba(7, 6, 12, .46) 62%,
    rgba(7, 6, 12, .12) 100%);
}

/* İçerik en üstte */
.rv-quick-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px;
  min-width: 0;
}
.rv-quick-text { flex: 1; min-width: 0; }

/* Kartın kendi yuvarlak ışığı artwork'ün altında kalsın */
.rv-quick-card::after { z-index: 0; }

/* Hover: pakete uygun kırmızı kenar + glow */
.rv-quick-card:hover {
  border-color: rgba(255, 31, 75, .55);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .42), 0 0 32px rgba(255, 31, 75, .24);
}

@media (max-width: 1100px) {
  .rv-quick { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 767.98px) {
  .rv-quick-card { min-height: 92px; }
  .rv-quick-body { padding: 14px; gap: 12px; }
  /* Dar kartta artwork daralır, metin önceliklidir */
  .rv-quick-art { width: 46%; opacity: .75; }
  .rv-quick-veil {
    background: linear-gradient(90deg,
      rgba(7, 6, 12, .97) 0%,
      rgba(7, 6, 12, .9) 48%,
      rgba(7, 6, 12, .5) 100%);
  }
}

@media (max-width: 420px) {
  .rv-quick-art { width: 40%; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-quick-card:hover .rv-quick-art { transform: none; }
}

/* ===========================================================================
   44  NEON / ENERJI CIZGISI SISTEMI (ana site)
   ---------------------------------------------------------------------------
   Admin OS'taki (admin-os.css) sistemle ayni sinif adlarini kullanir, boylece
   iki taraf tek dil konusur:
     .rv-brand-glow          logo cevresinde yumusak nabiz
     .rv-animated-logo-text  marka yazisinda beyaz->kirmizi gecis
     .rv-card-energy-line    kart altinda sakin neon cizgi, hover'da gecis
     .rv-soft-pulse          genel yumusak nabiz

   Kapatma anahtarlari <body> uzerinden: .fx-off .fx-logo-off .fx-lines-off
   .fx-reduced  — Admin OS > Tema ayarlarindan yonetilir.
   =========================================================================== */
@keyframes rvBrandSheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes rvSoftPulse  { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .95; transform: scale(1.06); } }
@keyframes rvEnergySweep { 0% { transform: translateX(-100%); opacity: 0; } 12% { opacity: 1; } 60% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes rvLineBreathe { 0%,100% { opacity: .3; } 50% { opacity: .72; } }

.rv-animated-logo-text {
  background: linear-gradient(100deg,#fff 0%,#fff 28%,var(--rv-primary) 46%,#ffd9e0 60%,#fff 78%,#fff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rvBrandSheen 7s var(--rv-ease, ease) infinite;
}
.rv-brand-glow { position: relative; }
.rv-brand-glow::after {
  content: ""; position: absolute; inset: -34% -34%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,23,68,.42), transparent 68%);
  animation: rvSoftPulse 4.5s ease-in-out infinite; pointer-events: none; z-index: -1;
}
.rv-soft-pulse { animation: rvSoftPulse 3.6s ease-in-out infinite; }

/* Feature kartlarinin altindaki enerji cizgisi.
   Taban cizgi hep durur; parlak kesit sadece hover'da bir kez gecer —
   surekli akan animasyon bilerek yok (goz yormasin). */
.rv-quick-card { position: relative; }
.rv-quick-card::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--rv-card-accent, var(--rv-primary)), transparent);
  opacity: .34; animation: rvLineBreathe 6s ease-in-out infinite; pointer-events: none;
}
.rv-quick-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 46%; height: 2px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--rv-card-accent, var(--rv-primary)), #ffd9e0, var(--rv-card-accent, var(--rv-primary)), transparent);
  transform: translateX(-100%); opacity: 0; pointer-events: none;
}
.rv-quick-card:hover::after { animation: rvEnergySweep 1.5s var(--rv-ease, ease); }

/* Admin panelden gelen gorunurluk anahtarlari */
.rv-hide-desktop { display: none; }
@media (max-width: 768px) { .rv-hide-desktop { display: flex; } .rv-hide-mobile { display: none; } }

/* Efekt kapatma */
body.fx-off .rv-animated-logo-text, body.fx-logo-off .rv-animated-logo-text, body.fx-reduced .rv-animated-logo-text {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--rv-text); animation: none;
}
body.fx-off .rv-brand-glow::after, body.fx-logo-off .rv-brand-glow::after, body.fx-reduced .rv-brand-glow::after { animation: none; opacity: .4; }
body.fx-off .rv-quick-card::before, body.fx-lines-off .rv-quick-card::before, body.fx-reduced .rv-quick-card::before { animation: none; opacity: .3; }
body.fx-off .rv-quick-card::after, body.fx-lines-off .rv-quick-card::after { display: none; }
body.fx-off .rv-soft-pulse, body.fx-reduced .rv-soft-pulse { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .rv-animated-logo-text { animation: none; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--rv-text); }
  .rv-brand-glow::after, .rv-quick-card::before { animation: none; }
  .rv-quick-card::after { display: none; }
}

/* ===========================================================================
   45  YUKLEME ILERLEMESI
   ---------------------------------------------------------------------------
   public/js/upload-progress.js tarafindan olusturulan panel.
   Form POST'u XHR'a cevrildiginde gercek yuzde, boyut, hiz ve kalan sure
   burada gosterilir.
   =========================================================================== */
.rv-upload-progress {
  margin: 0 1.25rem 1rem;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(12, 12, 18, .72);
  border: 1px solid var(--rv-line, rgba(255, 255, 255, .08));
}
.rv-upload-progress[hidden] { display: none; }

.rv-up-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.rv-up-name {
  font: 500 13px Inter, system-ui, sans-serif;
  color: var(--rv-text, #f4f2f5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.rv-up-pct {
  font: 600 15px "JetBrains Mono", monospace;
  color: var(--rv-primary, #ff1f4b);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.rv-up-bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.rv-up-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--rv-primary, #ff1f4b), #ff6b88);
  transition: width .2s ease-out;
}

.rv-up-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 9px;
  font: 400 11.5px "JetBrains Mono", monospace;
  color: var(--rv-muted, #9b96a3);
}
.rv-up-meta > span:empty { display: none; }

.rv-up-actions { display: flex; gap: 8px; margin-top: 11px; }
.rv-up-actions button {
  height: 30px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: transparent;
  color: var(--rv-muted, #9b96a3);
  font: 500 12px Inter, system-ui, sans-serif;
  cursor: pointer;
}
.rv-up-actions button:hover { color: var(--rv-text, #fff); border-color: rgba(255, 255, 255, .26); }
.rv-up-actions button[hidden] { display: none; }
.rv-up-retry { border-color: rgba(255, 31, 75, .4) !important; color: #ff8098 !important; }

.rv-up-error {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #fb7185;
}
.rv-up-error[hidden] { display: none; }

/* Sunucu tarafinda isleniyor: cubuk nefes alir */
.rv-upload-progress.is-processing .rv-up-bar i {
  background: linear-gradient(90deg, var(--rv-primary, #ff1f4b), #ff6b88, var(--rv-primary, #ff1f4b));
  background-size: 200% 100%;
  animation: rvUpPulse 1.4s linear infinite;
}
@keyframes rvUpPulse { to { background-position: -200% 0; } }

.rv-upload-progress.is-done { border-color: rgba(74, 222, 128, .34); }
.rv-upload-progress.is-done .rv-up-bar i { background: #4ade80; animation: none; }
.rv-upload-progress.is-done .rv-up-pct { color: #4ade80; }

.rv-upload-progress.is-error { border-color: rgba(251, 113, 133, .38); }
.rv-upload-progress.is-error .rv-up-bar i { background: #fb7185; animation: none; }
.rv-upload-progress.is-error .rv-up-pct { color: #fb7185; }

@media (prefers-reduced-motion: reduce) {
  .rv-up-bar i { transition: none; animation: none !important; }
}

@media (max-width: 560px) {
  .rv-upload-progress { margin: 0 1rem 1rem; padding: 12px 13px; }
  .rv-up-meta { gap: 10px; font-size: 11px; }
}

/* ===========================================================================
   46  AKTIVITE AKISI — MOBIL TASMA ONARIMI
   ---------------------------------------------------------------------------
   .th-feed-list yatay bir flex satiriydi ve sarmiyordu (flex-wrap: nowrap);
   .th-feed-item de flexbox'in varsayilan min-width:auto tuzagindaydi. Bu
   ikisi birlikte ana sayfayi 375px'te 412px tasiriyordu.
   Akis dikey olmali: her kayit alt alta.
   =========================================================================== */
.th-feed-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.th-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.th-feed-item > * { min-width: 0; max-width: 100%; }

/* Rozet satiri uzun icerikle satiri itmesin */
.th-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

/* Bolum kapsayicilari viewport'u asmasin */
.th-home-section,
.th-home-section.wide,
.th-section-head {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.th-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Genel guvenlik: ana icerik sutunu tasmasin */
.th-public-main,
.page-body { max-width: 100%; overflow-x: clip; }

/* 7.7.9 B-08: Live/Radio kartlarında bağlantı/anahtar alanları ve açıklama metni kart kenarında KESİLİYORDU
   (ızgara sütunu en az 260px, kart gövdesi daha dar; code nowrap). Sütun kart genişliğine sığar, uzun değerler satır kırar. */
.th-tool-grid > *, .th-tool-card .card-body { min-width: 0; }
.th-copy-stack, .th-radio-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.th-copy-stack label code, .th-radio-grid label code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; overflow-x: visible; }
.th-tool-card p, .th-tool-card li { overflow-wrap: anywhere; }
