/* ===========================================================================
   Intakt Dealer Portal — global styles (ported from the React prototype).
   Accent is driven by CSS variables. Change these two lines to re-theme
   the entire app (e.g. Teal: #37C7C7 / #1E8A8A, Amber: #FFC24B / #F59E0B).
   =========================================================================== */
:root {
  /* ---- Theme accent (swap these 3 lines to re-theme the whole app) ----
     Teal   : #37c7c7 / #1e8a8a / 55, 199, 199   (active)
     Lime   : #c2f73e / #9be000 / 194, 247, 62
     Amber  : #ffc24b / #f59e0b / 255, 194, 75                              */
  --accent: #37c7c7;        /* teal */
  --accent-strong: #1e8a8a;
  --accent-rgb: 55, 199, 199;
  --brand-teal: #2fbdbd;
  --danger: #e9634b;
  --bg: #0b0d0c;
  --panel: #101310;
  --panel-2: #0c0f0d;
  --input-bg: #0e110f;
  --text: #eef2ea;
  --text-dim: #9aa39a;
  --text-mute: #7c847c;
  --hairline: rgba(255, 255, 255, .07);
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;      /* mobile: exclude the browser URL bar (iOS Safari) */
}

/* Raster media never forces horizontal overflow. */
img, video, canvas { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { color: var(--accent-strong); }
::selection { background: rgba(var(--accent-rgb), .28); }
input::placeholder, textarea::placeholder { color: #5a625a; }
button { font-family: inherit; }
select { -webkit-appearance: none; appearance: none; }

h1, h2, h3 { font-family: 'Archivo', sans-serif; }

/* --- Wordmark -------------------------------------------------------------- */
.ik-wordmark { font-family: 'Archivo', sans-serif; font-weight: 900; letter-spacing: .05em; }
.ik-wordmark .k { color: var(--brand-teal); }

/* --- Form controls -------------------------------------------------------- */
.ik-label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: #aeb6ac; margin-bottom: 8px;
}
.ik-input {
  width: 100%; box-sizing: border-box; background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, .10); color: var(--text);
  padding: 13px 15px; border-radius: 12px; font-size: 14.5px;
  font-family: inherit; outline: none;
}
.ik-input::placeholder { color: #5a625a; }
.ik-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15);
}
.ik-input.is-error { border-color: rgba(233, 99, 75, .6); }
.ik-field-error { font-size: 12px; color: var(--danger); margin-top: 6px; }

/* Browser autofill: Safari/Chrome force a pale-yellow bg + dark text on
   autofilled inputs. Repaint them to match the dark theme. The huge inset
   box-shadow fakes the background (autofill bg itself can't be set), and the
   long transition defers the yellow flash. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset;
  box-shadow: 0 0 0 1000px var(--input-bg) inset;
  caret-color: var(--text);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  transition: background-color 600000s 0s, color 600000s 0s;
}
input:-webkit-autofill:focus {
  border-color: var(--accent);
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset, 0 0 0 3px rgba(var(--accent-rgb), .15);
  box-shadow: 0 0 0 1000px var(--input-bg) inset, 0 0 0 3px rgba(var(--accent-rgb), .15);
}

.ik-select {
  width: 100%; background: var(--input-bg); border: 1px solid rgba(255, 255, 255, .10);
  color: var(--text); padding: 13px 40px 13px 15px; border-radius: 12px; font-size: 14.5px;
  font-family: inherit; outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237C847C' stroke-width='2'><path d='M2 4l4 4 4-4'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}

/* --- Buttons -------------------------------------------------------------- */
.ik-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; border: none; font-family: inherit; text-decoration: none;
}
.ik-btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0a0c09; font-family: 'Archivo', sans-serif; font-weight: 800;
  border-radius: 12px; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .2);
  padding: 13px 22px; font-size: 14px;
}
.ik-btn-accent:hover { filter: brightness(1.06); color: #0a0c09; }
.ik-btn-ghost {
  border: 1px solid rgba(255, 255, 255, .12); background: transparent;
  color: #c6cdc4; font-size: 14px; font-weight: 600; padding: 13px 20px;
  border-radius: 12px;
}
.ik-btn-ghost:hover { border-color: rgba(255, 255, 255, .3); color: #c6cdc4; }

/* --- Cards / sections ----------------------------------------------------- */
.ik-card { background: var(--panel); border: 1px solid var(--hairline); border-radius: 20px; }

/* Modal (product catalog add/edit/delete) */
.ik-modal-backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(4, 6, 5, .66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.ik-modal { width: 100%; background: #141814; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); padding: 26px 28px; }
.ik-section-label {
  font-size: 11.5px; letter-spacing: .16em; color: var(--accent);
  font-weight: 700; margin-bottom: 20px;
}

/* --- Alerts (session flash / validation summary) -------------------------- */
.ik-alert { border-radius: 12px; padding: 12px 15px; font-size: 13.5px; margin-bottom: 18px; }
.ik-alert-error { background: rgba(233, 99, 75, .12); border: 1px solid rgba(233, 99, 75, .35); color: #f0836e; }
.ik-alert-ok { background: rgba(var(--accent-rgb), .10); border: 1px solid rgba(var(--accent-rgb), .3); color: var(--accent); }

/* --- App shell: sidebar + main ------------------------------------------- */
.ik-shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.ik-sidebar {
  width: 264px; flex-shrink: 0; background: #0a0c09;
  border-right: 1px solid rgba(255, 255, 255, .06);
  display: flex; flex-direction: column; position: sticky; top: 0;
  height: 100vh; height: 100dvh;
}
.ik-sidebar-head { padding: 26px 24px 22px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ik-sidebar-kicker { font-size: 9.5px; letter-spacing: .24em; color: #6e766e; font-weight: 600; line-height: 1.3; padding-left: 11px; border-left: 1px solid rgba(255, 255, 255, .14); }
.ik-nav { padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ik-nav-label { font-size: 10.5px; letter-spacing: .16em; color: #5c645c; font-weight: 700; padding: 10px 12px 8px; }
.ik-nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; border: none; cursor: pointer; font-family: inherit; font-size: 14px;
  font-weight: 500; padding: 12px 14px; border-radius: 11px; background: transparent;
  color: #aeb6ac; text-decoration: none;
}
.ik-nav-item:hover { background: rgba(255, 255, 255, .04); color: #aeb6ac; }
.ik-nav-item.active { font-weight: 700; background: rgba(var(--accent-rgb), .09); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ik-nav-item.disabled { color: #5c645c; cursor: default; }
.ik-nav-item.disabled:hover { background: transparent; }
.ik-nav-soon { margin-left: auto; font-size: 9.5px; letter-spacing: .08em; font-weight: 700; color: #7c847c; border: 1px solid rgba(255, 255, 255, .12); padding: 2px 7px; border-radius: 999px; }
.ik-nav-badge { margin-left: auto; background: #f5b841; color: #0a0c09; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.ik-sidebar-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .06); }
.ik-dealer-card { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); margin-bottom: 10px; }
.ik-dealer-avatar { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #0a0c09; display: flex; align-items: center; justify-content: center; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14px; }
.ik-logout {
  width: 100%; display: flex; align-items: center; gap: 10px; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .08); color: #c96a58;
  cursor: pointer; padding: 11px 14px; border-radius: 11px; font-family: inherit;
  font-size: 13.5px; font-weight: 600;
}
.ik-logout:hover { background: rgba(185, 67, 47, .09); border-color: rgba(185, 67, 47, .3); }
.ik-main { flex: 1; min-width: 0; max-height: 100vh; max-height: 100dvh; overflow-y: auto; background: radial-gradient(90% 60% at 100% 0%, #101310 0%, #0b0d0c 60%); }
.ik-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 34px; border-bottom: 1px solid var(--hairline); position: sticky; top: 0; background: rgba(11, 13, 12, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 5; }
.ik-topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }

/* Hamburger — only shown on mobile (see drawer breakpoint below) */
.ik-hamburger { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid rgba(255,255,255,.12); background: transparent; color: var(--text); border-radius: 10px; cursor: pointer; }
.ik-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* --- Mobile drawer: sidebar slides in over content ----------------------- */
@media (max-width: 860px) {
  .ik-sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh; z-index: 50;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 60px rgba(0,0,0,.5);
  }
  .ik-sidebar.ik-open { transform: translateX(0); }
  .ik-hamburger { display: inline-flex; }
}

/* --- Scrollbars ----------------------------------------------------------- */
.ik-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.ik-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .1); border-radius: 8px;
  border: 3px solid transparent; background-clip: content-box;
}

/* --- Auth split-panel layout --------------------------------------------- */
.ik-auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; position: relative; overflow: hidden; }
.ik-auth-brand {
  position: relative; padding: 56px 60px; display: flex; flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(120% 90% at 15% 0%, #12160f 0%, #0a0c09 55%, #060706 100%);
  overflow: hidden;
}
.ik-auth-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(80% 80% at 30% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 80% at 30% 30%, #000 30%, transparent 100%);
}
.ik-auth-glow {
  position: absolute; width: 520px; height: 520px; right: -160px; top: -120px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .18), transparent 66%); filter: blur(10px);
}
.ik-auth-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 999px; font-size: 11.5px;
  letter-spacing: .12em; color: var(--accent); font-weight: 600; margin-bottom: 26px;
}
.ik-auth-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ik-auth-title { font-weight: 800; font-size: 46px; line-height: 1.03; letter-spacing: -.02em; margin: 0 0 18px; }
.ik-auth-sub { font-size: 15.5px; line-height: 1.6; color: var(--text-dim); margin: 0; }
.ik-auth-stats { display: flex; gap: 34px; margin-top: 40px; }
.ik-auth-stat .n { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 28px; color: var(--text); }
.ik-auth-stat .n.accent { color: var(--accent); }
.ik-auth-stat .l { font-size: 12px; color: var(--text-mute); letter-spacing: .04em; }
.ik-auth-foot { position: relative; font-size: 12px; color: #5c645c; }

.ik-auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--panel-2); }
.ik-auth-form { width: 100%; max-width: 380px; animation: ikFade .5s ease both; }
/* Brand mark shown inside the form only when the left brand panel is hidden (mobile). */
.ik-auth-form-brand { display: none; align-items: center; gap: 11px; margin-bottom: 26px; }
.ik-auth-h2 { font-weight: 800; font-size: 27px; margin: 0 0 6px; }
.ik-auth-lead { font-size: 14px; color: #8a928a; margin: 0 0 30px; }
.ik-auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; font-size: 13px; }
.ik-check { display: flex; align-items: center; gap: 8px; color: var(--text-dim); cursor: pointer; }
.ik-check input { accent-color: var(--accent); width: 15px; height: 15px; }
.ik-auth-divider { height: 16px; width: 1px; background: rgba(255, 255, 255, .2); }
.ik-auth-kicker { font-size: 11px; letter-spacing: .28em; color: #8a928a; font-weight: 600; }

@keyframes ikFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ikToast { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive: collapse brand panel on small screens */
@media (max-width: 860px) {
  .ik-auth { grid-template-columns: 1fr; }
  .ik-auth-brand { display: none; }
  .ik-auth-form-wrap { display: block; padding: 28px 18px; }
  .ik-auth-form { max-width: 100%; width: 100%; }
  .ik-auth-title { font-size: 34px; }
  .ik-auth-form-brand { display: flex; }
}

/* ===========================================================================
   Responsive layout utilities — used in place of inline grid styles so that
   breakpoints can actually reflow the content on tablet / mobile.
   =========================================================================== */
.ik-container { max-width: 1080px; margin: 0 auto; width: 100%; }
.ik-page { padding: 30px 34px 70px; }

.ik-grid { display: grid; gap: 20px; }
.ik-grid-2 { grid-template-columns: 1fr 1fr; }
.ik-stats-4 { grid-template-columns: repeat(4, 1fr); }
.ik-account { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.ik-span-2 { grid-column: span 2; }

/* --- Custom dropdown (replaces native <select>) --------------------------- */
.ik-dd { position: relative; width: 100%; }
.ik-dd.compact { width: auto; display: inline-block; }
.ik-dd-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--input-bg); border: 1px solid rgba(255, 255, 255, .10); color: var(--text);
  padding: 13px 15px; border-radius: 12px; font-size: 14.5px; font-family: inherit;
  cursor: pointer; text-align: left; outline: none;
}
.ik-dd.compact .ik-dd-trigger { padding: 8px 11px; font-size: 13px; border-radius: 9px; background: var(--panel-2); gap: 8px; }
.ik-dd-trigger.is-open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.ik-dd-trigger.is-error { border-color: rgba(233, 99, 75, .6); }
.ik-dd-trigger .ph { color: #5a625a; }
.ik-dd-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ik-dd-chev { flex-shrink: 0; transition: transform .18s ease; }
.ik-dd-trigger.is-open .ik-dd-chev { transform: rotate(180deg); }
.ik-dd-panel {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 8px);
  background: #141814; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .55); padding: 6px; max-height: 264px; overflow-y: auto;
  animation: ikFade .16s ease both;
}
.ik-dd.compact .ik-dd-panel { left: auto; right: 0; min-width: 130px; }
.ik-dd.up .ik-dd-panel { top: auto; bottom: calc(100% + 8px); }
.ik-dd-option {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: transparent; border: none; cursor: pointer; font-family: inherit; font-size: 14px;
  text-align: left; padding: 11px 12px; border-radius: 9px; min-height: 42px; color: #c6cdc4; font-weight: 500;
}
.ik-dd-option:hover { background: rgba(var(--accent-rgb), .10); }
.ik-dd-option.is-sel { color: var(--accent); font-weight: 700; }
.ik-dd-search { position: sticky; top: 0; padding: 2px 2px 6px; background: #141814; z-index: 1; }
.ik-dd-search input { width: 100%; background: var(--panel-2); border: 1px solid rgba(255, 255, 255, .1); color: var(--text); padding: 9px 12px; border-radius: 9px; font-size: 13.5px; font-family: inherit; outline: none; }
.ik-dd-search input:focus { border-color: var(--accent); }

/* --- Uploaded-image remove button ----------------------------------------- */
.ik-img-x {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(10, 12, 9, .78); color: #dfe6e4; border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: inherit; outline: none; padding: 0; transition: background .15s, color .15s, border-color .15s;
}
.ik-img-x:hover { background: rgba(233, 99, 75, .92); color: #fff; border-color: transparent; }
.ik-img-x:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }

.ik-check { display: flex; gap: 13px; align-items: center; cursor: pointer;
  background: var(--input-bg); border: 1px solid rgba(255, 255, 255, .10); border-radius: 12px;
  padding: 15px 16px; transition: border-color .15s, background .15s; }
.ik-check:hover { border-color: rgba(var(--accent-rgb), .4); }
.ik-check-input { position: absolute; opacity: 0; width: 0; height: 0; }
.ik-check-box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, .22); background: var(--panel-2);
  display: grid; place-items: center; transition: background .15s, border-color .15s; }
.ik-check-box svg { opacity: 0; transform: scale(.6); transition: opacity .13s, transform .13s; color: #06201f; }
.ik-check-input:checked + .ik-check-box { background: var(--accent); border-color: var(--accent); }
.ik-check-input:checked + .ik-check-box svg { opacity: 1; transform: scale(1); }
.ik-check-input:focus-visible + .ik-check-box { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .28); }
.ik-check:has(.ik-check-input:checked) { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .06); }
.ik-check-title { font-size: 14px; font-weight: 600; color: var(--text); }
.ik-check-sub { display: block; font-size: 12.5px; color: var(--text-mute); margin-top: 3px; line-height: 1.45; }

/* --- Date picker (replaces native <input type=date>) ---------------------- */
.ik-dp { position: relative; width: 100%; }
.ik-dp-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--input-bg); border: 1px solid rgba(255, 255, 255, .10); color: var(--text);
  padding: 13px 15px; border-radius: 12px; font-size: 14.5px; font-family: inherit;
  cursor: pointer; text-align: left; outline: none;
}
.ik-dp-trigger.is-open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.ik-dp-trigger.is-error { border-color: rgba(233, 99, 75, .6); }
.ik-dp-trigger:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }
.ik-dp-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ik-dp-val.ph { color: #5a625a; }
.ik-dp-cal { flex-shrink: 0; color: #7c847c; transition: color .18s ease; }
.ik-dp-trigger.is-open .ik-dp-cal { color: var(--accent); }

.ik-dp-panel {
  position: absolute; z-index: 60; left: 0; top: calc(100% + 10px); width: 332px; max-width: 100%;
  background: #161c1a; border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .6); padding: 18px 18px 8px;
  animation: ikFade .16s ease both;
}
.ik-dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.ik-dp-title { font-size: 16.5px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.ik-dp-nav {
  width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center;
  background: transparent; border: none; border-radius: 50%;
  color: #9aa39c; cursor: pointer; font-family: inherit; outline: none; transition: background .15s, color .15s;
}
.ik-dp-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .07); color: var(--text); }
.ik-dp-nav:focus-visible { box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .5); }
.ik-dp-nav:disabled { opacity: .25; cursor: not-allowed; }

.ik-dp-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.ik-dp-dow span {
  text-align: center; font-size: 12px; font-weight: 600; color: #8b938c; padding: 6px 0;
}
.ik-dp-dow span.wk { color: #c79a58; }              /* weekend columns, echoing the reference */

.ik-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ik-dp-day {
  height: 40px; display: grid; place-items: center; border: 1.5px solid transparent; border-radius: 11px;
  background: transparent; color: #dfe6e4; font-family: inherit; font-size: 14px; font-weight: 500;
  font-variant-numeric: tabular-nums; cursor: pointer; outline: none;
  transition: background .13s, color .13s, border-color .13s;
}
.ik-dp-day.wk { background: rgba(199, 154, 88, .09); color: #d6b585; }
.ik-dp-day:hover:not(:disabled) { background: rgba(var(--accent-rgb), .16); color: var(--accent); }
.ik-dp-day:focus-visible { border-color: var(--accent); }
.ik-dp-day.is-out { visibility: hidden; }
.ik-dp-day:disabled { color: #4a524b; background: transparent; cursor: not-allowed; }
.ik-dp-day.is-today { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.ik-dp-day.is-sel {
  background: var(--accent); color: #06201f; font-weight: 800; border-color: transparent;
}
.ik-dp-day.is-sel:hover { background: var(--accent); color: #06201f; }

.ik-dp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 12px -18px 0; padding: 12px 18px 10px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.ik-dp-quick {
  background: none; border: none; padding: 6px 4px; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--accent); outline: none;
}
.ik-dp-quick.ghost { color: #8b938c; font-weight: 600; }
.ik-dp-quick:hover:not(:disabled) { text-decoration: underline; }
.ik-dp-quick:focus-visible { box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .5); }
.ik-dp-quick:disabled { opacity: .35; cursor: not-allowed; text-decoration: none; }
@media (max-width: 420px) { .ik-dp-panel { width: 100%; } }

/* --- Register (two-pane redesign) ----------------------------------------- */
.ik-reg { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 400px 1fr; background: #0a0c0b; }
.ik-reg-rail { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 40px; background: radial-gradient(120% 70% at 10% 0%, #121714 0%, #0a0c0b 60%); border-right: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.ik-reg-glow { position: absolute; width: 360px; height: 360px; left: -140px; top: -80px; background: radial-gradient(circle, rgba(var(--accent-rgb), .16), transparent 66%); filter: blur(10px); pointer-events: none; }
.ik-reg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--accent-rgb), .05) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--accent-rgb), .05) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(80% 60% at 20% 10%, #000, transparent); mask-image: radial-gradient(80% 60% at 20% 10%, #000, transparent); pointer-events: none; }
.ik-reg-main { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; background: radial-gradient(100% 55% at 100% 0%, #0e1210, #0a0c0b 60%); }
.ik-reg-progress { flex-shrink: 0; height: 3px; background: #181c1a; }
.ik-reg-progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); transition: width .35s ease; }
.ik-reg-scroll { flex: 1; overflow-y: auto; padding: 46px 52px; }
.ik-reg-body { max-width: 660px; margin: 0 auto; }
.ik-reg-footer { flex-shrink: 0; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(11, 14, 12, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 16px 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ik-reg-mobilehead { display: none; }

/* Vertical stepper (left rail) */
.ik-vstep { display: flex; gap: 15px; }
.ik-vstep-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.ik-vstep-badge { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14px; background: transparent; color: #8a928a; border: 1px solid rgba(255, 255, 255, .14); transition: all .2s; }
.ik-vstep.is-current .ik-vstep-badge, .ik-vstep.is-done .ik-vstep-badge { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #04140f; border: none; }
.ik-vstep.is-current .ik-vstep-badge { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .16); }
.ik-vstep-line { width: 2px; flex: 1; min-height: 22px; margin: 5px 0; background: rgba(255, 255, 255, .10); transition: background .2s; }
.ik-vstep.is-done .ik-vstep-line { background: var(--accent); }
.ik-vstep-n { font-size: 10px; letter-spacing: .14em; color: #6e766e; font-weight: 700; }
.ik-vstep-label { font-size: 14.5px; font-weight: 700; color: #8a928a; margin-top: 3px; }
.ik-vstep.is-current .ik-vstep-label, .ik-vstep.is-done .ik-vstep-label { color: var(--text); }
.ik-vstep-desc { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.ik-trust { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-dim); }

@media (max-width: 900px) {
  .ik-reg { grid-template-columns: 1fr; }
  .ik-reg-rail { display: none; }
  .ik-reg-scroll { padding: 22px 18px 40px; }
  .ik-reg-footer { padding: 14px 18px; gap: 10px; }
  .ik-reg-mobilehead { display: block; padding: 22px 18px 4px; }
}
@media (max-width: 560px) {
  .ik-reg-footer { flex-wrap: wrap; }
}

/* --- Segmented tabs -------------------------------------------------------- */
.ik-segment { display: inline-flex; gap: 6px; background: var(--panel-2); padding: 5px; border-radius: 12px; border: 1px solid var(--hairline); max-width: 100%; flex-wrap: wrap; }
.ik-segment button { border: none; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 18px; border-radius: 9px; background: transparent; color: var(--text-dim); white-space: nowrap; }
.ik-segment button:hover { color: var(--text); }
.ik-segment button.active { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #0a0c09; }

/* --- Password requirement pills ------------------------------------------- */
.ik-pw-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; color: var(--text-mute); border: 1px solid rgba(255, 255, 255, .12); background: transparent; transition: all .2s; }
.ik-pw-pill.is-on { color: var(--accent); background: rgba(var(--accent-rgb), .13); border-color: rgba(var(--accent-rgb), .32); }

/* --- Wizard stepper -------------------------------------------------------- */
.ik-stepper { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--hairline); border-radius: 16px; padding: 8px; margin-bottom: 24px; }
.ik-step { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: transparent; }
.ik-step.is-current { background: rgba(var(--accent-rgb), .07); }
.ik-step-badge { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14px; color: var(--text-mute); border: 1px solid rgba(255, 255, 255, .15); background: transparent; }
.ik-step.is-current .ik-step-badge, .ik-step.is-done .ik-step-badge { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #0a0c09; border: none; }
.ik-step-n { font-size: 10.5px; letter-spacing: .1em; color: var(--text-mute); font-weight: 600; }
.ik-step-label { font-size: 14px; font-weight: 700; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ik-step.is-current .ik-step-label, .ik-step.is-done .ik-step-label { color: var(--text); }
@media (max-width: 560px) {
  .ik-step { padding: 10px; gap: 9px; }
  .ik-step-text { display: none; }        /* keep just the numbered badges on small phones */
  .ik-step.is-current .ik-step-text { display: block; }
}

/* Rows that must stack their actions when cramped (e.g. admin dealer list). */
.ik-row { display: flex; align-items: center; gap: 16px; }
.ik-row-main { flex: 1; min-width: 0; }
.ik-row-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Tablet */
@media (max-width: 900px) {
  .ik-stats-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  .ik-page { padding: 20px 16px 56px; }
  .ik-grid { gap: 16px; }
  .ik-grid-2 { grid-template-columns: 1fr; }
  .ik-stats-4 { grid-template-columns: 1fr; }
  .ik-account { grid-template-columns: 1fr; }
  .ik-account-profile { position: static !important; top: auto !important; }
  .ik-span-2 { grid-column: span 1; }
  .ik-row { flex-wrap: wrap; }
  .ik-row-actions { width: 100%; }
  .ik-topbar { padding: 14px 16px; }
}

/* Print — strip the portal chrome, show only the certificate document */
@media print {
  .ik-sidebar, .ik-topbar, .ik-hamburger, .ik-noprint, .ik-backdrop { display: none !important; }
  .ik-shell, .ik-main { display: block !important; overflow: visible !important; max-height: none !important; height: auto !important; }
  .ik-page { padding: 0 !important; }
  .ik-print-area { box-shadow: none !important; border: 1px solid #ccc !important; }
  html, body, .ik-main { background: #fff !important; }
}
