/* ════════════════════════════════════════════════════════════════
   OtoSEO — "LIGHT LUXE" / Aydınlık Premium tasarım dili
   Ferah beyaz yüzeyler · yumuşak katmanlı gölgeler · mor/indigo accent.
   Tek temiz dosya — Stripe/Linear ferahlığında, sade ve premium.
   ════════════════════════════════════════════════════════════════ */

/* ── Token Paleti ─────────────────────────────────────────────── */
:root {
  --bg:#f5f6fa;
  --bg-2:#eef1f7;
  --surface:#ffffff;
  --surface-2:#f7f8fc;
  --border:#e6e9f2;
  --border-2:#dde1ec;
  --text:#161a27;
  --muted:#69708a;
  --faint:#9aa1b6;
  --accent:#6d5efc;
  --accent-2:#8b5cf6;
  --accent-soft:#efecff;
  --grad:linear-gradient(135deg,#6d5efc 0%,#8b5cf6 100%);
  --ok:#16a34a;   --ok-soft:#e7f6ee;
  --warn:#d97706; --warn-soft:#fdf3e6;
  --err:#dc2626;  --err-soft:#fdeaea;
  --r:14px; --r-sm:10px; --r-lg:18px;
  --t:.18s ease;
  --shadow-sm:0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow:0 2px 4px rgba(16,24,40,.04), 0 12px 28px -10px rgba(16,24,40,.12);
  --shadow-lg:0 8px 16px rgba(16,24,40,.06), 0 24px 48px -16px rgba(16,24,40,.18);
  --sidebar-w:248px;

  /* Geriye dönük köprüler (eski isimler aynı temaya bağlanır) */
  --bg-elev:var(--surface);
  --panel:var(--surface);
  --panel-2:var(--surface-2);
  --border-strong:var(--border-2);
  --accent-2-soft:var(--accent-soft);
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }

html, body {
  height:100%;
  font-family:'Inter', system-ui, -apple-system, sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.6;
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Ferah premium arka plan — çok soft, dikkat dağıtmayan radyal ışıltılar */
body::before {
  content:'';
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(820px 560px at 10% -6%, rgba(109,94,252,.07), transparent 60%),
    radial-gradient(760px 620px at 100% 4%, rgba(139,92,246,.06), transparent 58%),
    radial-gradient(680px 680px at 50% 118%, rgba(109,94,252,.04), transparent 60%);
}

::selection { background:rgba(109,94,252,.18); color:var(--text); }

/* Koyu temaya ait tuval & glow → light temada kapalı */
#bgCanvas  { display:none; }
#cursorGlow, .cursor-glow { display:none; }

/* İnce modern scrollbar */
* { scrollbar-width:thin; scrollbar-color:#cdd2e2 transparent; }
*::-webkit-scrollbar { width:9px; height:9px; }
*::-webkit-scrollbar-track { background:transparent; }
*::-webkit-scrollbar-thumb { background:#d3d8e6; border-radius:9px; border:2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background:#bcc3d6; }

/* Taşma koruması */
img, canvas, svg, table { max-width:100%; }
input, select, textarea, button { max-width:100%; }

/* ════════════════════════════════════════════════════════════════
   ANIMASYONLAR
   ════════════════════════════════════════════════════════════════ */
@keyframes fadeIn   { from { opacity:0 } to { opacity:1 } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(12px) } to { opacity:1; transform:translateY(0) } }
@keyframes slideUp  { from { transform:translateY(18px); opacity:0 } to { transform:translateY(0); opacity:1 } }
@keyframes spin     { to { transform:rotate(360deg) } }
@keyframes spinning { to { transform:rotate(360deg) } }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1) } 50% { opacity:.45; transform:scale(.85) } }

.spin { animation:spin .8s linear infinite; width:16px; height:16px; }

/* ════════════════════════════════════════════════════════════════
   LOGIN EKRANI
   ════════════════════════════════════════════════════════════════ */
#loginScreen, .login-screen {
  position:fixed; inset:0; z-index:1000;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  background:
    radial-gradient(780px 560px at 28% 14%, rgba(109,94,252,.12), transparent 62%),
    radial-gradient(720px 560px at 78% 86%, rgba(139,92,246,.10), transparent 62%),
    var(--bg);
  animation:fadeIn .35s ease;
}
body.authed #loginScreen, body.authed .login-screen { display:none; }

.login-card {
  position:relative; z-index:2;
  width:100%; max-width:420px; margin:0 16px;
  display:flex; flex-direction:column;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  padding:40px 36px;
  box-shadow:var(--shadow-lg);
  animation:slideUp .4s cubic-bezier(.4,0,.2,1);
}

.login-logo {
  display:flex; align-items:center; justify-content:center; gap:12px;
  margin-bottom:28px;
}
.login-logo-icon {
  width:46px; height:46px; flex-shrink:0;
  background:var(--grad);
  border-radius:13px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 22px -8px rgba(109,94,252,.55);
}
.login-logo-icon svg { width:24px; height:24px; }
.login-logo-text, .login-card .logo-text {
  font-size:22px; font-weight:700; letter-spacing:-.4px;
  background:var(--grad);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

.login-title {
  font-size:19px; font-weight:700; color:var(--text);
  text-align:center; margin-bottom:8px;
}
.login-subtitle, .login-card .login-sub {
  font-size:13px; color:var(--muted); text-align:center; margin-bottom:26px;
}

.login-field { margin-bottom:16px; }
.login-field label, .login-card label {
  display:block; font-size:12px; font-weight:600; color:var(--muted);
  margin-bottom:7px; letter-spacing:.3px;
}
.login-field input, .login-card input {
  width:100%; padding:12px 15px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  color:var(--text); font-family:inherit; font-size:14px;
  outline:none;
  transition:border-color var(--t), box-shadow var(--t);
}
.login-field input::placeholder, .login-card input::placeholder { color:var(--faint); }
.login-field input:focus, .login-card input:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
  background:var(--surface);
}

#loginBtn, .login-card button[type="submit"] {
  width:100%; margin-top:8px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 18px;
  background:var(--grad); color:#fff;
  border:none; border-radius:var(--r-sm);
  font-family:inherit; font-size:14.5px; font-weight:700; cursor:pointer;
  box-shadow:0 10px 26px -10px rgba(109,94,252,.55);
  transition:transform var(--t), box-shadow var(--t), filter var(--t);
}
#loginBtn:hover, .login-card button[type="submit"]:hover {
  transform:translateY(-1px); filter:brightness(1.05);
  box-shadow:0 14px 34px -10px rgba(139,92,246,.6);
}
#loginBtn:active, .login-card button[type="submit"]:active { transform:translateY(0); }

.login-error {
  display:none; margin-top:14px;
  padding:10px 14px;
  background:var(--err-soft);
  border:1px solid #f6c9c9;
  border-radius:var(--r-sm);
  color:var(--err); font-size:13px; text-align:center;
}
.login-error.visible, .login-error.show, .login-error:not(:empty) { display:block; }

/* ════════════════════════════════════════════════════════════════
   APP SHELL / LAYOUT
   ════════════════════════════════════════════════════════════════ */
.layout {
  position:relative; z-index:2;
  display:none;
  height:100vh; width:100vw; overflow:hidden;
}
body.authed .layout { display:flex; }

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.sidebar {
  width:var(--sidebar-w); min-width:var(--sidebar-w); flex-shrink:0;
  height:100vh;
  background:var(--surface);
  border-right:1px solid var(--border);
  display:flex; flex-direction:column;
  padding:20px 0;
  position:relative; z-index:10;
}

.sidebar-logo {
  display:flex; align-items:center; gap:11px;
  padding:4px 22px 22px;
  margin-bottom:14px;
  border-bottom:1px solid var(--border);
}
.logo-icon {
  width:38px; height:38px; flex-shrink:0;
  background:var(--grad);
  border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 16px -6px rgba(109,94,252,.5);
}
.logo-icon svg { width:20px; height:20px; fill:#fff; }
.logo-text {
  font-size:19px; font-weight:700; letter-spacing:-.3px;
  background:var(--grad);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

/* Nav */
.nav {
  display:flex; flex-direction:column; gap:3px;
  padding:0 12px; flex:1;
  overflow-y:auto;
}
.nav-item {
  display:flex; align-items:center; gap:11px;
  padding:10px 13px;
  border-radius:var(--r-sm);
  text-decoration:none;
  color:var(--muted);
  font-size:13.5px; font-weight:500;
  position:relative; cursor:pointer;
  transition:color var(--t), background var(--t);
}
.nav-item:hover { background:var(--bg-2); color:var(--text); }
.nav-item.active {
  background:var(--accent-soft);
  color:var(--accent);
  font-weight:600;
}
.nav-item.active::before {
  content:''; position:absolute; left:0; top:50%;
  transform:translateY(-50%);
  width:3px; height:56%;
  background:var(--grad);
  border-radius:0 3px 3px 0;
}
.nav-icon {
  width:20px; height:20px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.nav-icon svg { width:18px; height:18px; stroke:currentColor; }

/* nav-indicator (sağ nokta) — aktifte accent */
.nav-indicator {
  position:absolute; right:12px; top:50%;
  width:0; height:0; border-radius:50%;
  background:var(--accent);
  transform:translateY(-50%);
  transition:all var(--t);
}
.nav-item.active .nav-indicator {
  width:6px; height:6px;
  box-shadow:0 0 0 3px var(--accent-soft);
}

/* Admin-only */
.nav-admin-only { display:none; }
body.is-admin .nav-admin-only { display:flex; }

.nav-divider { height:1px; background:var(--border); margin:9px 16px; }

/* Footer */
.sidebar-footer {
  padding:14px 24px 4px;
  margin-top:auto;
  display:flex; align-items:center; gap:8px;
  font-size:12px; color:var(--faint);
}
.status-dot {
  width:7px; height:7px; border-radius:50%; flex-shrink:0;
  background:var(--ok);
  box-shadow:0 0 0 3px var(--ok-soft);
  animation:pulse-dot 2s infinite;
}

/* ════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════════════════════════════ */
.main-content {
  flex:1; min-width:0;
  display:flex; flex-direction:column;
  overflow:hidden;
}

/* Topbar */
.topbar {
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:14px 30px;
  background:var(--surface);
  border-bottom:1px solid var(--border);
  flex-shrink:0;
}
.topbar-brand {
  font-size:13px; font-weight:600; color:var(--faint); letter-spacing:.3px;
}
.topbar-right { display:flex; align-items:center; gap:12px; }

#currentUserLabel {
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 14px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:999px;
  font-size:13px; font-weight:600; color:var(--text);
}
#currentUserLabel:empty { display:none; }
#currentUserLabel::before {
  content:''; width:7px; height:7px; border-radius:50%; flex-shrink:0;
  background:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}

#logoutBtn {
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 15px;
  background:transparent;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted); font-family:inherit; font-size:13px; font-weight:500;
  cursor:pointer;
  transition:border-color var(--t), color var(--t), background var(--t);
}
#logoutBtn svg { width:15px; height:15px; }
#logoutBtn:hover { border-color:#f3b6b6; color:var(--err); background:var(--err-soft); }

/* Pages */
.pages-wrap { flex:1; overflow-y:auto; padding:28px 32px; }
.page { display:none; animation:fadeInUp .35s ease; }
.page.active { display:block; }

/* Page Header */
.page-header {
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:16px; margin-bottom:28px; flex-wrap:wrap;
}
.page-title {
  font-size:26px; font-weight:700; line-height:1.2; letter-spacing:-.4px;
  color:var(--text);
}
.page-subtitle { font-size:14px; color:var(--muted); margin-top:6px; }
.header-actions { display:flex; align-items:center; gap:10px; }

.live-badge {
  display:flex; align-items:center; gap:7px;
  padding:6px 14px;
  background:var(--ok-soft);
  border:1px solid #c9ebd6;
  border-radius:999px;
  color:var(--ok); font-size:11px; font-weight:700; letter-spacing:1.2px;
}
.pulse {
  width:7px; height:7px; border-radius:50%;
  background:var(--ok);
  box-shadow:0 0 0 3px rgba(22,163,74,.18);
  animation:pulse-dot 1.5s infinite;
}

/* ════════════════════════════════════════════════════════════════
   DASHBOARD — STATS
   ════════════════════════════════════════════════════════════════ */
.stats-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(210px,1fr));
  gap:16px; margin-bottom:24px;
}
.stat-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r);
  padding:22px;
  display:flex; align-items:center; gap:16px;
  box-shadow:var(--shadow-sm);
  transition:transform var(--t), box-shadow var(--t), border-color var(--t);
}
.stat-card:hover {
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:var(--border-2);
}
.stat-icon {
  width:48px; height:48px; border-radius:13px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.stat-icon svg { width:22px; height:22px; }
.stat-icon.blue   { background:#e8edff; color:#3b6df6; }
.stat-icon.cyan   { background:var(--accent-soft); color:var(--accent); }
.stat-icon.purple { background:#f1e9ff; color:var(--accent-2); }
.stat-icon.green  { background:var(--ok-soft); color:var(--ok); }

.stat-info { display:flex; flex-direction:column; gap:4px; flex:1; min-width:0; }
.stat-value { font-size:26px; font-weight:700; color:var(--text); line-height:1; font-variant-numeric:tabular-nums; }
.stat-label { font-size:12px; color:var(--muted); white-space:nowrap; }

/* Content grid */
.content-grid { display:grid; grid-template-columns:1fr 360px; gap:16px; }
@media (max-width:900px) { .content-grid { grid-template-columns:1fr; } }

/* ════════════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════════════ */
.card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  transition:box-shadow var(--t), transform var(--t), border-color var(--t);
}
.card:hover { box-shadow:var(--shadow); border-color:var(--border-2); }

.card-header {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:18px 22px;
  border-bottom:1px solid var(--border);
}
.card-header h3 { font-size:14.5px; font-weight:600; color:var(--text); }

/* Card iç boşluk: dashboard kartlarındaki no-data alanları kendi padding'ini taşır */
.chart-card, .activity-card { min-height:168px; }

/* Chart Tabs (varsa) */
.chart-tabs { display:flex; gap:4px; background:var(--surface-2); padding:3px; border-radius:var(--r-sm); }
.chart-tab {
  padding:5px 12px; border:none; background:transparent;
  color:var(--muted); font-size:12px; font-weight:500;
  border-radius:7px; cursor:pointer; font-family:inherit; transition:all var(--t);
}
.chart-tab.active { background:var(--accent-soft); color:var(--accent); }
.chart-area { height:200px; position:relative; }
#perfChart { width:100%; height:100%; }

/* Badges */
.badge {
  font-size:11px; font-weight:600; padding:3px 11px; border-radius:999px;
  background:var(--accent-soft); color:var(--accent); letter-spacing:.3px;
}
.badge-muted {
  font-size:11px; color:var(--muted); font-weight:500;
  background:var(--surface-2); border:1px solid var(--border);
  padding:3px 11px; border-radius:999px;
}

/* No-data states */
.no-data-area, .no-data-activity {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; text-align:center; color:var(--faint);
}
.no-data-area { padding:22px 24px; }
.no-data-activity { padding:20px 24px; }
.no-data-area svg, .no-data-activity svg { width:30px; height:30px; opacity:.35; }
.no-data-area p, .no-data-activity p { font-size:14px; color:var(--muted); margin:0; }
.no-data-area span, .no-data-activity span { font-size:12px; max-width:280px; }

/* Activity */
.activity-list { display:flex; flex-direction:column; padding:6px 22px 18px; }
.activity-item {
  display:flex; align-items:flex-start; gap:12px;
  padding:12px 0; border-bottom:1px solid var(--border);
}
.activity-item:last-child { border-bottom:none; }
.activity-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; margin-top:5px; }
.activity-dot.cyan   { background:var(--accent); }
.activity-dot.blue   { background:#3b6df6; }
.activity-dot.purple { background:var(--accent-2); }
.activity-dot.green  { background:var(--ok); }
.activity-content { display:flex; flex-direction:column; gap:2px; }
.activity-content span { font-size:13px; color:var(--text); }
.activity-content time { font-size:11px; color:var(--faint); }

/* ════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════ */
.btn-primary {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 18px;
  background:var(--grad); color:#fff;
  border:none; border-radius:var(--r-sm);
  font-family:inherit; font-size:13.5px; font-weight:600; cursor:pointer;
  white-space:nowrap;
  box-shadow:var(--shadow-sm);
  transition:transform var(--t), box-shadow var(--t), filter var(--t);
}
.btn-primary svg { width:16px; height:16px; flex-shrink:0; }
.btn-primary:hover { transform:translateY(-1px); filter:brightness(1.05); box-shadow:0 10px 24px -8px rgba(109,94,252,.5); }
.btn-primary:active { transform:translateY(0); }
.btn-primary:disabled { opacity:.55; cursor:not-allowed; transform:none; filter:none; box-shadow:none; }

.btn-ghost {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 18px;
  background:linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  color:var(--text);
  border:1px solid var(--border); border-radius:var(--r-sm);
  font-family:inherit; font-size:13.5px; font-weight:600; cursor:pointer;
  white-space:nowrap;
  box-shadow:var(--shadow-sm);
  transition:transform var(--t), box-shadow var(--t), border-color var(--t), color var(--t), background var(--t);
}
.btn-ghost svg { width:16px; height:16px; flex-shrink:0; transition:color var(--t); }
.btn-ghost:hover {
  transform:translateY(-1px);
  border-color:var(--accent);
  color:var(--accent);
  background:var(--accent-soft);
  box-shadow:0 6px 16px -10px rgba(109,94,252,.35);
}
.btn-ghost:active { transform:translateY(0); box-shadow:var(--shadow-sm); }
.btn-ghost:disabled { opacity:.55; cursor:not-allowed; transform:none; box-shadow:none; }

/* Silme ikon butonu — minimalist, düz (gradyan yok) */
.btn-icon {
  width:32px; height:32px; flex-shrink:0;
  border:1px solid var(--border);
  background:transparent;
  border-radius:8px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
  transition:color var(--t), background var(--t), border-color var(--t);
}
.btn-icon svg { width:15px; height:15px; }
.btn-icon:hover {
  color:var(--err);
  border-color:var(--err);
  background:var(--err-soft);
}
.btn-icon:active { background:var(--err-soft); }

/* Refresh ikon butonu */
.btn-refresh {
  width:32px; height:32px; flex-shrink:0;
  border:1px solid var(--border); background:var(--surface-2);
  border-radius:9px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); transition:all var(--t);
}
.btn-refresh svg { width:14px; height:14px; }
.btn-refresh:hover { border-color:var(--border-2); color:var(--accent); }
.btn-refresh.spinning svg { animation:spinning .7s linear infinite; }

/* ════════════════════════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position:fixed; inset:0; z-index:500;
  background:rgba(16,24,40,.4);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  display:none; align-items:center; justify-content:center;
}
.modal-overlay.open { display:flex; animation:fadeIn .2s ease; }

.modal {
  width:100%; max-width:480px; margin:16px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg);
  animation:slideUp .25s cubic-bezier(.4,0,.2,1);
}
.modal-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 24px;
  border-bottom:1px solid var(--border);
}
.modal-header h3 { font-size:16px; font-weight:600; color:var(--text); }

.modal-close {
  width:32px; height:32px; flex-shrink:0;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:9px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); transition:all var(--t);
}
.modal-close svg { width:15px; height:15px; }
.modal-close:hover { border-color:#f3b6b6; color:var(--err); background:var(--err-soft); }

.modal-body { padding:24px; display:flex; flex-direction:column; gap:16px; }

.field { display:flex; flex-direction:column; gap:7px; }
.field label { font-size:12px; font-weight:600; color:var(--muted); letter-spacing:.3px; }
.field input, .field select {
  width:100%; padding:11px 14px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  color:var(--text); font-family:inherit; font-size:14px;
  outline:none; -webkit-appearance:none;
  transition:border-color var(--t), box-shadow var(--t), background var(--t);
}
.field input::placeholder { color:var(--faint); }
.field input:focus, .field select:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
  background:var(--surface);
}
.field select option { background:var(--surface); color:var(--text); }

.modal-info {
  position:relative;
  display:flex; gap:11px; padding:13px 15px 13px 17px;
  background:linear-gradient(135deg, rgba(109,94,252,.08) 0%, rgba(139,92,246,.05) 100%);
  border:1px solid #e4dffc;
  border-radius:var(--r-sm);
  font-size:12.5px; color:var(--muted); line-height:1.55;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
  overflow:hidden;
}
.modal-info::before {
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:var(--grad);
}
.modal-info b { color:var(--text); font-weight:600; }
.modal-info svg {
  width:17px; height:17px; flex-shrink:0; margin-top:1px; color:var(--accent);
  filter:drop-shadow(0 1px 2px rgba(109,94,252,.25));
}

.modal-error {
  padding:10px 14px;
  background:var(--err-soft);
  border:1px solid #f6c9c9;
  border-radius:var(--r-sm); font-size:13px; color:var(--err);
}

.modal-footer {
  display:flex; justify-content:flex-end; gap:10px;
  padding:16px 24px;
  border-top:1px solid var(--border);
}

/* ════════════════════════════════════════════════════════════════
   DOMAIN TABLE (Manuel SEO)
   ════════════════════════════════════════════════════════════════ */
.domain-count {
  font-size:12px; color:var(--muted); font-weight:500;
  background:var(--surface-2);
  border:1px solid var(--border);
  padding:3px 12px; border-radius:999px;
}
.domain-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.domain-table thead th, .domain-table th {
  text-align:left; padding:12px 20px;
  font-size:11px; font-weight:600; letter-spacing:.5px; text-transform:uppercase;
  color:var(--faint); border-bottom:1px solid var(--border);
}
.domain-table tbody tr, .domain-table tr { transition:background var(--t); }
.domain-table tbody td, .domain-table td {
  padding:14px 20px; border-bottom:1px solid var(--border);
  color:var(--muted); vertical-align:middle;
}
.domain-table tbody tr:last-child td, .domain-table tr:last-child td { border-bottom:none; }
.domain-table tbody tr:hover td, .domain-table tr:hover td { background:var(--surface-2); }
.domain-table tbody td:first-child { color:var(--text); font-weight:500; }

.domain-name {
  font-weight:600; font-family:'Fira Code', ui-monospace, monospace;
  color:var(--accent);
  background:none; border:none; cursor:pointer; padding:0;
  font-size:inherit;
  text-decoration:underline; text-decoration-color:transparent;
  transition:text-decoration-color var(--t);
}
.domain-name:hover { text-decoration-color:var(--accent); }
.domain-open-btn { text-align:left; }

.zone-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 11px; border-radius:999px; font-size:11px; font-weight:600;
  white-space:nowrap;
}
.zone-badge.ok      { background:var(--ok-soft);     color:var(--ok); }
.zone-badge.created { background:var(--accent-soft); color:var(--accent); }
.zone-badge.error   { background:var(--err-soft);    color:var(--err); }

.ns-list { font-family:'Fira Code', ui-monospace, monospace; font-size:12px; color:var(--muted); }
.ns-list span { display:block; }

/* ════════════════════════════════════════════════════════════════
   COMING SOON
   ════════════════════════════════════════════════════════════════ */
.coming-soon {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:80px 24px; gap:6px; text-align:center;
}
.coming-soon-icon {
  width:80px; height:80px; border-radius:22px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  display:flex; align-items:center; justify-content:center;
  color:var(--accent); margin-bottom:18px;
}
.coming-soon-icon svg { width:36px; height:36px; }
.coming-soon h2 { font-size:22px; font-weight:700; color:var(--text); margin-bottom:6px; }
.coming-soon p { font-size:14px; color:var(--muted); }

/* ════════════════════════════════════════════════════════════════
   DOMAIN MANAGEMENT DRAWER
   ════════════════════════════════════════════════════════════════ */
.drawer-overlay {
  position:fixed; inset:0; z-index:200;
  background:rgba(16,24,40,.35);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  opacity:0; pointer-events:none;
  transition:opacity .3s ease;
  display:none;
}
.drawer-overlay.open { display:block; opacity:1; pointer-events:auto; }

.drawer {
  position:fixed; top:0; right:0; z-index:201;
  width:560px; max-width:96vw; height:100vh;
  background:var(--surface);
  border-left:1px solid var(--border);
  box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column;
  transform:translateX(100%);
  transition:transform .35s cubic-bezier(.4,0,.2,1);
}
.drawer.open { transform:translateX(0); }

.drawer-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 22px; border-bottom:1px solid var(--border); flex-shrink:0;
}
.drawer-title-wrap { display:flex; align-items:center; gap:12px; }
.drawer-domain-icon {
  width:42px; height:42px; flex-shrink:0; border-radius:12px;
  background:var(--accent-soft);
  display:flex; align-items:center; justify-content:center; color:var(--accent);
}
.drawer-domain-icon svg { width:20px; height:20px; }
.drawer-domain-name {
  font-size:16px; font-weight:700; color:var(--text);
  font-family:'Fira Code', ui-monospace, monospace; letter-spacing:.2px;
}
.drawer-domain-meta { font-size:12px; color:var(--faint); margin-top:2px; }

/* (Eski yatay .drawer-tabs / .dtab sekme stilleri kaldırıldı — dikey .vnav-btn menüsü kullanılıyor) */

/* Domain Selector Bar */
.drawer-domain-selector {
  display:flex; flex-wrap:wrap; gap:6px; align-items:center;
  padding:10px 16px; min-height:44px;
  border-bottom:1px solid var(--border);
  background:var(--surface-2); flex-shrink:0;
}
.drawer-domain-selector:empty { display:none; }
.dds-pill {
  display:inline-flex; align-items:center; gap:5px;
  padding:5px 12px; border-radius:999px; cursor:pointer;
  border:1px solid var(--border); background:var(--surface);
  color:var(--muted); font-size:12px; font-weight:500;
  font-family:'Fira Code', ui-monospace, monospace; white-space:nowrap;
  transition:all var(--t);
}
.dds-pill:hover { border-color:var(--border-2); color:var(--text); background:var(--bg-2); }
.dds-pill.active { border-color:transparent; background:var(--accent-soft); color:var(--accent); font-weight:700; }
.dds-pill.root-pill { border-color:var(--border-2); }
.dds-pill .dds-dot { width:6px; height:6px; border-radius:50%; background:currentColor; flex-shrink:0; }

/* Body */
.drawer-body { flex:1; overflow-y:auto; padding:0; }
.dtab-content { display:none; }
.dtab-content.active { display:block; animation:fadeInUp .25s ease; }
.dtab-loading { color:var(--faint); font-size:13px; padding:20px; text-align:center; }

/* Sections */
.dsection { padding:20px; border-bottom:1px solid var(--border); }
.dsection:last-child { border-bottom:none; }
.dsection h4 { font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px; letter-spacing:.2px; }
.dsection-desc { font-size:12.5px; color:var(--muted); margin-bottom:14px; line-height:1.5; }
.dsection-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.dsection-head h4 { margin-bottom:0; }
.dsection-success {
  padding:10px 14px;
  background:var(--ok-soft);
  border:1px solid #c9ebd6;
  border-radius:var(--r-sm);
  font-size:13px; color:var(--ok); margin-top:10px;
}

/* DNS Form */
.dns-form { display:grid; grid-template-columns:80px 1fr 1fr auto auto; gap:8px; align-items:center; margin-bottom:10px; }
.dns-form select, .dns-form input {
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:9px; color:var(--text); font-size:13px; font-family:inherit;
  padding:9px 10px; outline:none; width:100%; transition:border-color var(--t), box-shadow var(--t);
}
.dns-form select:focus, .dns-form input:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.dns-form select option { background:var(--surface); }
.dns-proxy-label { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:12px; white-space:nowrap; cursor:pointer; }
.dns-proxy-label input { width:14px; height:14px; cursor:pointer; accent-color:var(--accent); }
.dns-add-btn { padding:9px 14px; font-size:12.5px; white-space:nowrap; }
.dns-add-btn svg { width:14px; height:14px; }

.dns-error {
  padding:10px 14px;
  background:var(--err-soft);
  border:1px solid #f6c9c9;
  border-radius:var(--r-sm);
  font-size:12.5px; color:var(--err); margin-top:10px;
}

/* DNS Records */
.dns-record {
  display:grid; grid-template-columns:52px 1fr 1fr auto auto;
  gap:8px; align-items:center;
  padding:11px 12px; border-radius:10px;
  background:var(--surface-2); border:1px solid var(--border);
  margin-bottom:6px; font-size:12.5px;
  transition:border-color var(--t);
}
.dns-record:hover { border-color:var(--border-2); }
.dns-type { font-size:11px; font-weight:700; padding:2px 7px; border-radius:6px; text-align:center; }
.dns-type.A, .dns-type.AAAA { background:var(--accent-soft); color:var(--accent); }
.dns-type.CNAME { background:#e8edff; color:#3b6df6; }
.dns-type.MX { background:#f1e9ff; color:var(--accent-2); }
.dns-type.TXT { background:var(--warn-soft); color:var(--warn); }
.dns-type.NS { background:var(--ok-soft); color:var(--ok); }
.dns-name { font-family:'Fira Code', ui-monospace, monospace; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dns-val  { font-family:'Fira Code', ui-monospace, monospace; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dns-proxy { font-size:10px; padding:2px 6px; border-radius:5px; }
.dns-proxy.on  { background:var(--warn-soft); color:var(--warn); }
.dns-proxy.off { background:var(--bg-2); color:var(--faint); }

/* CF Account List (drawer) */
.cf-account-item {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 14px; border-radius:12px;
  border:1px solid var(--border); background:var(--surface-2);
  margin-bottom:8px; cursor:pointer; transition:all var(--t);
}
.cf-account-item:hover { border-color:var(--border-2); background:var(--bg-2); }
.cf-account-item.active { border-color:transparent; background:var(--accent-soft); }
.cf-account-info { display:flex; flex-direction:column; gap:2px; min-width:0; }
.cf-acc-label { font-size:13.5px; font-weight:600; color:var(--text); }
.cf-acc-email { font-size:12px; color:var(--muted); }
.cf-acc-badge { font-size:11px; padding:3px 10px; border-radius:999px; background:var(--accent-soft); color:var(--accent); white-space:nowrap; flex-shrink:0; }


/* Favicon (drawer) */
.favicon-preview-wrap {
  display:flex; align-items:center; gap:14px; padding:14px;
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--r-sm); margin-bottom:14px;
}
.favicon-preview { width:48px; height:48px; border-radius:10px; image-rendering:pixelated; border:1px solid var(--border); }
.favicon-label { font-size:13.5px; font-weight:600; color:var(--text); }
.favicon-sub { font-size:12px; color:var(--muted); margin-top:2px; }
.favicon-actions { display:flex; gap:10px; flex-wrap:wrap; }
.upload-label { display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.upload-label svg { width:16px; height:16px; }

/* Favicon Library (drawer) */
.fav-library {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(64px,1fr));
  gap:10px; max-height:240px; overflow-y:auto; margin-bottom:14px;
}
.fav-preset {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:8px 6px; border-radius:12px; cursor:pointer; position:relative;
  border:2px solid var(--border); background:var(--surface-2);
  transition:all var(--t);
}
.fav-preset:hover { border-color:var(--border-2); background:var(--bg-2); }
.fav-preset.selected { border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 3px var(--accent-soft); }
.fav-preset canvas { width:46px; height:46px; border-radius:10px; }
.fav-preset-label { font-size:11px; color:var(--muted); text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; width:100%; }

.fav-selected-preview {
  display:flex; align-items:center; gap:14px;
  padding:14px; margin-top:10px;
  background:var(--accent-soft);
  border:1px solid #ddd6ff;
  border-radius:var(--r-sm);
}
.fav-selected-preview canvas { width:64px; height:64px; border-radius:12px; flex-shrink:0; }
.fav-selected-preview > div { flex:1; min-width:0; }

.fav-upload-zone {
  display:flex; flex-direction:column; align-items:center; gap:10px;
  padding:24px; border-radius:var(--r);
  border:2px dashed var(--border-2); background:var(--surface-2);
  cursor:pointer; color:var(--muted); font-size:13px;
  transition:all var(--t);
}
.fav-upload-zone:hover { border-color:var(--accent); background:var(--accent-soft); color:var(--text); }
.fav-upload-zone svg { width:28px; height:28px; color:var(--accent); }
.fav-upload-zone span { font-size:13px; }

.fav-deploy-list {
  padding:12px 14px; margin-top:10px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  font-size:12px; font-family:'Fira Code', ui-monospace, monospace;
}
.fav-deploy-item { display:flex; align-items:center; gap:8px; padding:3px 0; color:var(--muted); }
.fav-deploy-item.ok  { color:var(--ok); }
.fav-deploy-item.err { color:var(--err); }
.fav-deploy-item svg { width:13px; height:13px; flex-shrink:0; }

/* Redirect Form (drawer) */
.redirect-form { display:flex; flex-direction:column; gap:12px; margin-bottom:10px; }
.redirect-form .field { gap:6px; }
.redirect-form .btn-primary { align-self:flex-start; }
.redirect-form select, .redirect-form input {
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:9px; color:var(--text); font-size:13px;
  padding:10px 12px; outline:none; width:100%; font-family:inherit;
  transition:border-color var(--t), box-shadow var(--t);
}
.redirect-form select { font-family:'Fira Code', ui-monospace, monospace; }
.redirect-form select:focus, .redirect-form input:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.redirect-form select option { background:var(--surface); }

.redirect-rule {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 14px; border-radius:10px;
  background:var(--surface-2); border:1px solid var(--border);
  margin-bottom:6px; transition:border-color var(--t);
}
.redirect-rule:hover { border-color:var(--border-2); }
.redirect-info { flex:1; overflow:hidden; }
.redirect-src { font-family:'Fira Code', ui-monospace, monospace; font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.redirect-dst { font-family:'Fira Code', ui-monospace, monospace; font-size:12.5px; color:var(--accent); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.redirect-code { font-size:11px; font-weight:700; padding:2px 8px; border-radius:6px; background:#f1e9ff; color:var(--accent-2); white-space:nowrap; }

/* File Manager (drawer) */
.file-breadcrumb { font-size:11px; color:var(--faint); font-family:'Fira Code', ui-monospace, monospace; margin-top:3px; }
.file-toolbar { display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
.file-tool-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 14px; border-radius:9px; cursor:pointer;
  border:1px solid var(--border); background:var(--surface-2);
  color:var(--muted); font-size:12.5px; font-weight:500; font-family:inherit;
  white-space:nowrap; transition:all var(--t);
}
.file-tool-btn svg { width:14px; height:14px; }
.file-tool-btn:hover { border-color:var(--border-2); color:var(--accent); background:var(--bg-2); }

.file-entry {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:10px; cursor:pointer;
  border:1px solid transparent;
  transition:background var(--t), border-color var(--t);
}
.file-entry:hover { background:var(--surface-2); border-color:var(--border); }
.file-entry-icon { width:34px; height:34px; flex-shrink:0; border-radius:9px; display:flex; align-items:center; justify-content:center; }
.file-entry-icon.dir { background:var(--accent-soft); color:var(--accent); }
.file-entry-icon.file { background:var(--bg-2); color:var(--faint); }
.file-entry-icon svg { width:16px; height:16px; }
.file-entry-info { flex:1; min-width:0; }
.file-entry-name { font-size:13px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.file-entry-meta { font-size:11px; color:var(--faint); margin-top:1px; }
.file-back { color:var(--accent); font-weight:600; }
.file-entry-name.file-back { color:var(--accent); font-weight:600; }
.file-entry-actions { display:flex; gap:5px; margin-left:auto; flex-shrink:0; }
.file-edit-btn {
  display:inline-flex; align-items:center; gap:4px;
  padding:5px 9px; border-radius:7px; font-size:11.5px;
  border:1px solid var(--border); background:transparent;
  color:var(--muted); cursor:pointer; font-family:inherit; transition:all var(--t);
}
.file-edit-btn svg { width:12px; height:12px; }
.file-edit-btn:hover { border-color:var(--border-2); color:var(--accent); }
.file-del-btn {
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:7px;
  border:1px solid #f3cccc; background:transparent;
  color:var(--faint); cursor:pointer; transition:all var(--t);
}
.file-del-btn svg { width:12px; height:12px; }
.file-del-btn:hover { border-color:#eaa9a9; color:var(--err); background:var(--err-soft); }

/* Code Editor (drawer) */
.editor-header {
  display:flex; align-items:center; gap:10px;
  padding:12px 16px;
  border-bottom:1px solid var(--border);
  background:var(--surface-2);
}
.editor-back {
  width:32px; height:32px; flex-shrink:0; border-radius:9px;
  border:1px solid var(--border); background:var(--surface); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); transition:all var(--t);
}
.editor-back svg { width:15px; height:15px; }
.editor-back:hover { border-color:var(--border-2); color:var(--accent); }
.editor-filename {
  flex:1; font-family:'Fira Code', ui-monospace, monospace; font-size:13px;
  color:var(--text); font-weight:600;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

.code-editor {
  width:100%; min-height:420px; resize:vertical;
  padding:16px; margin:0;
  background:var(--surface-2);
  border:none; border-top:1px solid var(--border);
  color:var(--text);
  font-family:'Fira Code','Cascadia Code', ui-monospace, monospace;
  font-size:12.5px; line-height:1.7;
  outline:none;
  transition:background var(--t);
}
.code-editor:focus { background:var(--surface); }

/* Subdomain Form (drawer) */
.subdomain-form { display:flex; gap:10px; align-items:center; }
.subdomain-input-wrap {
  flex:1; display:flex; align-items:center;
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--r-sm); overflow:hidden;
  transition:border-color var(--t), box-shadow var(--t);
}
.subdomain-input-wrap:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.subdomain-input-wrap input {
  flex:1; min-width:0; padding:10px 12px;
  background:transparent; border:none; outline:none;
  color:var(--text); font-family:'Fira Code', ui-monospace, monospace; font-size:13.5px;
}
.subdomain-input-wrap input::placeholder { color:var(--faint); }
.subdomain-suffix {
  padding:10px 12px;
  font-family:'Fira Code', ui-monospace, monospace; font-size:12.5px;
  color:var(--accent); white-space:nowrap; flex-shrink:0;
  background:var(--surface); border-left:1px solid var(--border);
}

/* Target Selector (drawer) */
.target-selector { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:4px; }
.target-chip {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:999px; cursor:pointer;
  border:1px solid var(--border); background:var(--surface);
  color:var(--muted); font-size:12.5px; font-family:'Fira Code', ui-monospace, monospace;
  user-select:none; transition:all var(--t);
}
.target-chip:hover { border-color:var(--border-2); color:var(--text); }
.target-chip.selected { border-color:transparent; background:var(--accent-soft); color:var(--accent); }
.target-chip.no-root { opacity:.45; cursor:default; }
.target-chip.no-root:hover { border-color:var(--border); color:var(--muted); }
.target-chip .chip-dot { width:7px; height:7px; border-radius:50%; background:currentColor; flex-shrink:0; }
.target-chip.selected .chip-dot { background:var(--accent); }

/* File Target Tabs (drawer) */
.file-target-tabs { display:flex; flex-wrap:wrap; gap:6px; padding-bottom:14px; margin-bottom:4px; border-bottom:1px solid var(--border); }
.file-target-tab {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 13px; border-radius:9px; cursor:pointer;
  border:1px solid var(--border); background:var(--surface);
  color:var(--muted); font-size:12.5px; font-family:'Fira Code', ui-monospace, monospace; transition:all var(--t);
}
.file-target-tab:hover { border-color:var(--border-2); color:var(--text); background:var(--bg-2); }
.file-target-tab.active { border-color:transparent; background:var(--accent-soft); color:var(--accent); font-weight:600; }
.file-target-tab.no-root { opacity:.45; cursor:default; }
.file-target-tab .tab-badge { font-size:10px; padding:1px 7px; border-radius:999px; background:var(--accent-soft); color:var(--accent); }
.file-target-tab.no-root .tab-badge { background:var(--err-soft); color:var(--err); }

/* ════════════════════════════════════════════════════════════════
   SETTINGS PAGE
   ════════════════════════════════════════════════════════════════ */
.settings-tabs {
  display:flex; gap:4px; flex-wrap:wrap;
  margin-bottom:22px; padding-bottom:14px;
  border-bottom:1px solid var(--border);
}
.stab {
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 15px; border-radius:var(--r-sm); cursor:pointer;
  border:1px solid transparent; background:transparent;
  color:var(--muted); font-size:13px; font-weight:500; font-family:inherit;
  position:relative; transition:color var(--t), background var(--t);
}
.stab svg { width:15px; height:15px; flex-shrink:0; }
.stab:hover { background:var(--surface-2); color:var(--text); }
.stab.active { color:var(--accent); font-weight:600; }
.stab.active::after {
  content:''; position:absolute; left:14px; right:14px; bottom:-15px; height:2px;
  background:var(--grad); border-radius:2px;
}

.stab-content { display:none; }
.stab-content.active { display:block; animation:fadeInUp .2s ease; }

.settings-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r); padding:24px;
  box-shadow:var(--shadow-sm);
  overflow:visible;
}
.settings-card-header {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:18px; flex-wrap:wrap;
}
.settings-section-title { font-size:15px; font-weight:600; color:var(--text); }

/* Search bar */
.settings-search-wrap {
  display:flex; align-items:center; gap:10px;
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--r-sm); padding:0 14px;
  flex:1; max-width:320px;
  transition:border-color var(--t), box-shadow var(--t);
}
.settings-search-wrap:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.settings-search-wrap svg { width:15px; height:15px; color:var(--faint); flex-shrink:0; }
.settings-search-wrap input { flex:1; width:100%; padding:9px 0; background:none; border:none; outline:none; color:var(--text); font-size:13px; font-family:inherit; }
.settings-search-wrap input::placeholder { color:var(--faint); }

/* Upload button (label) — primary görünüm */
.settings-upload-btn {
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 16px;
  background:var(--grad); color:#fff;
  border:none; border-radius:var(--r-sm);
  font-family:inherit; font-size:13px; font-weight:600; cursor:pointer;
  white-space:nowrap;
  box-shadow:var(--shadow-sm);
  transition:transform var(--t), filter var(--t), box-shadow var(--t);
}
.settings-upload-btn svg { width:15px; height:15px; }
.settings-upload-btn:hover { transform:translateY(-1px); filter:brightness(1.05); box-shadow:0 10px 24px -8px rgba(109,94,252,.5); }

/* Favicon library grid (settings) */
.fav-lib-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px,1fr)); gap:12px; margin-top:4px; }
.fav-lib-item {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:14px 8px; border-radius:var(--r-sm); position:relative;
  border:1px solid var(--border); background:var(--surface-2);
  transition:all var(--t);
}
.fav-lib-item:hover { border-color:var(--border-2); background:var(--bg-2); box-shadow:var(--shadow-sm); }
.fav-lib-item.selected { border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 3px var(--accent-soft); }
.fav-lib-item img { width:52px; height:52px; border-radius:10px; object-fit:contain; image-rendering:auto; }
.fav-lib-item-name {
  font-size:11.5px; color:var(--muted); text-align:center;
  width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:0 4px;
}
.fav-lib-item-name[contenteditable="true"] { border-bottom:1px dashed var(--accent); outline:none; color:var(--text); }
.fav-lib-ext { font-size:10px; color:var(--faint); }
.fav-lib-del {
  position:absolute; top:6px; right:6px;
  width:22px; height:22px; border-radius:6px;
  border:1px solid #f3cccc; background:var(--surface);
  color:var(--faint); cursor:pointer; opacity:0;
  display:flex; align-items:center; justify-content:center; transition:all var(--t);
}
.fav-lib-del svg { width:11px; height:11px; }
.fav-lib-item:hover .fav-lib-del { opacity:1; }
.fav-lib-del:hover { border-color:#eaa9a9; color:var(--err); background:var(--err-soft); }

/* Settings form */
.settings-form {
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--r-sm); padding:20px; margin-bottom:18px;
}
.sform-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:600px) { .sform-grid { grid-template-columns:1fr; } }
.sfield { display:flex; flex-direction:column; gap:6px; }
.sfield label { font-size:12px; color:var(--muted); font-weight:600; letter-spacing:.2px; }
.sfield-hint { color:var(--faint); font-weight:400; }
.sfield-desc { font-size:12px; color:var(--faint); margin-top:4px; }
.sfield input, .sfield select, .sfield textarea {
  background:var(--surface); border:1px solid var(--border);
  border-radius:9px; color:var(--text); font-size:13px; font-family:inherit;
  padding:10px 12px; outline:none;
  transition:border-color var(--t), box-shadow var(--t);
}
.sfield input::placeholder, .sfield textarea::placeholder { color:var(--faint); }
.sfield input:focus, .sfield select:focus, .sfield textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.sfield select option { background:var(--surface); }
.sform-actions { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }

/* API key with eye toggle */
.api-key-wrap {
  display:flex; align-items:center;
  background:var(--surface); border:1px solid var(--border);
  border-radius:9px; overflow:hidden;
  transition:border-color var(--t), box-shadow var(--t);
}
.api-key-wrap:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.api-key-wrap input { flex:1; border:none; background:transparent; padding:10px 12px; color:var(--text); font-family:inherit; font-size:13px; outline:none; }
.api-key-wrap input::placeholder { color:var(--faint); }
.api-key-toggle {
  padding:10px 12px; flex-shrink:0;
  background:transparent; border:none; border-left:1px solid var(--border);
  color:var(--faint); cursor:pointer; transition:color var(--t);
}
.api-key-toggle svg { width:15px; height:15px; display:block; }
.api-key-toggle:hover { color:var(--accent); }

/* CF/Registrar list items (settings) */
.settings-list-item {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:13px 16px; border-radius:var(--r-sm);
  border:1px solid var(--border); background:var(--surface-2);
  margin-bottom:8px; overflow:visible;
  transition:border-color var(--t), box-shadow var(--t);
}
.settings-list-item:hover { border-color:var(--border-2); box-shadow:var(--shadow-sm); }
.sli-info { display:flex; flex-direction:column; gap:3px; min-width:0; }
.sli-title { font-size:13.5px; font-weight:600; color:var(--text); }
.sli-sub { font-size:12px; color:var(--muted); font-family:'Fira Code', ui-monospace, monospace; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sli-badge { font-size:11px; padding:2px 10px; border-radius:999px; background:var(--accent-soft); color:var(--accent); white-space:nowrap; flex-shrink:0; }
.sli-badge.active { background:var(--ok-soft); color:var(--ok); }
.sli-actions { display:flex; gap:6px; align-items:center; flex-shrink:0; }
.sli-del-btn {
  padding:6px 13px; border-radius:8px; font-size:12px;
  border:1px solid #f3cccc; background:transparent;
  color:var(--err); cursor:pointer; font-family:inherit;
  white-space:nowrap; width:auto; min-width:max-content; overflow:visible; flex-shrink:0;
  transition:all var(--t);
}
.sli-del-btn:hover { border-color:#eaa9a9; background:var(--err-soft); }

/* Status messages */
.settings-empty { color:var(--faint); font-size:13px; padding:24px 0; text-align:center; }
.settings-error { padding:10px 14px; background:var(--err-soft); border:1px solid #f6c9c9; border-radius:9px; font-size:13px; color:var(--err); }
.settings-success { padding:10px 14px; background:var(--ok-soft); border:1px solid #c9ebd6; border-radius:9px; font-size:13px; color:var(--ok); }

/* ════════════════════════════════════════════════════════════════
   KULLANICILAR SAYFASI (admin-only)
   ════════════════════════════════════════════════════════════════ */
.user-form-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r); padding:24px; margin-bottom:20px;
  box-shadow:var(--shadow-sm);
}
.user-form-title { font-size:14.5px; font-weight:600; color:var(--text); margin-bottom:16px; }
.user-form-grid { display:grid; grid-template-columns:1fr 1fr 180px auto; gap:12px; align-items:end; }
@media (max-width:700px) { .user-form-grid { grid-template-columns:1fr 1fr; } }
.user-form-field { display:flex; flex-direction:column; gap:6px; }
.user-form-field label { font-size:12px; font-weight:600; color:var(--muted); letter-spacing:.2px; }
.user-form-field input, .user-form-field select,
#newUserName, #newUserPass, #newUserRole {
  width:100%; padding:10px 13px;
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:9px; color:var(--text); font-family:inherit; font-size:13px;
  outline:none; transition:border-color var(--t), box-shadow var(--t);
}
.user-form-field input::placeholder,
#newUserName::placeholder, #newUserPass::placeholder { color:var(--faint); }
.user-form-field input:focus, .user-form-field select:focus,
#newUserName:focus, #newUserPass:focus, #newUserRole:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); background:var(--surface); }
.user-form-field select option, #newUserRole option { background:var(--surface); }

.user-form-error, #userFormError {
  display:none; margin-top:12px;
  padding:10px 14px;
  background:var(--err-soft); border:1px solid #f6c9c9;
  border-radius:9px; font-size:13px; color:var(--err);
}
.user-form-error:not(:empty), #userFormError:not(:empty) { display:block; }

/* Kullanıcı liste kartı */
.user-list-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r); overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.user-list-card .card-header { padding:18px 22px; border-bottom:1px solid var(--border); }

/* Kullanıcı tablosu — JS hem .user-table hem .users-table üretir */
.user-table, .users-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.user-table th, .users-table th,
.user-table thead th, .users-table thead th {
  text-align:left; padding:12px 20px;
  font-size:11px; font-weight:600; letter-spacing:.5px; text-transform:uppercase;
  color:var(--faint); border-bottom:1px solid var(--border);
}
.user-table tbody tr, .users-table tbody tr { transition:background var(--t); }
.user-table td, .users-table td,
.user-table tbody td, .users-table tbody td {
  padding:14px 20px; border-bottom:1px solid var(--border);
  color:var(--muted); vertical-align:middle;
}
.user-table tbody tr:last-child td, .users-table tbody tr:last-child td { border-bottom:none; }
.user-table tbody tr:hover td, .users-table tbody tr:hover td { background:var(--surface-2); }
.user-table tbody td:first-child, .users-table tbody td:first-child { color:var(--text); font-weight:500; }
.user-name { font-weight:600; color:var(--text); }

/* Kullanıcı sil butonu (JS inline + class) */
.user-del-btn {
  font-family:inherit; font-size:12px; cursor:pointer;
  white-space:nowrap; transition:all var(--t);
}
.user-del-btn:hover { background:var(--err-soft) !important; }

/* Rol rozetleri (yumuşak pill) — hem user-role-badge hem role-badge */
.user-role-badge, .role-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 11px; border-radius:999px; font-size:11px; font-weight:600;
  white-space:nowrap;
}
.user-role-badge.admin, .role-badge.admin { background:var(--accent-soft); color:var(--accent); }
.user-role-badge.user,  .role-badge.user  { background:var(--surface-2); color:var(--muted); border:1px solid var(--border); }

/* ════════════════════════════════════════════════════════════════
   DOMAIN YÖNETİM (Dynadot)
   ════════════════════════════════════════════════════════════════ */
.dynadot-status {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:14px 18px; margin-bottom:18px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-sm);
  box-shadow:var(--shadow-sm);
  font-size:13px; color:var(--muted);
}
.dynadot-status::before {
  content:''; width:9px; height:9px; border-radius:50%; flex-shrink:0;
  background:var(--faint);
}
.dynadot-status.connected::before { background:var(--ok); box-shadow:0 0 0 3px var(--ok-soft); }
.dynadot-status.error::before { background:var(--err); box-shadow:0 0 0 3px var(--err-soft); }
.dynadot-status .status-dot { animation:none; box-shadow:none; }
.dynadot-status strong { color:var(--text); font-weight:700; }
.dynadot-status .dynadot-balance {
  margin-left:auto; padding:5px 12px; border-radius:999px;
  background:var(--accent-soft); color:var(--accent);
  font-weight:700; font-family:'Fira Code', ui-monospace, monospace; font-size:12.5px;
}
.dynadot-settings-link { color:var(--accent); text-decoration:none; font-weight:600; }
.dynadot-settings-link:hover { text-decoration:underline; }

.dynadot-hint { padding:18px 4px; text-align:center; color:var(--muted); font-size:13px; }

.domain-search-bar {
  display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:20px;
}
.domain-search-bar input, #domainSearchInput {
  flex:1; min-width:240px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-sm); color:var(--text); font-size:14px; font-family:inherit;
  padding:12px 16px; outline:none;
  transition:border-color var(--t), box-shadow var(--t);
}
.domain-search-bar input::placeholder, #domainSearchInput::placeholder { color:var(--faint); }
.domain-search-bar input:focus, #domainSearchInput:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.domain-search-bar select, #regDuration {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-sm); color:var(--text); font-size:13.5px; font-family:inherit;
  padding:12px 14px; outline:none; cursor:pointer; -webkit-appearance:none;
  transition:border-color var(--t), box-shadow var(--t);
}
.domain-search-bar select:focus, #regDuration:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.domain-search-bar select option, #regDuration option { background:var(--surface); }

.domain-results { display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.domain-result-row {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:14px 18px; border-radius:var(--r-sm);
  background:var(--surface); border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  transition:border-color var(--t), box-shadow var(--t), transform var(--t);
}
.domain-result-row:hover { border-color:var(--border-2); box-shadow:var(--shadow); transform:translateY(-1px); }
.domain-result-name, .domain-result-row .dr-domain {
  font-family:'Fira Code', ui-monospace, monospace; font-size:14px; font-weight:600; color:var(--text);
}
.domain-result-price, .domain-result-row .dr-price {
  font-family:'Fira Code', ui-monospace, monospace; font-size:13px; color:var(--accent); font-weight:700;
}
.domain-result-row .dr-meta { display:flex; align-items:center; gap:14px; }

.buy-domain-btn {
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 18px;
  background:var(--grad); color:#fff;
  border:none; border-radius:var(--r-sm);
  font-family:inherit; font-size:13px; font-weight:600; cursor:pointer;
  white-space:nowrap;
  box-shadow:var(--shadow-sm);
  transition:transform var(--t), filter var(--t), box-shadow var(--t);
}
.buy-domain-btn:hover { transform:translateY(-1px); filter:brightness(1.05); box-shadow:0 10px 24px -8px rgba(109,94,252,.5); }
.buy-domain-btn:active { transform:translateY(0); }
.buy-domain-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }

.taken {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 14px; border-radius:999px;
  background:var(--err-soft); color:var(--err);
  font-size:12px; font-weight:600; white-space:nowrap;
}
.domain-result-row.taken { opacity:.75; box-shadow:none; }
.domain-result-row.taken:hover { transform:none; box-shadow:var(--shadow-sm); }
.domain-result-row.available { /* JS state — varsayılan satır görünümü */ }

/* ════════════════════════════════════════════════════════════════
   TEMA DEĞİŞTİRME — Karanlık tema (token override) + geçiş düğmesi
   Tüm bileşenler var(--token) kullandığı için sadece token'ları
   override etmek tüm paneli karanlığa çevirir. Köprüler var() ile
   bağlı olduğundan otomatik adapte olur.
   ════════════════════════════════════════════════════════════════ */
:root[data-theme="dark"] {
  --bg:#0b0d14;
  --bg-2:#12151f;
  --surface:#151925;
  --surface-2:#1c2130;
  --border:#272d3d;
  --border-2:#343b4e;
  --text:#eaecf3;
  --muted:#9aa2b8;
  --faint:#69708a;
  --accent:#8b7cff;
  --accent-2:#a78bfa;
  --accent-soft:rgba(139,124,255,.16);
  --grad:linear-gradient(135deg,#7b6cff 0%,#9a7bff 100%);
  --ok:#34d399;   --ok-soft:rgba(52,211,153,.15);
  --warn:#fbbf24; --warn-soft:rgba(251,191,36,.15);
  --err:#f87171;  --err-soft:rgba(248,113,113,.15);
  --shadow-sm:0 1px 2px rgba(0,0,0,.5);
  --shadow:0 6px 20px -6px rgba(0,0,0,.55);
  --shadow-lg:0 18px 50px -14px rgba(0,0,0,.65);
}
/* Karanlık temada arka plan ışıltıları biraz daha belirgin */
:root[data-theme="dark"] body::before {
  background:
    radial-gradient(820px 560px at 10% -6%, rgba(124,109,255,.14), transparent 60%),
    radial-gradient(760px 620px at 100% 4%, rgba(157,123,255,.10), transparent 58%),
    radial-gradient(680px 680px at 50% 118%, rgba(124,109,255,.08), transparent 60%);
}
:root[data-theme="dark"] ::selection { background:rgba(139,124,255,.30); color:#fff; }
:root[data-theme="dark"] * { scrollbar-color:#2c3344 transparent; }
:root[data-theme="dark"] *::-webkit-scrollbar-thumb { background:#2c3344; border-color:var(--bg); }
:root[data-theme="dark"] *::-webkit-scrollbar-thumb:hover { background:#3a4358; }

/* Geçiş düğmesi (her iki temada da çalışır) */
.theme-toggle {
  display:inline-grid; place-items:center;
  width:38px; height:38px; border-radius:10px;
  border:1px solid var(--border); background:var(--surface-2);
  color:var(--muted); cursor:pointer; transition:all var(--t); flex-shrink:0;
}
.theme-toggle:hover { color:var(--accent); border-color:var(--accent); background:var(--accent-soft); }
.theme-toggle svg { width:18px; height:18px; }
.theme-toggle .ico-sun  { display:none; }
.theme-toggle .ico-moon { display:block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display:none; }
:root[data-theme="dark"] .theme-toggle .ico-sun  { display:block; }

/* ── Toplu Seo Ekle — kartlar ───────────────────── */
/* Kompakt, tek-satır yatay kayıt satırları — 5 domain kaydırmadan görünür */
.bulk-grid { display:flex; flex-direction:column; gap:7px; }
.bulk-card {
  display:flex; align-items:center; gap:12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  padding:8px 12px;
  box-shadow:var(--shadow-sm);
  transition:border-color .18s ease, box-shadow .18s ease;
}
.bulk-card:hover { box-shadow:var(--shadow); border-color:var(--border-2); }
.bulk-card:focus-within {
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}
/* Sol segment: numara + kök domain önizleme + durum (tek satır, esnemez) */
.bulk-card-head {
  display:flex; align-items:center; gap:8px;
  margin:0; flex:0 0 auto; min-width:0;
}
.bulk-card-num { display:flex; align-items:center; gap:8px; min-width:0; }
.bulk-card-num .n {
  width:24px; height:24px; border-radius:8px; flex-shrink:0;
  display:grid; place-items:center;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff; font-size:12px; font-weight:700;
  box-shadow:0 2px 6px -1px rgba(109,94,252,.5);
}
.bulk-card-num .dom {
  font-size:12px; font-weight:600; color:var(--text);
  max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.bulk-card-num .dom .arrow { color:var(--faint); margin-right:4px; }
.bulk-card-num .dom:empty { display:none; }
.bc-status { font-size:11px; white-space:nowrap; }
.bc-status:empty { display:none; }
/* Alanlar: sağda esnek, tek satır 3 kolon; etiketler görsel olarak gizli (placeholder yeterli) */
.bulk-fields { display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:8px; flex:1; min-width:0; }
.bulk-field { display:flex; flex-direction:column; min-width:0; }
.bulk-field label {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.bulk-field input {
  width:100%; padding:8px 11px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  color:var(--text); font-family:inherit; font-size:13px;
  outline:none; -webkit-appearance:none;
  transition:border-color var(--t), box-shadow var(--t), background var(--t);
}
.bulk-field input::placeholder { color:var(--faint); }
.bulk-field input:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
  background:var(--surface);
}
.bulk-status:not(:empty) { margin-top:11px; }
@media (max-width:620px) {
  .bulk-card { flex-direction:column; align-items:stretch; gap:8px; }
  .bulk-card-head { justify-content:flex-start; }
  .bulk-fields { grid-template-columns:1fr; }
}

/* Toplu modal — kart alanı kaydırmalı, başlık/footer sabit */
#seoBulkOverlay .modal { display:flex; flex-direction:column; max-height:90vh; }
#seoBulkOverlay .modal-header,
#seoBulkOverlay .modal-footer { flex-shrink:0; }
#seoBulkOverlay .modal-body { overflow:hidden; min-height:0; }
#seoBulkCards.bulk-grid {
  max-height:56vh;
  overflow-y:auto;
  padding:4px 10px 4px 4px;
  margin:0 -6px 0 -4px;
  scrollbar-width:thin;
  scrollbar-color:var(--border-2) transparent;
}
#seoBulkCards.bulk-grid::-webkit-scrollbar { width:8px; }
#seoBulkCards.bulk-grid::-webkit-scrollbar-track { background:transparent; }
#seoBulkCards.bulk-grid::-webkit-scrollbar-thumb {
  background:var(--border-2); border-radius:8px;
  border:2px solid transparent; background-clip:padding-box;
}
#seoBulkCards.bulk-grid::-webkit-scrollbar-thumb:hover { background:var(--faint); background-clip:padding-box; }

/* Yarı otomatik — card-header içindeki CF hesap seçici */
.seo-cf-select {
  min-width:180px; padding:8px 12px;
  background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--r-sm); color:var(--text);
  font-family:inherit; font-size:13px; outline:none;
  -webkit-appearance:none; cursor:pointer;
  transition:border-color var(--t), box-shadow var(--t);
}
.seo-cf-select:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); background:var(--surface); }

/* Registrar — Varsayılan yap butonu */
.sli-default-btn {
  padding:6px 13px; border-radius:8px; font-size:12px;
  border:1px solid var(--border-2); background:transparent;
  color:var(--accent); cursor:pointer; font-family:inherit;
  white-space:nowrap; min-width:max-content; flex-shrink:0;
  transition:all var(--t);
}
.sli-default-btn:hover { border-color:var(--accent); background:var(--accent-soft); }

/* ── Drawer: yeni düzen (üst kategori barı + dikey yönetim menüsü) ── */
.drawer-hostbar {
  display:flex; align-items:center; gap:10px;
  padding:10px 16px; border-bottom:1px solid var(--border);
  background:var(--surface-2); flex-shrink:0;
}
.drawer-hostbar-label {
  font-size:11px; font-weight:700; letter-spacing:.5px; text-transform:uppercase;
  color:var(--faint); flex-shrink:0;
}
.drawer-hostbar .drawer-domain-selector {
  padding:0; border:none; background:transparent; min-height:0; flex:1;
}
.drawer-hostbar .drawer-domain-selector:empty { display:flex; }
.dds-pill.dds-add {
  border-style:dashed; color:var(--accent); border-color:var(--accent);
  font-family:inherit; font-weight:600;
}
.dds-pill.dds-add:hover { background:var(--accent-soft); }

/* Dikey yönetim menüsü */
.drawer-vnav { display:flex; flex-direction:column; gap:10px; padding:16px; }
.vnav-btn {
  display:flex; align-items:center; gap:12px;
  padding:16px; border:1px solid var(--border); border-radius:var(--r);
  background:var(--surface); color:var(--text); cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:600; text-align:left;
  box-shadow:var(--shadow-sm); transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.vnav-btn:hover { border-color:var(--accent); transform:translateY(-1px); box-shadow:var(--shadow); }
.vnav-btn > svg:first-child { width:22px; height:22px; color:var(--accent); flex-shrink:0; }
.vnav-btn span { flex:1; }
.vnav-arrow { width:18px !important; height:18px !important; color:var(--faint) !important; }

.vnav-back {
  display:flex; align-items:center; gap:6px;
  margin:14px 16px 0; padding:8px 12px;
  border:1px solid var(--border); border-radius:9px;
  background:var(--surface); color:var(--muted); cursor:pointer;
  font-family:inherit; font-size:12.5px; font-weight:600;
  transition:all var(--t);
}
.vnav-back:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }
.vnav-back svg { width:15px; height:15px; }

/* CF hesap "Geç" — kompakt aksiyon butonu */
.cf-acc-switch {
  flex-shrink:0; white-space:nowrap; cursor:pointer; font-family:inherit;
  padding:7px 18px; border-radius:9px; border:none;
  font-size:12.5px; font-weight:600;
  background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:#fff;
  box-shadow:0 2px 6px -1px rgba(109,94,252,.45);
  transition:filter var(--t), transform var(--t), opacity var(--t);
}
.cf-acc-switch:hover { filter:brightness(1.06); transform:translateY(-1px); }
.cf-acc-switch:disabled { opacity:.55; cursor:default; transform:none; filter:none; }

/* ── Drawer: hızlı aksiyonlar + sağlık ── */
.drawer-actions {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 16px; border-bottom:1px solid var(--border); background:var(--surface);
  flex-wrap:wrap; flex-shrink:0;
}
.drawer-health { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:var(--muted); }
.drawer-health .dh-dot { width:9px; height:9px; border-radius:50%; background:var(--faint); flex-shrink:0; box-shadow:0 0 0 3px transparent; }
.drawer-health.up   .dh-dot { background:var(--ok);  box-shadow:0 0 0 3px var(--ok-soft); }
.drawer-health.up   .dh-text { color:var(--ok); }
.drawer-health.down .dh-dot { background:var(--err); box-shadow:0 0 0 3px var(--err-soft); }
.drawer-health.down .dh-text { color:var(--err); }
.drawer-health.warn .dh-dot { background:#d97706; box-shadow:0 0 0 3px #fde9d0; }
.drawer-health.warn .dh-text { color:#b45309; }
.drawer-actions-btns { display:flex; align-items:center; gap:8px; }
.drawer-act-btn {
  display:inline-flex; align-items:center; gap:6px; cursor:pointer; font-family:inherit;
  padding:6px 12px; border-radius:9px; font-size:12px; font-weight:600;
  border:1px solid var(--border); background:var(--surface-2); color:var(--muted);
  white-space:nowrap; transition:all var(--t);
}
.drawer-act-btn svg { width:14px; height:14px; }
.drawer-act-btn:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }

/* ── DNS ekleme formu (tip seçimli) ── */
.dns-add-form { display:flex; flex-direction:column; gap:10px; }
.dns-add-row { display:flex; gap:8px; align-items:stretch; }
.dns-type-select {
  flex-shrink:0; width:92px; padding:10px 10px; border-radius:var(--r-sm);
  background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  font-family:inherit; font-size:13px; cursor:pointer; outline:none; -webkit-appearance:none;
}
.dns-type-select:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.dns-value-input {
  width:100%; padding:10px 12px; border-radius:var(--r-sm);
  background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  font-family:inherit; font-size:13.5px; outline:none;
}
.dns-value-input:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); background:var(--surface); }
.dns-proxy-toggle { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted); cursor:pointer; user-select:none; }
.dns-proxy-toggle input { width:15px; height:15px; accent-color:var(--accent); cursor:pointer; }
