/* ============================================================
   eHost.com.tr — App layer (layout shell + components)
   Layered on top of osdo-base.css
   ============================================================ */

:root {
  --ehost-yellow: #F5B81C;
  --ehost-blue:   #1E63E8;
  --chart-1: #154222;
  --chart-1-soft: #e6efe9;
  --chart-2: #2a7a44;
  --chart-2-soft: #d4e7da;
}

[data-theme="dark"] {
  --bg:        #0b1410;
  --surface:   #121d17;
  --surface-2: #1a2a22;
  --border:    #243a2f;
  --border-strong: #2f4d3e;
  --divider:   #1e2f25;

  --fg-1: #f3f6f4;
  --fg-2: #c5cfc9;
  --fg-3: #93a39b;
  --fg-4: #6c7d75;

  --brand-900: #2a7a44;
  --brand-800: #3da55c;
  --brand-700: #4eb86d;
  --brand-600: #6ec986;
  --brand-100: #1a2a22;
  --brand-50:  #162119;

  --success-bg: #0f2820;
  --error-bg:   #2a1414;
  --warning-bg: #2b2009;
  --info-bg:    #0e1a2c;

  --success-fg:    #4ade80;
  --error-fg:      #fca5a5;
  --error-fg-soft: #fecaca;
  --warning-fg:    #fcd34d;
  --info-fg:       #93c5fd;
  --success-border: #1e4a35;
  --error-border:   #5e1f1f;
  --warning-border: #4d3a10;
  --info-border:    #1e3a5e;

  --chart-1: #4eb86d;
  --chart-1-soft: #18301f;
}

body { background: var(--bg); color: var(--fg-1); margin: 0; }
* { box-sizing: border-box; }
a { color: var(--brand-800); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--fg-1); }
img, svg { display: block; max-width: 100%; }

/* -------- Layout shell -------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
.app[data-sidebar="collapsed"] { grid-template-columns: 64px 1fr; }

.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sidebar-logo {
  height: var(--topbar-h);
  display: flex; align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .topbar { background: rgba(18,29,23,0.85); }

.topbar-search { position: relative; flex: 1 1 480px; max-width: 480px; }
.topbar-search .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--fg-3); pointer-events: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;  /* glyph clamp — bazı icon font'lar 14'ten geniş render eder */
}
.topbar-search .icon svg { width: 16px; height: 16px; }
.topbar-search input {
  padding-left: 44px !important;  /* 14px (left) + 16px (icon) + 14px (gap) */
  -webkit-appearance: none;       /* webkit search input default reset */
  -moz-appearance: textfield;
}
.topbar-search input::-webkit-search-decoration,
.topbar-search input::-webkit-search-cancel-button,
.topbar-search input::-webkit-search-results-button,
.topbar-search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }

.main-col { display: flex; flex-direction: column; min-width: 0; }

.content {
  flex: 1;
  padding: 32px;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}
.content-wide { max-width: none; padding: 32px; }

.app-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 32px 40px;
  font-size: 13px;
  color: var(--fg-3);
}
.app-footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.app-footer-bottom {
  max-width: var(--content-max);
  margin: 24px auto 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-3);
}

/* -------- Common bits -------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-pad { padding: 24px; }
.card-pad-sm { padding: 16px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-header h3 { font-size: 15px; }
.card-body { padding: 20px; }
.card-body-flush { padding: 0; }

.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.grow { flex: 1; }
.center { display: flex; align-items: center; justify-content: center; }

.muted { color: var(--fg-3); }
.tiny { font-size: 12px; }
.eyebrow { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.divider { height: 1px; background: var(--border); }

/* -------- Inputs -------- */
.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 14px;
  color: var(--fg-1);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand-800);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-800) 22%, transparent);
}
.input::placeholder { color: var(--fg-4); }
.label {
  display: block; font-size: 13px; font-weight: 500; color: var(--fg-1); margin-bottom: 6px;
}
.help { font-size: 12px; color: var(--fg-3); margin-top: 6px; }

/* -------- Tables -------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  color: var(--fg-2);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr.row-clickable:hover td { background: var(--brand-50); cursor: pointer; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.btn-primary { background: var(--brand-800); color: #fff; }
.btn-primary:hover { background: var(--brand-900); text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--fg-1); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--fg-1); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn-destructive { background: var(--surface); color: #b91c1c; border-color: #fecaca; }
.btn-destructive:hover { background: #fef2f2; }
[data-theme="dark"] .btn-destructive { color: #fca5a5; border-color: #5e1f1f; background: var(--surface); }
[data-theme="dark"] .btn-destructive:hover { background: #2a1414; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg { padding: 11px 18px; font-size: 14px; }
.btn-icon { padding: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* -------- Pills / badges -------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; }
.pill-ok    { background: var(--success-bg); color: #15803d; } .pill-ok    .dot { background: var(--success); }
.pill-warn  { background: var(--warning-bg); color: #a16207; } .pill-warn  .dot { background: var(--warning); }
.pill-err   { background: var(--error-bg);   color: #b91c1c; } .pill-err   .dot { background: var(--error); }
.pill-info  { background: var(--info-bg);    color: #1d4ed8; } .pill-info  .dot { background: var(--info); }
.pill-stop  { background: var(--surface-2);  color: #374151; } .pill-stop  .dot { background: #9ca3af; }
[data-theme="dark"] .pill-ok   { color: #4ade80; }
[data-theme="dark"] .pill-warn { color: #fcd34d; }
[data-theme="dark"] .pill-err  { color: #fca5a5; }
[data-theme="dark"] .pill-info { color: #93c5fd; }
[data-theme="dark"] .pill-stop { color: #c5cfc9; }

/* -------- Sidebar nav -------- */
.nav-section { padding: 12px 0; }
.nav-section-title {
  padding: 0 16px 8px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin: 1px 8px;
  border-radius: 8px;
  font-size: 13px; color: var(--fg-2);
  cursor: pointer; user-select: none;
  text-decoration: none;
  transition: background .15s ease-out, color .15s ease-out;
}
.nav-item:hover { background: var(--brand-50); color: var(--fg-1); text-decoration: none; }
.nav-item.active { background: var(--brand-100); color: var(--brand-800); font-weight: 600; }
/* Aktif öğe hover'da kendi stilini korur — üstüne gelince renk değiştirmesi
   (aktif bir öğe için) mantıksız/titrek duruyordu. */
.nav-item.active:hover { background: var(--brand-100); color: var(--brand-800); }
.nav-item .nav-label { flex: 1; }
.nav-item .nav-chev { margin-left: auto; transition: transform .15s; }
.nav-item.open .nav-chev { transform: rotate(180deg); }
.nav-sub { padding: 2px 8px 4px 38px; display: none; }
.nav-group.open .nav-sub { display: block; }
.nav-sub .nav-item { padding: 6px 10px; font-size: 13px; }

/* -------- Collapsed sidebar (icon-only) --------
   When .app[data-sidebar="collapsed"], hide labels/chevrons/sub-menus and
   center every icon in the 64px-wide rail. Also hide the bottom credit
   widget since it can't fit in 64px. */
.app[data-sidebar="collapsed"] .sidebar { width: 64px; }
.app[data-sidebar="collapsed"] .sidebar .osdo-logo .word,
.app[data-sidebar="collapsed"] .sidebar .ehost-logo .host,
.app[data-sidebar="collapsed"] .sidebar .ehost-logo .tld { display: none; }
.app[data-sidebar="collapsed"] .nav-item { justify-content: center; margin: 1px 6px; padding: 10px 0; gap: 0; }
.app[data-sidebar="collapsed"] .nav-item .nav-label,
.app[data-sidebar="collapsed"] .nav-item .nav-chev { display: none; }
.app[data-sidebar="collapsed"] .nav-sub { display: none !important; }
.app[data-sidebar="collapsed"] .sidebar > div:last-child { display: none; } /* hide credit widget */
.app[data-sidebar="collapsed"] .nav-item.active { background: var(--brand-100); color: var(--brand-800); }
/* Tooltip-style label on hover when collapsed */
.app[data-sidebar="collapsed"] .nav-item { position: relative; }
.app[data-sidebar="collapsed"] .nav-item[data-label]:hover::after {
  content: attr(data-label);
  position: absolute;
  left: 100%;
  margin-left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--fg-1);
  color: var(--surface);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

/* -------- Stat card -------- */
.stat {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat .stat-label { color: var(--fg-3); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.stat .stat-value { font-size: 28px; font-weight: 700; color: var(--fg-1); margin-top: 6px; line-height: 1.1; }
.stat .stat-meta { color: var(--fg-3); font-size: 12px; margin-top: 8px; }

/* -------- Tabs -------- */
.tabs { display: flex; border-bottom: 1px solid var(--border); gap: 4px; }
.tab {
  padding: 10px 14px;
  font-size: 13px; font-weight: 500; color: var(--fg-3);
  border: none; background: transparent; cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--fg-1); }
.tab.active { color: var(--brand-800); border-bottom-color: var(--brand-800); font-weight: 600; }

/* -------- Toggle / switch -------- */
.switch {
  position: relative; display: inline-block;
  width: 36px; height: 20px;
  background: var(--surface-2); border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border);
  transition: background .15s;
}
.switch::after {
  content: ''; position: absolute; left: 2px; top: 1px;
  width: 16px; height: 16px; background: #fff; border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: transform .15s ease-out;
}
.switch[aria-checked="true"] { background: var(--brand-800); border-color: var(--brand-800); }
.switch[aria-checked="true"]::after { transform: translateX(16px); border-color: var(--brand-800); }

/* -------- Progress bar -------- */
.bar { width: 100%; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand-800); border-radius: 999px; }
.bar.warn > span { background: var(--warning); }
.bar.err  > span { background: var(--error); }

/* -------- Avatar -------- */
.avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-800);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 12px; letter-spacing: 0.02em;
  border: 1px solid var(--border);
}

/* -------- Modal -------- */
.scrim {
  position: fixed; inset: 0; background: rgba(17,24,39,0.4);
  display: none; align-items: center; justify-content: center;
  z-index: 200;
  padding: 32px;
}
.scrim.open { display: flex; }
[data-theme="dark"] .scrim { background: rgba(0,0,0,0.6); }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 520px;
  max-height: calc(100vh - 64px);
  overflow: auto;
  box-shadow: var(--elev-float);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 16px; }
.modal-body { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

/* -------- Empty state -------- */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--fg-3);
}
.empty-icon { color: var(--brand-800); margin-bottom: 16px; display: inline-flex; }
.empty h3 { color: var(--fg-1); margin-bottom: 6px; }

/* -------- Dropdown menu -------- */
.dd { position: relative; display: inline-block; }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--elev-float);
  min-width: 200px; padding: 8px; z-index: 50;
  display: none;
}
.dd.open .dd-menu { display: block; }

/* -------- Logo -------- */
/* -------- osdo cloud lockup (partials/logo.tpl) --------
   Sizing mirrors the site's brand component: the include's `size` sets the
   container font-size; the mark is 1em, the wordmark 0.62em, gap 0.3em. */
.osdo-logo {
  display: inline-flex; align-items: center; gap: 0.3em;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg-1);
  white-space: nowrap;
}
.osdo-logo .osdo-mark { width: 1em; height: 1em; flex: 0 0 auto; display: block; }
.osdo-logo .word { font-size: 0.62em; }
.osdo-logo .sub { font-weight: 500; color: var(--fg-3); }
/* Dark surfaces: drop the forest tile + its cut-out, leaving the lime glyph. */
[data-theme="dark"] .osdo-logo .osdo-mark .tile,
[data-theme="dark"] .osdo-logo .osdo-mark .cut { display: none; }

.ehost-logo {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ehost-logo .e { color: var(--ehost-yellow); }
.ehost-logo .host { color: var(--ehost-blue); }
.ehost-logo .tld { color: var(--ehost-blue); font-weight: 700; }

/* -------- Sparkline -------- */
.spark { width: 100%; display: block; }

/* -------- Page header -------- */
.page-header { margin-bottom: 24px; }
.page-header-crumbs { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--fg-3); margin-bottom: 8px; }
.page-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-header-title { font-size: 26px; }
.page-header-sub { margin-top: 6px; color: var(--fg-3); }
.page-header-actions { display: flex; gap: 8px; }

/* -------- WHMCS overrides --------
   WHMCS injects Bootstrap-style markup into some pages. Neutralize aggressive
   defaults so our DS tokens win. */
.container, .container-fluid { max-width: none; padding: 0; }
.row.whmcs-row { margin: 0; }

/* -------- Utilities -------- */
.hide-on-mobile { }

/* Mobile-collapsing grids (U2). Our custom layout grids use inline
   style="display:grid; grid-template-columns:…"; add this class to collapse
   them to a single column ≤900px. A stylesheet !important beats the (non-
   important) inline value, so the desktop columns still come from the inline
   style. */
.ehost-collapse-mobile { /* desktop: untouched (columns from inline style) */ }

/* Off-canvas drawer scrim — hidden until the drawer opens on mobile. */
.sidebar-scrim { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }

  /* U1 — Mobile navigation drawer.
     Default (any state ≠ "open"): sidebar slid off-canvas to the left.
     data-sidebar="open": slid in, with a tappable scrim behind it. This
     replaces the old `.sidebar{display:none}` which left phone users with
     NO way to reach the nav. */
  .sidebar {
    display: flex !important;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px; max-width: 86vw;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.25);
    overflow-y: auto;
  }
  .app[data-sidebar="open"] .sidebar { transform: translateX(0); }
  .app[data-sidebar="open"] .sidebar-scrim {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1000;
  }
  /* In the drawer the sidebar is always full-width content (never the
     desktop "collapsed" 64px rail). */
  .app[data-sidebar] .sidebar { width: 280px; }
  .app[data-sidebar] .sidebar .nav-item { justify-content: flex-start; }
  .app[data-sidebar] .sidebar .nav-label,
  .app[data-sidebar] .sidebar .nav-chev { display: inline; }

  .content, .content-wide { padding: 20px; }
  .hide-on-mobile { display: none !important; }
  .app-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .app-footer-bottom { flex-direction: column; gap: 6px; }

  /* U2 — collapse custom multi-column grids + un-stick the order summary. */
  .ehost-collapse-mobile { grid-template-columns: 1fr !important; }
  .ehost-sticky-summary { position: static !important; top: auto !important; }
}

/* U5 — Visible keyboard focus across the whole journey (WCAG 2.4.7). The
   theme previously only ringed text inputs, so tabbing through buttons/links/
   nav was invisible. :focus-visible only shows for keyboard (not mouse). */
:focus-visible {
  outline: 2px solid var(--brand-800);
  outline-offset: 2px;
  border-radius: 4px;
}
[data-theme="dark"] :focus-visible {
  outline-color: var(--brand-300, #7fb6ff);
}

/* -------- Scrollbar in dark -------- */
[data-theme="dark"] ::-webkit-scrollbar { width: 12px; height: 12px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   Auth pages (login / register / pwreset / pwresetvalidation)
   Split-screen layout, left = form, right = brand panel.
   ============================================================ */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  display: flex;
  flex-direction: column;
  padding: 48px 56px;
  overflow-y: auto;
}
.auth-left-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-left-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); margin-top: 32px; }
.auth-left-foot a { color: var(--fg-3); }
.auth-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 30px; margin-bottom: 8px; }
.auth-form .lead { color: var(--fg-3); margin-bottom: 28px; line-height: 1.55; }
.auth-form .field { margin-bottom: 14px; }

.auth-right {
  background: var(--brand-900);
  color: #fff;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.auth-right > * { position: relative; z-index: 1; }
.auth-right .eyebrow-light { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--ehost-yellow); text-transform: uppercase; }
.auth-right h2 { font-size: 36px; color: #fff; line-height: 1.18; letter-spacing: -0.5px; margin-top: 16px; }
.auth-right .sub { margin-top: 16px; color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.6; max-width: 420px; }

.auth-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.auth-stat {
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}
.auth-stat .v { font-family: var(--font-mono); font-size: 28px; font-weight: 700; }
.auth-stat .l { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.5px; text-transform: uppercase; margin-top: 4px; }

.auth-status {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
}
.auth-status .title { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; }
.auth-status .row { gap: 10px; margin-top: 8px; }
.auth-status .pulse {
  width: 8px; height: 8px; border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
}

.auth-guarantee {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px;
}
.auth-guarantee .eyebrow-light { letter-spacing: 1.5px; }
.auth-guarantee .v { font-size: 28px; font-weight: 700; color: #fff; margin-top: 8px; letter-spacing: -0.5px; }
.auth-guarantee .s { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 8px; }

/* Field row variants */
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row-3 { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 10px; }

/* Input with prefix (e.g. phone +90) */
.input-with-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.input-with-prefix:focus-within {
  border-color: var(--brand-800);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-800) 22%, transparent);
}
.input-with-prefix .prefix {
  padding: 0 12px;
  display: flex; align-items: center;
  color: var(--fg-3);
  font-size: 13px;
  border-right: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono);
}
.input-with-prefix input {
  border: 0;
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--fg-1);
}

/* Input with suffix button (show password) */
.input-with-suffix { position: relative; }
.input-with-suffix .suffix-btn {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  border: none; background: transparent;
  cursor: pointer;
  color: var(--fg-3);
  padding: 4px;
  display: inline-flex;
}
.input-with-suffix .suffix-btn:hover { color: var(--fg-1); }
.input-with-suffix input { padding-right: 36px; }

/* Segmented control (Bireysel / Kurumsal) */
.seg {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
}
.seg button {
  padding: 7px 16px;
  font-size: 13px; font-weight: 600;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 7px;
  color: var(--fg-2);
  transition: background .15s, color .15s;
}
.seg button.on { background: var(--surface); color: var(--brand-800); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* Password strength meter */
.pwbar { display: flex; gap: 3px; margin-top: 6px; }
.pwbar i { flex: 1; height: 3px; background: var(--surface-2); border-radius: 2px; transition: background .2s; }
.pwbar i.on1 { background: var(--error); }
.pwbar i.on2 { background: var(--warning); }
.pwbar i.on3 { background: var(--success); }

/* Password requirement checklist */
.pw-reqs {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}
.pw-reqs .req { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--fg-3); padding: 3px 0; }
.pw-reqs .req.ok { color: var(--success); }

/* Checkbox row */
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--fg-2);
  margin: 12px 0;
  line-height: 1.5;
}
.check-row input { margin-top: 2px; }

/* Inline error / info banner */
.banner {
  display: flex; gap: 10px;
  padding: 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.45;
}
.banner-err  { background: var(--error-bg);   color: #b91c1c; border: 1px solid color-mix(in srgb, var(--error) 30%, transparent); }
.banner-info { background: var(--info-bg);    color: var(--fg-2); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); }
.banner-ok   { background: var(--success-bg); color: #15803d; border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.banner-warn { background: var(--warning-bg); color: #a16207; border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); }
[data-theme="dark"] .banner-err   { color: #fca5a5; }
[data-theme="dark"] .banner-info  { color: var(--fg-2); }
[data-theme="dark"] .banner-ok    { color: #4ade80; }
[data-theme="dark"] .banner-warn  { color: #fcd34d; }

/* 2FA OTP cells */
.otp-grid { display: flex; gap: 8px; justify-content: center; margin: 20px 0; }
.otp-cell {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 22px; font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  outline: none;
  font-family: var(--font-mono);
  transition: border-color .15s, box-shadow .15s;
}
.otp-cell:focus {
  border-color: var(--brand-800);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-800) 22%, transparent);
}

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-right { display: none; }
  .auth-left { padding: 32px 24px; }
}


/* ============================================================
   Bootstrap → Osdo form styling overrides
   Auto-applies to Faz 8-13 templates that retain WHMCS native
   form-horizontal markup (account-paymentmethods-manage,
   account-contacts-manage, account-user-management,
   clientareadomaincontactinfo, supportticketsubmit-*, etc.)
   ============================================================ */

/* Form layout */
.form-horizontal .form-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}
.form-horizontal .control-label {
  flex: 0 0 200px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  padding-top: 10px;
}
.form-horizontal .col-sm-8,
.form-horizontal .col-sm-4,
.form-horizontal .col-sm-6,
.form-horizontal .col-sm-3,
.form-horizontal .col-xs-12 {
  flex: 1;
  min-width: 0;
}
.form-horizontal .col-sm-offset-4 { margin-left: 212px; }
.form-group { margin-bottom: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > [class*="col-"] { min-width: 0; }

/* Input fields */
.form-control,
input[type="text"]:not([data-no-osdo]),
input[type="email"]:not([data-no-osdo]),
input[type="tel"]:not([data-no-osdo]),
input[type="password"]:not([data-no-osdo]),
input[type="number"]:not([data-no-osdo]),
input[type="url"]:not([data-no-osdo]),
input[type="search"]:not([data-no-osdo]),
textarea:not([data-no-osdo]),
select:not([data-no-osdo]) {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--fg-1);
  background: var(--surface);
  box-shadow: none;
  height: auto;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus,
input:not([type="checkbox"]):not([type="radio"]):not([data-no-osdo]):focus,
textarea:not([data-no-osdo]):focus,
select:not([data-no-osdo]):focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(42, 122, 68, 0.12);
  outline: none;
}
.form-control[disabled],
.form-control:disabled {
  background: var(--bg);
  color: var(--fg-3);
  cursor: not-allowed;
}

/* Radio + checkbox labels */
.radio-inline,
.checkbox-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 12px 6px 0 !important;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  color: var(--fg-1);
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.radio-inline:hover,
.checkbox-inline:hover { border-color: var(--border-strong); }
.radio-inline input[type="radio"]:checked + *,
.radio-inline input[type="radio"]:checked ~ * {
  /* let the label whole highlight */
}
.radio-inline:has(input:checked),
.checkbox-inline:has(input:checked) {
  background: var(--brand-50);
  border-color: var(--brand-600);
  color: var(--brand-800);
  font-weight: 600;
}
.radio-inline input,
.checkbox-inline input {
  accent-color: var(--brand-700);
  margin: 0;
}

/* Form errors */
.field-error-msg {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--error);
}
.has-error .form-control { border-color: var(--error); }
.has-error .field-error-msg { display: block; }

/* Alerts (Bootstrap mapping) */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-success { background: var(--brand-50); color: var(--brand-800); border-color: var(--brand-100); }
.alert-info    { background: var(--brand-50); color: var(--brand-800); border-color: var(--brand-100); }
.alert-warning { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-border); }
.alert-danger,
.alert-error   { background: var(--error-bg); color: var(--error-fg); border-color: var(--error-border); }

/* Bootstrap panel → Osdo card */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: none;
  overflow: hidden;
}
.panel-default,
.panel-primary,
.panel-info,
.panel-success,
.panel-warning,
.panel-danger { border-color: var(--border); }
.panel-heading {
  background: transparent;
  border-bottom: 1px solid var(--divider);
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-1);
}
.panel-title {
  margin: 0;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
}
.panel-body { padding: 16px 18px; }
.panel-footer {
  background: var(--bg);
  border-top: 1px solid var(--divider);
  padding: 12px 18px;
  font-size: 12px;
  color: var(--fg-3);
}

/* Bootstrap table styling */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
.table > thead > tr > th,
.table > tbody > tr > th {
  background: var(--bg);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  padding: 10px 14px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
}
.table > tbody > tr > td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
  color: var(--fg-1);
  vertical-align: middle;
}
.table-striped > tbody > tr:nth-of-type(odd) { background: transparent; }
.table-striped > tbody > tr:hover { background: var(--bg); }

/* -------- Bootstrap modal overlay (used by WHMCS .modal.fade pattern) --------
 * Targets `.modal.fade` so our own `.scrim > .modal` pattern is untouched.
 * Bootstrap JS toggles `.in` (BS3) or `.show` (BS4) to display the modal.
 */
.modal.fade {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  overflow-x: hidden; overflow-y: auto;
  z-index: 1050;
  outline: 0;
  background: rgba(0, 0, 0, 0.5);
}
.modal.fade.in,
.modal.fade.show { display: block; }
.modal.fade .modal-dialog {
  position: relative;
  width: auto;
  max-width: 560px;
  margin: 48px auto;
  pointer-events: none;
}
.modal.fade .modal-content {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  outline: 0;
}
.modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.5);
}
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.in,
.modal-backdrop.show { opacity: 0.5; }
body.modal-open { overflow: hidden; }
.modal .close {
  background: transparent; border: 0;
  font-size: 22px; line-height: 1; color: var(--fg-3);
  padding: 4px 8px; cursor: pointer;
}
.modal .close:hover { color: var(--fg-1); }

/* Inner modal pieces — applies to both Bootstrap & our pattern */
.modal-content {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.modal-header {
  border-bottom: 1px solid var(--divider);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
  margin: 0;
}
.modal-body { padding: 18px; }
.modal-footer {
  border-top: 1px solid var(--divider);
  padding: 12px 18px;
  display: flex; gap: 8px; justify-content: flex-end;
}

/* Input groups */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.input-group > .form-control { flex: 1; border-radius: var(--radius) 0 0 var(--radius); }
.input-group > .input-group-btn,
.input-group > .input-group-append {
  display: flex;
  align-items: stretch;
}
.input-group > .input-group-btn .btn,
.input-group > .input-group-append .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 0;
}

/* Hidden helper compat.
   `.hidden` (Bootstrap 3) and `.d-none` (Bootstrap 4/5) are !important by
   convention. `.w-hidden` MUST stay non-important: the WHMCS order-form JS
   (templates/orderforms/*/js/scripts.min.js) reveals w-hidden elements via
   jQuery .show()/.fadeIn() (inline display), and an !important display:none
   silently blocks that — it was why the cart domain-search results never
   appeared. Do not re-add !important to .w-hidden. */
.hidden, .d-none { display: none !important; }
.w-hidden { display: none; }

/* Text-* helpers */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--fg-3); }
.text-danger { color: var(--error); }
.text-success { color: var(--brand-700); }

/* Pull helpers */
.pull-left { float: left; }
.pull-right { float: right; }
.float-right { float: right; }
.float-left { float: left; }

/* Margin helpers we miss */
.margin-bottom { margin-bottom: 16px; }
.margin-top { margin-top: 16px; }

/* Store: hosting plans grid — 3-col desktop / 2-col tablet / 1-col mobile */
.ehost-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1024px) {
  .ehost-plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ehost-plans-grid { grid-template-columns: 1fr; }
}
