/* ============================================================
   BTS Company Web — Panel Teması (Kurumsal / Üst Navbar)
   ============================================================ */

:root {
    /* Yüzeyler */
    --bg: #f4f5f8;
    --surface: #ffffff;
    --surface-2: #f8f9fb;
    --border: #e7e9ef;
    --border-strong: #d6dae2;

    /* Metin */
    --text: #131722;
    --text-2: #565f70;
    --muted: #8b93a4;

    /* Marka / vurgu */
    --accent: #4f46e5;
    --accent-600: #4338ca;
    --accent-tint: #eef0fe;
    --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

    /* Navbar (acik) */
    --nav-bg: #ffffff;
    --nav-bg-2: #fbfcfe;
    --nav-fg: #565f70;
    --nav-fg-strong: #131722;
    --nav-border: #e7e9ef;

    /* Durum */
    --ok: #0f9d6b;         --ok-tint: #e5f6ee;   --ok-bd: #bfe8d5;
    --warn: #c2740a;       --warn-tint: #fbf1e3; --warn-bd: #f0d9b4;
    --danger: #dc2b3c;     --danger-tint: #fdeaec; --danger-bd: #f5c6cc;
    --slate: #52607a;      --slate-tint: #eef1f6;

    --radius: 16px;
    --radius-md: 13px;
    --radius-sm: 10px;
    --shadow-xs: 0 1px 2px rgba(19,23,34,.06);
    --shadow-sm: 0 2px 6px rgba(19,23,34,.06);
    --shadow: 0 10px 30px rgba(19,23,34,.09);
    --shadow-lg: 0 24px 60px rgba(19,23,34,.20);
    --nav-h: 80px;

    --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    --mono: "Cascadia Code", "Consolas", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3 { letter-spacing: -.015em; }
code {
    font-family: var(--mono);
    font-size: .85em;
    background: var(--slate-tint);
    padding: 2px 7px;
    border-radius: 6px;
    color: var(--slate);
}

/* ==================== NAVBAR ==================== */
.navbar {
    height: var(--nav-h);
    background: var(--nav-bg);
    background-image: linear-gradient(180deg, var(--nav-bg-2), var(--nav-bg));
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--shadow-xs);
    position: sticky; top: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    gap: 12px; padding: 0 20px;
}
.nav-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nav-left  { justify-content: flex-end; }   /* sol butonlar logoya yaslanir */
.nav-right { justify-content: flex-start; } /* sag butonlar logoya yaslanir */

/* Orta logo */
.nav-logo { display: flex; align-items: center; justify-self: center; padding: 0 4px; }
.bts-mark { width: auto; display: block; object-fit: contain; }

.nav-link {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 12px; border-radius: 10px;
    color: var(--nav-fg); font-weight: 500; font-size: 13px;
    white-space: nowrap;
    transition: background .14s, color .14s;
}
.nav-link:hover { color: var(--nav-fg-strong); background: var(--surface-2); }
.nav-link.active { color: var(--accent-600); background: var(--accent-tint); }
.nav-link.active .nav-lic { color: var(--accent); }
.nav-lic { color: var(--muted); display: grid; place-items: center; }
.nav-link:hover .nav-lic { color: inherit; }

/* Sag yardimci alan: durum + cikis (sag butonlardan sonra en saga) */
.nav-util {
    display: flex; align-items: center; gap: 10px; margin-left: auto;
}
.nav-status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--nav-border);
    color: var(--nav-fg); font-size: 12.5px; font-weight: 500;
}
.nav-status code { background: transparent; color: var(--text-2); padding: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.nav-logout {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 13px; border-radius: 10px;
    color: var(--nav-fg); font-weight: 500; font-size: 13px;
    border: 1px solid var(--nav-border); background: var(--surface);
    transition: all .14s;
}
.nav-logout:hover { color: var(--danger); border-color: var(--danger-bd); background: var(--danger-tint); }
.nav-toggle { display: none; }

/* Dar masaustunde alan yetmezse durum rozetini gizle (kalabaligi onler) */
@media (max-width: 1200px) { .nav-status { display: none; } }

/* ==================== SAYFA ==================== */
.page { max-width: 1180px; margin: 0 auto; padding: 28px 24px 56px; transition: opacity .14s ease; }
.page.is-loading { opacity: .5; pointer-events: none; }

.page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.page-head h1 { font-size: 22px; margin: 0 0 3px; font-weight: 750; }
.page-desc { color: var(--text-2); margin: 0; font-size: 13.5px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.breadcrumb .link { color: var(--muted); }
.breadcrumb .crumb-now { color: var(--text); font-weight: 700; font-size: 15px; }

/* ==================== Alerts ==================== */
.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 15px; border-radius: var(--radius-sm);
    margin-bottom: 18px; font-weight: 500; font-size: 13.5px;
    border: 1px solid transparent;
}
.alert svg { flex: 0 0 auto; }
.alert-success { background: var(--ok-tint); color: var(--ok); border-color: var(--ok-bd); }
.alert-error   { background: var(--danger-tint); color: var(--danger); border-color: var(--danger-bd); }

/* ==================== Cards ==================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 22px;
    margin-bottom: 22px;
}
.card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 18px;
}
.card-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 15.5px; font-weight: 700; margin: 0;
}
.card-title svg { color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ==================== Stat kartları ==================== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .16s, transform .16s;
}
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.stat-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; }
.ic-blue { background: var(--accent-tint); color: var(--accent-600); }
.ic-green { background: var(--ok-tint); color: var(--ok); }
.ic-amber { background: var(--warn-tint); color: var(--warn); }
.ic-slate { background: var(--slate-tint); color: var(--slate); }
.stat-value { font-size: 28px; font-weight: 780; line-height: 1; letter-spacing: -.02em; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* ==================== Tablolar ==================== */
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left; font-size: 11px; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted); font-weight: 600;
    padding: 0 15px 11px; border-bottom: 1px solid var(--border);
}
.table td { padding: 14px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.ta-r { text-align: right; }
.cell-main { display: flex; align-items: center; gap: 12px; }
.cell-ic {
    width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
    display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-600);
}
.muted { color: var(--text-2); }
.muted-sm { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.link { color: var(--accent-600); font-weight: 500; }
.link:hover { text-decoration: underline; }
.link.strong { font-weight: 650; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.link.strong:hover { color: var(--accent-600); }
.link.strong svg { color: var(--muted); }
.row-actions { display: inline-flex; align-items: center; gap: 7px; justify-content: flex-end; }
.inline { display: inline; }

/* ==================== Rozetler ==================== */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 650; padding: 4px 11px; border-radius: 999px;
    border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-tint); color: var(--ok); border-color: var(--ok-bd); }
.badge-muted { background: var(--slate-tint); color: var(--slate); border-color: #dde2ea; }
.badge-warn { background: var(--warn-tint); color: var(--warn); border-color: var(--warn-bd); }

/* ==================== Butonlar ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 13.5px; font-weight: 650;
    padding: 10px 17px; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer;
    transition: all .14s; white-space: nowrap;
}
.btn-sm { padding: 8px 13px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.28); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(79,70,229,.36); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--muted); }
.btn-danger-ghost { background: var(--surface); border-color: var(--danger-bd); color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-tint); }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-2); cursor: pointer; transition: all .14s;
    padding: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn.danger:hover { background: var(--danger-tint); color: var(--danger); border-color: var(--danger-bd); }

/* ==================== Formlar ==================== */
.form-row { margin-bottom: 17px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field-label .opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.input {
    width: 100%; font-family: inherit; font-size: 14px;
    padding: 11px 14px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
    transition: border-color .14s, box-shadow .14s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-tint); }
.input::placeholder { color: var(--muted); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.input-mini { padding: 7px 11px; font-size: 13px; min-width: 140px; }
select.input { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b93a4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.hint { display: block; font-size: 12px; color: var(--muted); margin-top: 7px; }

/* Anahtar girişi */
.key-input { position: relative; display: flex; align-items: center; }
.key-icon { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.input-key { padding-left: 42px; padding-right: 44px; font-family: var(--mono); letter-spacing: .02em; }
.key-reveal {
    position: absolute; right: 8px; width: 32px; height: 32px;
    display: grid; place-items: center; border: none; background: transparent;
    color: var(--muted); cursor: pointer; border-radius: 8px;
}
.key-reveal:hover { background: var(--slate-tint); color: var(--text); }
.key-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; flex-wrap: wrap; }

/* ==================== Toolbar / filtreler ==================== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface);
    font-size: 13px; font-weight: 550; color: var(--text-2); transition: all .14s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.chip-count { font-size: 11px; font-weight: 700; background: var(--slate-tint); color: var(--slate); border-radius: 999px; padding: 1px 7px; }
.chip.active .chip-count { background: rgba(255,255,255,.18); color: #fff; }
.search { position: relative; }
.search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-search { padding-left: 40px; width: 250px; }

/* ==================== Feed ==================== */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: flex; align-items: flex-start; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: none; }
.feed-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: 0 0 auto; box-shadow: 0 0 0 3px var(--accent-tint); }
.feed-body { flex: 1; min-width: 0; }
.feed-title { font-weight: 600; font-size: 13.5px; }
.feed-detail { font-size: 12.5px; color: var(--text-2); margin-top: 1px; word-break: break-word; }
.feed-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ==================== Hızlı işlemler ==================== */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.quick-btn { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); transition: all .14s; }
.quick-btn:hover { border-color: var(--accent); background: var(--accent-tint); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.quick-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.quick-btn strong { display: block; font-size: 14px; }
.quick-btn small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ==================== Script alanı ==================== */
.script-slot { text-align: center; padding: 30px 20px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-2); }
.script-slot-ic { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); display: grid; place-items: center; }
.script-slot-title { font-weight: 700; font-size: 15px; }
.script-slot-desc { color: var(--text-2); font-size: 13px; max-width: 420px; margin: 8px auto 18px; }
.script-meta { display: flex; gap: 26px; justify-content: center; }
.kv { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* ==================== Bilgi listesi / uyarı ==================== */
.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-2); font-weight: 500; }
.notice { display: flex; gap: 12px; padding: 15px; background: var(--accent-tint); border: 1px solid #dcdefb; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.notice svg { color: var(--accent-600); flex: 0 0 auto; margin-top: 1px; }

/* ==================== Boş durum ==================== */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); font-size: 14px; }
.empty .empty-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.mt { margin-top: 6px; }

/* ==================== Modal ==================== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(19,23,34,.5); backdrop-filter: blur(3px); z-index: 90; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 470px; padding: 24px; animation: pop .17s ease; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-head h3 { display: flex; align-items: center; gap: 10px; font-size: 16.5px; margin: 0; }
.modal-head h3 svg { color: var(--accent); }
.modal-lead { color: var(--text-2); margin: 0 0 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ==================== Giriş ==================== */
.auth-body { display: grid; place-items: center; min-height: 100vh; background:
    radial-gradient(900px 500px at 15% -10%, rgba(124,58,237,.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(79,70,229,.12), transparent 55%),
    var(--bg);
    padding: 24px; }
.auth-wrap { width: 100%; max-width: 428px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 36px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 28px; }
.auth-mark { width: 52px; height: 52px; border-radius: 15px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(79,70,229,.34); }
.auth-brand-name { font-weight: 750; font-size: 18px; }
.auth-brand-sub { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.auth-title { font-size: 22px; margin: 0 0 5px; font-weight: 750; }
.auth-desc { color: var(--text-2); margin: 0 0 24px; font-size: 13.5px; }
.auth-form .field-label { margin-bottom: 9px; }
.auth-form .btn { margin-top: 20px; padding: 13px; font-size: 14.5px; }
.auth-foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; color: var(--muted); font-size: 12.5px; }
.auth-copy { text-align: center; color: var(--muted); font-size: 12px; margin-top: 20px; }

/* ==================== Responsive ==================== */
@media (max-width: 940px) {
    .grid-2 { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .navbar {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
        gap: 8px; padding: 10px 16px; height: auto; min-height: var(--nav-h);
    }
    .nav-logo { order: 1; justify-self: auto; margin-right: auto; padding: 0; }
    .nav-toggle {
        order: 2; display: inline-grid; place-items: center; width: 40px; height: 40px;
        border-radius: 10px; border: 1px solid var(--nav-border); background: var(--surface-2);
        color: var(--text); cursor: pointer;
    }
    .nav-left, .nav-right {
        order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch;
        gap: 3px; padding: 4px 0; display: none;
    }
    .nav-right { order: 4; padding-top: 0; }
    .navbar.open .nav-left, .navbar.open .nav-right { display: flex; }
    .nav-util { margin-left: 0; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 4px; }
    .nav-link { padding: 11px 13px; }
    .nav-status { display: none; }
    .nav-logout-txt { display: inline; }
    .nav-logout { justify-content: center; padding: 11px 13px; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .page { padding: 20px 16px 44px; }
    .input-search { width: 100%; }
    .search { flex: 1; }
    .table { font-size: 13px; }
    .table th:nth-child(4), .table td:nth-child(4) { display: none; }
}

/* ============================================================
   Script alanı + Cloudflare (sonradan eklendi)
   ============================================================ */

/* Script bağlı durumu */
.script-slot-ok { border-style: solid; border-color: var(--ok-bd); background: var(--ok-tint); }
.script-slot-ok .script-slot-ic { border-color: var(--ok-bd); color: var(--ok); }
.script-slot-ok .script-slot-title { color: var(--ok); }

/* Dosya listesi */
.filelist { list-style: none; margin: 16px auto 0; padding: 6px; max-width: 460px; text-align: left;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    max-height: 260px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.filelist::-webkit-scrollbar { width: 9px; }
.filelist::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid var(--surface); }
.filelist::-webkit-scrollbar-track { background: transparent; }
.filelist-item { display: flex; align-items: center; gap: 9px; padding: 5px 8px; font-size: 12.5px; border-radius: 7px; }
.filelist-item + .filelist-item { border-top: 1px solid var(--border); }
.fl-ic { color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; }
.fl-name { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2); word-break: break-all; }
.fl-size { color: var(--muted); font-size: 11px; white-space: nowrap; }
.filelist-more { text-align: center; font-size: 11.5px; color: var(--muted); padding: 7px 8px 3px; }

/* Anahtar/aç-kapa switch satırı */
.switch { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2);
    padding: 7px 0; cursor: pointer; user-select: none; }
.switch input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; flex: 0 0 auto; }
.switch span { line-height: 1.4; }

/* Cloudflare form buton satırı (Kaydet = varsayılan/Enter, sonra Test) */
.cf-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.cf-actions .hint { margin: 0; flex: 1 1 200px; }

/* Nameserver bekleyen domainler kutusu */
.ns-card { border-color: var(--warn-bd); background: var(--warn-tint); }
.ns-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 0; border-top: 1px solid var(--warn-bd); }
.ns-row:first-of-type { border-top: none; }
.ns-dom { display: inline-flex; align-items: center; gap: 7px; min-width: 200px; }
.ns-dom svg { color: var(--warn); }
.ns-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-vals code { background: var(--surface); border: 1px solid var(--warn-bd); padding: 4px 10px; border-radius: 8px;
    font-size: 12.5px; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* CF durum rozeti (domain tablosu) */
.cf-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.cf-tag.ok { background: var(--ok-tint); color: var(--ok); border-color: var(--ok-bd); }
.cf-tag.partial, .cf-tag.error { background: var(--danger-tint); color: var(--danger); border-color: var(--danger-bd); }

/* USOM durum rozeti (domain tablosu) */
.usom-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.usom-tag.ok { background: var(--ok-tint); color: var(--ok); border-color: var(--ok-bd); }
.usom-tag.listed { background: var(--danger-tint); color: var(--danger); border-color: var(--danger-bd); }
.usom-tag.none { background: var(--slate-tint); color: var(--slate); border-color: #dde2ea; }
.mt-1 { margin-top: 5px; }

/* USOM sayfasi */
.usom-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.usom-live .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
    box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: usom-pulse 1.6s infinite; }
.usom-live.off .pulse { background: var(--slate); animation: none; box-shadow: none; }
@keyframes usom-pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.45)} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 14px; margin-bottom: 4px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.stat-box .n { font-size: 26px; font-weight: 800; line-height: 1; }
.stat-box .l { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.stat-box.warn .n { color: var(--danger); }
.stat-box.good .n { color: var(--ok); }
