:root {
  --bg: #080b16;
  --bg-2: #0b0f1e;
  --panel: rgba(20, 26, 44, 0.72);
  --panel-solid: #141a2c;
  --panel-2: #10162a;
  --line: rgba(148, 163, 184, 0.10);
  --line-strong: rgba(148, 163, 184, 0.18);
  --text: #e9eefb;
  --text-2: #aab3cc;
  --muted: #717c98;
  --primary: #6d5efc;
  --primary-2: #9b7bff;
  --teal: #2dd4bf;
  --emerald: #34d399;
  --amber: #fbbf24;
  --violet: #a78bfa;
  --danger: #fb7185;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

::selection { background: rgba(109, 94, 252, 0.35); }

/* scrollbars */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.18); border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.3); }

/* ============ LOGIN ============ */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(109,94,252,0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(45,212,191,0.12), transparent 55%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.login-aurora {
  position: absolute; inset: -30%;
  background: conic-gradient(from 90deg at 50% 50%, rgba(109,94,252,0.10), rgba(167,139,250,0.06), rgba(45,212,191,0.08), rgba(109,94,252,0.10));
  filter: blur(80px);
  /* sabit dursun — dönen aurora kapatıldı */
}
@keyframes spin { to { transform: rotate(360deg); } }
.login-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 500px at 50% 40%, #000 30%, transparent 75%);
}
.login-card {
  position: relative;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: linear-gradient(180deg, rgba(22,29,49,0.92), rgba(13,18,33,0.94));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: rise 0.6s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand-glyph {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 18px;
  box-shadow: 0 8px 20px -6px rgba(109,94,252,0.6);
  overflow: hidden;
}
.brand-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.brand-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.login-title { font-family: 'Sora', sans-serif; font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.login-desc { color: var(--text-2); margin: 6px 0 22px; }
.login-error {
  background: rgba(251,113,133,0.12); border: 1px solid rgba(251,113,133,0.3);
  color: #fda4af; padding: 10px 13px; border-radius: 11px; font-size: 13px; margin-bottom: 16px;
}
.login-form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12px; color: var(--text-2); font-weight: 600; letter-spacing: 0.02em; }
.field input, .modal input, .modal textarea {
  width: 100%;
  background: rgba(8,11,22,0.6);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 11px;
  font-family: inherit; font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .modal input:focus, .modal textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(109,94,252,0.16);
}
.login-foot { margin-top: 20px; text-align: center; font-size: 11px; color: var(--muted); }

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; border: none; cursor: pointer;
  padding: 11px 18px; border-radius: 11px;
  font-family: inherit; font-weight: 600; font-size: 13.5px;
  box-shadow: 0 10px 24px -10px rgba(109,94,252,0.7);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 30px -10px rgba(109,94,252,0.8); }
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; padding: 13px; margin-top: 4px; }
.btn-sm { padding: 9px 14px; font-size: 12.5px; width: 100%; }
.btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line-strong); cursor: pointer;
  padding: 11px 18px; border-radius: 11px; font-family: inherit; font-weight: 600; font-size: 13.5px;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: rgba(148,163,184,0.08); color: var(--text); }

/* ============ APP LAYOUT ============ */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }

.sidebar {
  background: linear-gradient(180deg, rgba(13,18,33,0.9), rgba(9,12,22,0.95));
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-2); font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 11px 13px; border-radius: 11px; text-align: left; width: 100%;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.nav-ico { width: 18px; text-align: center; opacity: 0.8; font-size: 13px; }
.nav-item:hover { background: rgba(148,163,184,0.06); color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(109,94,252,0.18), rgba(155,123,255,0.10));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(109,94,252,0.3);
}
.nav-item.active::before {
  content: ''; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--primary);
}
.nav-badge {
  margin-left: auto; background: rgba(148,163,184,0.14); color: var(--text-2);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,0.18); color: #fff; }

.sidebar-cta {
  margin-top: auto; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(109,94,252,0.16), rgba(45,212,191,0.06));
  border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px;
}
.cta-glow { position: absolute; top: -40px; right: -40px; width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(109,94,252,0.5), transparent 70%); filter: blur(12px); }
.cta-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.cta-desc { color: var(--text-2); font-size: 12px; line-height: 1.5; margin-bottom: 13px; }

.sidebar-user { display: flex; align-items: center; gap: 11px; padding: 10px; border-top: 1px solid var(--line); }
.user-avatar {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--emerald)); color: #04221d; font-weight: 800; font-family: 'Sora', sans-serif;
}
.user-meta { flex: 1; }
.user-name { font-weight: 700; font-size: 13.5px; }
.user-role { color: var(--muted); font-size: 11.5px; }
.user-logout {
  text-decoration: none; color: var(--text-2); font-size: 17px;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}
.user-logout:hover { background: rgba(251,113,133,0.14); color: var(--danger); }

/* ============ MAIN ============ */
.main { min-width: 0; background:
  radial-gradient(900px 500px at 100% -5%, rgba(109,94,252,0.08), transparent 55%),
  var(--bg); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 30px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(8,11,22,0.72); backdrop-filter: blur(12px);
}
.page-title { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.page-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.search { position: relative; }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }
.search input {
  background: var(--panel); border: 1px solid var(--line-strong); color: var(--text);
  padding: 10px 14px 10px 34px; border-radius: 11px; font-family: inherit; font-size: 13px; width: 220px;
  transition: border-color 0.2s, box-shadow 0.2s, width 0.2s;
}
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(109,94,252,0.14); width: 250px; }
.refresh-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.content { padding: 26px 30px 40px; display: flex; flex-direction: column; gap: 22px; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  display: flex; gap: 15px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(10px);
  animation: rise 0.5s cubic-bezier(0.2,0.8,0.2,1) both;
}
.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.18s; }
.stat-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.ico-teal { background: rgba(45,212,191,0.14); color: var(--teal); box-shadow: inset 0 0 0 1px rgba(45,212,191,0.25); }
.ico-emerald { background: rgba(52,211,153,0.14); color: var(--emerald); box-shadow: inset 0 0 0 1px rgba(52,211,153,0.25); }
.ico-amber { background: rgba(251,191,36,0.14); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(251,191,36,0.25); }
.ico-violet { background: rgba(167,139,250,0.14); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(167,139,250,0.25); }
.stat-label { color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.stat-value { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.stat-foot { color: var(--muted); font-size: 11.5px; }

/* PANELS / TABLES */
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bottom { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(10px); overflow: hidden;
  display: flex; flex-direction: column;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-amber { background: var(--amber); box-shadow: 0 0 8px rgba(251,191,36,0.6); }
.dot-emerald { background: var(--emerald); box-shadow: 0 0 8px rgba(52,211,153,0.6); }
.dot-violet { background: var(--violet); box-shadow: 0 0 8px rgba(167,139,250,0.6); }
.dot-teal { background: var(--teal); box-shadow: 0 0 8px rgba(45,212,191,0.6); }
.panel-count { background: rgba(148,163,184,0.12); color: var(--text-2); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.panel-hint { color: var(--muted); font-size: 11.5px; }

.table-wrap { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable thead th {
  position: sticky; top: 0; background: var(--panel-2); z-index: 1;
  text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
}
.dtable td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tbody tr { transition: background 0.15s; }
.dtable tbody tr:hover { background: rgba(148,163,184,0.04); }
.dtable tbody tr:last-child td { border-bottom: none; }
.ta-r { text-align: right; }
.cell-domain { display: flex; flex-direction: column; gap: 2px; }
.cell-domain a { color: var(--text); text-decoration: none; font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.cell-domain a:hover { color: var(--primary-2); text-decoration: underline; }
.cell-sub { color: var(--muted); font-size: 11px; }

.metric { font-variant-numeric: tabular-nums; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.metric-da { color: var(--teal); }
.metric-pa { color: var(--violet); }
.metric-empty { color: var(--muted); font-weight: 500; }

.creds { display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: rgba(148,163,184,0.08); border: 1px solid var(--line); color: var(--text-2);
  padding: 4px 9px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  max-width: 210px; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: rgba(109,94,252,0.14); border-color: rgba(109,94,252,0.4); color: var(--text); }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-ico { opacity: 0.7; }
.chip-empty { color: var(--muted); font-size: 11px; }

.tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.tag-name { background: rgba(52,211,153,0.14); color: var(--emerald); box-shadow: inset 0 0 0 1px rgba(52,211,153,0.25); font-family: 'Manrope', sans-serif; }

.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }
.iconbtn {
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
  background: rgba(148,163,184,0.08); border: 1px solid var(--line); color: var(--text-2);
  display: grid; place-items: center; font-size: 13px; transition: all 0.15s;
}
.iconbtn:hover { background: rgba(109,94,252,0.16); color: #fff; border-color: rgba(109,94,252,0.4); }
.iconbtn.danger:hover { background: rgba(251,113,133,0.16); color: var(--danger); border-color: rgba(251,113,133,0.4); }
.iconbtn.ok:hover { background: rgba(52,211,153,0.16); color: var(--emerald); border-color: rgba(52,211,153,0.4); }

.spin { display: inline-block; animation: spin 0.9s linear infinite; }
.checking-pill {
  font-size: 10.5px; color: var(--amber); background: rgba(251,191,36,0.12);
  padding: 2px 8px; border-radius: 20px; font-weight: 700;
}

.empty-row td { text-align: center; color: var(--muted); padding: 34px; font-size: 13px; }

/* ACTIVITY */
.activity { list-style: none; padding: 8px 8px 12px; overflow-y: auto; max-height: 380px; }
.activity li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 11px; transition: background 0.15s; }
.activity li:hover { background: rgba(148,163,184,0.05); }
.act-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.act-add { background: rgba(45,212,191,0.14); color: var(--teal); }
.act-process { background: rgba(52,211,153,0.14); color: var(--emerald); }
.act-delete { background: rgba(251,113,133,0.14); color: var(--danger); }
.act-revert { background: rgba(251,191,36,0.14); color: var(--amber); }
.act-metrics { background: rgba(167,139,250,0.14); color: var(--violet); }
.act-credentials { background: rgba(109,94,252,0.14); color: var(--primary-2); }
.act-body { flex: 1; min-width: 0; }
.act-text { font-size: 13px; }
.act-text b { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; }
.act-time { color: var(--muted); font-size: 11px; margin-top: 2px; }

.chart-wrap { padding: 16px 18px 20px; height: 280px; }

/* MODALS */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(4,6,12,0.66); backdrop-filter: blur(4px);
  display: none; place-items: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: grid; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 440px; max-width: 100%;
  background: linear-gradient(180deg, rgba(22,29,49,0.98), rgba(13,18,33,0.99));
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 24px;
  box-shadow: var(--shadow); animation: rise 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h3 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; }
.modal-x { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px; border-radius: 8px; }
.modal-x:hover { color: var(--text); background: rgba(148,163,184,0.1); }
.modal-desc { color: var(--text-2); font-size: 13px; margin: 8px 0 16px; line-height: 1.6; }
.modal-desc code, .modal code { background: rgba(8,11,22,0.7); border: 1px solid var(--line); padding: 2px 7px; border-radius: 7px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--primary-2); }
.modal textarea { resize: vertical; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* TOAST */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(40px);
  background: var(--panel-solid); border: 1px solid var(--line-strong); color: var(--text);
  padding: 13px 20px; border-radius: 12px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(52,211,153,0.4); }
.toast.err { border-color: rgba(251,113,133,0.4); }

/* VIEW VISIBILITY (set by JS) */
body[data-view="unused"] #statsSection,
body[data-view="unused"] #panelUsed,
body[data-view="unused"] .bottom { display: none; }
body[data-view="unused"] .tables { grid-template-columns: 1fr; }

body[data-view="used"] #statsSection,
body[data-view="used"] #panelUnused,
body[data-view="used"] .bottom { display: none; }
body[data-view="used"] .tables { grid-template-columns: 1fr; }

body[data-view="activity"] #statsSection,
body[data-view="activity"] .tables,
body[data-view="activity"] #panelUsersSection { display: none; }
body[data-view="activity"] .bottom { grid-template-columns: 1fr; }

/* users view */
#panelUsersSection { display: none; }
body[data-view="users"] #panelUsersSection { display: block; }
body[data-view="users"] #statsSection,
body[data-view="users"] .tables,
body[data-view="users"] .bottom { display: none; }
body[data-view="dashboard"] #panelUsersSection,
body[data-view="unused"] #panelUsersSection,
body[data-view="used"] #panelUsersSection { display: none; }

/* site girişleri — sadece admin + sadece dashboard görünümünde */
#siteLoginsSection { display: none; }
body.is-admin[data-view="dashboard"] #siteLoginsSection { display: block; }
/* admin olmayan bu öğeleri hiç görmesin */
body:not(.is-admin) .admin-only { display: none !important; }
.lock-badge { font-size: 10.5px; font-weight: 700; color: var(--amber); background: rgba(251,191,36,0.12); padding: 2px 9px; border-radius: 20px; margin-left: 6px; }
.site-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13.5px; color: var(--text); }

/* satılık domainler — kendi görünümünde gösterilir */
#saleSection { display: none; }
body[data-view="sale"] #saleSection { display: block; }
body[data-view="sale"] #statsSection,
body[data-view="sale"] .tables,
body[data-view="sale"] .bottom,
body[data-view="sale"] #panelUsersSection,
body[data-view="sale"] #siteLoginsSection { display: none; }

.sale-table th, .sale-table td { padding-left: 9px; padding-right: 9px; }
.sale-domain {
  font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 12.5px;
  color: var(--primary-2); background: none; border: 0; cursor: pointer; padding: 0;
  text-align: left; transition: color 0.15s;
}
.sale-domain:hover { color: #fff; text-decoration: underline; }
.sale-flag { font-size: 15px; }
.sale-price { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--emerald); font-size: 12.5px; }
.sale-fav { background: rgba(251,191,36,0.06); }
.sale-fav:hover { background: rgba(251,191,36,0.1); }
.iconbtn.fav-on { color: var(--amber); border-color: rgba(251,191,36,0.4); }
.iconbtn.fav-on:hover { background: rgba(251,191,36,0.16); color: var(--amber); }

/* sale: domain + düşüş saati */
.sale-domcell { display: flex; flex-direction: column; gap: 3px; }
.sale-time { font-family: 'Manrope', sans-serif; font-size: 10.5px; font-weight: 600; color: var(--muted); }

/* sale: filtre çubuğu */
.sale-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 20px 16px; }
.sale-filter-btn {
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--text-2); background: rgba(148,163,184,0.07);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 13px;
  transition: all 0.15s;
}
.sale-filter-btn:hover { color: var(--text); border-color: rgba(109,94,252,0.4); }
.sale-filter-btn.active { color: #fff; background: rgba(109,94,252,0.2); border-color: var(--primary); }
.sale-select {
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--text-2); background: rgba(148,163,184,0.07);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 13px;
  outline: none; max-width: 220px;
}
.sale-select:focus { border-color: var(--primary); color: var(--text); }
.sale-select option { background: var(--panel-solid); color: var(--text); }

/* ALPİ HACKLİNK görünümü */
#alpiSection { display: none; }
body[data-view="alpi"] #alpiSection { display: block; }
body[data-view="alpi"] #statsSection,
body[data-view="alpi"] .tables,
body[data-view="alpi"] .bottom,
body[data-view="alpi"] #panelUsersSection,
body[data-view="alpi"] #siteLoginsSection,
body[data-view="alpi"] #saleSection { display: none; }
.alpi-table .chip { max-width: 300px; }
.alpi-table .chip-cred { max-width: 240px; }
.alpi-badge { font-size: 10.5px; font-weight: 700; color: var(--violet); background: rgba(167,139,250,0.14); padding: 3px 9px; border-radius: 20px; white-space: nowrap; }

/* Semrush Kontrol görünümü */
#semrushSection { display: none; }
body[data-view="semrush"] #semrushSection { display: block; }
body[data-view="semrush"] #statsSection,
body[data-view="semrush"] .tables,
body[data-view="semrush"] .bottom,
body[data-view="semrush"] #panelUsersSection,
body[data-view="semrush"] #siteLoginsSection,
body[data-view="semrush"] #saleSection,
body[data-view="semrush"] #alpiSection { display: none; }

.semrush-layout { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.semrush-query-body { padding: 0 18px 18px; }
.sq-hint { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 4px 0 12px; }
.semrush-query textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 160px;
  background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 11px;
  color: var(--text); padding: 12px 13px; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.6; outline: none;
}
.semrush-query textarea:focus { border-color: var(--primary); }
.sq-actions { display: flex; gap: 10px; margin-top: 12px; align-items: center; flex-wrap: wrap; }

.sem-domain { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 12.5px; color: var(--text); }
.sem-badge { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.sem-clean { color: var(--emerald); background: rgba(52,211,153,0.15); }
.sem-dirty { color: var(--danger); background: rgba(251,113,133,0.18); }
.sem-wait { color: var(--muted); background: rgba(148,163,184,0.12); }
.sem-work { color: var(--amber); background: rgba(251,191,36,0.14); }
.sem-err { color: var(--amber); background: rgba(251,191,36,0.12); }
.sem-found {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-2);
  max-width: 520px; max-height: 92px; overflow: auto; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.sem-found-err { color: var(--amber); }

@media (max-width: 1100px) { .semrush-layout { grid-template-columns: 1fr; } }

/* Google Sorgu görünümü */
#googleSection { display: none; }
body[data-view="google"] #googleSection { display: block; }
body[data-view="google"] #statsSection,
body[data-view="google"] .tables,
body[data-view="google"] .bottom,
body[data-view="google"] #panelUsersSection,
body[data-view="google"] #siteLoginsSection { display: none; }
.g-pages { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 13px; color: var(--teal); }

.btn-xs { padding: 7px 13px; font-size: 12px; box-shadow: none; }
.user-cell { font-family: 'JetBrains Mono', monospace; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.user-cell .ucirc { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.you-pill { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; background: rgba(52,211,153,0.14); color: var(--emerald); margin-left: 4px; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tables, .bottom { grid-template-columns: 1fr; }
}
/* hamburger + backdrop yalnız mobilde görünür */
.nav-toggle { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; left: -300px; height: 100vh; overflow-y: auto; width: 270px; z-index: 60; transition: left 0.25s; }
  .sidebar.open { left: 0; box-shadow: 0 0 60px rgba(0,0,0,0.6); }
  .nav-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 55; }

  /* login: kartı üste SABİT px ile sabitle — klavye açılıp viewport (vh) değişince oynamasın */
  .login-body { align-items: start; min-height: 100dvh; padding: 36px 16px 40px; }
  .login-card { animation: none; }

  /* dedicated tam-sayfa görünümler (ALPİ/Satılık/Semrush/Google/Kullanılan...) tam açılır */
  .table-wrap { overflow: visible; max-height: none; }
  .activity { max-height: none; overflow: visible; }
  .chart-wrap { height: 240px; }
  /* DASHBOARD: paneller iç-scroll'lu — sayfa aşırı uzamaz, kart içinde aşağı kaydırılır */
  body[data-view="dashboard"] .tables .table-wrap { max-height: 58vh; overflow-y: auto; }
  body[data-view="dashboard"] .activity { max-height: 52vh; overflow-y: auto; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 10px; margin-right: 2px; cursor: pointer;
    background: var(--panel-solid); border: 1px solid var(--line-strong); color: var(--text); font-size: 19px;
  }
  .topbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; }
  .topbar-head { flex: 1; min-width: 0; }
  .topbar-actions { width: 100%; order: 3; flex-wrap: wrap; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .content { padding: 18px 14px 40px; }

  /* KART düzeni: tablolar mobilde dikey kart olur */
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .dtable thead { display: none; }
  .dtable tr {
    border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(148,163,184,0.04);
    margin-bottom: 12px; padding: 10px 13px;
  }
  .dtable td {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 7px 0; border: none; text-align: right; min-height: 30px;
  }
  .dtable td::before {
    content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 700;
    text-align: left; flex-shrink: 0; white-space: nowrap;
  }
  .dtable td.cell-title {
    justify-content: flex-start; padding: 0 0 8px; margin-bottom: 4px;
    border-bottom: 1px solid var(--line); font-size: 14.5px;
  }
  .dtable td.cell-title::before, .dtable td.cell-act::before { content: none; }
  .dtable td.cell-act { justify-content: flex-end; padding-top: 9px; }
  .dtable tr.empty-row { text-align: center; padding: 18px; color: var(--muted); }
  .dtable tr.empty-row td { display: block; text-align: center; }
  .dtable tr.empty-row td::before { content: none; }
  /* mobilde chip/uzun değerler taşmasın */
  .sale-domcell { align-items: flex-start; }

  /* Uzun değerli hücreler (URL/bilgiler/bulunan backlink): etiket ÜSTTE,
     değer ALTTA tam genişlik ve satır kaydırarak — kesme/ellipsis yok */
  .dtable td:has(.chip),
  .dtable td:has(.sem-found),
  .dtable td.sem-domain {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 5px;
  }
  .dtable td:has(.chip)::before,
  .dtable td:has(.sem-found)::before,
  .dtable td.sem-domain::before { text-align: left; }

  /* chip değerleri tam görünsün, sar */
  .dtable td .chip {
    max-width: 100%;
    align-items: flex-start;
    white-space: normal;
    height: auto;
  }
  .dtable td .chip span:last-child {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-all;
  }
  /* uzun domain / bulunan backlink: tam göster, sar, iç-kaydırma yok */
  .dtable td .sale-domain { max-width: 100%; white-space: normal; word-break: break-all; text-align: left; }
  .sem-found { max-width: 100%; max-height: none; overflow: visible; }
}

/* ── Son gelen domainler — sola kayan şerit (marquee) ── */
.ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(109,94,252,0.10), rgba(16,22,42,0.6));
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
}
.ticker[hidden] { display: none; }
.ticker-label {
  flex: none;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-2);
  letter-spacing: 0.2px;
}
.ticker-view { flex: 1; overflow: hidden; position: relative; min-width: 0; }
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 22s linear infinite;
}
.ticker-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.ticker-item .dot { color: var(--teal); margin-right: 9px; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Domain Kontrol görünümü ── */
#dkSection { display: none; }
body[data-view="dk"] #dkSection { display: block; }
body[data-view="dk"] #statsSection,
body[data-view="dk"] .tables,
body[data-view="dk"] .bottom,
body[data-view="dk"] #panelUsersSection,
body[data-view="dk"] #siteLoginsSection { display: none; }

.dot-emerald { background: var(--emerald); }

/* alınabilir özet paneli */
.dk-buyable { margin-bottom: 18px; }
.dk-buylist { display: flex; flex-wrap: wrap; gap: 9px; padding: 4px 20px 18px; }
.dk-buylist:empty::after {
  content: "Henüz alınabilir domain yok."; color: var(--muted); font-size: 13px; padding: 4px 0;
}
.dk-chip {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 700;
  color: var(--emerald); background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.35); border-radius: 10px; padding: 7px 12px;
  cursor: pointer; transition: all 0.15s;
}
.dk-chip:hover { background: rgba(52,211,153,0.2); color: #fff; }

/* sonuç badge'leri */
.dk-badge { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.dk-buy { color: var(--emerald); background: rgba(52,211,153,0.16); }
.dk-no { color: var(--danger); background: rgba(251,113,133,0.18); }
.dk-google { color: #60a5fa; background: rgba(96,165,250,0.15); }
.dk-semrush { color: var(--violet); background: rgba(167,139,250,0.15); }
.dk-wait { color: var(--muted); background: rgba(148,163,184,0.12); }
.dk-err { color: var(--amber); background: rgba(251,191,36,0.12); }
.dk-idx { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--text-2); }
.dk-reason { font-size: 11.5px; color: var(--text-2); }
