/* ═══════════════════════════════════════════════════════
   KUZEY SEO PANEL — Ultra Premium Dark Admin UI
   ═══════════════════════════════════════════════════════ */

:root {
  --ink:      #eef3ff;
  --ink-2:    #c8d4ea;
  --muted:    #7a8ba8;
  --line:     rgba(255, 255, 255, 0.08);
  --line-2:   rgba(255, 255, 255, 0.14);
  --paper:    #060a12;
  --paper-2:  #0c1220;
  --card:     rgba(12, 18, 32, 0.95);
  --card-2:   rgba(18, 26, 44, 0.9);
  --accent:   #3b82f6;
  --accent-2: #2563eb;
  --accent-3: #1d4ed8;
  --gold:     #d4af6a;
  --gold-2:   #f0cc84;
  --ok:       #34d399;
  --error:    #ff6b7a;
  --radius:   14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow:    0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --trans: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 10% 15%, rgba(59, 130, 246, 0.12), transparent 50%),
    radial-gradient(ellipse at 90% 85%, rgba(212, 175, 106, 0.08), transparent 45%),
    var(--paper);
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 100%;
}

/* ── SIDEBAR COLUMN ─────────────────────────────────────── */
.form-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--card);
  overflow-y: auto;
  max-height: 100vh;
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
}

/* ── PANEL HEADER ───────────────────────────────────────── */
.panel-header {
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.15) 0%, rgba(12, 18, 32, 0.6) 100%);
}

.panel-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.panel-header-top .brand-mark {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.credit-widget {
  flex-shrink: 0;
}

.credit-chip-ultra {
  position: relative;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(212, 175, 106, 0.55);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(212, 175, 106, 0.22), rgba(59, 130, 246, 0.12) 55%, rgba(8, 12, 22, 0.92));
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(212, 175, 106, 0.08);
  color: var(--gold-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.credit-chip-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 106, 0.35), transparent 55%);
  pointer-events: none;
}

.credit-chip-icon {
  position: relative;
  font-size: 0.52rem;
  line-height: 1;
  opacity: 0.85;
  letter-spacing: 0.08em;
}

.credit-chip-val {
  position: relative;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.credit-chip-unit {
  position: relative;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  opacity: 0.78;
}

.credit-chip-ultra:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(212, 175, 106, 0.85);
  box-shadow:
    0 14px 34px rgba(212, 175, 106, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.credit-chip-ultra.is-low {
  border-color: rgba(239, 68, 68, 0.65);
  color: #fca5a5;
}

.credit-history-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.credit-history-modal[hidden] {
  display: none !important;
}

.credit-history-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(8px);
}

.credit-history-card {
  position: relative;
  width: min(440px, 100%);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  background: linear-gradient(165deg, rgba(18, 24, 40, 0.98), rgba(10, 14, 26, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.credit-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.credit-history-eyebrow {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.credit-history-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--gold-2);
}

.credit-history-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.credit-history-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.credit-history-stats div {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.credit-history-stats span {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.credit-history-stats strong {
  font-size: 0.82rem;
  color: var(--ink);
}

.credit-history-list {
  padding: 12px 18px 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credit-tx-row {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.credit-tx-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.credit-tx-main strong {
  font-size: 0.74rem;
  color: var(--ink);
}

.credit-tx-amt {
  font-size: 0.76rem;
  font-weight: 800;
}

.credit-tx-row.is-plus .credit-tx-amt { color: var(--ok); }
.credit-tx-row.is-minus .credit-tx-amt { color: #f87171; }

.credit-tx-sub {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.62rem;
  color: var(--muted);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.brand-mark-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--gold-2);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  transition: var(--trans);
}

.form-col:hover .brand-mark-icon {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.45);
}

.panel-user {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.panel-tagline {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

#logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
  font-family: inherit;
}

.panel-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.admin-panel-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(212, 175, 106, 0.45);
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.12);
  color: var(--gold-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: var(--trans);
}

.admin-panel-link:hover {
  background: rgba(212, 175, 106, 0.22);
  transform: translateY(-1px);
}

.btn-admin-open {
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(212, 175, 106, 0.45);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.18), rgba(212, 175, 106, 0.08));
  color: var(--gold-2, #f0cc84);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
}

.btn-admin-open:hover {
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.32), rgba(212, 175, 106, 0.14));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 106, 0.2);
}

.btn-admin-open.is-active {
  background: linear-gradient(135deg, var(--gold, #d4af6a), #f0cc84);
  color: #1a1208;
  border-color: rgba(212, 175, 106, 0.6);
}

.panel-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ── MODE SWITCH (Site / Admin) ─────────────────────────── */
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 10px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
}

.mode-btn-icon { font-size: 0.85rem; opacity: 0.9; }

.mode-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.mode-btn.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.28);
}

.mode-btn-admin.is-on {
  background: linear-gradient(135deg, #b8860b, var(--gold));
  border-color: rgba(212, 175, 106, 0.5);
  box-shadow: 0 4px 16px rgba(212, 175, 106, 0.25);
  color: #1a1208;
}

.app.is-admin-mode .form-col {
  border-right-color: rgba(212, 175, 106, 0.25);
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.98) 0%, rgba(8, 12, 22, 0.99) 100%);
}

.app.is-admin-mode #site-workspace {
  display: none !important;
}

.app.is-admin-mode .panel-tagline {
  display: none;
}

/* ── ADMIN SIDEBAR NAV ─────────────────────────────────── */
.admin-side-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 20px;
  min-height: 0;
}

.admin-side-nav-head {
  padding: 16px 12px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.admin-side-nav-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.admin-side-nav-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-side-nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding: 4px 0;
}

.admin-side-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--trans);
  position: relative;
}

.admin-side-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--gold), var(--accent));
  transition: height 0.22s ease;
}

.admin-side-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
}

.admin-side-nav-item.is-on {
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.14), rgba(59, 130, 246, 0.1));
  border-color: rgba(212, 175, 106, 0.35);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.admin-side-nav-item.is-on::before {
  height: 60%;
}

.asn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.admin-side-nav-item.is-on .asn-icon {
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.25), rgba(59, 130, 246, 0.2));
  border-color: rgba(212, 175, 106, 0.4);
}

.asn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.asn-text strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.asn-text small {
  font-size: 0.66rem;
  color: var(--muted);
  font-weight: 500;
}

.admin-side-nav-item.is-on .asn-text small {
  color: var(--ink-2);
}

.admin-side-nav-foot {
  margin-top: auto;
  padding: 14px 12px 0;
  border-top: 1px solid var(--line);
}

.admin-side-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 0 4px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: livePulse 2s ease infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.admin-side-back {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-side-back:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--ink);
}

.main-col {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.preview-workspace,
.admin-workspace {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.preview-workspace[hidden],
.admin-workspace[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.app.is-admin-mode .preview-workspace {
  display: none !important;
}

.app.is-admin-mode .admin-workspace {
  display: flex !important;
}

.app:not(.is-admin-mode) .admin-workspace {
  display: none !important;
}

.admin-gen-hint {
  margin: -8px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  background: rgba(212, 175, 106, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-2);
}

.admin-side-hint {
  display: none !important;
}

.admin-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(212, 175, 106, 0.08), transparent 45%),
    radial-gradient(ellipse at 10% 90%, rgba(59, 130, 246, 0.1), transparent 50%),
    var(--paper-2);
}

.admin-main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 36px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.admin-main-title-wrap {
  flex: 1;
  min-width: 0;
}

.admin-refresh-btn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
}

.admin-refresh-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--ink);
}

.admin-main-body {
  flex: 1;
  position: relative;
  min-height: 480px;
  overflow: hidden;
  padding: 0;
}

.admin-main-body > .admin-view {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 36px 20px;
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  z-index: 0;
}

.admin-main-body > .admin-view.is-on {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  z-index: 1;
  animation: adminFadeIn 0.25s ease;
}

.admin-main-body > .admin-view:not(.is-on),
.admin-main-body > .admin-view:not(.is-on) * {
  visibility: hidden !important;
  pointer-events: none !important;
}

.admin-main-footer {
  padding: 10px 36px 18px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.admin-stats-overview {
  margin-bottom: 0;
}

.admin-stats-overview .admin-stat-card {
  flex: 1;
  min-width: 140px;
}

.admin-activity-full {
  max-height: none;
}

.admin-select {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
}

.admin-settings-panel {
  max-width: 720px;
}

.admin-hub {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(212, 175, 106, 0.08), transparent 45%),
    radial-gradient(ellipse at 10% 90%, rgba(59, 130, 246, 0.1), transparent 50%),
    var(--paper-2);
}

.admin-hub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 28px;
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.admin-hub-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.admin-page-title {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.admin-page-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 520px;
}

.admin-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-stat-card {
  min-width: 96px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
  transition: var(--trans);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
}

.admin-stat-card.is-online { border-color: rgba(52, 211, 153, 0.35); }
.admin-stat-card.is-gold { border-color: rgba(212, 175, 106, 0.4); }

.admin-stat-val {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gold-2);
  line-height: 1.1;
}

.admin-stat-card.is-online .admin-stat-val { color: var(--ok); }

.admin-stat-lbl {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.admin-hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--trans);
}

.admin-hub-tab:hover {
  color: var(--ink);
  border-color: var(--line-2);
}

.admin-hub-tab.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.25);
}

.admin-hub-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 16px;
}

.admin-hub-footer {
  padding: 10px 32px 18px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.admin-hub-status {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gold);
  min-height: 1.2em;
}

.admin-search {
  height: 38px;
  min-width: 200px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dash-panel {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.dash-panel-wide { grid-column: 1 / -1; }

.dash-panel-title {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-feed {
  max-height: 280px;
  overflow-y: auto;
}

.dash-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.dash-action-btn {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.12), rgba(59, 130, 246, 0.08));
  color: var(--gold-2);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
}

.dash-action-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(212, 175, 106, 0.15);
}

.user-card-premium {
  position: relative;
  overflow: hidden;
}

.user-card-premium::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0.6;
}

.user-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.user-online-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--ok);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.user-offline-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.user-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-2);
  flex-shrink: 0;
}

.user-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.user-stat-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  font-size: 0.68rem;
}

.user-stat-chip small {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.user-stat-chip span { color: var(--ink-2); font-weight: 600; }
.user-stat-chip.is-gold span { color: var(--gold); }
.user-stat-chip.is-err span { color: var(--error); }

.user-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.user-credit-balance {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.credit-balance-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.credit-balance-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-2);
}

.credit-quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.credit-quick-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.credit-quick-btn {
  min-width: 52px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--ok);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--trans);
}

.credit-quick-btn:hover {
  background: rgba(52, 211, 153, 0.22);
  transform: translateY(-1px);
}

.btn-premium {
  width: 100%;
  min-height: 44px !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-3)) !important;
  color: #fff !important;
  border: none !important;
}

@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .admin-hub-header,
  .admin-hub-tabs,
  .admin-hub-body,
  .admin-hub-footer { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 960px) {
  .users-grid { grid-template-columns: 1fr; }
  .admin-credits-layout { grid-template-columns: 1fr; }
}

#logout-btn:hover {
  background: rgba(255, 107, 122, 0.12);
  color: var(--error);
  border-color: rgba(255, 107, 122, 0.3);
  transform: translateY(-1px);
}

/* ── ADMIN USER MANAGEMENT ──────────────────────────────── */
.admin-section,
.history-section {
  margin-top: 12px;
  margin-bottom: 28px;
  padding: 20px 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.admin-section-top {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-section-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.admin-tab {
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
}

.admin-tab.is-on {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.admin-tab:not(.is-on):hover { color: var(--ink); }

.admin-panel { display: none; }

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
  padding-top: 4px;
}

.admin-head h2 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.admin-panel.is-on { display: block; padding-top: 6px; }

.log-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.log-filters select,
.log-filters input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
}

.logs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.history-hint {
  margin: 0 0 14px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.45;
}

.user-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.user-history-card {
  aspect-ratio: 1;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  cursor: pointer;
  transition: var(--trans);
  font-family: inherit;
  text-align: center;
}

.user-history-card:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.user-history-card.is-off {
  opacity: 0.55;
  border-style: dashed;
}

.user-history-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.user-history-avatar.is-lg {
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
  border-radius: 14px;
  flex-shrink: 0;
}

.user-history-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.user-history-role {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.user-history-count {
  font-size: 0.68rem;
  color: var(--ink-2);
}

.user-history-count b {
  color: var(--accent);
  font-size: 0.9rem;
}

.user-history-brand {
  font-size: 0.62rem;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-history-last {
  font-size: 0.58rem;
  color: var(--muted);
}

.user-history-back {
  margin-bottom: 14px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
}

.user-history-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.user-history-detail-head {
  margin-bottom: 14px;
}

.user-history-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
}

.user-history-detail-title strong {
  display: block;
  font-size: 0.92rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.user-history-detail-title span {
  font-size: 0.68rem;
  color: var(--muted);
}

.log-filters-detail {
  margin-bottom: 12px;
}

.activity-block {
  margin-bottom: 16px;
}

.activity-block-title {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.activity-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.activity-item.is-ok { border-left: 3px solid var(--ok); }
.activity-item.is-err { border-left: 3px solid var(--error); }

.activity-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.activity-item-top strong { color: var(--gold); }
.activity-item-top span { color: var(--muted); font-size: 0.62rem; }
.activity-item-sub { font-size: 0.64rem; color: var(--muted); margin-bottom: 4px; }
.activity-item-msg { font-size: 0.68rem; color: var(--ink-2); line-height: 1.4; }
.activity-meta { display: block; margin-top: 4px; font-size: 0.6rem; color: var(--ink-3); opacity: 0.85; }
.logs-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.log-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: var(--trans);
}

.log-card:hover {
  border-color: var(--line-2);
  background: rgba(59, 130, 246, 0.05);
}

.log-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 12px 14px;
  cursor: pointer;
}

.log-brand {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}

.log-user {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

.log-date {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.log-code {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.log-body {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.log-card.is-open .log-body { display: block; }

.log-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.log-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.log-row span:first-child {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.6rem;
}

.log-row strong {
  color: var(--ink-2);
  font-weight: 600;
  word-break: break-word;
}

.log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.log-btn {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
  font-family: inherit;
}

.log-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

.log-btn.btn-del:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(255, 107, 122, 0.1);
}

.log-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

.admin-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.users-list::-webkit-scrollbar { width: 4px; }
.users-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.user-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  transition: var(--trans);
}

.user-row:hover {
  border-color: var(--line-2);
  background: rgba(59, 130, 246, 0.06);
  transform: translateX(2px);
}

.user-row.is-off {
  opacity: 0.55;
  border-color: rgba(255, 107, 122, 0.2);
}

.user-info { min-width: 0; }

.user-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-role {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(212, 175, 106, 0.15);
  color: var(--gold);
}

.user-role.is-admin {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent);
}

.user-meta {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.user-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
  font-family: inherit;
  white-space: nowrap;
}

.user-btn:hover {
  transform: translateY(-1px);
}

.user-btn.btn-off:hover {
  background: rgba(255, 107, 122, 0.15);
  color: var(--error);
  border-color: rgba(255, 107, 122, 0.3);
}

.user-btn.btn-on:hover {
  background: rgba(52, 211, 153, 0.15);
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.3);
}

.user-btn.btn-del:hover {
  background: rgba(255, 107, 122, 0.2);
  color: #fff;
  border-color: var(--error);
}

/* ── FORM BODY ──────────────────────────────────────────── */
.form-body {
  padding: 24px 28px 28px;
  flex: 1;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.field-group { margin-bottom: 16px; }

.favicon-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.favicon-hint img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #111;
  border: 1px solid var(--line);
}

.favicon-hint.is-on #favicon-hint-text {
  color: var(--ok);
  font-weight: 600;
}

label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

input[type="text"],
input[type="url"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.88rem;
  color: var(--ink);
  font-family: inherit;
  transition: var(--trans);
}

input[type="text"]:hover,
input[type="url"]:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.45);
}

input[type="text"]:focus,
input[type="url"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

input::placeholder { color: #4a5870; }

/* ── GENERATE BUTTON ────────────────────────────────────── */
#gen-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1208;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
  box-shadow: 0 4px 20px rgba(212, 175, 106, 0.25);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

#gen-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 55%);
  pointer-events: none;
}

#gen-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 106, 0.35);
}

#gen-btn:active:not(:disabled) { transform: translateY(0); }
#gen-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── META SECTION ───────────────────────────────────────── */
.meta {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.meta-header {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
}

.meta div:last-child { border-bottom: none; }
.meta span { color: var(--muted); font-size: 0.74rem; }
.meta strong { font-weight: 700; color: var(--gold); font-size: 0.84rem; }
.meta strong.warn-size { color: #f87171; }

/* ── ACTION BUTTONS ─────────────────────────────────────── */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.actions button {
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  transition: var(--trans);
  font-family: inherit;
}

.actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* ── PERDE CODE ─────────────────────────────────────────── */
.code-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.code-hint {
  margin: -8px 0 12px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.45;
}

#perde-code {
  width: 100%;
  min-height: 180px;
  max-height: 280px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  color: #a8c4e8;
  font-family: "Consolas", "Cascadia Code", "Courier New", monospace;
  font-size: 0.62rem;
  line-height: 1.55;
  resize: vertical;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}

#perde-code:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.code-meta {
  margin-top: 8px;
  font-size: 0.64rem;
  color: var(--muted);
  font-weight: 600;
}

/* ── CLOAK ──────────────────────────────────────────────── */
.cloak-section {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: linear-gradient(165deg, rgba(10, 92, 46, 0.14), rgba(0, 0, 0, 0.25));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cloak-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.cloak-head-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  flex: 0 0 40px;
}

.cloak-sub {
  margin: 4px 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.45;
}

.cloak-pipeline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cloak-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  transition: var(--trans);
}

.cloak-pill.is-done {
  color: #6ee7a8;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
}

.cloak-pill.is-active {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.cloak-pill-sep {
  width: 14px;
  height: 1px;
  background: var(--line);
  flex: 0 0 14px;
}

.cloak-field { margin-bottom: 12px; }

.cloak-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.cloak-input-row input {
  flex: 1;
  min-width: 0;
}

.cloak-paste-btn {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cloak-paste-btn:hover {
  color: #fff;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}

.cloak-hint code {
  font-size: 0.95em;
  color: #93c5fd;
}

.cloak-url-status {
  margin: 8px 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
}

.cloak-url-status.is-ok { color: #6ee7a8; }
.cloak-url-status.is-err { color: #ff8a98; }

.cloak-hint {
  margin: 8px 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.45;
}

#cloak-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0a5c2e, #0f7a3d);
  color: #b8ffd0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
  font-family: inherit;
  box-shadow: 0 4px 18px rgba(15, 122, 61, 0.25);
  border: 1px solid rgba(52, 211, 153, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cloak-btn-icon {
  font-size: 1rem;
  line-height: 1;
}

#cloak-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(15, 122, 61, 0.35);
  color: #fff;
}

#cloak-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.cloak-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  line-height: 1.55;
  font-family: Consolas, "Courier New", monospace;
  word-break: break-word;
}

.cloak-result.is-ok {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7a8;
}

.cloak-result.is-err {
  background: rgba(255, 107, 122, 0.1);
  border: 1px solid rgba(255, 107, 122, 0.3);
  color: #ff8a98;
}

.cloak-result.is-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.cloak-step {
  margin-top: 6px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
}

/* ── STATUS ─────────────────────────────────────────────── */
.hint {
  min-height: 1.6em;
  margin: 14px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  display: none;
}

.hint:not(:empty) { display: block; }

/* ── PREVIEW / MAIN COLUMN ──────────────────────────────── */
.preview-col,
.main-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper-2);
  min-height: 100vh;
  position: relative;
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.preview-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-code-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: var(--trans);
}

.preview-code-badge.visible { opacity: 1; }

.view-toggle {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.view-toggle button {
  height: 30px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: var(--trans);
  font-family: inherit;
}

.view-toggle button.is-on {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.view-toggle button:not(.is-on):hover { color: var(--ink); }

.frame-wrap {
  position: relative;
  flex: 1;
  padding: 20px;
  background:
    radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.06), transparent 45%),
    var(--paper-2);
}

.frame-wrap iframe {
  width: 100%;
  height: calc(100vh - 90px);
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.frame-wrap[data-view="mobile"] iframe {
  width: 390px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
}

.empty-text {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  max-width: 280px;
}

.empty.is-off { display: none; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .form-col {
    max-height: none;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .form-body { padding-top: 20px; }
  .admin-section,
  .history-section {
    margin-top: 16px;
    padding: 18px 16px 22px;
  }
  .admin-tabs { margin-bottom: 18px; }
  .logs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.history-hint {
  margin: 0 0 14px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.45;
}

.user-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.user-history-card {
  aspect-ratio: 1;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  cursor: pointer;
  transition: var(--trans);
  font-family: inherit;
  text-align: center;
}

.user-history-card:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.user-history-card.is-off {
  opacity: 0.55;
  border-style: dashed;
}

.user-history-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.user-history-avatar.is-lg {
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
  border-radius: 14px;
  flex-shrink: 0;
}

.user-history-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.user-history-role {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.user-history-count {
  font-size: 0.68rem;
  color: var(--ink-2);
}

.user-history-count b {
  color: var(--accent);
  font-size: 0.9rem;
}

.user-history-brand {
  font-size: 0.62rem;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-history-last {
  font-size: 0.58rem;
  color: var(--muted);
}

.user-history-back {
  margin-bottom: 14px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
}

.user-history-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.user-history-detail-head {
  margin-bottom: 14px;
}

.user-history-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
}

.user-history-detail-title strong {
  display: block;
  font-size: 0.92rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.user-history-detail-title span {
  font-size: 0.68rem;
  color: var(--muted);
}

.log-filters-detail {
  margin-bottom: 12px;
}

.activity-block {
  margin-bottom: 16px;
}

.activity-block-title {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.activity-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.activity-item.is-ok { border-left: 3px solid var(--ok); }
.activity-item.is-err { border-left: 3px solid var(--error); }

.activity-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.activity-item-top strong { color: var(--gold); }
.activity-item-top span { color: var(--muted); font-size: 0.62rem; }
.activity-item-sub { font-size: 0.64rem; color: var(--muted); margin-bottom: 4px; }
.activity-item-msg { font-size: 0.68rem; color: var(--ink-2); line-height: 1.4; }

.credit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 10px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.12), rgba(59, 130, 246, 0.08));
}

.credit-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.credit-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-2);
  line-height: 1;
}

.credit-value.is-low { color: var(--error); }

.credit-costs {
  font-size: 0.62rem;
  color: var(--muted);
  width: 100%;
}

.credit-hint {
  font-size: 0.65rem;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.4;
}

.btn-cost {
  font-size: 0.62rem;
  opacity: 0.85;
  margin-left: 4px;
}

.user-credits {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  margin-top: 6px;
}

.user-credits.is-admin { color: var(--ok); }

.user-credit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.credit-add-input {
  width: 72px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.75rem;
}

.user-history-credits {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
}

.user-online-dot {
  color: var(--ok);
  font-size: 0.55rem;
  margin-left: 6px;
  animation: pulse-dot 2s ease infinite;
}

.user-row.is-online {
  border-color: rgba(52, 211, 153, 0.35);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.activity-feed {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.activity-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.activity-icon {
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.9;
}

.activity-body { flex: 1; min-width: 0; }

.activity-row code {
  font-size: 0.58rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

.credit-settings {
  display: grid;
  gap: 12px;
  max-width: 320px;
}

.tx-plus { color: var(--ok); font-weight: 800; }
.tx-minus { color: var(--error); font-weight: 800; }

.logs-list { max-height: 360px; }

@media (max-width: 900px) {
  .frame-wrap iframe { height: 70vh; }
  .actions { grid-template-columns: 1fr; }
  #perde-code { min-height: 140px; max-height: 220px; }
  .user-history-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ═══ ADMIN PAGE (ayrı tam ekran panel) ═══ */
body.admin-page { overflow: hidden; }

.admin-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--card);
  min-height: 100vh;
  position: sticky;
  top: 0;
}

.admin-sidebar-head {
  padding: 24px 20px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar .brand-mark {
  margin-bottom: 10px;
}

.admin-sidebar-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-sidebar-sub {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.admin-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--trans);
}

.admin-nav-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.admin-nav-item.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.admin-nav-icon {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.admin-sidebar-foot {
  padding: 16px 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-back-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: var(--trans);
}

.admin-back-link:hover {
  background: rgba(59, 130, 246, 0.18);
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.admin-page-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.admin-page-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-stat {
  min-width: 88px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}

.admin-stat span {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-2);
  line-height: 1.1;
}

.admin-stat small {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 32px;
}

.admin-view { display: none !important; visibility: hidden !important; pointer-events: none !important; }
.admin-view.is-on { display: block !important; visibility: visible !important; pointer-events: auto !important; }

@keyframes adminFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.preview-workspace .frame-wrap {
  flex: 1;
  min-height: 0;
}

@media (max-width: 1100px) {
  .admin-overview-grid { grid-template-columns: 1fr; }
  .admin-main-header,
  .admin-main-body,
  .admin-main-footer { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .form-col { max-height: none; position: relative; }
  .admin-side-nav-list { flex-direction: row; flex-wrap: wrap; overflow-x: auto; }
  .admin-side-nav-item { flex: 1 1 45%; min-width: 160px; }
  .asn-text small { display: none; }
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-toolbar-actions input,
.admin-toolbar-actions select {
  height: 38px;
  min-width: 140px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
}

.admin-status {
  padding: 10px 32px 16px;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.admin-block-title {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Kullanıcı kartları — geniş grid, butonlar üst üste binmez */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.user-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  transition: var(--trans);
}

.user-card:hover {
  border-color: var(--line-2);
  background: rgba(59, 130, 246, 0.05);
}

.user-card.is-off { opacity: 0.6; border-color: rgba(255, 107, 122, 0.25); }
.user-card.is-online { border-color: rgba(52, 211, 153, 0.35); }

.user-card-head { min-width: 0; }

.user-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.68rem;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.user-card-stats .is-err-text { color: var(--error); font-weight: 700; }

.user-card-credits {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-credit-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.user-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.user-card-actions .user-btn {
  flex: 1 1 auto;
  min-width: 100px;
  height: 36px;
}

.admin-history-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  max-height: none;
}

.admin-logs-list,
.admin-activity-feed {
  max-height: calc(100vh - 280px);
}

.log-filters-wide input {
  max-width: 420px;
}

.admin-credits-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 32px;
  align-items: start;
}

.credit-settings-wide {
  max-width: none;
}

.credit-settings-wide input[type="number"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
}

.activity-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.6rem;
  color: var(--muted);
  opacity: 0.85;
}

@media (max-width: 960px) {
  .admin-app { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    min-height: auto;
  }
  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
  }
  .admin-nav-item {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
    justify-content: center;
  }
  .admin-topbar,
  .admin-content { padding-left: 20px; padding-right: 20px; }
  .admin-credits-layout { grid-template-columns: 1fr; }
  .users-grid { grid-template-columns: 1fr; }
}

/* ── Admin tables, modal, brands ── */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.admin-data-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.admin-data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}

.admin-data-table tr:hover td {
  background: rgba(59, 130, 246, 0.06);
}

.admin-data-table code {
  font-size: 0.68rem;
  color: var(--gold);
  background: rgba(212, 175, 106, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.table-link-btn {
  border: none;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.brand-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.brand-chip {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 106, 0.3);
  background: rgba(212, 175, 106, 0.08);
}

.brand-chip strong {
  display: block;
  color: var(--gold-2);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.brand-chip span {
  font-size: 0.68rem;
  color: var(--muted);
}

.brand-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.65rem;
  color: var(--ink-2);
}

.brand-mini-chip b {
  color: var(--gold);
}

.user-brands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.user-brands-empty {
  font-size: 0.68rem;
  color: var(--muted);
  font-style: italic;
}

.credit-deduct-btn {
  border-color: rgba(255, 107, 122, 0.35) !important;
  background: rgba(255, 107, 122, 0.1) !important;
  color: var(--error) !important;
}

.user-history-brands {
  grid-column: 1 / -1;
  font-size: 0.65rem;
  color: var(--gold);
  opacity: 0.9;
}

.user-history-open {
  grid-column: 1 / -1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

.admin-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal[hidden] { display: none !important; }

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.admin-modal-box {
  position: relative;
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  background: var(--paper-2);
  box-shadow: var(--shadow-lg);
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.admin-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-2);
}

.admin-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-body {
  overflow-y: auto;
  padding: 20px 22px 24px;
}

.modal-user-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.modal-user-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

.modal-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.modal-credit-panel {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  margin-bottom: 20px;
}

.modal-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-section {
  padding-top: 4px;
}

.overview-feed {
  max-height: 320px;
}

.modal-act-feed {
  max-height: 360px;
  overflow-y: auto;
}

.admin-system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-system-grid .dash-panel-wide {
  grid-column: 1 / -1;
}

.field-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.credit-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 220px;
}

.cell-sub {
  font-size: 0.65rem;
  color: var(--muted);
}

.cell-brands {
  font-size: 0.72rem;
  max-width: 200px;
  line-height: 1.4;
}

.cell-actions {
  white-space: nowrap;
}

.is-off-row td {
  opacity: 0.55;
}

.tbl-btn {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tbl-btn-add {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: var(--ok);
}

.tbl-btn-del {
  border-color: rgba(255, 107, 122, 0.4);
  background: rgba(255, 107, 122, 0.1);
  color: var(--error);
}

.tbl-btn:hover { transform: translateY(-1px); }

.admin-users-table .credit-add-input {
  width: 56px;
  height: 30px;
  padding: 0 6px;
}

@media (max-width: 960px) {
  .admin-system-grid { grid-template-columns: 1fr; }
  .field-row-2 { grid-template-columns: 1fr; }
  .upc-top { flex-wrap: wrap; }
  .spc-meta { grid-template-columns: 1fr 1fr; }
  .settings-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   PREMIUM ADMIN — Kartlar, Butonlar, Timeline
   ═══════════════════════════════════════════════════════ */

.admin-workspace button,
.admin-workspace input,
.admin-workspace select {
  font-family: "Outfit", system-ui, sans-serif;
}

.admin-workspace button {
  appearance: none;
  -webkit-appearance: none;
}

/* Premium buton sistemi */
.px-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--trans);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.px-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.px-btn:active { transform: translateY(0); }

.px-btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.68rem;
}

.px-btn-lg {
  min-height: 48px;
  padding: 0 28px;
  font-size: 0.82rem;
  border-radius: 12px;
}

.px-btn-success {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, rgba(52,211,153,0.25), rgba(16,185,129,0.12));
  color: #6ee7b7;
  box-shadow: 0 4px 16px rgba(52,211,153,0.15);
}

.px-btn-success:hover {
  background: linear-gradient(135deg, rgba(52,211,153,0.35), rgba(16,185,129,0.2));
  border-color: rgba(52,211,153,0.6);
}

.px-btn-danger {
  border-color: rgba(255, 107, 122, 0.45);
  background: linear-gradient(135deg, rgba(255,107,122,0.22), rgba(220,38,38,0.1));
  color: #fca5a5;
  box-shadow: 0 4px 16px rgba(255,107,122,0.12);
}

.px-btn-danger:hover {
  background: linear-gradient(135deg, rgba(255,107,122,0.32), rgba(220,38,38,0.18));
  border-color: rgba(255,107,122,0.55);
}

.px-btn-gold {
  border-color: rgba(212, 175, 106, 0.5);
  background: linear-gradient(135deg, rgba(212,175,106,0.28), rgba(180,140,60,0.15));
  color: var(--gold-2);
  box-shadow: 0 4px 18px rgba(212,175,106,0.18);
}

.px-btn-gold:hover {
  background: linear-gradient(135deg, rgba(212,175,106,0.4), rgba(180,140,60,0.22));
  border-color: var(--gold);
  color: #fff;
}

.px-btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--ink-2);
}

.px-btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--ink);
}

.px-link {
  border: none;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.px-link:hover { color: var(--gold-2); }

/* Premium input */
.premium-input {
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  transition: var(--trans);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
}

.premium-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.premium-input-sm {
  width: 72px;
  height: 38px;
  padding: 0 10px;
  text-align: center;
  font-weight: 700;
}

.premium-search {
  min-width: 220px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.premium-select {
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
}

.premium-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
}

.premium-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.premium-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.premium-content { min-height: 200px; }

.premium-section-title {
  margin: 24px 0 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Kullanıcı kartları — alt alta */
.users-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-premium-card {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(18, 26, 44, 0.95), rgba(8, 12, 22, 0.9));
  box-shadow: var(--shadow);
  transition: var(--trans);
}

.user-premium-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-lg);
}

.user-premium-card.is-online {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 8px 32px rgba(52, 211, 153, 0.08);
}

.user-premium-card.is-off { opacity: 0.65; }
.user-premium-card.is-admin-user { border-color: rgba(212, 175, 106, 0.35); }

.upc-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.upc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-2);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.upc-avatar.is-lg {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

.user-premium-card.is-admin-user .upc-avatar {
  background: linear-gradient(135deg, #b8860b, var(--gold));
  color: #1a1208;
}

.upc-info { flex: 1; min-width: 0; }

.upc-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.upc-meta {
  font-size: 0.74rem;
  color: var(--muted);
}

.is-online-text { color: var(--ok); font-style: normal; font-weight: 700; }

.upc-balance {
  text-align: right;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(212, 175, 106, 0.1);
  border: 1px solid rgba(212, 175, 106, 0.25);
}

.upc-balance-lbl {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.upc-balance .credit-balance-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-2);
}

.upc-status {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upc-status.is-active {
  background: rgba(52, 211, 153, 0.15);
  color: var(--ok);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.upc-status.is-inactive {
  background: rgba(255, 107, 122, 0.12);
  color: var(--error);
  border: 1px solid rgba(255, 107, 122, 0.3);
}

.upc-brands {
  margin-bottom: 16px;
}

.upc-section-lbl {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.06));
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.76rem;
}

.brand-tag-name { font-weight: 700; color: var(--ink); }
.brand-tag-count { color: var(--gold); font-weight: 800; font-size: 0.68rem; }
.brand-tag-empty { opacity: 0.6; font-size: 0.74rem; color: var(--muted); }

.upc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.upc-stat {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}

.upc-stat span {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.upc-stat strong { font-size: 0.92rem; color: var(--ink); }

.upc-credit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.upc-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
}

.upc-balance-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}

.upc-balance-inline span {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.upc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upc-admin-note {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(212, 175, 106, 0.1);
  border: 1px solid rgba(212, 175, 106, 0.3);
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Site kartları */
.sites-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-premium-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(18, 26, 44, 0.92), rgba(10, 14, 26, 0.88));
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}

.site-premium-card:hover {
  border-color: rgba(212, 175, 106, 0.35);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.spc-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.spc-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,175,106,0.3), rgba(212,175,106,0.1));
  border: 1px solid rgba(212, 175, 106, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold-2);
  flex-shrink: 0;
}

.spc-brand-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.spc-brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.spc-brand-sub code {
  color: var(--gold);
  background: rgba(212, 175, 106, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
}

.spc-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, auto));
  gap: 12px 20px;
}

.spc-meta-item span {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.spc-meta-item strong { font-size: 0.82rem; color: var(--ink-2); }
.spc-cost { color: var(--gold-2) !important; }

.spc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.modal-sites-stack .site-premium-card {
  grid-template-columns: 1fr auto;
  margin-bottom: 10px;
}

/* Timeline */
.timeline-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding-right: 4px;
}

.timeline-card {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  transition: var(--trans);
}

.timeline-card:hover {
  background: rgba(59, 130, 246, 0.06);
  border-color: var(--line-2);
}

.timeline-card.is-gen { border-left: 3px solid var(--accent); }
.timeline-card.is-credit { border-left: 3px solid var(--gold); }
.timeline-card.is-login { border-left: 3px solid var(--ok); }

.timeline-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.timeline-card-body { flex: 1; min-width: 0; }

.timeline-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.timeline-card-top strong { color: var(--gold-2); font-size: 0.82rem; }
.timeline-card-top code {
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(59,130,246,0.15);
  color: var(--ink-2);
}
.timeline-card-top time,
.timeline-card-top span { font-size: 0.68rem; color: var(--muted); margin-left: auto; }

.timeline-balance { color: var(--ink-2) !important; font-weight: 600; }

.timeline-card-msg {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-2);
  line-height: 1.45;
}

/* Ayarlar premium */
.settings-premium {
  max-width: 880px;
  padding: 28px 32px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 106, 0.25);
  background: linear-gradient(160deg, rgba(18, 26, 44, 0.95), rgba(8, 12, 22, 0.92));
  box-shadow: var(--shadow-lg);
}

.settings-premium-head h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.settings-premium-head p {
  margin: 0 0 28px;
  font-size: 0.82rem;
  color: var(--muted);
}

.settings-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.setting-card {
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  transition: var(--trans);
}

.setting-card:hover {
  border-color: rgba(212, 175, 106, 0.35);
  background: rgba(212, 175, 106, 0.06);
}

.setting-card-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.setting-card label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.setting-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-input-wrap input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
}

.setting-input-wrap input:focus {
  outline: none;
  border-color: rgba(212, 175, 106, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.12);
}

.setting-input-wrap span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
}

.brand-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.brand-card-mini {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.brand-card-mini strong { display: block; color: var(--ink); margin-bottom: 4px; }
.brand-card-mini span { font-size: 0.72rem; color: var(--muted); }
.brand-card-mini em { display: block; font-size: 0.65rem; color: var(--muted); margin-top: 6px; font-style: normal; }

.modal-user-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.modal-user-head h3 { margin: 0 0 4px; font-size: 1.2rem; }
.modal-user-head p { margin: 0; font-size: 0.78rem; color: var(--muted); }

.modal-admin-badge {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(212, 175, 106, 0.12);
  border: 1px solid rgba(212, 175, 106, 0.3);
  color: var(--gold-2);
  font-weight: 700;
  margin-bottom: 20px;
}

.perde-preview-box {
  width: min(1180px, 96vw);
  max-height: 94vh;
}

.perde-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.perde-preview-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.perde-preview-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.perde-preview-body {
  padding: 0 !important;
  min-height: 420px;
  background: #0b0f14;
  position: relative;
}

.perde-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #111822, #0b0f14);
}

.perde-preview-loading[hidden] {
  display: none !important;
}

.perde-preview-frame {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  border: 0;
  background: #fff;
}

.perde-preview-frame[hidden] {
  display: none !important;
}

#all-sites-table .spc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-spc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .site-premium-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .spc-actions { flex-direction: row; flex-wrap: wrap; }
  .upc-stats { grid-template-columns: 1fr; }
}
