/* ═══════════════════════════════════════════════════════════════
   Zytek Customer Panel — Premium shell + unified light/dark theme
   ═══════════════════════════════════════════════════════════════ */

/* ── Shell base ── */
body.cust-panel.adm-panel {
  background: var(--panel-bg, var(--adm-bg, #070b14));
  overflow-x: visible;
  color: var(--panel-fg, var(--adm-text, #e8ecff));
}

body.cust-panel .adm-sidebar { overflow-x: visible; }
body.cust-panel .adm-brand { overflow: visible; }

body.cust-panel .adm-brand-mark {
  background: linear-gradient(135deg, #a78bfa, var(--theme-primary, #00daf3));
  box-shadow: 0 0 24px rgba(var(--theme-primary-rgb, 0, 218, 243), 0.15);
}

body.cust-panel .adm-nav-item:hover,
body.cust-panel .adm-nav-item.active { transform: none; }

body.cust-panel .adm-nav-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--theme-primary-rgb, 0, 218, 243), 0.25) transparent;
}
body.cust-panel .adm-nav-scroll::-webkit-scrollbar { width: 5px; }
body.cust-panel .adm-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(var(--theme-primary-rgb, 0, 218, 243), 0.22);
  border-radius: 999px;
}

body.cust-panel .adm-premium-badge {
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.25);
}

body.cust-panel .adm-status-dot { background: #4ade80; }

.sb-wrap,
.cust-main {
  margin-left: var(--adm-sidebar-w, 272px);
  min-height: calc(100vh - var(--adm-topbar-h, 64px));
  padding-top: var(--adm-topbar-h, 64px);
  background: var(--panel-bg, var(--adm-bg, #070b14));
  position: relative;
  z-index: 1;
}

body.adm-sidebar-collapsed .sb-wrap,
body.adm-sidebar-collapsed .cust-main {
  margin-left: var(--adm-sidebar-collapsed, 76px);
}

@media (max-width: 900px) {
  .sb-wrap, .cust-main { margin-left: 0; }
}

.sb-wrap > .max-w-3xl,
.sb-wrap > .max-w-4xl,
.sb-wrap > .max-w-5xl,
.sb-wrap > .max-w-6xl,
.sb-wrap > .max-w-xl,
.sb-wrap > .max-w-2xl,
.cust-main > .max-w-3xl,
.cust-main > .max-w-4xl,
.cust-main > .max-w-5xl,
.cust-main > .max-w-6xl {
  margin-left: auto;
  margin-right: auto;
}

/* ── Semantic content classes (use in new pages) ── */
.cust-title {
  font-family: 'Space Grotesk', var(--adm-font, Inter, sans-serif);
  font-weight: 700;
  color: var(--panel-fg);
}

.cust-accent { color: var(--theme-primary, #00daf3); }
.cust-muted { color: var(--panel-muted); }

/* ── Preference pages (bildirim, çerez vb.) ── */
.cust-page {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.25rem 2.5rem;
}
@media (min-width: 640px) {
  .cust-page { padding: 1.5rem 2rem 3rem; }
}
.cust-page-head { margin-bottom: 1.5rem; }
.cust-page-head h1 {
  font-family: 'Space Grotesk', var(--adm-font, Inter, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--panel-fg);
  margin: 0 0 6px;
}
.cust-page-head p {
  font-size: 0.875rem;
  color: var(--panel-muted);
  margin: 0;
  line-height: 1.55;
}

.pref-card {
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.pref-card h2 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--panel-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--panel-card-border);
}
.toggle-row:last-child { border-bottom: none; padding-bottom: 0; }
.toggle-row:first-of-type { padding-top: 0; }
.toggle-row-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.toggle-row-main .material-symbols-outlined {
  font-size: 22px;
  color: var(--theme-primary, #00daf3);
  opacity: 0.9;
  margin-top: 2px;
  flex-shrink: 0;
}
.toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--panel-fg);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.toggle-desc {
  font-size: 12px;
  color: var(--panel-muted);
  margin-top: 4px;
  line-height: 1.45;
}
.toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-switch .slider {
  position: absolute;
  inset: 0;
  background: rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  border: 1px solid var(--panel-card-border);
}
.toggle-switch .slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--panel-muted);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}
.toggle-switch input:checked + .slider {
  background: linear-gradient(135deg, var(--theme-primary, #00daf3), #6366f1);
  border-color: transparent;
}
.toggle-switch input:checked + .slider::before {
  transform: translate(20px, -50%);
  background: #fff;
}
.toggle-switch input:focus-visible + .slider {
  outline: 2px solid rgba(var(--theme-primary-rgb, 0, 218, 243), 0.45);
  outline-offset: 2px;
}
.toggle-switch.is-locked .slider {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.35);
  cursor: not-allowed;
}
.toggle-switch.is-locked .slider::before {
  transform: translate(20px, -50%);
  background: #4ade80;
}
.toggle-switch.is-locked .slider::after {
  content: 'lock';
  font-family: 'Material Symbols Outlined';
  font-size: 12px;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: #4ade80;
  line-height: 1;
}

.cookie-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 720px) {
  .cookie-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .cookie-summary { grid-template-columns: 1fr; }
}
.cookie-stat {
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
}
.cookie-stat .material-symbols-outlined {
  font-size: 22px;
  color: var(--theme-primary, #00daf3);
  display: block;
  margin-bottom: 6px;
}
.cookie-stat strong {
  display: block;
  font-size: 13px;
  color: var(--panel-fg);
  margin-bottom: 2px;
}
.cookie-stat span {
  font-size: 11px;
  color: var(--panel-muted);
}
.cookie-stat.is-on strong { color: #4ade80; }
.cookie-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
}
.cookie-badge-locked {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.cookie-badge-off {
  background: rgba(148, 163, 184, 0.12);
  color: var(--panel-muted);
  border: 1px solid var(--panel-card-border);
}
.cookie-badge-on {
  background: rgba(var(--theme-primary-rgb, 0, 218, 243), 0.12);
  color: var(--theme-primary, #00daf3);
  border: 1px solid rgba(var(--theme-primary-rgb, 0, 218, 243), 0.25);
}

.cust-msg {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cust-msg-ok {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #4ade80;
}
.cust-msg-err {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.22);
  color: #f87171;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.btn-save {
  flex: 1;
  min-width: 180px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: linear-gradient(135deg, var(--theme-primary, #00daf3), #6366f1);
  color: #07111f;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-save:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-save:active { transform: translateY(0); }
.cookie-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--panel-muted);
}
.cookie-legal {
  margin-top: 8px;
  font-size: 12px;
  color: var(--panel-muted);
  line-height: 1.5;
}
.cookie-legal a {
  color: var(--theme-primary, #00daf3);
  text-decoration: none;
}
.cookie-legal a:hover { text-decoration: underline; }

.cookie-sync-card {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb, 0, 218, 243), 0.06), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(var(--theme-primary-rgb, 0, 218, 243), 0.18);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cookie-sync-card .material-symbols-outlined { color: var(--theme-primary, #00daf3); font-size: 24px; flex-shrink: 0; }
.cookie-sync-card strong { display: block; font-size: 14px; color: var(--panel-fg); margin-bottom: 4px; }
.cookie-sync-card p { margin: 0; font-size: 12px; color: var(--panel-muted); line-height: 1.5; }
.cookie-sync-status {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-sync-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--panel-card-border);
  color: var(--panel-muted);
}
.cookie-sync-pill.is-match { border-color: rgba(74, 222, 128, 0.35); color: #4ade80; background: rgba(74, 222, 128, 0.08); }
.cookie-sync-pill.is-diff { border-color: rgba(250, 204, 21, 0.35); color: #facc15; background: rgba(250, 204, 21, 0.08); }

.cookie-accordion { margin-top: 8px; }
.cookie-accordion-item {
  border: 1px solid var(--panel-card-border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  background: rgba(12, 19, 36, 0.35);
}
html.light .cookie-accordion-item { background: rgba(255, 255, 255, 0.5); }
.cookie-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: var(--panel-fg);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.cookie-accordion-btn .material-symbols-outlined.chevron {
  transition: transform 0.2s;
  font-size: 20px;
  color: var(--panel-muted);
}
.cookie-accordion-item.is-open .cookie-accordion-btn .chevron { transform: rotate(180deg); }
.cookie-accordion-body {
  display: none;
  padding: 0 14px 14px;
}
.cookie-accordion-item.is-open .cookie-accordion-body { display: block; }

.cookie-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.cookie-detail-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--panel-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--panel-card-border);
}
.cookie-detail-table td {
  padding: 8px 10px;
  color: var(--panel-fg);
  border-bottom: 1px solid rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.06);
  vertical-align: top;
}
.cookie-detail-table tr:last-child td { border-bottom: none; }
.cookie-detail-table code {
  font-size: 11px;
  background: rgba(var(--theme-primary-rgb, 0, 218, 243), 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--theme-primary, #00daf3);
}

.cookie-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.cookie-history-table th,
.cookie-history-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--panel-card-border);
}
.cookie-history-table th {
  color: var(--panel-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cookie-history-empty {
  text-align: center;
  padding: 24px;
  color: var(--panel-muted);
  font-size: 13px;
}

.cookie-browser-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cookie-browser-chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.06);
  border: 1px solid var(--panel-card-border);
  color: var(--panel-muted);
}
.cookie-browser-chip.is-active { color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }

.cust-card,
body.cust-panel .card {
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  border-radius: 14px;
  color: var(--panel-fg);
  box-shadow: var(--panel-card-shadow, none);
}

body.cust-panel .btn,
body.cust-panel .btn-outline {
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.cust-panel .btn {
  background: rgba(var(--theme-primary-rgb, 0, 218, 243), 0.15);
  border: 1.5px solid rgba(var(--theme-primary-rgb, 0, 218, 243), 0.3);
  color: var(--theme-secondary, #c3f5ff);
}

body.cust-panel .btn-primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #00daf3) 88%, #000), var(--theme-primary, #00daf3));
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
}

body.cust-panel .btn-outline {
  background: transparent;
  border: 1px solid var(--panel-card-border);
  color: var(--panel-muted);
}

body.cust-panel .inp,
body.cust-panel .input-field {
  background: rgba(21, 27, 45, 0.95);
  color: var(--panel-fg);
  border: 1px solid rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.15);
  border-radius: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* Yatay padding — Tailwind pl-/pr- sınıfları veya varsayılan */
body.cust-panel .input-field:not([class*="pl-"]) {
  padding-left: 14px;
}
body.cust-panel .input-field:not([class*="pr-"]) {
  padding-right: 14px;
}
body.cust-panel .inp:not([class*="pl-"]) {
  padding-left: 14px;
}
body.cust-panel .inp:not([class*="pr-"]) {
  padding-right: 14px;
}

body.cust-panel .inp:focus,
body.cust-panel .input-field:focus,
body.cust-panel .input-field:focus-visible {
  outline: none;
  border-color: rgba(var(--theme-primary-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1);
}

body.cust-panel .glass-card {
  background: rgba(25, 31, 49, 0.5);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  color: var(--panel-fg);
}

body.cust-panel .stat-card {
  background: linear-gradient(135deg, rgba(25, 31, 49, 0.6) 0%, rgba(35, 41, 60, 0.4) 100%);
  border: 1px solid rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.1);
}

body.cust-panel .quick-action {
  background: rgba(25, 31, 49, 0.6);
  border: 1px solid rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.1);
}

body.cust-panel table th {
  color: var(--panel-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.cust-panel table td {
  color: var(--panel-fg);
  border-color: var(--panel-card-border);
}

.cust-beta-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  font-size: 13px;
}

/* Chat widget — theme aware */
#chatBox {
  background: var(--panel-toast-bg, rgba(12, 19, 36, 0.95)) !important;
  border-color: var(--panel-card-border) !important;
}
#chatMessages { color: var(--panel-muted) !important; }
#chatInput {
  background: var(--panel-card-bg) !important;
  border-color: var(--panel-card-border) !important;
  color: var(--panel-fg) !important;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME — müşteri paneli
   ═══════════════════════════════════════════════════════════════ */

html.light body.cust-panel.adm-panel,
html.light body.cust-panel.dark,
html.light body.cust-panel[class*="dark"] {
  background: var(--panel-bg, #eef2f8) !important;
  color: var(--panel-fg, #0f172a) !important;
}

html.light body.cust-panel::before {
  background:
    radial-gradient(ellipse 900px 500px at 10% -10%, var(--panel-glow-a, rgba(14, 165, 233, 0.07)), transparent 55%),
    radial-gradient(ellipse 700px 400px at 90% 0%, var(--panel-glow-b, rgba(99, 102, 241, 0.04)), transparent 50%) !important;
}

html.light body.cust-panel .sb-wrap,
html.light body.cust-panel .cust-main,
html.light body.cust-panel .main {
  background: var(--panel-bg, #eef2f8);
  color: var(--panel-fg, #0f172a);
}

html.light body.cust-panel .adm-premium-badge {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.22);
}

html.light body.cust-panel .adm-nav-scroll {
  scrollbar-color: rgba(14, 165, 233, 0.3) transparent;
}
html.light body.cust-panel .adm-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(14, 165, 233, 0.28);
}

/* Cards & surfaces */
html.light body.cust-panel .glass-card,
html.light body.cust-panel .card,
html.light body.cust-panel .cust-card,
html.light body.cust-panel .stat-card,
html.light body.cust-panel .quick-action,
html.light body.cust-panel .header-bar {
  background: var(--panel-card-bg, #fff) !important;
  border-color: var(--panel-card-border, rgba(15, 23, 42, 0.09)) !important;
  color: var(--panel-fg, #0f172a) !important;
  box-shadow: var(--panel-card-shadow, 0 8px 24px rgba(15, 23, 42, 0.06));
}

html.light body.cust-panel .stat-card {
  background: var(--panel-stat-bg, linear-gradient(135deg, #fff 0%, #f1f5f9 100%)) !important;
}

html.light body.cust-panel .quick-action:hover {
  background: #fff !important;
  border-color: rgba(14, 165, 233, 0.2) !important;
}

/* Typography */
html.light body.cust-panel .cust-title,
html.light body.cust-panel .cust-page-title,
html.light body.cust-panel .glass-card h1,
html.light body.cust-panel .glass-card h2,
html.light body.cust-panel .glass-card h3,
html.light body.cust-panel .card h1,
html.light body.cust-panel .card h2,
html.light body.cust-panel h1,
html.light body.cust-panel h2,
html.light body.cust-panel h3 {
  color: #0f172a !important;
}

html.light body.cust-panel .cust-accent { color: #0284c7 !important; }

html.light body.cust-panel .sub,
html.light body.cust-panel .toggle-desc,
html.light body.cust-panel .cust-muted,
html.light body.cust-panel .toggle-label,
html.light body.cust-panel label,
html.light body.cust-panel p,
html.light body.cust-panel span:not(.material-symbols-outlined):not(.badge-green):not(.badge-yellow):not(.badge-blue):not(.badge-red):not(.adm-nav-badge):not(.adm-status-dot) {
  color: inherit;
}

html.light body.cust-panel .sub,
html.light body.cust-panel .toggle-desc,
html.light body.cust-panel .cust-muted {
  color: #64748b !important;
}

html.light body.cust-panel .text-on-surface,
html.light body.cust-panel [class*="text-on-surface"]:not(.badge-green):not(.badge-yellow):not(.badge-blue):not(.badge-red) {
  color: #0f172a !important;
}

html.light body.cust-panel .text-on-surface-variant,
html.light body.cust-panel [class*="text-on-surface-variant"] {
  color: #475569 !important;
}

html.light body.cust-panel .text-primary,
html.light body.cust-panel [class*="text-primary"] {
  color: #0284c7 !important;
}

/* Inline style rescue — pages with hardcoded dark hex */
html.light body.cust-panel [style*="color:var(--theme-secondary, #c3f5ff)"],
html.light body.cust-panel [style*="color: var(--theme-secondary, #c3f5ff)"],
html.light body.cust-panel [style*="color:#C3F5FF"],
html.light body.cust-panel [style*="color:#dce1fb"],
html.light body.cust-panel [style*="color: #dce1fb"] {
  color: #0f172a !important;
}

html.light body.cust-panel [style*="186,201,204"],
html.light body.cust-panel [style*="186, 201, 204"] {
  color: #64748b !important;
}

html.light body.cust-panel [style*="background:#0c1324"],
html.light body.cust-panel [style*="background: #0c1324"],
html.light body.cust-panel [style*="background:#0C1324"] {
  background: var(--panel-card-bg, #fff) !important;
}

html.light body.cust-panel [style*="border-top:1px solid rgba(195,245,255"],
html.light body.cust-panel [style*="border:1px solid rgba(195,245,255"] {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* Forms & buttons */
html.light body.cust-panel .inp,
html.light body.cust-panel .input-field,
html.light body.cust-panel .time-inp,
html.light body.cust-panel input:not([type="checkbox"]):not([type="radio"]),
html.light body.cust-panel select,
html.light body.cust-panel textarea {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html.light body.cust-panel input::placeholder,
html.light body.cust-panel textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

html.light body.cust-panel .btn {
  background: rgba(14, 165, 233, 0.1) !important;
  border-color: rgba(14, 165, 233, 0.25) !important;
  color: #0369a1 !important;
}

html.light body.cust-panel .btn-outline {
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #475569 !important;
}

html.light body.cust-panel .btn-outline:hover,
html.light body.cust-panel .btn-outline.active {
  border-color: rgba(14, 165, 233, 0.35) !important;
  color: #0284c7 !important;
  background: rgba(14, 165, 233, 0.06) !important;
}

html.light body.cust-panel .toggle-row {
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

html.light body.cust-panel .slider {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html.light body.cust-panel .secret {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

/* Tables */
html.light body.cust-panel table th {
  color: #64748b !important;
}

html.light body.cust-panel table td {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* Ticket / destek */
html.light body.cust-panel .ticket-table th {
  color: #64748b !important;
}

html.light body.cust-panel .ticket-table td {
  color: #0f172a !important;
}

html.light body.cust-panel .reply-customer {
  background: rgba(241, 245, 249, 0.9) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html.light body.cust-panel .reply-admin {
  background: rgba(14, 165, 233, 0.08) !important;
  border-color: rgba(14, 165, 233, 0.15) !important;
}

/* Badges — keep semantic colors, improve light contrast */
html.light body.cust-panel .badge-green { color: #15803d !important; background: rgba(34, 197, 94, 0.12) !important; }
html.light body.cust-panel .badge-yellow { color: #a16207 !important; background: rgba(234, 179, 8, 0.12) !important; }
html.light body.cust-panel .badge-blue { color: #1d4ed8 !important; background: rgba(59, 130, 246, 0.12) !important; }
html.light body.cust-panel .badge-red { color: #b91c1c !important; background: rgba(239, 68, 68, 0.12) !important; }
html.light body.cust-panel .badge-gray { color: #64748b !important; background: rgba(148, 163, 184, 0.15) !important; }

html.light body.cust-panel .status-badge.badge-blue { color: #1d4ed8 !important; }
html.light body.cust-panel .status-badge.badge-green { color: #15803d !important; }
html.light body.cust-panel .status-badge.badge-yellow { color: #a16207 !important; }
html.light body.cust-panel .status-badge.badge-red { color: #b91c1c !important; }

/* Service tabs, progress */
html.light body.cust-panel .service-tab {
  color: #475569 !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: #fff !important;
}

html.light body.cust-panel .service-tab.active {
  color: #0284c7 !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
  background: rgba(14, 165, 233, 0.08) !important;
}

html.light body.cust-panel .progress-bar {
  background: rgba(15, 23, 42, 0.08) !important;
}

/* Toast & modals */
html.light body.cust-panel .toast {
  background: var(--panel-toast-bg) !important;
  border-color: var(--panel-toast-border) !important;
  color: var(--panel-toast-fg) !important;
}

html.light body.cust-panel .cust-beta-banner {
  background: rgba(251, 191, 36, 0.12);
  color: #b45309;
  border-color: rgba(251, 191, 36, 0.35);
}

/* Tailwind surface overrides in light */
html.light body.cust-panel .bg-surface-container-low,
html.light body.cust-panel [class*="bg-surface-container-low"] {
  background: rgba(248, 250, 252, 0.95) !important;
}

html.light body.cust-panel .bg-surface-container-high,
html.light body.cust-panel [class*="bg-surface-container-high"] {
  background: #fff !important;
}

html.light body.cust-panel .border-outline-variant,
html.light body.cust-panel [class*="border-outline-variant"] {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* Scrollbar light */
html.light body.cust-panel ::-webkit-scrollbar-track {
  background: var(--panel-scroll-track, rgba(226, 232, 240, 0.8));
}
html.light body.cust-panel ::-webkit-scrollbar-thumb {
  background: var(--panel-scroll-thumb, rgba(14, 165, 233, 0.35));
}

/* Command palette */
.cust-cmd-palette { position: fixed; inset: 0; z-index: 500; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.cust-cmd-palette.hidden { display: none; }
.cust-cmd-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); }
.cust-cmd-box { position: relative; width: min(560px, 100%); background: var(--panel-card-bg, #fff); border: 1px solid var(--panel-card-border); border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,.35); overflow: hidden; }
.cust-cmd-input-wrap { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--panel-card-border); }
.cust-cmd-input-wrap input { flex: 1; border: none; background: transparent; color: var(--panel-fg); font-size: 15px; outline: none; }
.cust-cmd-kbd { font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--panel-card-border); color: var(--panel-muted); }
.cust-cmd-results { list-style: none; margin: 0; padding: 8px; max-height: 320px; overflow-y: auto; }
.cust-cmd-results li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--panel-fg); text-decoration: none; font-size: 14px; }
.cust-cmd-results li a:hover, .cust-cmd-results li a.focused { background: rgba(0,218,243,.1); color: var(--theme-primary, #00daf3); }
.cust-cmd-results .type { margin-left: auto; font-size: 10px; text-transform: uppercase; color: var(--panel-muted); }
.adm-nav-item.hidden-by-search { display: none !important; }
.adm-nav-group.hidden-by-search { display: none !important; }

.cust-company-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
  background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.25);
  color: #c4b5fd; font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
html.light .cust-company-badge { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.2); color: #4f46e5; }

.tk-back-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--panel-muted); font-size: 13px; text-decoration: none; margin-bottom: 20px;
}
.tk-back-link:hover { color: var(--theme-primary, #00daf3); }
.tk-page-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.tk-page-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,218,243,.15), rgba(99,102,241,.15));
  border: 1px solid rgba(0,218,243,.25);
  display: flex; align-items: center; justify-content: center; color: var(--theme-primary, #00daf3);
}
.tk-form-card { padding: 24px 28px; }
.tk-steps { display: flex; gap: 8px; margin-bottom: 28px; }
.tk-step {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--panel-muted);
  background: rgba(255,255,255,.03); border: 1px solid var(--panel-card-border);
}
.tk-step span {
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; background: rgba(255,255,255,.06); border: 1px solid var(--panel-card-border);
}
.tk-step.is-active { color: var(--theme-primary, #00daf3); border-color: rgba(0,218,243,.35); background: rgba(0,218,243,.06); }
.tk-step.is-active span { background: linear-gradient(135deg, var(--theme-primary, #00daf3), #6366f1); color: #07111f; border: none; }
.tk-step.is-done { color: #4ade80; border-color: rgba(74,222,128,.25); }
.tk-panel { display: none; }
.tk-panel.is-active { display: block; animation: tkFadeIn .25s ease; }
@keyframes tkFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tk-section-title { font-size: 16px; font-weight: 700; color: var(--panel-fg); margin-bottom: 4px; }
.tk-section-desc { font-size: 13px; color: var(--panel-muted); margin-bottom: 20px; }
.tk-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 24px; }
.tk-cat-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px;
  border-radius: 14px; border: 1px solid var(--panel-card-border); background: rgba(255,255,255,.02);
  cursor: pointer; text-align: left; font-family: inherit; color: var(--panel-fg); transition: .2s;
}
.tk-cat-card:hover { border-color: rgba(0,218,243,.3); background: rgba(0,218,243,.04); }
.tk-cat-card.is-selected { border-color: rgba(0,218,243,.5); background: rgba(0,218,243,.08); box-shadow: 0 0 0 1px rgba(0,218,243,.2); }
.tk-cat-icon { font-size: 26px; color: var(--theme-primary, #00daf3); }
.tk-cat-label { font-size: 13px; font-weight: 700; }
.tk-cat-desc { font-size: 11px; color: var(--panel-muted); line-height: 1.35; }
.tk-sla-banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: rgba(0,218,243,.08); border: 1px solid rgba(0,218,243,.15);
  font-size: 13px; color: var(--panel-fg); margin-bottom: 20px;
}
.tk-sla-banner .material-symbols-outlined { color: var(--theme-primary, #00daf3); font-size: 20px; }
.tk-field { margin-bottom: 18px; }
.tk-label { display: block; font-size: 12px; font-weight: 600; color: var(--panel-muted); margin-bottom: 8px; }
.tk-required { color: #f87171; }
.tk-optional { font-weight: 400; opacity: .7; }
.tk-input {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-family: inherit;
  background: rgba(21,27,45,.6); color: var(--panel-fg); border: 1px solid var(--panel-card-border);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
html.light .tk-input { background: var(--panel-card-bg, #fff); }
.tk-input:focus { border-color: rgba(0,218,243,.45); box-shadow: 0 0 0 3px rgba(0,218,243,.1); }
.tk-input.is-invalid { border-color: rgba(248,113,113,.5); }
.tk-textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.tk-hint-row { display: flex; justify-content: space-between; margin-top: 6px; }
.tk-hint { font-size: 11px; color: var(--panel-muted); }
.tk-counter { font-size: 11px; color: var(--panel-muted); font-variant-numeric: tabular-nums; }
.tk-counter.is-warn { color: #facc15; }
.tk-prio-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-prio-chip {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--panel-card-border); background: rgba(255,255,255,.03); color: var(--panel-muted);
  font-family: inherit; transition: .2s;
}
.tk-prio-chip.is-selected { color: #07111f; border-color: transparent; }
.tk-prio-chip.prio-low.is-selected { background: #94a3b8; }
.tk-prio-chip.prio-medium.is-selected { background: linear-gradient(135deg, #60a5fa, #6366f1); }
.tk-prio-chip.prio-high.is-selected { background: linear-gradient(135deg, #facc15, #f97316); }
.tk-prio-chip.prio-critical.is-selected { background: linear-gradient(135deg, #f87171, #ef4444); color: #fff; }
.tk-template-row { margin-bottom: 8px; }
.tk-template-btn {
  font-size: 12px; padding: 4px 10px; border-radius: 8px; cursor: pointer;
  border: 1px dashed rgba(0,218,243,.35); background: transparent; color: var(--theme-primary, #00daf3); font-family: inherit;
}
.tk-dropzone {
  border: 2px dashed var(--panel-card-border); border-radius: 14px; padding: 28px 20px;
  text-align: center; cursor: pointer; transition: .2s; background: rgba(255,255,255,.02);
}
.tk-dropzone:hover, .tk-dropzone.is-dragover { border-color: rgba(0,218,243,.45); background: rgba(0,218,243,.04); }
.tk-dropzone.is-invalid { border-color: rgba(248,113,113,.5); }
.tk-drop-icon { font-size: 36px; color: var(--theme-primary, #00daf3); display: block; margin: 0 auto 8px; }
.tk-drop-text { font-size: 14px; color: var(--panel-fg); display: block; }
.tk-drop-text u { color: var(--theme-primary, #00daf3); }
.tk-drop-meta { font-size: 11px; color: var(--panel-muted); display: block; margin-top: 4px; }
.tk-file-preview {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px;
  padding: 8px 14px; border-radius: 10px; background: rgba(0,218,243,.08); font-size: 13px; color: var(--panel-fg);
}
.tk-file-preview.hidden { display: none; }
.tk-file-remove { background: none; border: none; color: #f87171; font-size: 18px; cursor: pointer; padding: 0 4px; }
.tk-panel-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 8px; }
.tk-panel-actions-split { justify-content: space-between; }
.tk-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer; border: none; font-family: inherit; transition: .2s;
}
.tk-btn-primary { background: linear-gradient(135deg, var(--theme-primary, #00daf3), #6366f1); color: #07111f; }
.tk-btn-primary:hover { filter: brightness(1.08); }
.tk-btn-primary:disabled { opacity: .65; cursor: not-allowed; }
.tk-btn-ghost { background: transparent; border: 1px solid var(--panel-card-border); color: var(--panel-muted); }
.tk-alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 20px; }
.tk-alert-error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25); color: #f87171; }
.tk-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
@media (max-width: 540px) { .tk-info-cards { grid-template-columns: 1fr; } }
.tk-info-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px;
  background: var(--panel-card-bg); border: 1px solid var(--panel-card-border);
}
.tk-info-card .material-symbols-outlined { color: var(--theme-primary, #00daf3); font-size: 22px; flex-shrink: 0; }
.tk-info-card strong { display: block; font-size: 13px; color: var(--panel-fg); margin-bottom: 2px; }
.tk-spinner {
  display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(7,17,31,.3);
  border-top-color: #07111f; border-radius: 50%; animation: tkSpin .6s linear infinite;
}
@keyframes tkSpin { to { transform: rotate(360deg); } }

/* Destek empty state */
.tk-empty-state { text-align: center; padding: 48px 24px; }
.tk-empty-state .material-symbols-outlined { font-size: 48px; color: var(--panel-muted); opacity: .5; margin-bottom: 12px; }
.tk-empty-state p { color: var(--panel-muted); font-size: 14px; margin-bottom: 16px; }
.tk-empty-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px;
  background: linear-gradient(135deg, var(--theme-primary, #00daf3), #6366f1); color: #07111f; font-weight: 700;
  text-decoration: none; font-size: 14px;
}

/* Material Symbols — ligature text fallback düzeltmesi */
body.cust-panel .material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
  overflow: hidden;
}

