/**
 * Hexnet — tema (light / dark / system)
 * Karanlık mod: premium SaaS — yalnızca html.theme-dark (HTML/JS değişmez)
 */

:root,
html.theme-light {
  --input-bg: #ffffff;
  --input-border: #dbe3ee;
  --input-text: #1f2937;
  --muted-2: #64748b;
  --text-muted: #64748b;
  --sidebar-text: #e8f0fa;
  --sidebar-muted: #8da6c2;
  --topbar-bg: #ffffff;
  --modal-backdrop: rgba(15, 23, 42, 0.45);
  --table-header-bg: #f8fafc;
  --link-color: #1565c0;
  --shadow-soft: rgba(15, 23, 42, 0.08);
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-muted: #f8fafc;
  --surface-2: #f1f5f9;
  --code-bg: #f1f5f9;
  --code-text: #1e293b;
  --pre-bg: #f8fafc;
  --pre-text: #334155;
  --text-on-primary: #ffffff;
  --text-secondary: #475569;
  --overlay-light: rgba(255, 255, 255, 0.72);
}

html.theme-transitioning,
html.theme-transitioning body,
html.theme-transitioning body * {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    fill 0.2s ease,
    stroke 0.2s ease,
    transform 0.2s ease;
}

html.theme-dark {
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --primary-dark: #2563eb;
  --bg-main: #0b1220;
  --bg-sidebar: #0f172a;
  --bg-card: #111827;
  --sidebar: #0f172a;
  --sidebar-2: #111827;
  --bg: #0b1220;
  --card: #111827;
  --card-soft: rgba(17, 24, 39, 0.65);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #e5e7eb;
  --text-main: #e5e7eb;
  --muted: #94a3b8;
  --border: #1f2937;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --card-hover-bg: rgba(59, 130, 246, 0.08);
  --card-hover-border: rgba(59, 130, 246, 0.35);
  --card-hover-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --input-bg: #111827;
  --input-border: #334155;
  --input-text: #f8fafc;
  --sidebar-text: #e5e7eb;
  --sidebar-muted: #94a3b8;
  --topbar-bg: rgba(17, 24, 39, 0.55);
  --modal-backdrop: rgba(0, 0, 0, 0.6);
  --table-header-bg: rgba(17, 24, 39, 0.95);
  --link-color: #93c5fd;
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --text-muted: #94a3b8;
  --surface: #111827;
  --surface-elevated: rgba(30, 41, 59, 0.92);
  --surface-muted: rgba(30, 41, 59, 0.65);
  --surface-2: rgba(15, 23, 42, 0.88);
  --code-bg: rgba(15, 23, 42, 0.95);
  --code-text: #e2e8f0;
  --pre-bg: rgba(15, 23, 42, 0.92);
  --pre-text: #cbd5e1;
  --text-on-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --overlay-light: rgba(17, 24, 39, 0.75);
}

/* ——— Form & genel ——— */
html.theme-dark .field label {
  color: var(--muted) !important;
}

html.theme-dark .field input,
html.theme-dark .field textarea,
html.theme-dark .field select {
  background: var(--input-bg) !important;
  color: var(--input-text) !important;
  border-color: var(--input-border) !important;
}

html.theme-dark .password-toggle-btn {
  color: var(--muted) !important;
}

html.theme-dark .message-box {
  background: rgba(17, 24, 39, 0.85) !important;
  backdrop-filter: blur(8px);
  border-color: var(--border) !important;
  color: var(--text) !important;
}

html.theme-dark .btn-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

html.theme-dark .btn-secondary:hover {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}

/* Primary: gradient + glow */
html.theme-dark .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease !important;
}

html.theme-dark .btn-primary:hover {
  box-shadow: 0 6px 28px var(--primary-glow), 0 0 32px rgba(59, 130, 246, 0.25) !important;
  filter: brightness(1.05);
}

html.theme-dark .btn-primary:active {
  transform: translateY(1px);
}

html.theme-dark .btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3) !important;
}

html.theme-dark .btn-danger {
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25) !important;
}

/* Ana alan */
html.theme-dark .main {
  background: var(--bg-main) !important;
}

/* Sidebar: gradient + derinlik */
html.theme-dark .sidebar {
  background: linear-gradient(165deg, #0f172a 0%, #0b1220 42%, #111827 100%) !important;
  border-right: 1px solid rgba(59, 130, 246, 0.1) !important;
  box-shadow: 6px 0 40px rgba(0, 0, 0, 0.35) !important;
  color: #cbd5e1 !important;
}

html.theme-dark .sidebar-brand {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 18, 32, 0.92)) !important;
  border-bottom: 1px solid rgba(71, 85, 105, 0.5) !important;
}

html.theme-dark .sidebar.sidebar--scrolled .sidebar-brand {
  background: rgba(15, 23, 42, 0.98) !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(71, 85, 105, 0.5) !important;
}

html.theme-dark .menu-group-title {
  color: #64748b !important;
}

html.theme-dark .menu + .menu-group-title {
  border-top-color: rgba(71, 85, 105, 0.55) !important;
}

html.theme-dark .menu a.nav-link {
  color: #94a3b8 !important;
  border: 1px solid transparent !important;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

html.theme-dark .menu a.nav-link:hover {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.1);
}

html.theme-dark .menu a.nav-link.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.28), rgba(59, 130, 246, 0.06)) !important;
  color: #fff !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  box-shadow: 0 0 28px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html.theme-dark .nav-link {
  color: inherit !important;
}

/* Top bar: darker header focus */
html.theme-dark .topbar {
  background: linear-gradient(180deg, rgba(6, 11, 22, 0.96) 0%, rgba(10, 16, 30, 0.94) 100%) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(71, 85, 105, 0.44) !important;
  border-radius: 0 !important;
  padding: 10px max(14px, calc((100% - 1500px) / 2 + 14px)) !important;
  margin-bottom: 18px !important;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.52), inset 0 1px 0 rgba(148, 163, 184, 0.12) !important;
}

html.theme-dark .topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), transparent 28%, transparent 72%, rgba(14, 165, 233, 0.1));
  opacity: 0.62;
}

html.theme-dark .topbar .page-title h2 {
  color: #e2e8f0 !important;
}

html.theme-dark .topbar .page-title p {
  color: #94a3b8 !important;
}

html.theme-dark .search {
  background: rgba(2, 6, 23, 0.72) !important;
  backdrop-filter: blur(10px);
  border-color: rgba(71, 85, 105, 0.45) !important;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.3) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

html.theme-dark .search:focus-within {
  border-color: rgba(59, 130, 246, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

html.theme-dark .topbar-notify-btn {
  background: rgba(2, 6, 23, 0.76) !important;
  border-color: rgba(71, 85, 105, 0.48) !important;
  color: var(--text) !important;
}

html.theme-dark .topbar-notify-btn:hover {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

html.theme-dark .topbar-user-btn {
  background: rgba(2, 6, 23, 0.74) !important;
  border-color: rgba(71, 85, 105, 0.48) !important;
}

html.theme-dark .topbar-user-btn:hover {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

html.theme-dark .topbar-user-wrap {
  z-index: 1600 !important;
}

html.theme-dark .topbar-user-avatar {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.9)) !important;
  color: #dbeafe !important;
}

html.theme-dark .topbar-user-chevron {
  color: #94a3b8 !important;
}

html.theme-dark .topbar-search-dropdown,
html.theme-dark .topbar-notify-dropdown,
html.theme-dark .topbar-user-dropdown {
  background: rgba(17, 24, 39, 0.92) !important;
  backdrop-filter: blur(12px);
  border-color: var(--border) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
  z-index: 1700 !important;
}

html.theme-dark .topbar-user-dropdown-item {
  color: var(--text) !important;
}

html.theme-dark .topbar-user-dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1) !important;
}

html.theme-dark .topbar-user-dropdown-item--danger {
  color: #fca5a5 !important;
  border-top-color: rgba(239, 68, 68, 0.35) !important;
}

html.theme-dark .topbar-user-dropdown-item--danger:hover {
  background: rgba(239, 68, 68, 0.14) !important;
}

html.theme-dark .topbar-notify-dropdown-head {
  background: rgba(15, 23, 42, 0.9) !important;
  color: var(--text) !important;
}

html.theme-dark .topbar-notify-item {
  background: rgba(30, 41, 59, 0.5) !important;
  color: var(--text) !important;
}

html.theme-dark .topbar-notify-item:hover {
  background: rgba(59, 130, 246, 0.12) !important;
}

html.theme-dark .topbar-search-item {
  color: var(--text) !important;
  border-color: rgba(31, 41, 55, 0.8) !important;
}

html.theme-dark .topbar-search-item:hover,
html.theme-dark .topbar-search-item:focus {
  background: rgba(59, 130, 246, 0.08) !important;
}

/* Kartlar: cam + hover */
html.theme-dark .panel-modal-compact,
html.theme-dark .card {
  background: rgba(17, 24, 39, 0.78) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(31, 41, 55, 0.95) !important;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html.theme-dark .main .page .card:not(.profile-page) {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
}

html.theme-dark .main .page .card:not(.profile-page):hover {
  background: rgba(17, 24, 39, 0.88) !important;
  border-color: rgba(59, 130, 246, 0.22) !important;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.12) !important;
  transform: translateY(-3px) !important;
}

html.theme-dark .main .page .card:not(.profile-page).firm-card:hover,
html.theme-dark .main .page .card:not(.profile-page).dashboard-map-card:hover,
html.theme-dark #page-devices > .card:not(.profile-page):hover,
html.theme-dark #page-customers > .card:not(.profile-page):hover,
html.theme-dark #page-users > .card:not(.profile-page):hover,
html.theme-dark #page-companies > .card:not(.profile-page):hover {
  transform: none !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(59, 130, 246, 0.14) !important;
}

html.theme-dark .stat-card {
  background: rgba(17, 24, 39, 0.72) !important;
}

html.theme-dark .panel-head {
  border-color: rgba(31, 41, 55, 0.9) !important;
}

/* Tablolar: yeşil satır kaldırıldı; ince vurgu + hover */
html.theme-dark table {
  background: transparent !important;
}

html.theme-dark th {
  background: var(--table-header-bg) !important;
  color: var(--muted) !important;
}

html.theme-dark td {
  color: var(--text) !important;
}

html.theme-dark .card .panel-body > table tbody tr {
  transition: background 0.2s ease, box-shadow 0.2s ease !important;
}

html.theme-dark .card .panel-body > table tbody tr:hover {
  background: rgba(59, 130, 246, 0.05) !important;
  box-shadow: inset 3px 0 0 rgba(59, 130, 246, 0.75) !important;
}

html.theme-dark #page-customers .card .panel-body > table tbody tr.customer-row--active,
html.theme-dark #page-devices .card .panel-body > table tbody tr.device-row--active,
html.theme-dark #page-users .card .panel-body > table tbody tr.user-table-row--active {
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.18) 0%,
    rgba(17, 24, 39, 0.35) 100%
  ) !important;
  box-shadow: inset 3px 0 0 #3b82f6 !important;
}

html.theme-dark #page-customers .card .panel-body > table tbody tr.customer-row--passive,
html.theme-dark #page-devices .card .panel-body > table tbody tr.device-row--passive,
html.theme-dark #page-users .card .panel-body > table tbody tr.user-table-row--passive {
  background: linear-gradient(
    90deg,
    rgba(71, 85, 105, 0.25) 0%,
    rgba(17, 24, 39, 0.25) 100%
  ) !important;
}

html.theme-dark #page-customers .card .panel-body > table tbody tr.customer-row--active:hover,
html.theme-dark #page-customers .card .panel-body > table tbody tr.customer-row--passive:hover,
html.theme-dark #page-devices .card .panel-body > table tbody tr.device-row--active:hover,
html.theme-dark #page-devices .card .panel-body > table tbody tr.device-row--passive:hover,
html.theme-dark #page-users .card .panel-body > table tbody tr.user-table-row--active:hover,
html.theme-dark #page-users .card .panel-body > table tbody tr.user-table-row--passive:hover {
  background: rgba(59, 130, 246, 0.08) !important;
  box-shadow: inset 3px 0 0 rgba(59, 130, 246, 0.85) !important;
}

html.theme-dark .table-scroll {
  background: rgba(17, 24, 39, 0.5) !important;
  border-color: var(--border) !important;
}

html.theme-dark .dashboard-mini-table th {
  background: rgba(15, 23, 42, 0.95) !important;
}

html.theme-dark .dashboard-side-block {
  background: rgba(15, 23, 42, 0.5) !important;
}

/* Status badge: glow */
html.theme-dark .status-active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.1)) !important;
  color: #86efac !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.28), inset 0 0 0 1px rgba(34, 197, 94, 0.2) !important;
}

html.theme-dark .status-passive {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(71, 85, 105, 0.15)) !important;
  color: #cbd5e1 !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
  box-shadow: 0 0 14px rgba(100, 116, 139, 0.2) !important;
}

html.theme-dark .status-select {
  background: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text) !important;
}

html.theme-dark .status-select:hover {
  border-color: rgba(59, 130, 246, 0.45) !important;
  background: rgba(59, 130, 246, 0.06) !important;
}

html.theme-dark table:not(.detail-mini-table) td,
html.theme-dark table:not(.detail-mini-table) th {
  border-color: rgba(31, 41, 55, 0.9) !important;
}

html.theme-dark .search input,
html.theme-dark .topbar-search input {
  color: var(--text) !important;
}

html.theme-dark .forgot-password-dialog {
  background: rgba(17, 24, 39, 0.92) !important;
  backdrop-filter: blur(12px);
  border-color: var(--border) !important;
  color: var(--text) !important;
}

html.theme-dark .link-muted {
  color: var(--link-color) !important;
}

html.theme-dark .panel-notify__card {
  background: rgba(17, 24, 39, 0.9) !important;
  backdrop-filter: blur(8px);
  border-color: var(--border) !important;
  color: var(--text) !important;
}

html.theme-dark .detail-header-card,
html.theme-dark .detail-section-card,
html.theme-dark .device-detail-hero,
html.theme-dark .device-detail-tech {
  background: rgba(17, 24, 39, 0.78) !important;
  backdrop-filter: blur(10px);
  border-color: var(--border) !important;
}

html.theme-dark .device-detail-hero {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.78) 100%) !important;
}

html.theme-dark .kv .k {
  color: var(--muted) !important;
}

html.theme-dark .checkbox-row {
  color: var(--text) !important;
}

/* Giriş ekranı */
html.theme-dark #loginScreen {
  background:
    radial-gradient(1200px 520px at 50% -8%, rgba(59, 130, 246, 0.14), transparent 68%),
    linear-gradient(180deg, #0b1220 0%, #111827 100%);
}

html.theme-dark #loginScreen::before {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
}

html.theme-dark #loginScreen .login-shell {
  background: rgba(17, 24, 39, 0.82) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(31, 41, 55, 0.95) !important;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark #loginScreen .login-header h3 {
  color: var(--text) !important;
}

html.theme-dark #loginScreen .login-copy h2,
html.theme-dark #loginScreen .login-header p,
html.theme-dark #loginScreen .login-copy p {
  color: var(--muted) !important;
}

html.theme-dark #loginScreen .login-form .field label {
  color: var(--muted) !important;
}

html.theme-dark #loginScreen .login-form .field input {
  background: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--input-text) !important;
}

html.theme-dark #loginScreen .btn.btn-primary.btn-full {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.4) !important;
}

html.theme-dark #loginScreen .login-create-account-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

html.theme-dark #loginScreen .cookie-consent-sheet {
  background: rgba(17, 24, 39, 0.92) !important;
  backdrop-filter: blur(12px);
  border-color: var(--border) !important;
}

html.theme-dark #loginScreen .cookie-consent-sheet h4,
html.theme-dark #loginScreen .cookie-intro-line {
  color: var(--text) !important;
}

/* Customer modal: override inline light colors/styles */
html.theme-dark #customerModal[style*="position: fixed"] > div:first-child {
  background: rgba(15, 23, 42, 0.98) !important;
  border: 1px solid rgba(51, 65, 85, 0.85) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6) !important;
  color: var(--text) !important;
}

html.theme-dark #customerModal[style*="position: fixed"] > div:first-child > div:first-child {
  background: rgba(15, 23, 42, 0.96) !important;
  border-bottom-color: rgba(51, 65, 85, 0.9) !important;
}

html.theme-dark #customerModal #customerModalTitle,
html.theme-dark #customerModal .field label,
html.theme-dark #customerModal #customerKindLabel {
  color: var(--text) !important;
}

html.theme-dark #customerModal p,
html.theme-dark #customerModal #customerSummarySection,
html.theme-dark #customerModal #customerSummarySection div {
  color: var(--muted) !important;
}

html.theme-dark #customerModal #customerSummarySection {
  background: rgba(30, 41, 59, 0.55) !important;
  border-color: rgba(71, 85, 105, 0.65) !important;
}

html.theme-dark #customerModal .field input,
html.theme-dark #customerModal .field select,
html.theme-dark #customerModal .field textarea {
  background: rgba(15, 23, 42, 0.95) !important;
  color: var(--text) !important;
  border-color: rgba(71, 85, 105, 0.75) !important;
}

html.theme-dark #customerModal .field input::placeholder,
html.theme-dark #customerModal .field textarea::placeholder {
  color: #94a3b8 !important;
}

html.theme-dark #customerModal #customerRegisteredAtDisplay {
  background: rgba(30, 41, 59, 0.6) !important;
  color: #e2e8f0 !important;
}

/* Dark mode: unified modal shells */
html.theme-dark :is(
  #companyModal,
  #customerModal,
  #userModal,
  #deviceModal,
  #familyModal,
  #variantModal,
  #confirmDeleteModal,
  #registrationReviewModal
)[style*="position: fixed"] > div:first-child {
  background: rgba(15, 23, 42, 0.98) !important;
  border: 1px solid rgba(51, 65, 85, 0.85) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6) !important;
  color: var(--text) !important;
}

html.theme-dark :is(
  #companyModal,
  #customerModal,
  #userModal,
  #deviceModal,
  #familyModal,
  #variantModal,
  #registrationReviewModal
)[style*="position: fixed"] > div:first-child > div:first-child {
  background: rgba(15, 23, 42, 0.96) !important;
  border-bottom-color: rgba(51, 65, 85, 0.9) !important;
}

html.theme-dark :is(
  #companyModal,
  #customerModal,
  #userModal,
  #deviceModal,
  #familyModal,
  #variantModal,
  #registrationReviewModal
) h3,
html.theme-dark :is(
  #companyModal,
  #customerModal,
  #userModal,
  #deviceModal,
  #familyModal,
  #variantModal,
  #registrationReviewModal
) p,
html.theme-dark :is(
  #companyModal,
  #customerModal,
  #userModal,
  #deviceModal,
  #familyModal,
  #variantModal,
  #registrationReviewModal
) label {
  color: var(--text) !important;
}

/* Cihaz modalı — sarı/mavi bilgi kutuları (inline açık renk + koyu metin çakışmasını önler) */
html.theme-dark #deviceModal .device-form-callout--warn {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(252, 211, 77, 0.45) !important;
}

html.theme-dark #deviceModal .device-form-callout--warn .device-form-callout__title {
  color: #fcd34d !important;
}

html.theme-dark #deviceModal .device-form-callout--warn .device-form-callout__hint,
html.theme-dark #deviceModal .device-form-callout--warn label {
  color: #e2e8f0 !important;
}

html.theme-dark #deviceModal .device-form-callout--info {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
  color: #e2e8f0 !important;
}

html.theme-dark #deviceModal .device-form-field-hint {
  color: var(--muted) !important;
}

html.theme-dark #deviceModal .device-form-input-readonly {
  background: rgba(30, 41, 59, 0.75) !important;
  color: #cbd5e1 !important;
  border-color: rgba(71, 85, 105, 0.75) !important;
}

html.theme-dark #deviceModal .device-form-callout code,
html.theme-dark #deviceModal .device-form-field-hint code {
  color: #93c5fd !important;
  background: rgba(15, 23, 42, 0.55) !important;
}

/* Dark mode: profile/security/forms consistency */
html.theme-dark .profile-page.card {
  background: rgba(17, 24, 39, 0.78) !important;
  border-color: rgba(31, 41, 55, 0.95) !important;
}

html.theme-dark .profile-field-label,
html.theme-dark .profile-section-title,
html.theme-dark .profile-page-title {
  color: var(--text) !important;
}

html.theme-dark .profile-field-input,
html.theme-dark :is(#page-endpoints, #page-mqtt-test, #page-logs, #page-settings, #page-profile, #page-security) input:not([type="checkbox"]):not([type="radio"]),
html.theme-dark :is(#page-endpoints, #page-mqtt-test, #page-logs, #page-settings, #page-profile, #page-security) select,
html.theme-dark :is(#page-endpoints, #page-mqtt-test, #page-logs, #page-settings, #page-profile, #page-security) textarea,
html.theme-dark :is(#companyModal, #customerModal, #userModal, #deviceModal, #familyModal, #variantModal, #registrationReviewModal) input:not([type="checkbox"]):not([type="radio"]),
html.theme-dark :is(#companyModal, #customerModal, #userModal, #deviceModal, #familyModal, #variantModal, #registrationReviewModal) select,
html.theme-dark :is(#companyModal, #customerModal, #userModal, #deviceModal, #familyModal, #variantModal, #registrationReviewModal) textarea {
  background: rgba(15, 23, 42, 0.95) !important;
  color: var(--text) !important;
  border-color: rgba(71, 85, 105, 0.75) !important;
}

html.theme-dark .profile-field-input[readonly],
html.theme-dark :is(#page-profile, #page-security) input[readonly] {
  background: rgba(30, 41, 59, 0.6) !important;
  color: #cbd5e1 !important;
}

html.theme-dark :is(#page-endpoints, #page-mqtt-test, #page-logs, #page-settings, #page-profile, #page-security) input::placeholder,
html.theme-dark :is(#page-endpoints, #page-mqtt-test, #page-logs, #page-settings, #page-profile, #page-security) textarea::placeholder,
html.theme-dark :is(#companyModal, #customerModal, #userModal, #deviceModal, #familyModal, #variantModal, #registrationReviewModal) input::placeholder,
html.theme-dark :is(#companyModal, #customerModal, #userModal, #deviceModal, #familyModal, #variantModal, #registrationReviewModal) textarea::placeholder {
  color: #94a3b8 !important;
}

html.theme-dark .register-page-outer {
  background: linear-gradient(135deg, #0b1220, #0f172a) !important;
}

html.theme-dark .register-shell-card {
  background: rgba(17, 24, 39, 0.82) !important;
  backdrop-filter: blur(12px);
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* Ayarlar — tema segment */
.theme-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.theme-segment-btn {
  flex: 1 1 100px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.theme-segment-btn:hover {
  border-color: var(--primary);
}

.theme-segment-btn.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary-dark);
}

/* Ayarlar — vurgu rengi (VanGO mobil ile aynı) */
.theme-accent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.theme-accent-chip {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-accent-chip[data-theme-accent="vango"] {
  background: #00a8f3;
}
.theme-accent-chip[data-theme-accent="green"] {
  background: #10b981;
}
.theme-accent-chip[data-theme-accent="purple"] {
  background: #7c3aed;
}
.theme-accent-chip[data-theme-accent="orange"] {
  background: #f97316;
}
.theme-accent-chip[data-theme-accent="red"] {
  background: #ef4444;
}

.theme-accent-chip:hover {
  transform: scale(1.06);
  border-color: var(--text-muted);
}

.theme-accent-chip.is-active {
  border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);
}

html.theme-dark .theme-segment-btn {
  background: rgba(17, 24, 39, 0.65) !important;
}

html.theme-dark .theme-segment-btn.is-active {
  background: rgba(59, 130, 246, 0.18) !important;
  color: #93c5fd !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* ——— Okunabilirlik: ortak yardımcılar ——— */
.muted,
td.muted,
.muted-text {
  color: var(--muted);
}

.panel-head h3,
.ota-section-title,
.hexnet-iot-subtitle,
.device-detail-tech__block-title {
  color: var(--text);
}

.stat-value {
  color: var(--text);
}

code,
kbd {
  color: var(--code-text);
  background: var(--code-bg);
}

pre {
  color: var(--pre-text);
  background: var(--pre-bg);
}

table.data-table code,
.endpoint-url code,
td code {
  color: var(--code-text);
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ——— Karanlık mod: sabit açık arka planlı bileşenler ——— */
html.theme-dark .field label {
  color: var(--text-secondary) !important;
}

html.theme-dark table {
  background: transparent !important;
}

html.theme-dark th {
  color: var(--muted) !important;
  background: var(--table-header-bg) !important;
}

html.theme-dark td {
  color: var(--text) !important;
}

html.theme-dark td.muted,
html.theme-dark .muted {
  color: var(--muted) !important;
}

html.theme-dark .panel-head h3 {
  color: var(--text) !important;
}

html.theme-dark .stat-label,
html.theme-dark .stat-value {
  color: var(--text) !important;
}

html.theme-dark .stat-top {
  color: var(--muted) !important;
}

html.theme-dark .stat-card--accent-db .stat-card__icon {
  color: #93c5fd !important;
}
html.theme-dark .stat-card--accent-on .stat-card__icon {
  color: #60a5fa !important;
}
html.theme-dark .stat-card--accent-off .stat-card__icon {
  color: #94a3b8 !important;
}
html.theme-dark .stat-card--accent-ok .stat-card__icon {
  color: #86efac !important;
}
html.theme-dark .stat-card--accent-warn .stat-card__icon {
  color: #fcd34d !important;
}
html.theme-dark .stat-card--accent-bad .stat-card__icon {
  color: #fca5a5 !important;
}
html.theme-dark .stat-card--accent-alarm .stat-card__icon {
  color: #d8b4fe !important;
}
html.theme-dark .stat-card--accent-ota .stat-card__icon {
  color: #5eead4 !important;
}

/* Canlı izleme / IO panelleri */
html.theme-dark .hexnet-iot-panel--water,
html.theme-dark .hexnet-iot-tank,
html.theme-dark .hexnet-iot-panel--controls,
html.theme-dark .hexnet-iot-live-card {
  background: var(--surface-elevated) !important;
  border-color: var(--border) !important;
}

html.theme-dark .hexnet-iot-tank__head-txt,
html.theme-dark .hexnet-iot-dim-card__head,
html.theme-dark .hexnet-iot-metric-premium__val {
  color: var(--text) !important;
}

html.theme-dark .hexnet-iot-tank__pct,
html.theme-dark .device-live-dim-pct-big,
html.theme-dark .hexnet-iot-rgb-hex {
  color: var(--link-color) !important;
}

html.theme-dark .hexnet-iot-relay-tile {
  border-color: #64748b !important;
  background: rgba(15, 23, 42, 0.7) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

html.theme-dark .hexnet-iot-relay-tile--off .hexnet-iot-relay-tile__face {
  background: linear-gradient(165deg, rgba(71, 85, 105, 0.98), rgba(51, 65, 85, 1)) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.theme-dark .hexnet-iot-relay-tile--off .hexnet-iot-relay-tile__state {
  color: #cbd5e1 !important;
}

html.theme-dark .hexnet-iot-relay-tile--on .hexnet-iot-relay-tile__face {
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 1)) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html.theme-dark .hexnet-iot-relay-tile:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.25) !important;
}

html.theme-dark .hexnet-iot-relay-tile:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--card-hover-border) !important;
}

html.theme-dark .hexnet-iot-dim-card {
  background: rgba(30, 41, 59, 0.92) !important;
  border-color: #64748b !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.32) !important;
}

html.theme-dark .hexnet-iot-dim-card .device-live-dim-range::-webkit-slider-runnable-track {
  background: rgba(59, 130, 246, 0.5) !important;
}

html.theme-dark .hexnet-iot-dim-card .device-live-dim-range::-moz-range-track {
  background: rgba(59, 130, 246, 0.5) !important;
}

html.theme-dark .hexnet-iot-dim-card .device-live-dim-range::-webkit-slider-thumb {
  border-color: #0f172a !important;
  background: var(--primary) !important;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.55) !important;
}

html.theme-dark .hexnet-iot-dim-card .device-live-dim-range::-moz-range-thumb {
  border-color: #0f172a !important;
  background: var(--primary) !important;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.55) !important;
}

html.theme-dark .hexnet-iot-subtitle {
  color: var(--text-secondary) !important;
}

html.theme-dark .hexnet-iot-panel--controls {
  border: 1px solid var(--border) !important;
}

html.theme-dark .hexnet-iot-metric-premium {
  background: var(--surface-elevated) !important;
  border-color: #475569 !important;
}

html.theme-dark .hexnet-iot-metric-premium--good {
  border-color: rgba(34, 197, 94, 0.45) !important;
  background: linear-gradient(155deg, rgba(34, 197, 94, 0.12), var(--surface-elevated)) !important;
}

html.theme-dark .hexnet-iot-metric-premium--mid {
  border-color: rgba(245, 158, 11, 0.45) !important;
  background: linear-gradient(155deg, rgba(245, 158, 11, 0.12), var(--surface-elevated)) !important;
}

html.theme-dark .hexnet-iot-metric-premium--bad {
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: linear-gradient(155deg, rgba(239, 68, 68, 0.1), var(--surface-elevated)) !important;
}

html.theme-dark .hexnet-iot-metric-premium--empty {
  background: var(--surface-muted) !important;
  border-color: #475569 !important;
}

html.theme-dark .hexnet-iot-metric-premium__label,
html.theme-dark .hexnet-iot-metric-premium__sub {
  color: var(--muted) !important;
}

html.theme-dark .hexnet-iot-rgb-tile {
  border: 1px solid #64748b !important;
}

html.theme-dark .hexnet-iot-rgb-tile__label {
  color: var(--text) !important;
  font-weight: 700;
}

html.theme-dark .device-detail-hero__actions {
  background: var(--surface-muted) !important;
  border-color: var(--border) !important;
}

html.theme-dark .device-detail-hero__primary--online {
  color: #86efac !important;
}
html.theme-dark .device-detail-hero__primary--stale {
  color: #fcd34d !important;
}
html.theme-dark .device-detail-hero__primary--offline {
  color: #cbd5e1 !important;
}

html.theme-dark .device-detail-hero__mqtt-icon {
  background: var(--surface-muted) !important;
  color: var(--muted) !important;
}

html.theme-dark .device-detail-hero__mqtt-icon--online {
  color: #86efac !important;
}
html.theme-dark .device-detail-hero__mqtt-icon--offline {
  color: #fca5a5 !important;
}

html.theme-dark .detail-info-label {
  color: var(--muted) !important;
  opacity: 1 !important;
}

html.theme-dark .detail-info-value {
  color: var(--text) !important;
}

html.theme-dark .device-detail-tech__summary-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

html.theme-dark .device-detail-tech__info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
}

html.theme-dark .device-detail-tech__copy {
  background: rgba(30, 41, 59, 0.6);
  border-color: var(--border);
}

html.theme-dark .device-detail-tech__status-pill--online {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

html.theme-dark .device-detail-tech__summary {
  color: var(--text) !important;
}

/* Dashboard */
html.theme-dark .dashboard-side-block h4,
html.theme-dark .dashboard-device-detail-card-head h4,
html.theme-dark .dashboard-side-panel-subtitle {
  color: var(--text) !important;
}

html.theme-dark .dashboard-device-detail-row dt {
  color: var(--muted) !important;
}

html.theme-dark .dashboard-device-detail-row dd {
  color: var(--text) !important;
}

html.theme-dark .dashboard-device-detail-spec {
  background: var(--surface-elevated) !important;
}

html.theme-dark .dashboard-map-side,
html.theme-dark .dashboard-side-block {
  background: var(--surface-muted) !important;
}

html.theme-dark .dashboard-mini-table th {
  background: var(--table-header-bg) !important;
  color: var(--muted) !important;
}

html.theme-dark .dashboard-mini-table td {
  color: var(--text) !important;
}

html.theme-dark .dashboard-filter-chip {
  background: var(--surface-elevated) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

html.theme-dark .dashboard-device-status-pill[data-status="online"] {
  color: #86efac !important;
}
html.theme-dark .dashboard-device-status-pill[data-status="warning"] {
  color: #fcd34d !important;
}
html.theme-dark .dashboard-device-status-pill[data-status="offline"] {
  color: #fca5a5 !important;
}
html.theme-dark .dashboard-device-status-pill[data-status="passive"] {
  color: #cbd5e1 !important;
}

html.theme-dark .dashboard-legend-group-title {
  color: var(--muted) !important;
}

html.theme-dark .dashboard-legend-item {
  color: var(--text) !important;
}

/* Firma / ürün kartları */
html.theme-dark .firm-card--active {
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.22) 0%, rgba(17, 24, 39, 0.95) 48%) !important;
  border-color: rgba(59, 130, 246, 0.55) !important;
}

html.theme-dark .firm-card--active h4 {
  color: #bfdbfe !important;
}

html.theme-dark .firm-card--passive {
  background: linear-gradient(165deg, rgba(71, 85, 105, 0.35) 0%, rgba(17, 24, 39, 0.92) 50%) !important;
  border-color: rgba(100, 116, 139, 0.55) !important;
}

html.theme-dark .firm-card--passive h4 {
  color: #e2e8f0 !important;
}

html.theme-dark .firm-card--passive p,
html.theme-dark .firm-card--passive .firm-stats {
  color: var(--muted) !important;
}

html.theme-dark .firm-card h4 {
  color: var(--text) !important;
}

/* API uçları / MQTT test */
html.theme-dark .endpoint-item {
  background: var(--surface-elevated) !important;
}

html.theme-dark .endpoints-empty-state {
  background: var(--surface-muted) !important;
}

html.theme-dark .endpoint-block pre {
  background: var(--pre-bg) !important;
  color: var(--pre-text) !important;
}

html.theme-dark .endpoints-topic-preview {
  background: var(--code-bg) !important;
  color: var(--pre-text) !important;
  border-color: var(--border) !important;
}

html.theme-dark .endpoints-topic-preview span {
  color: var(--muted) !important;
}

html.theme-dark .endpoints-topic-preview code {
  color: var(--code-text) !important;
}

html.theme-dark .endpoint-method--get {
  color: #93c5fd !important;
}
html.theme-dark .endpoint-method--post {
  color: #86efac !important;
}
html.theme-dark .endpoint-method--put {
  color: #fdba74 !important;
}
html.theme-dark .endpoint-method--delete {
  color: #fca5a5 !important;
}

html.theme-dark .mqtt-stream-badge--idle {
  color: #cbd5e1 !important;
}
html.theme-dark .mqtt-stream-badge--on {
  color: #86efac !important;
}
html.theme-dark .mqtt-stream-badge--warn {
  color: #fcd34d !important;
}

html.theme-dark .mqtt-msg-payload {
  color: var(--pre-text) !important;
}

html.theme-dark .mqtt-tab-btn {
  color: var(--muted) !important;
}

html.theme-dark .mqtt-tab-btn.is-active {
  color: var(--text) !important;
  background: var(--surface-elevated) !important;
}

/* Loglar — açık zorlamayı kaldır */
html.theme-dark .logs-filter-bar .field select,
html.theme-dark .logs-filter-bar .field select:focus,
html.theme-dark .logs-filter-bar .field select option,
html.theme-dark .logs-filter-bar input,
html.theme-dark .logs-filter-bar input[type="date"],
html.theme-dark .logs-filters input,
html.theme-dark .logs-filters input[type="date"],
html.theme-dark .dropdown-menu,
html.theme-dark .select-menu {
  background: var(--input-bg) !important;
  color: var(--input-text) !important;
  border-color: var(--input-border) !important;
}

html.theme-dark .logs-filter-bar .field select option:hover {
  background: var(--surface-muted) !important;
}

/* OTA */
html.theme-dark #page-ota .ota-panel,
html.theme-dark #page-ota .ota-register-card {
  background: var(--surface-elevated) !important;
}

html.theme-dark #page-ota .ota-select,
html.theme-dark #page-ota .ota-input {
  background: var(--input-bg) !important;
  color: var(--input-text) !important;
  border-color: var(--input-border) !important;
}

html.theme-dark #page-ota .ota-section-title {
  color: var(--text) !important;
}

html.theme-dark #page-ota .ota-selected-banner {
  color: var(--text) !important;
}

html.theme-dark #page-ota .ota-active-job {
  color: var(--text) !important;
}

html.theme-dark .ota-dash__col,
html.theme-dark .ota-stat-card,
html.theme-dark .ota-history-card,
html.theme-dark .ota-modal__sheet {
  background: var(--card) !important;
  border-color: var(--border) !important;
}

html.theme-dark .alarm-rules-modal__panel,
html.theme-dark .alarm-rules-modal__panel:hover {
  background: rgba(15, 23, 42, 0.98) !important;
  border-color: rgba(51, 65, 85, 0.85) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6) !important;
  opacity: 1 !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.theme-dark .alarm-rules-modal__head {
  border-bottom-color: rgba(51, 65, 85, 0.9) !important;
}

html.theme-dark .alarm-rules-modal__foot {
  border-top-color: rgba(51, 65, 85, 0.9) !important;
}

html.theme-dark .ota-dash__col-head {
  background: var(--surface-muted) !important;
}

html.theme-dark .ota-device-card,
html.theme-dark .ota-firmware-card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

html.theme-dark .ota-device-card.is-selected,
html.theme-dark .ota-firmware-card.is-selected {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface)) !important;
  border-color: var(--primary) !important;
}

html.theme-dark .ota-live-log {
  background: rgba(15, 23, 42, 0.6) !important;
}

html.theme-dark .ota-modal__backdrop {
  background: var(--modal-backdrop) !important;
}

/* Ayarlar */
html.theme-dark .settings-nav-item.is-active {
  background: var(--surface-elevated) !important;
  color: #93c5fd !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
}

html.theme-dark .settings-sidebar {
  background: var(--surface-elevated) !important;
}

html.theme-dark .settings-role-preview-table th,
html.theme-dark .settings-role-preview-table td {
  color: var(--text) !important;
}

/* Aktif satırlar (açık yeşil gradient → koyu uyumlu) */
html.theme-dark #page-customers .card .panel-body > table tbody tr.customer-row--active,
html.theme-dark #page-devices .card .panel-body > table tbody tr.device-row--active,
html.theme-dark #page-users .card .panel-body > table tbody tr.user-table-row--active {
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.2) 0%,
    rgba(17, 24, 39, 0.5) 100%
  ) !important;
}

html.theme-dark #page-customers .card .panel-body > table tbody tr.customer-row--active td,
html.theme-dark #page-devices .card .panel-body > table tbody tr.device-row--active td,
html.theme-dark #page-users .card .panel-body > table tbody tr.user-table-row--active td {
  color: var(--text) !important;
}

html.theme-dark .card .panel-body > table tbody tr:hover td {
  color: var(--text) !important;
}

/* Aydınlık mod: koyu arka planlı önizleme kutuları metin kontrastı */
html.theme-light .endpoints-topic-preview {
  background: #0f172a;
  color: #e2e8f0;
}

html.theme-light .endpoints-topic-preview span {
  color: #94a3b8;
}

html.theme-light .endpoints-topic-preview code {
  color: #f1f5f9;
}

/* Liste filtre çubukları (cihazlar, kullanıcılar, müşteriler, …) */
html.theme-dark :is(
  .devices-filter-bar,
  .users-filter-bar,
  .customers-filter-bar,
  .users-requests-filter-bar
) input,
html.theme-dark :is(
  .devices-filter-bar,
  .users-filter-bar,
  .customers-filter-bar,
  .users-requests-filter-bar
) select {
  background: var(--input-bg) !important;
  color: var(--input-text) !important;
  border-color: var(--input-border) !important;
}

html.theme-dark .hexnet-iot-statusbar {
  background: var(--surface-muted) !important;
}

html.theme-dark .hexnet-iot-statusbar__title,
html.theme-dark .detail-section-title {
  color: var(--text) !important;
}

html.theme-dark .device-detail-state {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
}

html.theme-dark .device-detail-state--hint .device-detail-state__visual {
  color: #93c5fd !important;
}

html.theme-dark .topbar-search-dropdown .muted,
html.theme-dark .topbar-notify-dropdown .muted {
  color: var(--muted) !important;
}

/* Kayıt inceleme / telemetri önizleme */
html.theme-dark .registration-review-block,
html.theme-dark .telemetry-preview-box {
  background: var(--surface-elevated) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

html.theme-dark h4,
html.theme-dark h5,
html.theme-dark strong {
  color: inherit;
}

html.theme-dark .card p,
html.theme-dark .panel-body p {
  color: var(--text);
}

html.theme-dark .card .panel-body > table tbody tr td a {
  color: var(--link-color);
}
