/* DomainPark Pro v2.3.0 - Production Stylesheet */
:root {
  --dp-navbar-bg: #090f24;
  --dp-hero-bg: #081026;
  --dp-primary: #2563eb;
  --dp-accent: #0ea5e9;
  --dp-surface: #ffffff;
  --dp-bg-light: #f8fafc;
  --dp-border: #e2e8f0;
  --dp-text: #0f172a;
  --dp-muted: #64748b;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--dp-text);
  background: var(--dp-bg-light);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.container-front { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.font-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dp-icon { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.dp-icon-sm { width: 14px; height: 14px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.dp-icon-lg { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* Animated 15-span Corporate Mesh Background */
@keyframes background_move__307V1 {
  to { transform: translateZ(1px) rotate(1turn); }
}

.background_background__3Oeal {
  width: 100%;
  height: 100%;
  background: var(--dp-hero-bg);
  position: relative;
  overflow: hidden;
}

.background_background__3Oeal > span {
  width: 50vmin;
  height: 50vmin;
  border-radius: 50vmin;
  backface-visibility: hidden;
  position: absolute;
  animation-name: background_move__307V1;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  pointer-events: none;
}

.background_background__3Oeal > span:nth-child(1) { color: #2563eb; opacity: .22; top: 64%; left: 3%; animation-duration: 18.8s; animation-delay: -10.7s; transform-origin: 14vw -22vh; box-shadow: 100vmin 0 21vmin currentColor; }
.background_background__3Oeal > span:nth-child(2) { color: #0ea5e9; opacity: .16; top: 24%; left: 85%; animation-duration: 26.5s; animation-delay: -3.1s; transform-origin: -1vw -14vh; box-shadow: 100vmin 0 36vmin currentColor; }
.background_background__3Oeal > span:nth-child(3) { color: #1d4ed8; opacity: .20; top: 41%; left: 38%; animation-duration: 26.3s; animation-delay: -9.8s; transform-origin: -5vw -21vh; box-shadow: -100vmin 0 22vmin currentColor; }
.background_background__3Oeal > span:nth-child(4) { color: #0284c7; opacity: .15; top: 31%; left: 36%; animation-duration: 32.4s; animation-delay: -3.9s; transform-origin: -24vw -5vh; box-shadow: -100vmin 0 17vmin currentColor; }
.background_background__3Oeal > span:nth-child(5) { color: #3b82f6; opacity: .18; top: 82%; left: 36%; animation-duration: 30.6s; animation-delay: -2.6s; transform-origin: -7vw -4vh; box-shadow: 100vmin 0 25vmin currentColor; }
.background_background__3Oeal > span:nth-child(6) { color: #1e40af; opacity: .18; top: 69%; left: 33%; animation-duration: 16.9s; animation-delay: -22.3s; transform-origin: 19vw 0; box-shadow: -100vmin 0 30vmin currentColor; }
.background_background__3Oeal > span:nth-child(7) { color: #2563eb; opacity: .20; top: 5%; left: 35%; animation-duration: 13s; animation-delay: -2.4s; transform-origin: 12vw 23vh; box-shadow: 100vmin 0 18vmin currentColor; }
.background_background__3Oeal > span:nth-child(8) { color: #0ea5e9; opacity: .14; top: 9%; left: 60%; animation-duration: 31.5s; animation-delay: -29.6s; transform-origin: -16vw -24vh; box-shadow: 100vmin 0 33vmin currentColor; }
.background_background__3Oeal > span:nth-child(9) { color: #1d4ed8; opacity: .18; top: 90%; left: 63%; animation-duration: 30.4s; animation-delay: -2.9s; transform-origin: -5vw 14vh; box-shadow: -100vmin 0 29vmin currentColor; }
.background_background__3Oeal > span:nth-child(10) { color: #38bdf8; opacity: .12; top: 15%; left: 30%; animation-duration: 29.4s; animation-delay: -7.4s; transform-origin: -16vw -16vh; box-shadow: -100vmin 0 21vmin currentColor; }
.background_background__3Oeal > span:nth-child(11) { color: #1e3a8a; opacity: .24; top: 52%; left: 78%; animation-duration: 24s; animation-delay: -14s; transform-origin: 8vw 19vh; box-shadow: 100vmin 0 26vmin currentColor; }
.background_background__3Oeal > span:nth-child(12) { color: #2563eb; opacity: .16; top: 12%; left: 10%; animation-duration: 21s; animation-delay: -6s; transform-origin: -10vw 8vh; box-shadow: -100vmin 0 24vmin currentColor; }
.background_background__3Oeal > span:nth-child(13) { color: #0ea5e9; opacity: .13; top: 76%; left: 15%; animation-duration: 28s; animation-delay: -19s; transform-origin: 15vw -10vh; box-shadow: 100vmin 0 28vmin currentColor; }
.background_background__3Oeal > span:nth-child(14) { color: #1d4ed8; opacity: .17; top: 48%; left: 52%; animation-duration: 35s; animation-delay: -12s; transform-origin: -12vw -12vh; box-shadow: -100vmin 0 23vmin currentColor; }
.background_background__3Oeal > span:nth-child(15) { color: #60a5fa; opacity: .11; top: 86%; left: 84%; animation-duration: 22s; animation-delay: -8s; transform-origin: 6vw 16vh; box-shadow: 100vmin 0 19vmin currentColor; }

.tech-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* SVG Stroke-Draw Logo */
@keyframes dpCharDraw {
  0% {
    stroke-dashoffset: 220;
    fill: rgba(255, 255, 255, 0);
    stroke-opacity: 1;
    stroke-width: 1.5px;
  }
  64% {
    stroke-dashoffset: 0;
    fill: rgba(255, 255, 255, 0);
    stroke-opacity: 1;
    stroke-width: 1.5px;
  }
  88% {
    stroke-dashoffset: 0;
    fill: rgba(255, 255, 255, 0.92);
    stroke-opacity: 0.4;
    stroke-width: 0.6px;
  }
  100% {
    stroke-dashoffset: 0;
    fill: rgba(255, 255, 255, 1);
    stroke-opacity: 0;
    stroke-width: 0px;
  }
}

.dp-svg-logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dp-svg-logo-char {
  fill: rgba(255, 255, 255, 0);
  stroke: #ffffff;
  stroke-width: 1.5px;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: dpCharDraw 1.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .background_background__3Oeal > span { animation: none; }
  .dp-svg-logo-char { animation: none; stroke-dashoffset: 0; stroke-width: 0; stroke-opacity: 0; fill: #ffffff; }
}

/* Vitrin Components */
.front-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--dp-navbar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}
.front-nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.front-brand-link { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; min-width: 0; }
.dp-brand-img { height: 34px; width: auto; max-width: 220px; object-fit: contain; }
.dp-brand-svg { height: 34px; width: auto; max-width: 320px; overflow: visible; }
.front-nav-links { display: flex; align-items: center; gap: 28px; }
.front-nav-link { background: none; border: none; color: #cbd5e1; font-size: 14px; font-weight: 500; cursor: pointer; padding: 4px 0; transition: color 0.15s; white-space: nowrap; }
.front-nav-link:hover { color: #ffffff; }
.lang-pill-group { display: inline-flex; padding: 3px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.05); flex-shrink: 0; }
.lang-pill-btn { background: none; border: none; color: #cbd5e1; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.lang-pill-btn:hover { color: #ffffff; }
.lang-pill-btn.active { background: #ffffff; color: #0f172a; }

.front-hero { position: relative; color: #ffffff; padding: 56px 0 76px; border-bottom: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.front-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 7fr 5fr; gap: 44px; align-items: start; }
.domain-h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 14px 0 14px; word-break: break-word; }
.highest-card { margin-top: 24px; border: 1px solid rgba(255,255,255,0.15); background: rgba(2, 6, 23, 0.45); backdrop-filter: blur(12px); border-radius: 14px; padding: 20px; }
.trust-grid { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-icon-box { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #38bdf8; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.mobile-jump-wrap { display: none; margin: 18px 0 8px; }

.offer-card { background: #ffffff; color: #0f172a; border-radius: 16px; padding: 28px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45); border: 1px solid var(--dp-border); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dp-label { display: block; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 4px; }
.dp-input { width: 100%; border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 8px; padding: 9px 12px; font-size: 13.5px; color: #0f172a; outline: none; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.dp-input:focus { border-color: var(--dp-primary); background: #ffffff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.dp-input[readonly] { background: #e2e8f0; color: #0f172a; font-weight: 700; cursor: not-allowed; }
.dp-btn-primary { width: 100%; border: none; background: var(--dp-primary); color: #ffffff; border-radius: 9px; padding: 12px 18px; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 0.15s; }
.dp-btn-primary:hover { opacity: 0.92; }
.dp-btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.portfolio-section { padding: 64px 0; background: #f8fafc; border-bottom: 1px solid var(--dp-border); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: #ffffff; border: 1px solid var(--dp-border); border-radius: 12px; padding: 14px; margin-bottom: 24px; }
.search-input-wrap { position: relative; flex: 1; min-width: 240px; }
.search-input-wrap .search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.search-input-wrap .dp-input { padding-left: 34px; }
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.domain-tile { border: 1px solid var(--dp-border); background: #ffffff; border-radius: 12px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; text-align: left; }
.domain-tile:hover { border-color: var(--dp-primary); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.12); }
.domain-tile-arrow { width: 32px; height: 32px; border-radius: 8px; background: #f1f5f9; color: #64748b; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background-color 0.15s, color 0.15s; }
.domain-tile:hover .domain-tile-arrow { background: var(--dp-primary); color: #ffffff; }

.about-section { padding: 64px 0; background: #ffffff; border-top: 1px solid var(--dp-border); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }

.front-footer { background: var(--dp-navbar-bg); color: #94a3b8; border-top: 1px solid rgba(255,255,255,0.08); padding: 32px 0; font-size: 12.5px; }
.ko-footer { border-top: 1px solid var(--dp-border); background: #ffffff; color: #64748b; padding: 14px 24px; font-size: 12px; }
.ko-footer.dark { border-top-color: rgba(255,255,255,0.1); background: rgba(9, 15, 36, 0.94); color: #94a3b8; }

/* Modal Backdrop */
.dp-modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(2, 6, 23, 0.65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dp-modal-backdrop.hidden { display: none !important; }
.dp-modal-panel { width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; background: #ffffff; color: #0f172a; border-radius: 16px; border: 1px solid var(--dp-border); padding: 24px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); }
.dp-modal-panel.wide { max-width: 780px; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 896px; margin: 0 auto; z-index: 50; background: rgba(2, 6, 23, 0.95); color: #e2e8f0; border: 1px solid #334155; border-radius: 14px; padding: 16px 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); backdrop-filter: blur(10px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }

/* Install Wizard Card */
.install-shell { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; background: #f1f5f9; }
.install-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 36px 16px; }
.install-card { width: 100%; max-width: 840px; border-radius: 16px; border: 1px solid var(--dp-border); background: #ffffff; box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04); overflow: hidden; }
.install-header { background: #090e1a; color: #ffffff; padding: 24px 32px; }
.install-stepper { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--dp-border); background: #f8fafc; }
.install-step { padding: 12px 10px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; border-bottom: 2px solid transparent; color: #94a3b8; min-width: 0; }
.install-step.active { border-bottom-color: #2563eb; color: #1d4ed8; background: #ffffff; }
.install-step.done { border-bottom-color: #10b981; color: #047857; }
.install-body { padding: 32px; }

/* Admin 2K Fluid Layout */
.admin-shell { min-height: 100vh; display: flex; background: #f8fafc; }
.admin-sidebar { width: 256px; flex-shrink: 0; background: #ffffff; border-right: 1px solid var(--dp-border); display: flex; flex-direction: column; }
.admin-sidebar-nav { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 20; min-height: 64px; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--dp-border); padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-theme-toggle { width: 34px; height: 34px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dp-panel-lang-group { display: inline-flex; align-items: center; padding: 3px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); flex-shrink: 0; gap: 2px; }
.dp-panel-lang-btn { background: transparent; border: none; color: #cbd5e1; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; cursor: pointer; line-height: 1.25; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; white-space: nowrap; }
.dp-panel-lang-btn:hover { color: #ffffff; }
.dp-panel-lang-btn.active { background: #ffffff; color: #0f172a; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18); }
.dp-panel-lang-group.light-surface { border: 1px solid #cbd5e1; background: #f1f5f9; }
.dp-panel-lang-group.light-surface .dp-panel-lang-btn { color: #475569; }
.dp-panel-lang-group.light-surface .dp-panel-lang-btn:hover { color: #0f172a; }
.dp-panel-lang-group.light-surface .dp-panel-lang-btn.active { background: #0f172a; color: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15); }
html.dp-admin-dark .admin-theme-toggle .icon-moon { display: none; }
html:not(.dp-admin-dark) .admin-theme-toggle .icon-sun { display: none; }
.admin-content { flex: 1; width: 100%; padding: 24px 28px; }
.admin-nav-btn { width: 100%; border: none; background: transparent; color: #475569; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; transition: background-color 0.15s, color 0.15s; }
.admin-nav-btn:hover { background: #f1f5f9; color: #0f172a; }
.admin-nav-btn.active { background: #0f172a; color: #ffffff; }
.admin-nav-label { display: inline-flex; align-items: center; gap: 10px; }
.admin-sidebar-user-card { width: 100%; text-align: left; border-radius: 10px; border: 1px solid var(--dp-border); background: #f8fafc; padding: 10px 12px; cursor: pointer; transition: background-color 0.15s; }
.admin-sidebar-user-card:hover { background: #f1f5f9; }
.admin-mobile-toggle { display: none; border: 1px solid var(--dp-border); background: #ffffff; color: #334155; border-radius: 8px; padding: 7px; cursor: pointer; align-items: center; justify-content: center; }
.admin-sidebar-close { display: none; border: none; background: transparent; color: #64748b; padding: 4px; cursor: pointer; }
.admin-drawer-backdrop { display: none; }

.admin-user-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; border: 1px solid var(--dp-border); background: #f8fafc; color: #334155; padding: 7px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color 0.15s; white-space: nowrap; }
.admin-user-pill:hover { background: #f1f5f9; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.admin-list-divide > * + * { border-top: 1px solid #f1f5f9; }
.dash-source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 12px; border-top: 1px solid #f1f5f9; font-size: 12px; }
.dash-source-tile { border-radius: 8px; background: #f8fafc; padding: 9px 12px; }
.totp-qr-frame { width: 154px; height: 154px; border: 1px solid var(--dp-border); border-radius: 10px; background: #ffffff; padding: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.totp-qr-frame svg { width: 140px; height: 140px; display: block; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.kpi-card { background: #ffffff; border: 1px solid var(--dp-border); border-radius: 12px; padding: 20px; }
.card { background: #ffffff; border: 1px solid var(--dp-border); border-radius: 12px; }
.admin-grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: stretch; }
.admin-col-7 { grid-column: span 7; }
.admin-col-5 { grid-column: span 5; }
.admin-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.admin-notif-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; align-items: start; }
.notif-priority-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #ffffff; color: #0f172a; cursor: grab; font-size: 12.5px; transition: background-color 0.15s, border-color 0.15s; }
.notif-priority-item:hover { background: #f8fafc; border-color: #94a3b8; }
.notif-priority-idx { font-weight: 800; color: #2563eb; }
.dd-offer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; color: #0f172a; }
.od-log-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 12px; background: #ffffff; color: #0f172a; }
.email-otp-hint.is-ready { color: #047857; }
.email-otp-hint.is-warn { color: #b45309; }
.dp-status-ok { color: #047857; }
.dp-status-muted { color: #64748b; }
.dp-status-warn { color: #b45309; }

/* 7-day bar chart */
.weekly-chart-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; height: 132px; padding-top: 8px; }
.weekly-bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.weekly-bar-track { width: 100%; max-width: 36px; height: 80px; border-radius: 6px 6px 0 0; background: #f1f5f9; display: flex; align-items: flex-end; overflow: hidden; }
.weekly-bar-fill { width: 100%; border-radius: 6px 6px 0 0; background: #2563eb; transition: height 0.25s ease; }

.segmented-bar { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #f1f5f9; padding: 4px; border-radius: 9px; }
.segmented-btn { border: none; background: transparent; color: #475569; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.segmented-btn:hover { color: #0f172a; }
.segmented-btn.active { background: #ffffff; color: #0f172a; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }

.btn-sm { border: 1px solid #cbd5e1; background: #ffffff; color: #334155; border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background-color 0.15s, border-color 0.15s, color 0.15s; white-space: nowrap; }
.btn-sm:hover { background: #f8fafc; border-color: #94a3b8; }
.btn-sm.icon-only { padding: 6px; }
.btn-sm.primary { background: #2563eb; border-color: #2563eb; color: #ffffff; }
.btn-sm.primary:hover { background: #1d4ed8; }
.btn-sm.dark { background: #0f172a; border-color: #0f172a; color: #ffffff; }
.btn-sm.emerald { background: #059669; border-color: #059669; color: #ffffff; }
.btn-sm.danger { color: #e11d48; border-color: #fecdd3; }
.btn-sm.danger:hover { background: #fff1f2; }

table.dp-table { width: 100%; border-collapse: collapse; text-align: left; }
table.dp-table th { padding: 12px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; background: #f8fafc; border-bottom: 1px solid var(--dp-border); }
table.dp-table td { padding: 13px 16px; font-size: 13.5px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.dp-table tr:hover td { background: #f8fafc; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-col-7, .admin-col-5 { grid-column: span 12; }
  .admin-grid-2, .admin-notif-split { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .admin-mobile-toggle { display: inline-flex; }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 55;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 25px 50px -12px rgba(2, 6, 23, 0.35);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-close { display: inline-flex; }
  .admin-drawer-backdrop.open { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(2, 6, 23, 0.5); }
}
@media (max-width: 960px) {
  .front-hero-grid, .about-grid { grid-template-columns: 1fr; }
  .mobile-jump-wrap { display: block; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .front-nav-links { display: none; }
  .install-stepper { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container-front { padding: 0 14px; }
  .front-nav-inner { height: 60px; gap: 8px; }
  .front-brand-link { max-width: 54%; }
  .dp-brand-img { height: 26px; max-width: 150px; }
  .dp-brand-svg { height: 24px; max-width: 100%; }
  .lang-pill-group { padding: 2px; }
  .lang-pill-btn { padding: 4px 6px; font-size: 10px; }
  .offer-card { padding: 20px; }
  .form-grid-2, .trust-grid, .domain-grid, .kpi-grid, .dash-source-grid { grid-template-columns: 1fr; }
  .admin-content, .admin-topbar { padding-left: 14px; padding-right: 14px; }
  .admin-topbar { flex-wrap: wrap; gap: 10px; }
  .admin-topbar-actions { gap: 6px; }
  .dp-panel-lang-group { padding: 2px; }
  .dp-panel-lang-btn { padding: 4px 6px; font-size: 10px; }
  .install-header, .install-body { padding: 20px; }
  .admin-user-pill { display: none !important; }
}

/* ============================================================
   Admin Panel Dark Mode (Strictly Scoped to Admin Panel Only)
   ============================================================ */
html.dp-admin-dark {
  color-scheme: dark;
}
html.dp-admin-dark body.admin-page {
  background: #060b16;
  color: #e2e8f0;
}
html.dp-admin-dark .admin-shell {
  background: #060b16;
  color: #e2e8f0;
}
html.dp-admin-dark .admin-sidebar {
  background: #0f172a;
  border-right-color: #1e293b;
}
html.dp-admin-dark .admin-topbar {
  background: rgba(15, 23, 42, 0.94);
  border-bottom-color: #1e293b;
}
html.dp-admin-dark .admin-mobile-toggle {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
html.dp-admin-dark .admin-sidebar-close {
  color: #94a3b8;
}
html.dp-admin-dark .admin-nav-btn {
  color: #94a3b8;
}
html.dp-admin-dark .admin-nav-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}
html.dp-admin-dark .admin-nav-btn.active {
  background: #2563eb;
  color: #ffffff;
}
html.dp-admin-dark .admin-sidebar-user-card,
html.dp-admin-dark .admin-user-pill {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
html.dp-admin-dark .admin-sidebar-user-card:hover,
html.dp-admin-dark .admin-user-pill:hover {
  background: #283548;
}
html.dp-admin-dark .kpi-card,
html.dp-admin-dark .card,
html.dp-admin-dark .dp-modal-panel {
  background: #0f172a;
  border-color: #1e293b;
  color: #e2e8f0;
}
html.dp-admin-dark .admin-card-head,
html.dp-admin-dark .dash-source-grid,
html.dp-admin-dark .admin-list-divide > * + * {
  border-color: #1e293b;
}
html.dp-admin-dark .dash-source-tile,
html.dp-admin-dark .weekly-bar-track,
html.dp-admin-dark .segmented-bar {
  background: #1e293b;
}
html.dp-admin-dark .segmented-btn {
  color: #94a3b8;
}
html.dp-admin-dark .segmented-btn:hover {
  color: #f8fafc;
}
html.dp-admin-dark .segmented-btn.active {
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
html.dp-admin-dark .dp-label {
  color: #cbd5e1;
}
html.dp-admin-dark .dp-input {
  background: #0b1220;
  border-color: #334155;
  color: #f1f5f9;
}
html.dp-admin-dark .dp-input::placeholder {
  color: #64748b;
}
html.dp-admin-dark .dp-input:focus {
  background: #0f172a;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}
html.dp-admin-dark .dp-input[readonly] {
  background: #1e293b;
  color: #cbd5e1;
}
html.dp-admin-dark .btn-sm {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
html.dp-admin-dark .btn-sm:hover {
  background: #283548;
  border-color: #475569;
}
html.dp-admin-dark .btn-sm.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
html.dp-admin-dark .btn-sm.primary:hover {
  background: #1d4ed8;
}
html.dp-admin-dark .btn-sm.dark {
  background: #334155;
  border-color: #475569;
  color: #ffffff;
}
html.dp-admin-dark .btn-sm.dark:hover {
  background: #475569;
}
html.dp-admin-dark .btn-sm.emerald {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}
html.dp-admin-dark .btn-sm.danger {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(190, 18, 60, 0.14);
}
html.dp-admin-dark .btn-sm.danger:hover {
  background: rgba(190, 18, 60, 0.25);
}
html.dp-admin-dark .admin-theme-toggle {
  color: #fbbf24;
  border-color: #334155;
  background: #1e293b;
}
html.dp-admin-dark .dp-panel-lang-group.light-surface {
  background: #1e293b;
  border-color: #334155;
}
html.dp-admin-dark .dp-panel-lang-group.light-surface .dp-panel-lang-btn {
  color: #94a3b8;
}
html.dp-admin-dark .dp-panel-lang-group.light-surface .dp-panel-lang-btn:hover {
  color: #f8fafc;
}
html.dp-admin-dark .dp-panel-lang-group.light-surface .dp-panel-lang-btn.active {
  background: #2563eb;
  color: #ffffff;
}
html.dp-admin-dark table.dp-table th {
  background: #131c31;
  color: #94a3b8;
  border-bottom-color: #1e293b;
}
html.dp-admin-dark table.dp-table td {
  border-bottom-color: #1e293b;
  color: #e2e8f0;
}
html.dp-admin-dark table.dp-table tr:hover td {
  background: rgba(30, 41, 59, 0.55);
}
html.dp-admin-dark .notif-config-card {
  background: #162033 !important;
  border-color: #1e293b;
}
html.dp-admin-dark .notif-priority-item {
  background: #162033;
  border-color: #334155;
  color: #f1f5f9;
}
html.dp-admin-dark .notif-priority-item:hover {
  background: #1e293b;
  border-color: #475569;
}
html.dp-admin-dark .notif-priority-idx {
  color: #60a5fa;
}
html.dp-admin-dark .dd-offer-row,
html.dp-admin-dark .od-log-row {
  background: #162033;
  border-color: #334155;
  color: #e2e8f0;
}
html.dp-admin-dark .email-otp-hint.is-ready,
html.dp-admin-dark .dp-status-ok {
  color: #34d399;
}
html.dp-admin-dark .email-otp-hint.is-warn,
html.dp-admin-dark .dp-status-warn {
  color: #fbbf24;
}
html.dp-admin-dark .dp-status-muted {
  color: #94a3b8;
}
html.dp-admin-dark #totpSecretLabel {
  background: #0b1220 !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html.dp-admin-dark .totp-qr-frame {
  background: #ffffff;
  border-color: #334155;
}
html.dp-admin-dark .admin-shell [style*="color:#0f172a"],
html.dp-admin-dark .dp-modal-panel [style*="color:#0f172a"] {
  color: #f8fafc !important;
}
html.dp-admin-dark .admin-shell [style*="color:#1e293b"],
html.dp-admin-dark .dp-modal-panel [style*="color:#1e293b"] {
  color: #e2e8f0 !important;
}
html.dp-admin-dark .admin-shell [style*="color:#334155"],
html.dp-admin-dark .dp-modal-panel [style*="color:#334155"] {
  color: #cbd5e1 !important;
}
html.dp-admin-dark .admin-shell [style*="color:#475569"],
html.dp-admin-dark .dp-modal-panel [style*="color:#475569"],
html.dp-admin-dark .admin-shell [style*="color:#64748b"],
html.dp-admin-dark .dp-modal-panel [style*="color:#64748b"] {
  color: #94a3b8 !important;
}
html.dp-admin-dark .admin-shell [style*="color:#78350f"] {
  color: #fde68a !important;
}
html.dp-admin-dark .admin-shell [style*="color:#92400e"],
html.dp-admin-dark .dp-modal-panel [style*="color:#92400e"] {
  color: #fcd34d !important;
}
html.dp-admin-dark .admin-shell [style*="color:#b45309"]:not(.btn-sm),
html.dp-admin-dark .dp-modal-panel [style*="color:#b45309"]:not(.btn-sm) {
  color: #fbbf24 !important;
}
html.dp-admin-dark .admin-shell [style*="color:#1d4ed8"]:not(.btn-sm),
html.dp-admin-dark .dp-modal-panel [style*="color:#1d4ed8"]:not(.btn-sm) {
  color: #60a5fa !important;
}
html.dp-admin-dark .admin-shell [style*="color:#047857"]:not(.btn-sm),
html.dp-admin-dark .dp-modal-panel [style*="color:#047857"]:not(.btn-sm) {
  color: #34d399 !important;
}
html.dp-admin-dark .admin-shell [style*="color:#be123c"]:not(.btn-sm),
html.dp-admin-dark .dp-modal-panel [style*="color:#be123c"]:not(.btn-sm) {
  color: #fb7185 !important;
}
html.dp-admin-dark .admin-shell [style*="color:#9f1239"] {
  color: #fecdd3 !important;
}
html.dp-admin-dark .admin-shell [style*="color:#cbd5e1"] {
  color: #475569 !important;
}
html.dp-admin-dark .admin-shell [style*="background:#f8fafc"]:not(.btn-sm),
html.dp-admin-dark .admin-shell [style*="background: rgb(248, 250, 252)"]:not(.btn-sm),
html.dp-admin-dark .dp-modal-panel [style*="background:#f8fafc"]:not(.btn-sm),
html.dp-admin-dark .dp-modal-panel [style*="background: rgb(248, 250, 252)"]:not(.btn-sm) {
  background: #162033 !important;
}
html.dp-admin-dark .admin-shell [style*="background:#f8fafc"].btn-sm,
html.dp-admin-dark .dp-modal-panel [style*="background:#f8fafc"].btn-sm {
  background: #1e293b !important;
}
html.dp-admin-dark .admin-shell [style*="background:#ffffff"]:not(.totp-qr-frame):not(.btn-sm):not(#adminLogoPreviewBar),
html.dp-admin-dark .admin-shell [style*="background: rgb(255, 255, 255)"]:not(.totp-qr-frame):not(.btn-sm):not(#adminLogoPreviewBar),
html.dp-admin-dark .dp-modal-panel [style*="background:#ffffff"]:not(.totp-qr-frame):not(.btn-sm),
html.dp-admin-dark .dp-modal-panel [style*="background: rgb(255, 255, 255)"]:not(.totp-qr-frame):not(.btn-sm) {
  background: #0f172a !important;
}
html.dp-admin-dark .admin-shell [style*="background:#fffbeb"] {
  background: rgba(180, 83, 9, 0.18) !important;
}
html.dp-admin-dark .admin-shell [style*="background:#fff1f2"] {
  background: rgba(190, 18, 60, 0.18) !important;
}
html.dp-admin-dark .admin-shell [style*="background:#cbd5e1"] {
  background: #334155 !important;
}
html.dp-admin-dark .admin-shell [style*="border:1px solid #e2e8f0"],
html.dp-admin-dark .admin-shell [style*="border-bottom:1px solid #e2e8f0"],
html.dp-admin-dark .admin-shell [style*="border-top:1px solid #e2e8f0"],
html.dp-admin-dark .admin-shell [style*="border:1px solid #cbd5e1"],
html.dp-admin-dark .admin-shell [style*="border-top:1px solid #f1f5f9"],
html.dp-admin-dark .admin-shell [style*="border-bottom:1px solid #f1f5f9"],
html.dp-admin-dark .dp-modal-panel [style*="border:1px solid #e2e8f0"],
html.dp-admin-dark .dp-modal-panel [style*="border-bottom:1px solid #e2e8f0"],
html.dp-admin-dark .dp-modal-panel [style*="border-top:1px solid #e2e8f0"],
html.dp-admin-dark .dp-modal-panel [style*="border:1px solid #cbd5e1"] {
  border-color: #1e293b !important;
}
html.dp-admin-dark .admin-shell [style*="border:1px solid #fde68a"] {
  border-color: rgba(245, 158, 11, 0.35) !important;
}
html.dp-admin-dark .admin-shell [style*="border:1px solid #fecdd3"] {
  border-color: rgba(244, 63, 94, 0.35) !important;
}

/* Built-in Security Shield Widget (Interactive Toggle + Dot-Matrix Code Card) */
.dp-shield-root {
  position: relative;
  width: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.dp-shield-hidden {
  display: none !important;
}
.dp-shield-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #181a20;
  border: 1px solid #2e3340;
  color: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dp-shield-bar.is-open {
  border-color: #3b82f6;
}
.dp-shield-bar.is-verified {
  border-color: #16a34a;
  background: #141c18;
}
.dp-shield-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  flex: 1;
}
.dp-shield-bar.is-verified .dp-shield-toggle-wrap {
  cursor: default;
}
.dp-shield-switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #4b5563;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.dp-shield-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.dp-shield-bar.is-verified .dp-shield-switch {
  background: #16a34a;
}
.dp-shield-bar.is-verified .dp-shield-thumb {
  transform: translateX(18px);
}
.dp-shield-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}
.dp-shield-bar.is-verified .dp-shield-label {
  color: #dcfce7;
}
.dp-shield-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.dp-shield-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.dp-shield-popover {
  position: relative;
  margin-top: 8px;
  padding: 14px;
  border-radius: 10px;
  background: #16181e;
  border: 1px solid #323746;
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 10px;
  color: #f1f5f9;
}
.dp-shield-caret {
  position: absolute;
  top: -6px;
  left: 26px;
  width: 10px;
  height: 10px;
  background: #16181e;
  border-left: 1px solid #323746;
  border-top: 1px solid #323746;
  transform: rotate(45deg);
}
.dp-shield-instruction {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #e2e8f0;
}
.dp-shield-img-wrap {
  width: 100%;
  min-height: 68px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
}
.dp-shield-img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 66px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.dp-shield-img-loader {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.dp-shield-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.dp-shield-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid #3f4656;
  background: #1e212a;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  outline: none;
  transition: border-color 0.15s ease;
}
.dp-shield-input::placeholder {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: normal;
  font-weight: 500;
  color: #94a3b8;
}
.dp-shield-input:focus {
  border-color: #3b82f6;
}
.dp-shield-sq-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid #3f4656;
  background: #1e212a;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dp-shield-sq-btn:hover {
  background: #282d39;
  border-color: #64748b;
  color: #ffffff;
}
.dp-shield-error {
  font-size: 12px;
  font-weight: 600;
  color: #fda4af;
  background: rgba(190, 18, 60, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 7px;
  padding: 7px 10px;
}
.dp-shield-verify-btn {
  width: 100%;
  height: 38px;
  border-radius: 7px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.dp-shield-verify-btn:hover:not(:disabled) {
  background: #1d4ed8;
}
.dp-shield-verify-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.dp-shield-cancel-btn {
  width: 100%;
  height: 36px;
  border-radius: 7px;
  border: 1px solid #3f4656;
  background: transparent;
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dp-shield-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #64748b;
}


