/* ============================================================
   VeriKaydet — Panel design system
   Site (css/app.min.css) tasarım diliyle uyumlu:
   mavi #2563eb · lacivert #0b1220 · Inter / Plus Jakarta Sans
   ============================================================ */

:root {
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-light: #3b82f6;
  --brand-soft: #eff6ff;
  --navy: #0b1220;
  --navy-2: #0f1c33;
  --navy-3: #16243d;
  --ink: #0b1526;
  --text: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #edf2f7;
  --bg: #f6f8fc;
  --white: #ffffff;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 18px 40px -24px rgba(15, 23, 42, .28);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  --side-w: 264px;
  --top-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.panel-body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(37, 99, 235, .07), transparent 60%),
    radial-gradient(700px 360px at -10% 100%, rgba(14, 165, 255, .05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.panel-body img { max-width: 100%; }
.panel-body a { color: var(--brand-strong); text-decoration: none; }
.panel-body a:hover { color: var(--brand-light); }
.panel-body h1, .panel-body h2, .panel-body h3, .panel-body h4 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  line-height: 1.25;
}
.panel-body h2 { font-size: 1.12rem; }
.panel-body h3 { font-size: 1rem; }
.panel-body p { margin: 0 0 1rem; }
.panel-body code {
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .82em;
  color: var(--navy);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap;
}

.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 1000;
  background: var(--brand); color: #fff !important;
  padding: 11px 18px; border-radius: 10px; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

/* ---------- Shell ---------- */
.panel-shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100vh;
}

.panel-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 35;
  background: rgba(7, 14, 26, .55);
  backdrop-filter: blur(2px);
}

/* ---------- Sidebar ---------- */
.panel-side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 16px 18px;
  background:
    radial-gradient(420px 220px at 110% -10%, rgba(37, 99, 235, .35), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 70%, #0c1730 100%);
  color: #b9c9de;
  overflow-y: auto;
  z-index: 40;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
.panel-side::-webkit-scrollbar { width: 6px; }
.panel-side::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 99px; }

.panel-brand {
  display: flex; align-items: center;
  padding: 2px 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  margin-bottom: 16px;
}
.panel-brand img { height: 36px; width: auto; }
.panel-brand-slot { display: block; width: 172px; height: 36px; }
.panel-brand:hover { opacity: .92; }

.panel-nav { display: grid; gap: 3px; }

.panel-nav a {
  display: flex; align-items: center; gap: 11px;
  min-height: 42px; padding: 9px 12px;
  border-radius: 10px;
  color: #b9c9de;
  font-size: .895rem; font-weight: 500;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
  position: relative;
}
.panel-nav a .p-ico {
  width: 18px; height: 18px; flex: none;
  color: #7e95b3;
  transition: color .16s ease;
}
.panel-nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.panel-nav a:hover .p-ico { color: #dbeafe; }
.panel-nav a.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, .95), rgba(37, 99, 235, .72));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .9), inset 0 0 0 1px rgba(147, 197, 253, .22);
}
.panel-nav a.active .p-ico { color: #fff; }

.panel-nav .group {
  font-size: .665rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em;
  color: #6f88a8;
  padding: 18px 12px 6px;
}

.panel-side-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: grid; gap: 10px;
}
.panel-side-foot a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 9px;
  color: #9fb4ce; font-size: .84rem; font-weight: 500;
}
.panel-side-foot a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.panel-side-foot .p-ico { width: 16px; height: 16px; }
.panel-version {
  font-size: .7rem; color: #61789a;
  padding: 0 12px; letter-spacing: .02em;
}

/* ---------- Main / topbar ---------- */
.panel-main { min-width: 0; display: flex; flex-direction: column; }

.panel-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  min-height: var(--top-h);
  padding: 12px clamp(18px, 2.6vw, 34px);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.panel-title { min-width: 0; }
.panel-eyebrow {
  display: block;
  font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 2px;
}
.panel-top h1 {
  font-size: 1.28rem; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.panel-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
}
.panel-action {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink) !important;
  font-size: .84rem; font-weight: 600;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.panel-action .p-ico { width: 16px; height: 16px; color: var(--muted); }
.panel-action:hover { border-color: var(--brand); color: var(--brand-strong) !important; background: var(--brand-soft); }

.panel-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-user-meta { display: grid; line-height: 1.25; min-width: 0; }
.panel-user-meta b {
  font-size: .86rem; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px;
}
.panel-user-meta small {
  font-size: .73rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px;
}

.avatar {
  width: 38px; height: 38px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-strong));
  color: #fff; font-weight: 700; font-size: .82rem;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .8);
}

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--muted);
  cursor: pointer; transition: all .16s ease;
}
.icon-btn .p-ico { width: 17px; height: 17px; }
.icon-btn:hover { border-color: #fecaca; background: #fef2f2; color: var(--danger); }

.panel-burger {
  display: none;
  width: 40px; height: 40px;
  place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); cursor: pointer;
}
.panel-burger .p-ico { width: 20px; height: 20px; }

/* ---------- Content ---------- */
.panel-content {
  width: 100%;
  max-width: 1440px;
  padding: clamp(18px, 2.6vw, 34px);
  padding-bottom: 8px;
  flex: 1;
}
.panel-foot {
  margin: 26px 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .76rem; color: var(--muted);
}
.panel-foot a { color: var(--muted); }

/* ---------- Grid ---------- */
.panel-grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Cards ---------- */
.p-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.p-card > h2:first-child,
.p-card > h3:first-child { margin-top: 0; }
.p-card h2 { font-size: 1.06rem; }
.p-card h3 { font-size: .96rem; }
.p-card > .panel-table:first-of-type { margin-top: 6px; }

/* ---------- Integrations ---------- */
.int-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.int-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.int-logo {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  display: grid; place-items: center;
  font-family: var(--display); font-size: .95rem; font-weight: 800; color: #fff;
  letter-spacing: .02em;
}
.int-logo--pay { background: linear-gradient(135deg, #2563eb, #1e40af); }
.int-logo--vm { background: linear-gradient(135deg, #0d9488, #0f766e); }
.int-logo--wa { background: linear-gradient(135deg, #16a34a, #15803d); }
.int-meta { min-width: 0; flex: 1; }
.int-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.int-title h2 { margin: 0; font-size: 1.02rem; }
.int-meta p { margin: 5px 0 0; font-size: .84rem; color: var(--muted); }
.int-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .73rem; font-weight: 700; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px;
  background: var(--line-soft); color: var(--muted);
}
.int-state i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.int-state.on { background: var(--ok-soft); color: #15803d; }
.int-state.on i { background: var(--ok); }
.int-form { gap: 13px; }
.int-sub {
  margin-top: 4px; padding-top: 10px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  border-top: 1px dashed var(--line);
}
.int-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.int-last { margin-left: auto; font-size: .76rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.int-last small { color: #94a3b8; }
.code-box { display: flex; }
.code-box input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; background: #f8fafc; }

/* ---------- Dashboard hero ---------- */
.dash-hero {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 26px clamp(20px, 2.4vw, 30px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(560px 260px at 100% -20%, rgba(37, 99, 235, .55), transparent 62%),
    linear-gradient(135deg, #0b1220 0%, #0f2240 58%, #123359 100%);
  color: #cfe0f1;
  overflow: hidden;
  box-shadow: 0 24px 50px -34px rgba(11, 18, 32, .8);
}
.dash-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(60% 80% at 78% 30%, #000 10%, transparent 90%);
  pointer-events: none;
}
.dash-hero-copy { position: relative; z-index: 1; max-width: 640px; }
.dash-kicker {
  display: inline-block;
  font-size: .67rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 7px;
}
.dash-hero h2 {
  color: #fff;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  margin: 0 0 6px;
}
.dash-hero p { color: #a9c1dc; font-size: .89rem; margin: 0; }
.dash-hero-actions { position: relative; z-index: 1; display: flex; gap: 9px; flex-wrap: wrap; }
.dash-hero-actions .btn-p.outline {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: #e2ecf7 !important;
}
.dash-hero-actions .btn-p.outline:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .35);
  color: #fff !important;
}
.dash-hero-actions .btn-p:not(.outline) { background: var(--brand-light); }
.dash-hero-actions .btn-p:not(.outline):hover { background: #60a5fa; }

/* ---------- Metrics ---------- */
.metric {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.metric::before {
  content: "";
  position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 3px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--brand-light), var(--brand-strong));
  opacity: .85;
}
.metric:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d5e2f5; }
.metric span {
  display: block;
  font-size: .72rem; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.metric b {
  display: block;
  font-family: var(--display);
  font-size: 1.72rem; font-weight: 800;
  color: var(--ink);
  margin-top: 7px;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.metric small { display: block; color: var(--muted); font-size: .76rem; margin-top: 4px; }

/* ---------- Tables ---------- */
.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.panel-table th, .panel-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
}
.panel-table th {
  font-size: .69rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
  background: #f8fafc;
  white-space: nowrap;
}
.panel-table th:first-child { border-top-left-radius: 10px; }
.panel-table th:last-child { border-top-right-radius: 10px; }
.panel-table tbody tr { transition: background .14s ease; }
.panel-table tbody tr:hover { background: #f8fbff; }
.panel-table tr:last-child td { border-bottom: 0; }
.panel-table a { color: var(--brand-strong); font-weight: 600; }
.panel-table a:hover { color: var(--brand-light); }
.panel-table td { color: var(--text); }

/* kart içindeki tablolar dar ekranda kaysın */
.p-card { overflow-x: auto; }
.p-card > form, .p-card > .form-grid { overflow: visible; }

/* ---------- Toolbar ---------- */
.panel-toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 18px;
}
.panel-toolbar .spacer { flex: 1; }
.panel-toolbar input,
.panel-toolbar select { width: auto; min-width: 160px; }

/* ---------- Buttons ---------- */
.btn-p {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff !important;
  font-family: var(--font);
  font-size: .855rem; font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.btn-p:hover { background: var(--brand-strong); color: #fff !important; box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .85); }
.btn-p.outline {
  background: #fff; color: var(--ink) !important;
  border-color: var(--line);
}
.btn-p.outline:hover { border-color: var(--brand); color: var(--brand-strong) !important; background: var(--brand-soft); box-shadow: none; }
.btn-p.danger { background: var(--danger-soft); color: #b91c1c !important; }
.btn-p.danger:hover { background: #fecaca; box-shadow: none; }
.btn-p.sm { min-height: 31px; padding: 5px 11px; font-size: .77rem; border-radius: 8px; }
.btn-p:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .71rem; font-weight: 700;
  background: #eef2f7; color: #475569;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: #15803d; }
.badge.warn { background: var(--warn-soft); color: #b45309; }
.badge.danger { background: var(--danger-soft); color: #b91c1c; }
.badge.info { background: #e0f2fe; color: #0369a1; }

/* ---------- Flash ---------- */
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: .875rem;
  border: 1px solid transparent;
}
.flash .p-ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.flash.ok { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.flash.err { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash ul { margin: 0; padding-left: 18px; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tabs a {
  padding: 10px 14px;
  font-size: .86rem; font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--brand-strong); border-color: var(--brand); font-weight: 600; }

/* ---------- Detail list ---------- */
.detail-list { display: grid; gap: 2px; }
.detail-list > div {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: .875rem;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.detail-list > div:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); }
.detail-list b { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 18px; }
.pagination nav { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: .82rem; font-weight: 600;
  text-decoration: none;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-disabled { color: #cbd5e1; background: #f8fafc; }
.pagination svg { width: 15px; height: 15px; }

/* ---------- Chat / tickets ---------- */
.chat {
  display: grid; gap: 12px;
  max-height: 560px; overflow-y: auto;
  padding: 4px 6px 4px 2px;
  scrollbar-width: thin;
}
.chat-msg {
  padding: 13px 15px;
  border-radius: 13px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: .885rem;
  max-width: 92%;
}
.chat-msg.staff { background: var(--brand-soft); border-color: #bfdbfe; margin-left: auto; }
.chat-msg.internal { background: #fefce8; border-color: #fde68a; }
.chat-msg .meta { font-size: .72rem; color: var(--muted); margin-bottom: 5px; }
.chat-msg p:last-child { margin-bottom: 0; }

/* ---------- Progress ---------- */
.progress {
  height: 8px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.progress > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand-light), var(--brand-strong));
  border-radius: inherit;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: .82rem; font-weight: 600; color: #334155; }

.panel-body input[type=text],
.panel-body input[type=email],
.panel-body input[type=password],
.panel-body input[type=tel],
.panel-body input[type=number],
.panel-body input[type=url],
.panel-body input[type=search],
.panel-body input[type=date],
.panel-body input[type=file],
.panel-body select,
.panel-body textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .895rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.panel-body input:hover, .panel-body select:hover, .panel-body textarea:hover { border-color: #94a3b8; }
.panel-body input:focus, .panel-body select:focus, .panel-body textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}
.panel-body textarea { min-height: 110px; resize: vertical; }
.panel-body input[type=checkbox] { width: auto; accent-color: var(--brand); }

.check {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: .865rem; color: var(--text);
  line-height: 1.5;
}
.check input { margin-top: 3px; }

.muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- Auth pages ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--bg);
}
.auth-visual {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 46px 52px;
  color: #cfe0f1;
  background:
    radial-gradient(900px 480px at 110% -10%, rgba(37, 99, 235, .45), transparent 62%),
    radial-gradient(600px 380px at -20% 110%, rgba(14, 165, 255, .22), transparent 60%),
    linear-gradient(150deg, #07101f 0%, var(--navy) 55%, #102b4d 100%);
  overflow: hidden;
}
.auth-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 40% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.auth-visual .auth-logo { position: relative; z-index: 1; }
.auth-visual .auth-logo img { height: 42px; width: auto; }
.auth-hero { position: relative; z-index: 1; max-width: 460px; }
.auth-hero h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.18;
  margin-bottom: 14px;
}
.auth-hero p { color: #a9c1dc; font-size: .98rem; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #c3d5e8; }
.auth-points .p-ico { width: 18px; height: 18px; flex: none; color: #60a5fa; margin-top: 2px; }
.auth-visual .auth-copy { position: relative; z-index: 1; font-size: .76rem; color: #6f89a8; }

.auth-panel {
  display: grid; place-items: center;
  padding: 40px 26px;
}
.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 32px 70px -40px rgba(15, 23, 42, .45), var(--shadow-sm);
}
.auth-card.auth-card--wide { width: min(540px, 100%); }
.auth-card h1 { font-size: 1.55rem; margin-bottom: 6px; }
.auth-card .muted { font-size: .9rem; }
.auth-card form { margin-top: 22px; }
.auth-secure {
  display: flex; align-items: center; gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: .76rem; color: var(--muted);
}
.auth-secure .p-ico { width: 15px; height: 15px; color: var(--ok); }
.auth-links {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .84rem; margin-top: 16px; flex-wrap: wrap; gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .panel-shell { grid-template-columns: minmax(0, 1fr); }
  .panel-side {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(300px, 86vw); height: 100vh;
    transform: translateX(-102%);
    transition: transform .24s ease;
    z-index: 45;
    box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .5);
  }
  .panel-shell.nav-open .panel-side { transform: translateX(0); }
  .panel-shell.nav-open .panel-overlay { display: block; }
  .panel-burger { display: grid; }
  .panel-top { gap: 13px; }
  .panel-user-meta { display: none; }
  .panel-action span { display: none; }
  .panel-action { padding: 0 10px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; }
}

@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4,
  .form-grid.two { grid-template-columns: minmax(0, 1fr); }
  .panel-content { padding: 16px; }
  .panel-top { padding: 10px 16px; min-height: 68px; }
  .panel-top h1 { font-size: 1.1rem; }
  .panel-user { display: none; }
  .p-card { padding: 17px; }
  .metric { padding: 17px; }
  .metric b { font-size: 1.45rem; }
  .panel-toolbar input, .panel-toolbar select { min-width: 0; width: 100%; }
  .auth-card { padding: 26px 22px; border-radius: 16px; }
  .pagination a, .pagination span { min-width: 31px; height: 31px; }
}

/* ============================================================
   Panel v2 — 2026 modern katman
   ============================================================ */
:root {
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 45%, #1d4ed8 100%);
  --glow: 0 18px 46px -22px rgba(37, 99, 235, .55);
}

.panel-body { background-attachment: fixed; }

/* Sidebar ince ayar */
.panel-side {
  background:
    radial-gradient(520px 300px at 110% -8%, rgba(59, 130, 246, .38), transparent 62%),
    radial-gradient(380px 260px at -20% 108%, rgba(14, 165, 233, .14), transparent 60%),
    linear-gradient(180deg, #071120 0%, #0a172b 46%, #0b1b33 100%);
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.panel-brand { position: relative; }
.admin-tag {
  position: absolute; right: 6px; top: 4px;
  font-size: .58rem; font-weight: 800; letter-spacing: .14em;
  color: #93c5fd; background: rgba(59, 130, 246, .18);
  border: 1px solid rgba(147, 197, 253, .3);
  padding: 2px 6px; border-radius: 6px;
}
.panel-nav a, .panel-nav summary { -webkit-tap-highlight-color: transparent; }
.panel-nav a.active, .panel-nav summary.active {
  background: var(--brand-gradient);
  color: #fff; font-weight: 600;
  box-shadow: 0 14px 28px -14px rgba(37, 99, 235, .95), inset 0 0 0 1px rgba(191, 219, 254, .22);
}
.panel-nav summary {
  display: flex; align-items: center; gap: 11px;
  min-height: 42px; padding: 9px 12px; border-radius: 10px;
  color: #b9c9de; font-size: .895rem; font-weight: 500;
  cursor: pointer; list-style: none;
  transition: background .16s ease, color .16s ease;
}
.panel-nav summary::-webkit-details-marker { display: none; }
.panel-nav summary:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.panel-nav summary .p-ico { width: 18px; height: 18px; color: #7e95b3; }
.panel-nav summary.active .p-ico, .panel-nav summary:hover .p-ico { color: #dbeafe; }
.nav-caret { margin-left: auto; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); opacity: .55; transition: transform .2s ease; }
.nav-group[open] .nav-caret { transform: rotate(225deg); }
.nav-group[open] > summary { color: #fff; }
.nav-sub { display: grid; gap: 1px; margin: 2px 0 4px 21px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .09); }
.nav-sub a { min-height: 34px; padding: 7px 10px; font-size: .82rem; border-radius: 8px; color: #94a9c4; }
.nav-sub a.active { background: rgba(59, 130, 246, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .18); }
.nav-sub a.active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #60a5fa; position: absolute; left: -15px; }
.nav-sub a { position: relative; }

/* Loader */
.panel-loader {
  position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center;
  background: rgba(246, 248, 252, .88); backdrop-filter: blur(5px);
  transition: opacity .3s ease, visibility .3s ease;
}
.panel-loader.is-done { opacity: 0; visibility: hidden; }
.pl-ring { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(37, 99, 235, .16); border-top-color: var(--brand); animation: plspin .75s linear infinite; display: block; }
@keyframes plspin { to { transform: rotate(360deg); } }

/* Topbar */
.panel-top { box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 12px 30px -26px rgba(15, 23, 42, .4); }
.panel-action { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }

/* Cards */
.p-card, .int-card, .metric {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 34px -30px rgba(15, 23, 42, .35);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.p-card:hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 22px 46px -34px rgba(15, 23, 42, .45); }
.metric--link { display: block; color: inherit; text-decoration: none; }
.metric--link:hover { color: inherit; border-color: #cfe0f7; transform: translateY(-2px); }
.metric--link small { color: var(--brand-strong); font-weight: 600; }
.panel-body .p-card h2 { letter-spacing: -.015em; }
.panel-table th { background: linear-gradient(180deg, #f9fbfd, #f1f5f9); }
.panel-table tbody tr:hover { background: #f5faff; }

/* Buttons */
.btn-p { box-shadow: 0 8px 18px -14px rgba(37, 99, 235, .9); }
.btn-p.outline { box-shadow: none; }
.btn-p.btn-lg { min-height: 48px; font-size: .95rem; border-radius: 12px; }
.btn-p.danger { border: 1px solid #fecaca; }

/* Tabs pills */
.tabs--pills { border-bottom: 0; gap: 8px; margin-bottom: 16px; }
.tabs--pills a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; background: #fff; color: var(--muted); font-weight: 600; font-size: .83rem; }
.tabs--pills a:hover { border-color: #bfdbfe; color: var(--brand-strong); background: #f8fbff; }
.tabs--pills a.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--glow); }
.tab-count { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(15, 23, 42, .08); font-size: .7rem; }
.tabs--pills a.active .tab-count { background: rgba(255, 255, 255, .22); }

/* Empty state */
.empty-state { text-align: center; padding: 42px 16px; display: grid; justify-items: center; gap: 8px; }
.empty-state .p-ico { width: 42px; height: 42px; color: #9fb3cc; margin-bottom: 4px; }
.empty-state h3 { margin: 0; }
.empty-state p { margin: 0 0 8px; max-width: 360px; font-size: .88rem; }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.qa-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: inherit; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.qa-item:hover { transform: translateY(-2px); border-color: #bfdbfe; box-shadow: 0 16px 34px -28px rgba(37, 99, 235, .5); color: inherit; }
.qa-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #eff6ff, #dbeafe); color: var(--brand-strong); }
.qa-ico .p-ico { width: 20px; height: 20px; }
.qa-item > span:last-child { display: grid; line-height: 1.3; min-width: 0; }
.qa-item b { font-size: .87rem; color: var(--ink); }
.qa-item small { font-size: .74rem; color: var(--muted); }

/* Announcements */
.announcement-list { display: grid; gap: 8px; }
.announcement-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line-soft); border-radius: 12px; color: inherit; transition: border-color .16s ease, background .16s ease; }
.announcement-item:hover { border-color: #bfdbfe; background: #f8fbff; color: inherit; }
.ai-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #eff6ff; color: var(--brand-strong); }
.ai-icon .p-ico { width: 18px; height: 18px; }
.ai-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ai-body b { font-size: .88rem; color: var(--ink); }
.ai-body small { color: var(--muted); font-size: .78rem; }
.ai-date { font-size: .74rem; color: #94a3b8; white-space: nowrap; }
.back-link { font-size: .82rem; color: var(--muted); }
.article-body { font-size: .94rem; line-height: 1.8; color: #334155; }

/* Coupons */
.coupon-list { display: grid; gap: 10px; }
.coupon-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px dashed #bfdbfe; border-radius: 12px; background: linear-gradient(135deg, #f8fcff, #eff6ff); }
.coupon-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; letter-spacing: .1em; font-size: .92rem; color: var(--brand-strong); background: #fff; border: 1px solid #dbeafe; border-radius: 8px; padding: 8px 12px; }
.coupon-meta { display: grid; gap: 1px; }
.coupon-meta b { font-size: .88rem; color: var(--ink); }
.coupon-meta small { font-size: .75rem; color: var(--muted); }

/* Chart bars */
.chart-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 210px; margin-top: 14px; }
.chart-bar { display: grid; grid-template-rows: 1fr auto auto; gap: 4px; height: 100%; text-align: center; }
.cb-track { position: relative; display: flex; align-items: flex-end; height: 100%; background: #f1f5f9; border-radius: 7px; overflow: hidden; }
.cb-track i { display: block; width: 100%; background: linear-gradient(180deg, #60a5fa, #2563eb); border-radius: 7px 7px 0 0; transition: height .5s ease; }
.chart-bar b { font-size: .66rem; color: var(--ink); font-weight: 700; }
.chart-bar small { font-size: .6rem; color: var(--muted); white-space: nowrap; }

/* Switch row */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbff; cursor: pointer; }
.switch-row > span { display: grid; gap: 2px; }
.switch-row b { font-size: .88rem; color: var(--ink); }
.switch-row small { color: var(--muted); font-size: .78rem; }
.switch-row input[type=checkbox] { width: 42px; height: 24px; appearance: none; background: #cbd5e1; border-radius: 999px; position: relative; cursor: pointer; transition: background .2s ease; flex: none; }
.switch-row input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); }
.switch-row input[type=checkbox]:checked { background: var(--brand); }
.switch-row input[type=checkbox]:checked::after { transform: translateX(18px); }

/* Integration tones */
.int-logo--einv { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.int-logo--mail { background: linear-gradient(135deg, #0891b2, #0e7490); }

/* Auth v2 */
.auth-body { background: #eef3fa; }
.auth-page--v2 { position: relative; grid-template-columns: 1.02fr .98fr; }
.auth-page--v2 .auth-visual { isolation: isolate; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; z-index: -1; }
.auth-orb--1 { width: 320px; height: 320px; right: -90px; top: 12%; background: radial-gradient(circle at 35% 35%, rgba(59, 130, 246, .7), transparent 65%); animation: floaty 9s ease-in-out infinite; }
.auth-orb--2 { width: 260px; height: 260px; left: -80px; bottom: 8%; background: radial-gradient(circle at 60% 40%, rgba(14, 165, 233, .5), transparent 65%); animation: floaty 11s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.auth-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #bae6fd; background: rgba(56, 189, 248, .12); border: 1px solid rgba(125, 211, 252, .28); padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; }
.auth-chip i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); }
.auth-hero em { font-style: normal; background: linear-gradient(90deg, #7dd3fc, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-proof { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); width: fit-content; }
.auth-proof-avatars { display: flex; }
.auth-proof-avatars span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); border: 2px solid #0b1728; margin-left: -8px; }
.auth-proof-avatars span:first-child { margin-left: 0; }
.auth-proof-avatars span:last-child { background: #1e293b; }
.auth-stars { color: #fbbf24; font-size: .72rem; letter-spacing: 2px; }
.auth-proof small { color: #a9c1dc; font-size: .74rem; }

.auth-card { position: relative; border-radius: 22px; padding: 30px 32px; box-shadow: 0 40px 90px -50px rgba(8, 23, 41, .55), 0 2px 8px rgba(15, 23, 42, .04); }
.auth-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.auth-back .p-ico { width: 15px; height: 15px; }
.auth-back:hover { color: var(--brand-strong); }
.auth-secure-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700; color: #15803d; background: #ecfdf3; border: 1px solid #bbf7d0; padding: 3px 8px; border-radius: 999px; }
.auth-secure-badge .p-ico { width: 12px; height: 12px; }
.auth-card h1 { font-size: 1.68rem; letter-spacing: -.025em; }
.auth-form { margin-top: 20px; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .p-ico { position: absolute; left: 12px; width: 17px; height: 17px; color: #94a3b8; pointer-events: none; }
.input-icon input { padding-left: 38px; padding-right: 64px; }
.pw-toggle { position: absolute; right: 7px; background: #f1f5f9; border: 0; border-radius: 7px; padding: 6px 9px; font-size: .68rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { background: #e2e8f0; color: var(--ink); }
.pw-toggle.is-visible { background: #dbeafe; color: var(--brand-strong); }
.auth-row-between { display: flex; justify-content: space-between; align-items: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: #94a3b8; font-size: .72rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.auth-note { display: flex; gap: 9px; align-items: flex-start; font-size: .76rem; color: #475569; background: #f8fbff; border: 1px solid #e0eefc; border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.auth-note .p-ico { width: 15px; height: 15px; color: var(--brand); flex: none; margin-top: 1px; }
.auth-panel { flex-direction: column; gap: 14px; display: flex; align-items: center; justify-content: center; }
.auth-panel-foot { display: flex; gap: 7px; font-size: .72rem; color: #94a3b8; }
.auth-panel-foot a { color: #94a3b8; }
.auth-panel-foot a:hover { color: var(--brand-strong); }
.link-btn { background: none; border: 0; color: var(--brand-strong); font: inherit; font-size: .84rem; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* Verify */
.verify-steps { display: grid; gap: 10px; margin-top: 20px; }
.verify-step { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfe; }
.verify-step > div { flex: 1; display: grid; gap: 1px; min-width: 0; }
.verify-step b { font-size: .87rem; color: var(--ink); }
.verify-step small { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.verify-step.done { border-color: #bbf7d0; background: #f2fdf5; }
.verify-step.done .vs-icon { background: #dcfce7; color: #15803d; }
.vs-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #e8f2ff; color: var(--brand-strong); }
.vs-icon .p-ico { width: 18px; height: 18px; }

/* Responsive v2 */
@media (max-width: 1240px) { .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 920px) {
  .auth-page--v2 { grid-template-columns: 1fr; }
  .auth-panel { padding: 34px 18px; }
  .auth-card { padding: 26px 22px; }
  .chart-bars { height: 170px; overflow-x: auto; grid-template-columns: repeat(12, minmax(42px, 1fr)); }
}
@media (max-width: 640px) {
  .quick-actions { grid-template-columns: 1fr; }
  .nav-sub { margin-left: 14px; }
  .auth-card-head { flex-wrap: wrap; }
}
/* Mini list (dashboard widgets) */
.mini-list{display:grid;gap:2px}
.mini-row{display:flex;align-items:center;gap:10px;padding:8px 2px;border-bottom:1px dashed var(--line);color:inherit;text-decoration:none}
.mini-row:last-child{border-bottom:0}
.mini-row:hover{background:#f8fbff;color:inherit}
.mini-body{display:grid;gap:1px;min-width:0;flex:1;line-height:1.3}
.mini-body b{font-size:.84rem;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-body small{font-size:.73rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cols-3 .p-card{min-width:0}
@media (max-width:1080px){.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
.quick-actions--stack{grid-template-columns:1fr 1fr;margin-bottom:0}
@media (max-width:640px){.quick-actions--stack{grid-template-columns:1fr}}
