/* ============================================================================
   MONARC — UYUM KATMANI

   Iki isi var:

   A) Sablonda OLMAYIP bizde gereken kabuk parcalari
      (sidebar sorgu aramasi, bildirim acilir kutusu, kullanici menusu,
      alt bilgi...). Bunlar Monarc'in kendi belirtecleriyle yazildi.

   B) KOPRU: 61 sayfanin isaretlemesi hala eski sinif sozlugunu kullaniyor
      (.form-control, .card-body, .btn-primary, .row/.col-*, .alert ...).
      Sayfalar tek tek Monarc sozlugune cevrilene kadar bu kurallar onlari
      yeni tasarim dilinde gosterir; boylece gecis sirasinda hicbir sayfa
      bicimsiz kalmaz. Bir sayfa cevrildikce buradaki karsiligi silinebilir.

   monarc.css'ten SONRA yuklenir.
   ========================================================================== */

/* ==========================================================================
   A) KABUK EKLERI
   ========================================================================== */

/* ---- Sidebar sorgu aramasi (56 sorgu tipi icin) ---- */
.side-search {
  position: relative;
  margin-top: 14px;
}
.side-search > svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--ink-4);
  pointer-events: none;
}
.side-search input {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 32px;
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.side-search input::placeholder { color: var(--ink-4); }
.side-search input:focus {
  border-color: var(--accent);
  box-shadow: var(--ring);
  background: var(--surface-3);
}
.side-search__clear {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--ink-4);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.side-search__clear:hover { color: var(--ink); background: var(--surface-3); }
.side-search__clear svg { width: 12px; height: 12px; }

.shell.is-collapsed .side-search { display: none; }

/* Arama suzgeci acikken bolum basliklari gizlenir (JS hidden veriyor) */
.side-noresult {
  padding: 26px 12px;
  text-align: center;
  color: var(--ink-4);
}
.side-noresult svg { width: 20px; height: 20px; margin-bottom: 7px; }
.side-noresult p { font-size: 12px; }

/* ---- Sidebar: tekil (alt menusuz) baglantilar ---- */
.side-nav > .nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: background 0.18s, color 0.18s;
}
.side-nav > .nav-link:hover { background: var(--surface-2); color: var(--ink); }
.side-nav > .nav-link > svg { width: 17px; height: 17px; color: var(--ink-3); flex: 0 0 auto; }
.side-nav > .nav-link:hover > svg { color: var(--ink-2); }
.side-nav > .nav-link .np-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav > .nav-link.is-active {
  background: linear-gradient(90deg, var(--accent-soft), transparent 90%);
  color: var(--ink);
  font-weight: 650;
}
.side-nav > .nav-link.is-active > svg { color: var(--accent-text); }

/* ---- Sidebar kullanici satiri: profil linki + ayar dugmesi yan yana ---- */
.who-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  color: inherit;
}
.who-link .meta { min-width: 0; line-height: 1.3; }
.who-link .meta strong { display: block; font-size: 12.5px; font-weight: 650; }
.who-link .meta span { color: var(--ink-3); font-size: 11px; }
.shell.is-collapsed .who-link .meta { display: none; }

/* ---- Topbar: komut paleti tetikleyicisi (arama kutusu gorunumunde) ---- */
.search--btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 260px;
  height: 38px;
  padding: 0 11px;
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--ink-4);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.search--btn:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--ink-2); }
.search--btn > svg { width: 15px; height: 15px; color: var(--ink-3); flex: 0 0 auto; }
.search--btn > span { flex: 1; }
.search--btn .k { flex: 0 0 auto; padding: 2px 6px; font-size: 9.5px; }

@media (max-width: 900px) {
  .search--btn { width: 38px; padding: 0; justify-content: center; }
  .search--btn > span, .search--btn .k { display: none; }
}

/* ---- Topbar acilir menuler (bildirim + kullanici) ---- */
.mn-drop { position: relative; }
.mn-drop__pop {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 60;
  min-width: 214px;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.mn-drop.is-open > .mn-drop__pop { opacity: 1; visibility: visible; transform: none; }

.mn-drop__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: background 0.16s, color 0.16s;
}
.mn-drop__item:hover { background: var(--surface-2); color: var(--ink); }
.mn-drop__item i { width: 16px; font-size: 13px; color: var(--ink-3); text-align: center; }
.mn-drop__item:hover i { color: var(--accent-text); }
.mn-drop__sep { height: 1px; margin: 6px 4px; background: var(--line); }

/* Kullanici dugmesi */
.who-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 9px 0 5px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.who-btn:hover { background: var(--surface-2); border-color: var(--line); }
.who-btn .avatar { width: 28px; height: 28px; border-radius: 9px; font-size: 10.5px; }
.who-btn__meta { line-height: 1.25; text-align: left; min-width: 0; }
.who-btn__meta strong { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink); }
.who-btn__meta span { font-size: 10.5px; color: var(--ink-3); }
.who-btn__chev svg { width: 13px; height: 13px; color: var(--ink-4); }

@media (max-width: 700px) {
  .who-btn__meta, .who-btn__chev { display: none; }
  .who-btn { padding: 0 5px; }
}

/* Bildirim zilindeki nokta */
.btn--icon.bell { position: relative; }
.btn--icon.bell .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg);
}

/* ---- Bildirim listesi ---- */
.ntf-pop { min-width: 320px; max-width: 360px; padding: 0; overflow: hidden; }
.ntf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.ntf-head strong { font-size: 13px; font-weight: 650; }
.ntf-head a { font-size: 11.5px; color: var(--accent-text); }
.ntf-empty { padding: 30px 16px; text-align: center; font-size: 12.5px; color: var(--ink-4); }
.ntf-item {
  display: flex;
  gap: 11px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s;
}
.ntf-item:last-child { border-bottom: 0; }
.ntf-item:hover { background: var(--surface-2); }
.ntf-item.unread { background: var(--accent-soft); }
.ntf-item.unread:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.ntf-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  font-size: 12px;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--ink-2);
}
.ntf-success { background: var(--green-soft); color: var(--green); }
.ntf-error   { background: var(--red-soft);   color: var(--red); }
.ntf-warning { background: var(--amber-soft); color: var(--amber); }
.ntf-body { min-width: 0; }
.ntf-title { font-size: 12.5px; font-weight: 650; color: var(--ink); }
.ntf-msg   { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.ntf-time  { font-size: 10.5px; color: var(--ink-4); margin-top: 4px; }

/* ---- Alt bilgi ---- */
.mn-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1280px;
  width: 100%;
  margin: 30px auto 0;
  padding: 18px 34px 22px;
  font-size: 11.5px;
  color: var(--ink-4);
  border-top: 1px solid var(--line);
}
.mn-footer .footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.mn-footer a { color: var(--ink-3); }
.mn-footer a:hover { color: var(--accent-text); }
.mn-footer .footer-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.mn-footer .footer-stat { display: inline-flex; align-items: center; gap: 6px; }
.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
}

@media (max-width: 700px) {
  .mn-footer { padding: 16px 18px 20px; justify-content: center; text-align: center; }
}

/* ==========================================================================
   B) ESKI SINIF KOPRUSU
   Sayfalar Monarc sozlugune cevrildikce bu bolum kuculecek.
   ========================================================================== */

/* ---- Form alanlari ---- */
.form-group { margin-bottom: 16px; }
.form-label,
.form-group > label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.form-control,
select.form-control,
textarea.form-control {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-control);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea.form-control { height: auto; min-height: 104px; padding: 13px 15px; line-height: 1.6; resize: vertical; }
.form-control::placeholder { color: var(--ink-4); }
.form-control:hover { border-color: var(--line-3); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: var(--ring);
  background: var(--surface-2);
}
.form-control:disabled { opacity: 0.55; cursor: not-allowed; }

select.form-control {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-text, .form-hint { margin-top: 6px; font-size: 11.5px; color: var(--ink-4); }

/* Sifre goster/gizle dugmesi */
.input-group { position: relative; }
.input-group > .form-control { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink-3);
  background: none;
  border: 0;
  border-radius: var(--r-xs);
  cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: var(--surface-2); }

/* ---- Butonlar ----
   DIKKAT: `.btn`, `.card`, `.badge`, `.table` gibi TEMEL siniflar sablonun
   malidir ve monarc.css'te tanimlidir. Burada YENIDEN TANIMLANMAZ — bu
   dosya sonra yuklendigi icin sablonu ezer ve tam da istenmeyen sey olur
   (once .btn--primary'nin yuksekligi/hizalamasi bozulmustu).
   Burada yalnizca ESKI ad varyantlari (`.btn-primary` gibi tek tireli)
   sablonun gorunumune eslenir. */
.btn:disabled, .btn.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn i { font-size: 13px; }

.btn-primary {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(var(--hair), 0.34), 0 18px 38px -18px var(--accent-glow);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(var(--hair), 0.42), 0 26px 50px -18px var(--accent-glow); }

.btn-outline, .btn-secondary, .btn-ghost {
  color: var(--ink-2);
  background: transparent;
  border-color: var(--line-2);
}
.btn-outline:hover, .btn-secondary:hover, .btn-ghost:hover {
  color: var(--ink);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.btn-danger  { color: #fff; background: var(--red);   border-color: transparent; }
.btn-success { color: #fff; background: var(--green); border-color: transparent; }
.btn-warning { color: #0c111d; background: var(--amber); border-color: transparent; }
.btn-info    { color: #fff; background: var(--cyan);  border-color: transparent; }
.btn-danger:hover  { box-shadow: 0 20px 40px -18px rgba(245, 105, 122, 0.7); }
.btn-success:hover { box-shadow: 0 20px 40px -18px rgba(52, 211, 153, 0.7); }

.btn-outline-danger, .btn-danger-outline {
  color: var(--red);
  background: transparent;
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
}
.btn-outline-danger:hover, .btn-danger-outline:hover { background: var(--red-soft); }

.btn-sm  { height: 38px; padding: 0 17px; font-size: 12.5px; }
.btn-lg  { height: 52px; padding: 0 28px; font-size: 14.5px; }
.btn-block, .btn-full, .w-100 { width: 100%; }
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--r-control);
}

.btn-telegram { color: #fff; background: #2aabee; border-color: transparent; }
.btn-discord  { color: #fff; background: #5865f2; border-color: transparent; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Kartlar ----
   `.card` sablonun malidir (monarc.css), burada tanimlanmaz.
   Yalnizca eski alt parcalari (.card-header/.card-body/.card-footer)
   sablonun yuzeylerine uydurulur. */
.card + .card { margin-top: 16px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.card-title, .card-header h2, .card-header h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.card-body { padding: 24px; }
.card-footer { padding: 18px 24px; border-top: 1px solid var(--line); }

/* ---- Sayfa basligi ---- */
.page-header {
  margin-bottom: 22px;
}
.page-header h1, .page-header h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.page-header p { margin-top: 5px; font-size: 13px; color: var(--ink-3); }

/* ---- Izgara (Bootstrap kalintisi) ---- */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.row > [class*="col-"] { flex: 1 1 0; min-width: 0; }
.col-12, .col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-6  { flex: 1 1 calc(50% - 8px);     min-width: 260px; }
.col-md-4  { flex: 1 1 calc(33.333% - 11px); min-width: 230px; }
.col-md-3  { flex: 1 1 calc(25% - 12px);    min-width: 200px; }
.col-md-8  { flex: 1 1 calc(66.666% - 8px); min-width: 280px; }
.col-md-9  { flex: 1 1 calc(75% - 8px);     min-width: 300px; }
.g-3 { gap: 16px; }

@media (max-width: 700px) {
  .row > [class*="col-"] { flex: 1 1 100%; min-width: 0; }
}

/* ---- Tablolar ---- */
.table-container, .table-responsive {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.table-striped tbody tr:nth-child(odd) td { background: rgba(var(--hair), 0.018); }

/* ---- Uyari kutulari ---- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 17px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--ink-2);
}
.alert i { margin-top: 2px; flex: 0 0 auto; }
.alert-danger  { color: var(--red);   background: var(--red-soft);   border-color: color-mix(in srgb, var(--red) 32%, transparent); }
.alert-success { color: var(--green); background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 32%, transparent); }
.alert-warning { color: var(--amber); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 32%, transparent); }
.alert-info    { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-line); }

/* ---- Yardimci siniflar ---- */
.text-muted     { color: var(--ink-3); }
.text-secondary { color: var(--ink-2); }
.text-danger    { color: var(--red); }
.text-success   { color: var(--green); }
.text-warning   { color: var(--amber); }
.text-center    { text-align: center; }
.text-right     { text-align: right; }
.d-flex         { display: flex; }
.d-none         { display: none; }
.align-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.flex-wrap      { flex-wrap: wrap; }
.gap-2          { gap: 8px; }
.gap-3          { gap: 12px; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 650; }
.fw-700 { font-weight: 700; }

.m-0  { margin: 0; }
.mt-0 { margin-top: 0; }    .mb-0  { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }  .mb-8  { margin-bottom: 8px; }
.mt-12{ margin-top: 12px; } .mb-12 { margin-bottom: 12px; }
.mt-16{ margin-top: 16px; } .mb-16 { margin-bottom: 16px; }
.mt-20{ margin-top: 20px; } .mb-20 { margin-bottom: 20px; }
.mt-24{ margin-top: 24px; } .mb-24 { margin-bottom: 24px; }

/* ---- Rozetler (eski ton adlari) ---- */
.badge.tone-danger,  .badge-danger  { background: var(--red-soft);   color: var(--red);   border-color: color-mix(in srgb, var(--red) 34%, transparent); }
.badge.tone-warning, .badge-warning { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 34%, transparent); }
.badge.tone-info,    .badge-info    { background: var(--accent-soft);color: var(--accent-text); border-color: var(--accent-line); }
.badge.tone-success, .badge-success { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 34%, transparent); }

/* ---- Bos durum ---- */
.empty-state {
  padding: 48px 22px;
  text-align: center;
  color: var(--ink-3);
}
.empty-state h3 { font-family: var(--display); font-size: 16px; font-weight: 650; color: var(--ink); margin-bottom: 7px; }
.empty-state p { font-size: 13px; line-height: 1.6; max-width: 420px; margin: 0 auto; }
.state-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  font-size: 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-line);
}
.state-icon.tone-warning { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 32%, transparent); }
.state-icon.tone-danger  { background: var(--red-soft);   color: var(--red);   border-color: color-mix(in srgb, var(--red) 32%, transparent); }

/* ---- Icerik tipografisi (sayfa govdesi) ---- */
.content h1, .content h2, .content h3, .content h4 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.content h1 { font-size: 22px; }
.content h2 { font-size: 18px; }
.content h3 { font-size: 15.5px; }
.content h4 { font-size: 14px; }
.content p  { line-height: 1.65; }

/* ---- Mobil alt sekme cubugu ----
   ONEMLI: masaustunde GIZLI olmali. Eski system.css'te temel kural
   ".tabbar { display:none }" idi ve yalnizca dar ekranda aciliyordu;
   o dosya artik yuklenmedigi icin kural burada yeniden kuruldu. */
.tabbar { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 992px) {
  .tabbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 880;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-top: 1px solid var(--line);
    backdrop-filter: saturate(170%) blur(18px);
    -webkit-backdrop-filter: saturate(170%) blur(18px);
  }
  .tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    padding: 6px 2px;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-3);
    border-radius: var(--r-sm);
    transition: color 0.18s, background 0.18s;
  }
  .tabbar-item.active { color: var(--accent-text); background: var(--accent-soft); }
  .tabbar-icon { position: relative; font-size: 16px; line-height: 1; }
  .tabbar-badge {
    position: absolute;
    top: -5px;
    right: -9px;
    min-width: 15px;
    padding: 0 4px;
    font-size: 9px;
    font-weight: 700;
    line-height: 15px;
    color: #fff;
    background: var(--red);
    border-radius: 99px;
  }
  /* Sekme cubugu icerigin altini kapatmasin */
  .main { padding-bottom: 68px; }
}

/* ==========================================================================
   Kucuk ekran duzeltmeleri
   ========================================================================== */
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .shell.is-nav-open .sidebar { transform: none; }
  .main { margin-left: 0; }
  .shell.is-collapsed .main { margin-left: 0; }
  .content { padding: 22px 18px 0; }
}

/* ==========================================================================
   D) KIMLIK EKRANI EKLERI
   Sablonun login.html'i captcha, sifre guc olceri ve sunucu hata kutusu
   icermiyordu; bizde var. Ayni dilde yazildi.
   ========================================================================== */

/* ---- Sunucu hata / bilgi kutusu ---- */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 15px;
  font-size: 12.5px;
  line-height: 1.55;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink-2);
}
.auth-alert svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.auth-alert.is-error { color: var(--red);   background: var(--red-soft);   border-color: color-mix(in srgb, var(--red) 34%, transparent); }
.auth-alert.is-ok    { color: var(--green); background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 34%, transparent); }

/* ---- Goz dugmesi acikken ---- */
.eye.is-on { color: var(--accent-text); }

/* ---- Dogrulama kodu alani ---- */
.control--captcha { display: flex; align-items: center; gap: 9px; padding-left: 0; }
.control--captcha > .input { flex: 1; padding-left: 15px; }
.captcha-code {
  flex: 0 0 auto;
  padding: 0 15px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-control);
  user-select: none;
}
.captcha-refresh {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-control);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.captcha-refresh:hover { color: var(--ink); border-color: var(--line-3); }
.captcha-refresh svg { width: 15px; height: 15px; }
.captcha-refresh.is-spin svg { animation: mnSpin 0.7s linear infinite; }
@keyframes mnSpin { to { transform: rotate(360deg); } }

/* ---- Sifre guc gostergesi ---- */
.pw-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 9px;
}
.pw-strength span {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-4);
  transition: background 0.25s, box-shadow 0.25s;
}
.pw-strength span.active.weak    { background: var(--red); }
.pw-strength span.active.medium  { background: var(--amber); }
.pw-strength span.active.strong  { background: var(--accent); }
.pw-strength span.active.perfect { background: var(--green); }

.pw-strength-text {
  margin-top: 6px;
  min-height: 15px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-4);
}
.pw-strength-text.is-weak    { color: var(--red); }
.pw-strength-text.is-medium  { color: var(--amber); }
.pw-strength-text.is-strong  { color: var(--accent-text); }
.pw-strength-text.is-perfect { color: var(--green); }

.pw-match {
  margin-top: 7px;
  min-height: 15px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-4);
}
.pw-match.is-ok  { color: var(--green); }
.pw-match.is-bad { color: var(--red); }

/* ---- Bagli hesap ipucu ---- */
.auth-hint {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.55;
  text-align: center;
  color: var(--ink-4);
}
.auth-hint strong { color: var(--ink-3); }

/* ---- Gonderim sirasinda buton ---- */
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading .arr-chip { opacity: 0; }
.btn.is-loading .spinner { display: block; }

/* Sablonda .auth-flip bir <button>; bizde gercek bir baglanti (ayri rota) */
a.auth-flip { display: grid; place-items: center; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .pw-strength span, .captcha-refresh.is-spin svg { transition: none; animation: none; }

  /* ---- Kart cevirme animasyonu KORUNUR ----
     Sablon iki yerde bu animasyonu olduruyordu:
       satir 1657:  *, *::before, *::after { transition-duration: .001s !important }
       satir 2165:  .auth-card__inner { transition-duration: .001s }
     Bu makinede tarayici "prefers-reduced-motion: reduce" bildirdigi icin
     kart 180 derece DONMUYOR, aninda degisiyordu — kullanicinin sikayeti
     tam olarak buydu. Cevirme kullanicinin KENDI tetikledigi, beklenen bir
     hareket oldugu icin burada geri aciliyor (sablondan biraz kisa tutuldu).
     Sayfa acilisindaki kendiliginden animasyonlar kapali kalmaya devam eder. */
  .auth-card__inner { transition-duration: 0.7s !important; }
}

/* ==========================================================================
   E) ANASAYFA — sablonda karsiligi olmayan parcalar
   Anasayfa artik sablonun sozluguyle yazildi (.stats/.card.stat/.grid-2/
   .card__head/.table/.pill/.legend/.chips). Asagidakiler sablonun 6 demo
   sayfasinda hic bulunmayan, bize ozel bilesenler.
   ========================================================================== */

/* Duyuru serisi */
.note-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  margin-bottom: 16px;
  border-color: var(--accent-line);
}
.note-card__ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-line);
}
.note-card__ico svg { width: 17px; height: 17px; }
.note-card h3 { font-family: var(--display); font-size: 14.5px; font-weight: 650; }
.note-card p { margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }

/* Hizli sorgu kisayollari (.chips uzerine) */


/* Olcum cubugu — gunluk hak ve dagilim icin */
.meter {
  height: 5px;
  margin-top: 7px;
  border-radius: 99px;
  background: var(--surface-4);
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--grad-accent);
  transition: width 0.6s var(--ease);
}
.meter.is-warn > span { background: linear-gradient(180deg, var(--amber), #c98a1e); }
.meter.is-full > span { background: linear-gradient(180deg, var(--red), #c9414f); }

/* Gunluk hak listesi */
.quota { display: flex; flex-direction: column; gap: 15px; margin-top: 16px; }
.quota li { list-style: none; }
.quota__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.quota__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quota__num { font-size: 11.5px; color: var(--ink-3); flex: 0 0 auto; }

.quota-free {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
}
.quota-free svg { width: 26px; height: 26px; color: var(--accent-text); flex: 0 0 auto; }
.quota-free strong { display: block; font-size: 14px; font-weight: 650; color: var(--ink); }

/* Kontrol listesi — guvenlik ve kurallar */
.checks { display: flex; flex-direction: column; margin-top: 14px; }
.checks li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.checks li:last-child { border-bottom: 0; }
.checks li > svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--ink-3); }
.checks li > div { flex: 1; min-width: 0; }
.checks strong { display: block; font-size: 13px; font-weight: 650; color: var(--ink); }
.checks .sub { margin-top: 3px; display: block; }
.checks li > .btn { flex: 0 0 auto; align-self: center; }
.checks li.is-ok   > svg { color: var(--green); }
.checks li.is-off  > svg { color: var(--amber); }
.checks li.is-warn > svg { color: var(--amber); }
.checks li.is-info > svg { color: var(--accent-text); }

/* Kurallar — katlanabilir kart */
.rules { padding: 0; }
.rules > summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  border-bottom: 1px solid transparent;
}
.rules > summary::-webkit-details-marker { display: none; }
.rules[open] > summary { border-bottom-color: var(--line); }
.rules__chev { color: var(--ink-4); transition: transform 0.28s var(--ease); }
.rules__chev svg { width: 15px; height: 15px; }
.rules[open] .rules__chev { transform: rotate(180deg); }
.rules .checks { margin: 0; padding: 4px 24px 18px; }

/* Alan grafigi: nokta ve gun etiketleri (sablonun grafigine ek) */
.chart-dot { fill: var(--accent); opacity: 0.75; }
.chart-dot.is-today { fill: var(--cyan); opacity: 1; }
.chart-x { fill: var(--ink-4); font-size: 11px; font-family: var(--font); }

/* Tablo icindeki ikon rozeti */
.table .avatar svg { width: 15px; height: 15px; }

/* ---- Kart dolgusu ----
   ONEMLI: sablonda `.card` KENDI BASINA dolgusuzdur; dolguyu baglam verir
   (`.grid-2 > .card { padding: 24px }`, `.stat { padding: 22px }`).
   Bu yuzden burada negatif marj KULLANILMAZ — denendi ve dolgusuz
   kartlarda icerigi kartin disina tasiyip sayfanin alt yarisini
   goruntulenemez hale getirdi. Ayrimi dolgu ve alt cizgi ile yapiyoruz. */

/* Izgara disinda, dogrudan icerikte duran kartlar */
.content > .card { padding: 24px; }

/* Baslik ile govde arasi ayrim */
.card__head + * { margin-top: 18px; }
.grid-2 > .card > .card__head,
.content > .card > .card__head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }

/* Dolgusuz kartlarda (.row/.col icindeki eski kartlar) baslik kendi dolgusunu tasir;
   dolgulu kartlarda (.content > .card, .grid-2 > .card) yalnizca alt cizgi. */
.card > .card__head { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.card > .card__head + .card-body { padding-top: 20px; }
.content > .card > .card__head, .grid-2 > .card > .card__head { padding: 0 0 16px; }
.card__head h3, .card__head h4, .card__head h5, .card__head h6,
.card-header h4, .card-header h5, .card-header h6 { font-family: var(--display); font-size: 15px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); margin: 0; }
.card__head h3 i, .card__head .fas, .card__head .fab { color: var(--accent-text); margin-right: 6px; font-size: 13px; }
.card__head > .btn, .card__head > form, .card__head > .pill, .card__head > .badge { flex: 0 0 auto; }

/* select/textarea .input olarak isaretlenirse */
select.input { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
textarea.input { height: auto; min-height: 104px; padding: 13px 15px; line-height: 1.6; resize: vertical; }

/* Yonetim ozet kartlarindaki degisim satiri */
.stat-change { margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* Tablo karti: baslik dolgulu, tablo kenardan kenara */
.table-card { padding: 0 !important; overflow: hidden; }
/* Satir 930'daki `.content > .card > .card__head` (ozgulluk 0,3,0) bu kurali
   (0,2,0) EZIYORDU: tablo kartinin basligi kartin kenarinda duruyor, tablo
   hucreleri ise 24px iceride basliyordu -> baslik ile sutun basliklari
   arasinda 24px kayma. Ozgulluk esitlenip gecildi. */
.content > .card.table-card > .card__head,
.grid-2 > .card.table-card > .card__head,
.table-card > .card__head { padding: 20px 24px; border-bottom: 0; }
.table-card > .card__head + * { margin-top: 0; }
.table-card .empty { padding-bottom: 40px; }

/* ==========================================================================
   F) SORGU SAYFASI — 56 sorgu tipinin TAMAMI bu sayfayi kullanir
   Sablonun queries.html'i tek bir SQL konsolu gosteriyordu; bizde her
   sorgu tipinin kendi alanlari var. Form sablonun .field/.control/.input
   diliyle kuruldu, asagidakiler o dile eklenen parcalar.
   ========================================================================== */

/* Alan izgarasi — sablondaki .query-grid (300px 1fr) bir yerlesim
   izgarasidir, form alanlari icin degil; bu yuzden ayri tutuldu. */
.qfields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin-top: 18px;
}
.qfields .field { margin-top: 0; }

/* Zorunlu alan yildizi */
.req { color: var(--red); margin-left: 2px; }

/* GSM alani: sabit "0" oneki */
.control--gsm { display: flex; align-items: center; padding-left: 0; }
.control--gsm .gsm-prefix {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  align-self: stretch;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  background: var(--surface-3);
  border-right: 1px solid var(--line-2);
  border-radius: var(--r-control) 0 0 var(--r-control);
}
.control--gsm .input { padding-left: 13px; }

/* Alan hatasi */
.field-error {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--red);
}
.field-group.has-error .input { border-color: var(--red); }
.field-group.has-error .input:focus { box-shadow: 0 0 0 3px rgba(245, 105, 122, 0.2); }

/* Gecmis oneri cipleri (alan altinda) */
.recent-chips { margin-top: 8px; gap: 6px; }
.recent-chips .chip { font-size: 11.5px; padding: 5px 10px; cursor: pointer; }

/* Form dugmeleri */
.query-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* "Nasil kullanilir" adimlari */
.steps { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.steps li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.steps__no {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 9px;
}
.steps strong { display: block; font-size: 13px; font-weight: 650; color: var(--ink); }
.steps .sub { margin-top: 3px; display: block; }

/* Hiz siniri: sorgula dugmesi sogumada — kalan saniye dugmenin icinde */
.btn.is-cooldown { pointer-events: none; filter: saturate(0.4); opacity: 0.85; }
.btn .rl-count { margin-left: 4px; padding: 2px 8px; font-family: var(--mono); font-size: 11px; border-radius: 99px; background: rgba(0, 0, 0, 0.28); color: #fff; font-variant-numeric: tabular-nums; }

/* Sorgu karti: baslik ve form ayrimi */
.query-card > .card__head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }

/* Tanitim bolumu ile form arasi nefes payi */
.q-intro { margin-top: 16px; }

/* ---- Sonuc gorunumu (assets/js/result-view.js ve sorgu.php uretir) ----
   Sorgunun asil ciktisi burasi; sablonun .table/.pill diliyle. */
#resultArea { margin-top: 16px; }
#resultArea > .card { padding: 0; overflow: hidden; }

.result-body { display: flex; flex-direction: column; }

.result-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.result-search { flex: 1; min-width: 180px; height: 38px; font-size: 13px; }

.result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}
.result-foot .btn { flex: 0 0 auto; }

/* Indirme menusu */
.dl-menu { position: relative; }
.dl-caret { margin-left: 4px; font-size: 10px; }
.dl-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 170px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}
.dl-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--ink-2);
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.dl-item:hover { background: var(--surface-2); color: var(--ink); }

/* Sonuc tablosunda acilabilir satir */
.table tr.is-expandable { cursor: pointer; }
.table tr.is-expanded td { background: var(--surface-2); }


/* Sonuc sayisi */
.result-count { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Yukleniyor iskeleti — sorgu calisirken gosterilir */
.result-skeleton { padding: 20px; display: flex; flex-direction: column; gap: 11px; }
.skeleton-line {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: mnSkeleton 1.4s ease infinite;
}
.skeleton-line:nth-child(odd)  { width: 100%; }
.skeleton-line:nth-child(even) { width: 78%; }
@keyframes mnSkeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (prefers-reduced-motion: reduce) {
  .skeleton-line { animation: none; }
}

/* ==========================================================================
   G) SAYFA BASLIGI TEKRARI
   Baslik artik topbar'da; icerikteki eski .page-header'in h1/p'si gizlenir,
   icindeki eylem dugmeleri (ornek: "Satin Aldiklarim") kalir.
   ========================================================================== */
.page-header > h1, .page-header > div > h1, .page-header > p, .page-header > div > p { display: none; }
.page-header { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.page-header:empty, .page-header:not(:has(a, button, .btn, .pill, span)) { display: none; }

/* ==========================================================================
   H) MARKET — sablonun .card/.stat__icon/.trend/.btn dili
   ========================================================================== */
.mk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.mk-toolbar .chip { gap: 7px; }
.mk-toolbar .chip svg { width: 14px; height: 14px; }
.mk-toolbar > .pill { flex: 0 0 auto; white-space: nowrap; }
/* Kurdele sag ust koseyi kaplar; indirim cipi onun altina girmesin */
.mk:has(.mk__ribbon) .mk__top { padding-right: 64px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.mk { position: relative; display: flex; flex-direction: column; padding: 22px; overflow: hidden; transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.3s; }
.mk:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent-line); }
.mk--deal::before { content: ""; position: absolute; inset: -40% auto auto -20%; width: 70%; height: 80%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.18), transparent); pointer-events: none; }
.mk__ribbon {
  position: absolute; top: 14px; right: -34px; transform: rotate(38deg);
  padding: 4px 40px; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--grad-accent); box-shadow: 0 6px 16px -8px var(--accent-glow);
}
.mk__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mk__name { font-family: var(--display); font-size: 16px; font-weight: 650; letter-spacing: -0.015em; }
.mk__desc { margin-top: 6px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.mk__price { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.mk__now { font-size: 26px; letter-spacing: -0.035em; }
.mk__old { font-size: 12px; color: var(--ink-4); text-decoration: line-through; }
.mk__feats { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 20px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.mk__feats li { list-style: none; display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); }
.mk__feats svg { width: 14px; height: 14px; color: var(--accent-text); flex: 0 0 auto; }
.mk__action { margin-top: auto; }
.mk__short { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 12px; color: var(--amber); }
.mk__short svg { width: 13px; height: 13px; }

/* ==========================================================================
   I) ILETISIM — kanal kartlari
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.contact { position: relative; display: flex; flex-direction: column; padding: 22px; overflow: hidden; transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease); }
.contact:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.contact__glow { position: absolute; inset: auto -30% -50% auto; width: 80%; height: 90%; border-radius: 50%; filter: blur(50px); opacity: 0.35; pointer-events: none; }
.contact--discord .contact__glow { background: #5865f2; }
.contact--telegram .contact__glow { background: #2aabee; }
.contact--discord .stat__icon { color: #8b95ff; background: rgba(88, 101, 242, 0.16); border-color: rgba(88, 101, 242, 0.4); }
.contact--telegram .stat__icon { color: #5ec4ff; background: rgba(42, 171, 238, 0.16); border-color: rgba(42, 171, 238, 0.4); }
.contact__title { margin-top: 16px; font-family: var(--display); font-size: 16px; font-weight: 650; }
.contact__desc { margin: 6px 0 18px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); flex: 1; }

/* ==========================================================================
   J) PROFIL SEKMELERI — sablonun .seg (bolumlu kontrol) gorunumu
   ========================================================================== */
.tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 18px; background: rgba(var(--hair), 0.025); border: 1px solid var(--line-2); border-radius: var(--r-btn); }
.tabs .tab { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--ink-3); background: none; border: 0; border-radius: var(--r-btn); cursor: pointer; transition: color 0.2s, background 0.25s, box-shadow 0.25s; }
.tabs .tab:hover { color: var(--ink); }
.tabs .tab.is-on { color: #fff; background: linear-gradient(180deg, var(--accent-top), var(--accent-bot)); box-shadow: inset 0 1px 0 rgba(var(--hair), 0.28), 0 8px 18px -10px var(--accent-glow); }
.tabs .tab i { font-size: 11px; }

/* ==========================================================================
   K) SOL ALT BLOK — bakiye karti + kullanici satiri (ozgun dokunus)
   Sablondaki "Kurumsal Paket" kartinin yerine: canli bakiye, ince isik
   suzmesi (sheen), rol rozeti ve cevrimici halkasi.
   ========================================================================== */
.side-user { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-plan {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 12px 12px 11px;
  color: var(--ink); text-align: left; text-decoration: none; overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--cyan-rgb), 0.06) 60%, transparent), var(--surface-2);
  border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(var(--hair), 0.06), 0 14px 30px -22px var(--accent-glow);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.side-plan::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(var(--hair), 0.09), transparent);
  transform: skewX(-18deg); transition: left 0.9s var(--ease);
}
.side-plan:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), 0.6); box-shadow: inset 0 1px 0 rgba(var(--hair), 0.08), 0 18px 36px -20px var(--accent-glow); }
.side-plan:hover::after { left: 130%; }
.side-plan .sp-ico { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--grad-accent); box-shadow: inset 0 1px 0 rgba(var(--hair), 0.3), 0 8px 18px -10px var(--accent-glow); }
.side-plan .sp-ico svg { width: 15px; height: 15px; }
.side-plan .sp-meta { flex: 1; min-width: 0; line-height: 1.25; }
.side-plan .sp-meta strong { display: block; font-family: var(--display); font-size: 14px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.side-plan .sp-meta span { display: block; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-plan > svg { width: 13px; height: 13px; color: var(--accent-text); flex: 0 0 auto; transition: transform 0.25s var(--ease); }
.side-plan:hover > svg { transform: translateX(3px); }

.who { padding: 6px 4px 6px 6px; }
.who .avatar { position: relative; width: 34px; height: 34px; border-radius: 11px; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad-accent); box-shadow: inset 0 1px 0 rgba(var(--hair), 0.3), 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent-line); }
.who .avatar::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--surface); box-shadow: 0 0 8px var(--green); }
.who-link .meta strong { font-family: var(--display); letter-spacing: -0.01em; }
.who-link .meta span { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 1px 7px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 99px; }
.shell.is-collapsed .side-plan { display: none; }
.shell.is-collapsed .who { justify-content: center; }

/* ==========================================================================
   O) DENETIM DUZELTMELERI
   ========================================================================== */
/* Eski legacy .row > * dolgu/marji compat .row gap'ine ekleniyordu (28px) */
.row > * { padding-inline: 0; margin-top: 0; }
/* .col-lg-* hic tanimli degildi */
.col-lg-3 { flex: 1 1 calc(25% - 12px);    min-width: 200px; }
.col-lg-4 { flex: 1 1 calc(33.333% - 11px); min-width: 230px; }
.col-lg-5 { flex: 1 1 calc(41.666% - 8px); min-width: 260px; }
.col-lg-6 { flex: 1 1 calc(50% - 8px);     min-width: 260px; }
.col-lg-7 { flex: 1 1 calc(58.333% - 8px); min-width: 300px; }
.col-lg-8 { flex: 1 1 calc(66.666% - 8px); min-width: 280px; }
.col-lg-12, .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
.col-xl-4 { flex: 1 1 calc(33.333% - 11px); min-width: 230px; }
.col-xl-6 { flex: 1 1 calc(50% - 8px); min-width: 260px; }
/* Topbar alt basligi bos ise yer kaplamasin */
.topbar__title > span[hidden] { display: none; }

/* ---- Tek yuzlu kimlik karti (sifremi unuttum / sifirlama / 2FA) ---- */
.auth-card.is-single .auth-face--single { position: relative; transform: none; }
.auth-face--single .auth-form { display: flex; flex-direction: column; }
.auth-hint--left { text-align: left; margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.auth-resend { margin-top: 14px; text-align: center; }
.auth-resend .link { background: none; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; }
.auth-steps { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.auth-steps li { flex: 1; display: flex; align-items: center; gap: 7px; padding: 8px 10px; font-size: 11.5px; font-weight: 600; color: var(--ink-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.auth-steps li span { display: grid; place-items: center; width: 18px; height: 18px; font-family: var(--mono); font-size: 10px; border-radius: 6px; background: var(--surface-3); color: var(--ink-3); }
.auth-steps li span svg { width: 11px; height: 11px; }
.auth-steps li.is-active { color: var(--ink); border-color: var(--accent-line); background: var(--accent-soft); }
.auth-steps li.is-active span { background: var(--grad-accent); color: #fff; }
.auth-steps li.is-done { color: var(--ink-2); }
.auth-steps li.is-done span { background: var(--green-soft); color: var(--green); }
.auth-channels { gap: 10px; }
.auth-channel { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); cursor: pointer; transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s; }
.auth-channel:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.auth-channel .stat__icon { width: 36px; height: 36px; }
.auth-channel__body { flex: 1; min-width: 0; line-height: 1.3; }
.auth-channel__body strong { display: block; font-size: 13.5px; font-weight: 650; }
.auth-channel__body span { font-size: 11.5px; color: var(--ink-3); }
.auth-channel > svg { width: 15px; height: 15px; color: var(--ink-4); }
.auth-channel--discord .stat__icon { color: #8b95ff; background: rgba(88,101,242,.16); border-color: rgba(88,101,242,.4); }
.auth-channel--telegram .stat__icon { color: #5ec4ff; background: rgba(42,171,238,.16); border-color: rgba(42,171,238,.4); }
.control--otp .input { padding-left: 15px; font-family: var(--mono); font-size: 24px; letter-spacing: 0.42em; text-align: center; height: 56px; }
.control--otp .input::placeholder { letter-spacing: 0.42em; color: var(--ink-4); }

/* ==========================================================================
   M) KIMLIK KARTI YUKSEKLIGI — KALICI COZUM
   Iki yuz (giris/kayit) ayni grid hucresinde durdugu icin kartin yuksekligi
   UZUN olan yuze (kayit) esitleniyor, giris yuzunun altinda bosluk kaliyordu.
   Cozum: yalnizca AKTIF yuz akista kalir ve yuksekligi belirler; pasif yuz
   mutlak konumda, ayni alani kaplar (donus animasyonu icin gerekli) ama
   kart yuksekligine katkida bulunmaz. Yukseklik gecisi monarc-auth.js'te
   olculup animasyonla uygulanir.
   ========================================================================== */
.auth-card__inner { position: relative; display: block; }
.auth-face { position: relative; }
.auth-card:not(.is-register) .auth-face--register,
.auth-card.is-register .auth-face--login {
  position: absolute; inset: 0; height: 100%; overflow: hidden; pointer-events: none;
}
.auth-card__inner.is-animating { transition: transform 0.85s cubic-bezier(0.65, 0.05, 0.15, 1), height 0.5s var(--ease); overflow: visible; }

/* ==========================================================================
   N) DURUM SAYFALARI — 403/404/500, yasakli, bakim, oturum, cikis, silindi
   Kimlik ekranlarinin zemini (.auth) uzerine tek kart. Eski .state-card
   sinifiyla cakismamasi icin .st-* on eki.
   ========================================================================== */
.st { align-items: center; }
.st__wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.st__brand { align-self: center; }
.st-card {
  position: relative; width: 100%; padding: 34px 32px 28px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--hair), 0.045), rgba(var(--hair), 0) 52%), var(--surface-2);
  border: 1px solid var(--line-2); border-radius: var(--r-2xl); box-shadow: var(--shadow-3);
  animation: fieldIn 0.6s var(--ease-out) both;
}
.st-card--wide { max-width: 640px; }
.st-card__glow { position: absolute; inset: -40% -20% auto; height: 70%; border-radius: 50%; filter: blur(70px); opacity: 0.35; pointer-events: none; background: var(--st-tone, var(--accent)); }
.st-card--accent { --st-tone: var(--accent); --st-soft: var(--accent-soft); --st-line: var(--accent-line); --st-ink: var(--accent-text); }
.st-card--danger { --st-tone: var(--red);    --st-soft: var(--red-soft);    --st-line: rgba(245,105,122,.4);  --st-ink: var(--red); }
.st-card--amber  { --st-tone: var(--amber);  --st-soft: var(--amber-soft);  --st-line: rgba(245,181,68,.4);   --st-ink: var(--amber); }
.st-card--green  { --st-tone: var(--green);  --st-soft: var(--green-soft);  --st-line: rgba(52,211,153,.4);   --st-ink: var(--green); }
.st-card > * { position: relative; }
.st-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 18px; color: var(--st-ink); background: var(--st-soft); border: 1px solid var(--st-line); box-shadow: inset 0 1px 0 rgba(var(--hair), 0.08), 0 18px 40px -22px var(--st-tone); }
.st-icon svg { width: 26px; height: 26px; }
.st-code { font-size: 72px; line-height: 1; letter-spacing: -0.06em; margin-bottom: 10px; background: linear-gradient(180deg, var(--ink), var(--st-ink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.st-kicker { margin-bottom: 12px; color: var(--st-ink); background: var(--st-soft); border-color: var(--st-line); }
.st-title { font-family: var(--display); font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.st-lead { margin: 8px auto 0; max-width: 440px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.st-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; text-align: left; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); }
.st-note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; color: var(--st-ink); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px; margin: 20px 0 0; }
.st-grid > div { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.st-grid dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.st-grid dd { margin-top: 5px; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.st-hint { margin-top: 12px; font-size: 12px; color: var(--ink-4); }
.st-timer { margin: 22px auto 0; max-width: 360px; }
.st-timer__txt { font-size: 12.5px; color: var(--ink-3); }
.st-timer__txt b { color: var(--ink); font-variant-numeric: tabular-nums; }
.st-timer__bar { height: 4px; margin-top: 8px; border-radius: 99px; background: var(--surface-4); overflow: hidden; }
.st-timer__bar > span { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--st-tone), var(--cyan)); transition: width 1s linear; }
.st-clock { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.st-clock > div { min-width: 82px; padding: 12px 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.st-clock b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.st-clock span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.st-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.st-contact { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.st-contact__lbl { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.st-contact__links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.st-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 99px; transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease); }
.st-link:hover { color: var(--ink); transform: translateY(-1px); }
.st-link svg { width: 14px; height: 14px; }
.st-link--discord:hover { border-color: rgba(88,101,242,.6); color: #8b95ff; }
.st-link--telegram:hover { border-color: rgba(42,171,238,.6); color: #5ec4ff; }
.st-foot { margin-top: 18px; font-size: 11.5px; color: var(--ink-4); }
@media (max-width: 600px) { .st-card { padding: 28px 20px 24px; } .st-code { font-size: 56px; } }

/* ==========================================================================
   L) OZGUN DOKUNUSLAR — topbar isik cizgisi + arka plan aurorasi
   ========================================================================== */
.topbar { position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad-line); opacity: 0.55; pointer-events: none; }
.main::before {
  content: ""; position: fixed; inset: -20% -10% auto auto; width: 60vw; height: 60vh; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.10), transparent 70%);
  filter: blur(40px);
}
.main > * { position: relative; z-index: 1; }
