﻿/* ============================================================
   DEPICKTION â€” Design System v2.0
   Font: DM Sans (display) + Inter (body)
   Palette: Ink navy + Electric violet + Mint accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Inter:wght@400;500;600&display=swap');

/* â”€â”€ Design Tokens â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --ink:         #0d0f1a;
  --ink-soft:    #1e2235;
  --primary:     #0f7c5b;
  --primary-dk:  #10b981;
  --primary-lt:  #ededff;
  --primary-glow:rgba(91,94,244,.18);
  --accent:      #0ecfb0;
  --accent-lt:   #e6faf7;
  --danger:      #ef4444;
  --danger-lt:   #fef2f2;
  --warn:        #f59e0b;
  --warn-lt:     #fffbeb;
  --success:     #10b981;
  --success-lt:  #ecfdf5;
  --bg:          #f5f6fa;
  --surface:     #ffffff;
  --surface-2:   #f9fafb;
  --border:      #e8eaf0;
  --border-dk:   #d1d5db;
  --muted:       #6b7280;
  --muted-lt:    #9ca3af;
  --text:        #111827;
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --shadow-xs:   0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:   0 4px 12px rgba(0,0,0,.06);
  --shadow:      0 8px 28px rgba(0,0,0,.09);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.12);
  --shadow-primary: 0 8px 28px rgba(91,94,244,.28);
  --nav-h:       68px;
  --sidebar-w:   260px;
  --container:   1280px;
  --transition:  .2s cubic-bezier(.4,0,.2,1);
}

/* â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, video { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }
input, select, textarea, button { font: inherit; }
ul { list-style: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* â”€â”€ Typography â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
h1,h2,h3,h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2rem,4vw,3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem,2.5vw,1.875rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
h4 { font-size: .9375rem; font-weight: 600; }
p { line-height: 1.7; }
.muted { color: var(--muted); }

/* â”€â”€ Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  padding-block: 36px 64px;
}

/* â”€â”€ Navbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 100%; width: min(var(--container), calc(100% - 40px)); margin-inline: auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap;
}
.brand-logo {
  display: block;
  width: auto;
  max-width: 190px;
  height: 42px;
  object-fit: contain;
}
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; font-size: 1rem; font-weight: 900; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(91,94,244,.35);
}
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-links > a:not(.button) {
  padding: 7px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: .875rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-links > a:not(.button):hover { background: var(--primary-lt); color: var(--primary); }
.nav-notification { position: relative; }
.nav-notification span {
  position: absolute; top: -4px; right: -4px;
  display: grid; min-width: 18px; height: 18px; padding-inline: 4px;
  place-items: center; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
}
.nav-form { margin: 0; }
.nav-form button { min-height: 0; padding: 7px 12px; }
.nav-toggle {
  display: none; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); font-size: .875rem; font-weight: 600; cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-2); }

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.button, button[type="submit"], button:not([type]) {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border: 1.5px solid transparent;
  border-radius: var(--radius-sm); background: var(--primary); color: #fff;
  font-size: .875rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  text-decoration: none; min-height: 42px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.button:hover, button[type="submit"]:hover, button:not([type]):hover {
  background: var(--primary-dk); box-shadow: var(--shadow-primary);
  transform: translateY(-1px); color: #fff;
}
.button:active, button[type="submit"]:active { transform: translateY(0); box-shadow: none; }
.button-secondary {
  background: transparent; border-color: var(--border-dk); color: var(--text);
}
.button-secondary:hover {
  background: var(--surface-2); border-color: var(--primary);
  color: var(--primary); box-shadow: none;
}
.button-ghost {
  background: transparent; color: var(--muted); border-color: transparent;
}
.button-ghost:hover { background: var(--surface-2); color: var(--text); box-shadow: none; }
.button-danger { background: var(--danger); }
.button-danger:hover { background: #dc2626; }
.button-sm { padding: 7px 14px; font-size: .8125rem; min-height: 34px; }
.button-lg { padding: 13px 28px; font-size: 1rem; min-height: 52px; }

/* App download detection */
.app-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.app-download-copy h2 {
  margin: 4px 0 4px;
  font-size: 1.15rem;
}
.app-download-copy p {
  max-width: 620px;
  font-size: .875rem;
}
.app-download-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.app-download-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.app-install-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 174px;
  min-height: 56px;
  padding: 9px 13px;
  border: 1px solid var(--border-dk);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.app-install-button:hover {
  color: var(--text);
  border-color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.app-install-button:disabled {
  cursor: default;
  opacity: .65;
  transform: none;
}
.app-install-button small,
.app-install-button span span small {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.1;
}
.app-install-button span span,
.app-install-button > span:last-child {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.18;
}
.app-store-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  flex: 0 0 auto;
}
.app-download-note {
  grid-column: 1 / -1;
  margin-top: -6px;
  font-size: .78rem;
}
.app-download--login {
  display: block;
  margin: 22px 0 0;
  padding: 16px;
  box-shadow: none;
  background: var(--surface-2);
}
.app-download--login .app-download-copy h2 {
  font-size: 1rem;
}
.app-download--login .app-download-copy p {
  margin-bottom: 12px;
}
.app-download--login .app-download-actions {
  justify-content: stretch;
}
.app-download--login .app-install-button {
  flex: 1 1 100%;
}
.app-download--dashboard {
  margin-top: 0;
}
.install-prompt[hidden] {
  display: none;
}
.install-prompt {
  position: fixed;
  inset: auto 18px 18px auto;
  z-index: 250;
  max-width: min(420px, calc(100% - 36px));
}
.install-prompt-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.install-prompt-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 900;
}
.install-prompt h2 {
  margin: 0 0 2px;
  font-size: 1rem;
}
.install-prompt p {
  font-size: .84rem;
}
.install-prompt-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.impersonation-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  border-bottom: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-size: .8125rem;
  font-weight: 700;
}

.impersonation-bar form,
.user-menu form {
  margin: 0;
}

/* â”€â”€ User Menu (logged-in dropdown) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.user-menu {
  position: relative;
  /* Sits among the nav-links flex row */
}

/* The trigger button */
.user-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  font-family: 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  min-height: 40px;
  user-select: none;
  -webkit-user-select: none;
}

.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary::marker { display: none; }

/* Avatar circle inside the trigger */
.user-menu-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  font-size: .6875rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0;
}

/* Chevron arrow */
.user-menu-chevron {
  margin-left: 2px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .55;
  transition: transform var(--transition), opacity var(--transition);
}
.user-menu[open] .user-menu-chevron {
  transform: rotate(180deg);
  opacity: .85;
}

.user-menu summary:hover,
.user-menu[open] summary {
  background: var(--primary-lt);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.user-menu[open] {
  /* Raise above page content */
  z-index: 110;
}

/* The floating dropdown panel */
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  /* Animate in */
  animation: dropdown-in .15s cubic-bezier(.4, 0, .2, 1);
  transform-origin: top right;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: scale(.95) translateY(-6px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

/* Divider inside dropdown */
.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 0;
}

/* Dropdown links and button rows */
.user-menu-dropdown a,
.user-menu-dropdown .user-menu-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  box-sizing: border-box;
}

.user-menu-dropdown a:hover,
.user-menu-dropdown .user-menu-row:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.user-menu-dropdown a.danger,
.user-menu-dropdown .user-menu-row.danger {
  color: var(--danger);
}
.user-menu-dropdown a.danger:hover,
.user-menu-dropdown .user-menu-row.danger:hover {
  background: var(--danger-lt);
  color: var(--danger);
}

/* Icon inside dropdown items */
.user-menu-dropdown .menu-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  opacity: .7;
}

/* Name + role header inside dropdown */
.user-menu-header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}
.user-menu-header strong {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-header span {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  margin-top: 1px;
}

/* Mobile: dropdown becomes inline inside the slide-down menu */
@media (max-width: 768px) {
  .user-menu {
    /* Take full width in the stacked mobile menu */
    width: 100%;
  }
  .user-menu summary {
    width: 100%;
    border-radius: var(--radius-sm);
    justify-content: space-between;
    padding: 11px 14px;
    font-size: .9375rem;
  }
  .user-menu-dropdown {
    /* Inline flow on mobile instead of floating */
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding: 4px 0;
    animation: none;
    margin-top: 2px;
    border-radius: var(--radius-sm);
  }
  .user-menu-dropdown a,
  .user-menu-dropdown .user-menu-row {
    padding: 10px 16px;
    font-size: .9375rem;
  }
  .user-menu-header {
    padding: 10px 16px 8px;
  }
}
.button-link {
  background: none; border: none; color: var(--primary); font-weight: 600;
  cursor: pointer; padding: 0; min-height: 0;
}
.button-link:hover { background: none; color: var(--primary-dk); transform: none; box-shadow: none; }
.button.is-loading { opacity: .7; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* â”€â”€ Alerts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; margin-bottom: 18px; border: 1px solid transparent;
}
.alert-success { background: var(--success-lt); color: #065f46; border-color: #a7f3d0; }
.alert-danger  { background: var(--danger-lt);  color: #991b1b; border-color: #fca5a5; }
.alert-warn    { background: var(--warn-lt);    color: #92400e; border-color: #fcd34d; }
.alert-info    { background: var(--primary-lt); color: #3730a3; border-color: #c7d2fe; }

/* â”€â”€ Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em;
  background: var(--primary-lt); color: var(--primary); white-space: nowrap;
}
.badge-success { background: var(--success-lt); color: #065f46; }
.badge-warn    { background: var(--warn-lt); color: #92400e; }
.badge-danger  { background: var(--danger-lt); color: #991b1b; }
.badge-neutral { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* â”€â”€ Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-xs);
}
.card + .card { margin-top: 18px; }
.card h2, .card h3 { margin-bottom: 10px; }

/* â”€â”€ Forms â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
label { display: block; font-size: .8125rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  display: block; width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: .9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none; -webkit-appearance: none;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
}
input::placeholder, textarea::placeholder { color: var(--muted-lt); }
textarea { resize: vertical; min-height: 100px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
input[type="file"] {
  display: block; width: 100%; padding: 9px 14px;
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--muted); font-size: .875rem; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
input[type="file"]:hover { border-color: var(--primary); background: var(--primary-lt); }
.form-group { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

/* â”€â”€ Tables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table thead tr { background: var(--surface-2); }
.table th {
  padding: 11px 14px; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border);
}
.table td { padding: 14px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }

/* â”€â”€ Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(13,15,26,.6); backdrop-filter: blur(4px);
  z-index: 200; place-items: center;
}
.modal-backdrop.is-open { display: grid; }
.modal-panel {
  width: min(520px, calc(100vw - 32px));
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-lg);
  animation: modal-in .2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.modal-close {
  width: 32px; height: 32px; border: none; background: var(--surface-2);
  border-radius: var(--radius-xs); cursor: pointer; color: var(--muted);
  font-size: 1.2rem; display: grid; place-items: center; flex-shrink: 0;
}
.modal-close:hover { background: var(--border); color: var(--text); }

/* â”€â”€ Hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero {
  padding: 52px 48px;
  background: linear-gradient(135deg, #0d0f1a 0%, #1e2252 60%, #2d1b6e 100%);
  border-radius: var(--radius-lg); margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(91,94,244,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero .badge { background: rgba(91,94,244,.25); color: #a5b4fc; border: 1px solid rgba(91,94,244,.3); margin-bottom: 16px; }
.hero h1 { color: #fff; margin-bottom: 14px; max-width: 520px; }
.hero .muted { color: rgba(255,255,255,.65); font-size: .9375rem; max-width: 460px; }
.hero-panel {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px 24px; max-width: 260px; backdrop-filter: blur(10px);
}
.hero-panel strong { display: block; color: #fff; font-size: .9375rem; font-weight: 700; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; }
.hero-panel span { color: rgba(255,255,255,.6); font-size: .8125rem; line-height: 1.6; }

/* â”€â”€ Filter Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.filter-bar {
  display: flex; gap: 10px; align-items: center;
  margin-top: 28px; position: relative; z-index: 1; flex-wrap: wrap;
}
.filter-bar input, .filter-bar select {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2);
  color: #fff; border-radius: 999px; padding: 10px 18px;
}
.filter-bar .inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  white-space: nowrap;
}
.filter-bar .inline-check input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.day-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}

.check-card input {
  width: auto;
  min-height: auto;
  margin: 0;
}
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar input::placeholder { color: rgba(255,255,255,.45); }
.filter-bar select { min-width: 160px; padding-right: 38px; }
.filter-bar select option { background: #1e2252; }
.filter-bar input:focus, .filter-bar select:focus { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.filter-bar button { border-radius: 999px; padding: 10px 22px; background: var(--primary); flex-shrink: 0; }

/* Modern marketplace search hero */
.marketplace-hero {
  position: relative;
  margin-bottom: 32px;
  padding: 44px;
  overflow: visible;
  border: 1px solid #dde4f0;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(91,94,244,.08), rgba(14,207,176,.08) 55%, rgba(255,255,255,.95)),
    #f8fbff;
}
.marketplace-hero.has-banner {
  overflow: hidden;
  min-height: 430px;
  border-color: rgba(13,15,26,.08);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,.28) 74%, rgba(255,255,255,.12) 100%),
    var(--marketplace-banner-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.marketplace-hero.has-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,15,26,.05), rgba(13,15,26,.14));
  pointer-events: none;
}
.marketplace-hero.has-banner > * {
  position: relative;
  z-index: 1;
}
.marketplace-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  align-items: center;
  max-width: 1120px;
  margin-inline: auto;
}
.marketplace-hero-copy {
  max-width: 680px;
}
.marketplace-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid #d7dcff;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}
.marketplace-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}
.marketplace-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}
.marketplace-hero-copy p {
  max-width: 600px;
  margin-top: 16px;
  color: #4b5563;
  font-size: 1.03rem;
  line-height: 1.75;
}
.marketplace-trust-card {
  padding: 22px;
  border: 1px solid rgba(13,15,26,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}
.marketplace-trust-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-lt);
  color: #047863;
  font-size: .75rem;
  font-weight: 800;
}
.marketplace-trust-card strong {
  display: block;
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}
.marketplace-trust-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.65;
}
.marketplace-search-card {
  max-width: 1120px;
  margin: 30px auto 0;
  padding: 14px;
  border: 1px solid rgba(13,15,26,.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(13,15,26,.10);
}
.marketplace-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}
.marketplace-search-field {
  position: relative;
  margin: 0;
}
.marketplace-search-field input {
  min-height: 58px;
  padding-left: 52px !important;
  border-color: #dfe4ee !important;
  border-radius: 16px !important;
  background: #f9fafb !important;
  color: var(--ink) !important;
  font-size: 1rem !important;
  font-weight: 600;
}
.marketplace-search-field input::placeholder {
  color: #8a94a6;
  font-weight: 500;
}
.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  z-index: 1;
  width: 17px;
  height: 17px;
  border: 2px solid #687387;
  border-radius: 50%;
  transform: translateY(-58%);
}
.search-icon::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #687387;
  transform: rotate(45deg);
}
.marketplace-search-button {
  min-height: 58px;
  padding-inline: 28px;
  border-radius: 16px !important;
  background: #16a34a !important;
  color: #fff;
  font-weight: 800 !important;
  box-shadow: 0 14px 28px rgba(22,163,74,.22);
}
.marketplace-search-button:hover {
  background: #12843d !important;
  box-shadow: 0 16px 32px rgba(22,163,74,.28) !important;
}
.marketplace-filter-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(190px, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}
.marketplace-filter,
.marketplace-price-filter summary,
.marketplace-toggle {
  min-height: 60px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #e3e7ef;
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
}
.marketplace-filter {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.marketplace-filter span,
.marketplace-price-filter summary span,
.price-popover span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.marketplace-filter select {
  min-height: 24px;
  padding: 0 28px 0 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 800;
  box-shadow: none;
}
.marketplace-price-filter {
  position: relative;
}
.marketplace-price-filter summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  list-style: none;
}
.marketplace-price-filter summary::-webkit-details-marker { display: none; }
.marketplace-price-filter summary strong {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 800;
}
.marketplace-price-filter[open] summary {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.price-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(360px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.price-popover label {
  margin: 0;
}
.price-popover input {
  margin-top: 6px;
  border-radius: 12px !important;
}
.marketplace-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.marketplace-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.marketplace-toggle > span {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d8dee9;
  transition: background var(--transition);
}
.marketplace-toggle > span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition);
}
.marketplace-toggle input:checked + span {
  background: var(--primary);
}
.marketplace-toggle input:checked + span::after {
  transform: translateX(18px);
}
.marketplace-toggle strong {
  color: var(--ink);
  font-size: .9rem;
}

/* â”€â”€ Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.marketplace-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* â”€â”€ Product Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--primary); }
.product-thumb {
  display: block; aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(135deg, #f0f0ff 0%, #e8f0fe 100%); position: relative;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-thumb-overlay {
  position: absolute; inset: 0; background: rgba(13,15,26,.45);
  opacity: 0; transition: opacity var(--transition); display: grid; place-items: center;
}
.product-card:hover .product-thumb-overlay { opacity: 1; }
.product-thumb-overlay span {
  padding: 9px 20px; border-radius: 999px; background: #fff;
  color: var(--ink); font-weight: 700; font-size: .875rem;
}
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card-body .badge { align-self: flex-start; }
.product-card-body h3 { font-size: 1rem; margin-top: 4px; color: var(--ink); }
.product-card-body .muted { font-size: .8125rem; }
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 12px; }
.price-box {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 12px;
  border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
  font-size: .75rem; color: var(--muted); font-weight: 500;
}
.price-box strong {
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em;
}
.product-meta { padding-top: 10px; display: flex; gap: 8px; }
.product-meta a { flex: 1; text-align: center; }

/* â”€â”€ Product Detail â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.product-detail { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.preview-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface-2); aspect-ratio: 4/3;
}
.preview-frame img, .preview-frame video { width: 100%; height: 100%; object-fit: contain; }
.product-summary { position: sticky; top: calc(var(--nav-h) + 16px); }
.product-summary h1 { font-size: 1.5rem; margin-block: 10px 8px; }
.purchase-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; background: var(--surface);
}
.purchase-card + .purchase-card { margin-top: 14px; }
.purchase-card h3 { font-size: 1rem; margin-bottom: 6px; }
.purchase-card .price {
  font-family: 'DM Sans', sans-serif; font-size: 1.5rem; font-weight: 800;
  color: var(--primary); margin-block: 8px 14px; letter-spacing: -.02em;
}
.purchase-card .button { width: 100%; }
.purchase-card label { margin-top: 10px; }

/* â”€â”€ Section Title â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-title {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.section-title h2, .section-title h3 { margin: 0; }
.section-title p { margin-top: 4px; font-size: .875rem; }

/* â”€â”€ Dashboard Shell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; gap: 24px; align-items: start; }
.dashboard-sidebar {
  position: sticky; top: calc(var(--nav-h) + 16px);
  max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 12px; box-shadow: var(--shadow-xs);
}
.dashboard-sidebar::-webkit-scrollbar { width: 4px; }
.dashboard-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sidebar-brand { padding: 8px 10px 18px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.sidebar-brand strong { display: block; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); }
.sidebar-brand span { font-size: .8125rem; color: var(--muted); }
.dashboard-sidebar details { margin-bottom: 4px; }
.dashboard-sidebar details summary {
  padding: 8px 10px; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 6px; list-style: none; border-radius: var(--radius-xs);
}
.dashboard-sidebar details summary::-webkit-details-marker { display: none; }
.dashboard-sidebar details summary::after {
  content: ''; margin-left: auto; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform var(--transition);
}
.dashboard-sidebar details[open] summary::after { transform: rotate(-135deg); }
.dashboard-sidebar details summary:hover { background: var(--surface-2); color: var(--ink); }
.dashboard-sidebar a {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500;
  color: var(--muted); transition: background var(--transition), color var(--transition); margin: 2px 0;
}
.dashboard-sidebar a:hover { background: var(--surface-2); color: var(--text); }
.dashboard-sidebar a.is-active { background: var(--primary-lt); color: var(--primary); font-weight: 600; }
.dashboard-main {}
.dashboard-panel { display: none; }
.dashboard-panel.is-active { display: block; }

/* â”€â”€ Stat Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat-card h3 {
  font-size: .75rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px;
}
.stat-card p { font-family: 'DM Sans', sans-serif; font-size: 1.75rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

/* Auth pages */
.auth-experience {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 28px;
  padding: 28px;
  margin: -36px calc((100vw - min(var(--container), calc(100vw - 40px))) / -2) -64px;
  background: #fff;
}
.auth-hero-panel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 28px;
  padding: 38px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(14,207,176,.38), transparent 28%),
    radial-gradient(circle at 22% 82%, rgba(255,255,255,.14), transparent 24%),
    linear-gradient(145deg, #073b2f 0%, #0f7c5b 52%, #0d1b2a 100%);
  box-shadow: 0 30px 80px rgba(8,47,40,.22);
}
.auth-hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 82%);
  pointer-events: none;
}
.auth-hero-panel.has-banner {
  background-image:
    linear-gradient(135deg, rgba(3, 24, 19, .9), rgba(15, 124, 91, .72) 46%, rgba(13, 27, 42, .88)),
    var(--auth-banner-image);
  background-size: cover;
  background-position: center;
}
.auth-hero-panel.has-banner::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.42)),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
  mask-image: none;
}
.auth-hero-panel > * { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-logo .brand-mark { width: 40px; height: 40px; font-size: 1.1rem; }
.auth-logo span { font-family: 'DM Sans', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: 0; }
.auth-logo-light span { color: #fff; }
.auth-logo-light .brand-mark { background: rgba(255,255,255,.18); box-shadow: none; }
.auth-brand-logo {
  display: block;
  width: auto;
  max-width: 220px;
  height: 56px;
  object-fit: contain;
}
.auth-logo-light .auth-brand-logo {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
}
.auth-hero-copy {
  max-width: 660px;
  padding-top: 48px;
}
.auth-eyebrow,
.auth-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.auth-eyebrow {
  color: #d1fae5;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
}
.auth-secure-badge {
  color: #0f7c5b;
  background: #ecfdf5;
  border: 1px solid #b7f7d6;
  margin-bottom: 16px;
}
.auth-hero-copy h1 {
  max-width: 720px;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: 0;
}
.auth-hero-copy p {
  max-width: 560px;
  color: rgba(255,255,255,.76);
  font-size: 1.02rem;
}
.auth-visual {
  position: absolute;
  right: 44px;
  bottom: 168px;
  width: 360px;
  height: 260px;
}
.auth-visual-card {
  position: absolute;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.auth-visual-card span,
.auth-visual-card small {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: .78rem;
  font-weight: 700;
}
.auth-visual-card strong {
  display: block;
  margin: 4px 0;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
}
.auth-visual-card.is-main { inset: 58px 44px auto auto; width: 230px; }
.auth-visual-card.is-top { top: 0; left: 12px; width: 170px; }
.auth-visual-card.is-bottom { right: 0; bottom: 0; width: 205px; }
.auth-feature-list {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin-top: 34px;
}
.auth-feature-list div {
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
}
.auth-feature-list strong,
.auth-feature-list span { display: block; }
.auth-feature-list strong { color: #fff; font-size: .95rem; }
.auth-feature-list span { color: rgba(255,255,255,.7); font-size: .84rem; }
.auth-proof-grid {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.auth-proof-grid div {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
}
.auth-proof-grid strong,
.auth-proof-grid span { display: block; }
.auth-proof-grid strong { color: #fff; font-size: 1.28rem; font-family: 'DM Sans', sans-serif; }
.auth-proof-grid span { color: rgba(255,255,255,.68); font-size: .78rem; font-weight: 700; }
.auth-form-panel {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 36px 12px;
}
.auth-card {
  width: 100%;
  max-width: 510px;
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 26px 70px rgba(15,23,42,.13);
}
.auth-card-premium {
  animation: auth-card-in .32s ease both;
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.auth-card-header { margin-bottom: 22px; }
.auth-card h2 { font-size: 2rem; margin-bottom: 8px; letter-spacing: 0; }
.auth-card > p.muted,
.auth-card-header .muted { font-size: .94rem; }
.auth-card .button { width: 100%; margin-top: 4px; font-size: 1rem; padding: 12px 20px; }
.auth-submit { min-height: 50px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: .9rem; color: var(--muted); }
.oauth-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid var(--border-dk);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}
.oauth-button:hover {
  color: var(--text);
  border-color: rgba(15,124,91,.42);
  box-shadow: 0 14px 34px rgba(15,124,91,.12);
  transform: translateY(-1px);
}
.oauth-button span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: #4285f4;
  font-weight: 900;
}
.oauth-button-premium { background: linear-gradient(180deg, #fff, #fbfdfc); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.floating-field {
  position: relative;
  margin-bottom: 16px;
}
.floating-field input {
  min-height: 56px;
  padding: 20px 14px 8px;
  border-radius: 14px;
}
.floating-field label {
  position: absolute;
  top: 17px;
  left: 14px;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--transition), color var(--transition);
}
.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label {
  color: var(--primary);
  transform: translateY(-10px) scale(.78);
}
.floating-field.has-action input { padding-right: 74px; }
.floating-field small {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  color: var(--muted);
  font-size: .76rem;
}
.floating-field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.floating-field.is-valid input { border-color: #10b981; }
.field-action {
  position: absolute;
  top: 11px;
  right: 10px;
  min-height: 34px;
  width: auto;
  padding: 6px 10px;
  border-radius: 10px;
  background: #eefdf6;
  color: var(--primary);
  box-shadow: none;
  font-size: .76rem;
}
.field-action:hover { background: #dff9ec; color: var(--primary); box-shadow: none; transform: none; }
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
  font-size: .86rem;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  cursor: pointer;
}
.auth-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.auth-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.auth-assurance span,
.auth-note {
  padding: 7px 10px;
  border: 1px solid #d8f7e7;
  border-radius: 999px;
  background: #f0fdf6;
  color: #0f7c5b;
  font-size: .74rem;
  font-weight: 800;
}
.auth-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 20px 0 22px;
}
.auth-progress span {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 900;
  font-size: .82rem;
}
.auth-progress span.is-active,
.auth-progress span.is-complete {
  background: var(--primary);
  color: #fff;
}
.auth-step { display: none; animation: auth-card-in .24s ease both; }
.auth-step.is-active { display: block; }
.role-choice-grid {
  display: grid;
  gap: 10px;
}
.role-choice {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 88px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
  text-align: left;
  white-space: normal;
}
.role-choice:hover,
.role-choice.is-selected {
  border-color: var(--primary);
  background: #f0fdf6;
  color: var(--text);
  box-shadow: 0 12px 34px rgba(15,124,91,.12);
}
.role-choice strong,
.role-choice span { display: block; }
.role-choice strong { font-size: .95rem; margin-bottom: 4px; }
.role-choice span { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.auth-step-actions {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.password-meter {
  margin: -6px 0 18px;
}
.password-meter > span {
  display: block;
  height: 7px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--danger) var(--password-score, 0%), var(--border) 0);
  transition: background var(--transition);
}
.password-meter small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .76rem;
}
.auth-note {
  display: block;
  border-radius: 14px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.auth-success-preview {
  padding: 24px;
  border: 1px solid #b7f7d6;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  text-align: center;
}
.auth-success-preview span {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  min-height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.auth-success-preview h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  .auth-experience {
    background:
      linear-gradient(135deg, rgba(15,124,91,.12), rgba(14,207,176,.08), rgba(2,6,23,.92)),
      #07110f;
  }
  .auth-login,
  .auth-register {
    background: #fff;
  }
  .auth-card {
    background: #0f172a;
    border-color: rgba(255,255,255,.1);
    color: #e5e7eb;
  }
  .auth-card h2,
  .auth-card h3,
  .role-choice strong { color: #f8fafc; }
  .floating-field input,
  .oauth-button,
  .role-choice {
    background: #111827;
    border-color: rgba(255,255,255,.12);
    color: #f8fafc;
  }
  .oauth-button:hover,
  .role-choice:hover,
  .role-choice.is-selected {
    background: #10251f;
  }
  .auth-success-preview {
    background: #10251f;
    border-color: rgba(16,185,129,.38);
  }
}

/* â”€â”€ Empty State â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.empty-state {
  text-align: center; padding: 56px 24px;
  background: var(--surface); border: 1px dashed var(--border-dk); border-radius: var(--radius);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: .5; }
.empty-state h2 { font-size: 1.25rem; margin-bottom: 8px; }
.empty-state .muted { font-size: .9rem; max-width: 360px; margin-inline: auto; margin-bottom: 20px; }

/* â”€â”€ Sidebar CTA â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidebar-cta {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: var(--radius-sm); background: var(--primary); color: #fff !important;
  font-size: .875rem; font-weight: 600; text-decoration: none;
  margin: 8px 2px 4px;
  transition: background var(--transition), box-shadow var(--transition);
}
.sidebar-cta:hover { background: var(--primary-dk) !important; box-shadow: var(--shadow-primary); color: #fff !important; }

/* â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-footer {
  border-top: 1px solid var(--border); padding: 28px 0;
  background: var(--surface);
}
.site-footer-inner {
  width: min(var(--container), calc(100% - 40px)); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.site-footer .muted { font-size: .8125rem; }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-summary { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .marketplace-hero { padding: 34px; }
  .marketplace-hero-grid { grid-template-columns: 1fr; }
  .marketplace-trust-card { display: none; }
  .marketplace-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketplace-toggle { justify-content: flex-start; }
  .dashboard-shell { grid-template-columns: 220px 1fr; }
  .auth-experience {
    grid-template-columns: 1fr;
    margin-inline: -20px;
  }
  .auth-hero-panel {
    min-height: 420px;
  }
  .auth-hero-copy {
    padding-top: 20px;
  }
  .auth-visual {
    display: none;
  }
  .auth-proof-grid {
    position: static;
    margin-top: 30px;
  }
  .auth-form-panel {
    padding: 0 12px 34px;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px 20px; flex-direction: column; align-items: stretch;
    gap: 6px; box-shadow: var(--shadow); z-index: 99;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a:not(.button) { padding: 11px 14px; font-size: .9375rem; }
  .nav-toggle { display: flex; }
  .brand-logo {
    max-width: 150px;
    height: 38px;
  }
  .hero { padding: 32px 24px; border-radius: var(--radius); }
  .hero h1 { font-size: 1.75rem; }
  .marketplace-hero {
    padding: 26px 18px;
    border-radius: var(--radius);
  }
  .marketplace-hero.has-banner {
    min-height: 0;
    background-image:
      linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.84)),
      var(--marketplace-banner-image);
  }
  .marketplace-hero h1 {
    font-size: 2rem;
    line-height: 1.12;
  }
  .marketplace-hero-copy p {
    font-size: .95rem;
  }
  .marketplace-search-card {
    padding: 10px;
    border-radius: var(--radius);
  }
  .marketplace-search-row,
  .marketplace-filter-row {
    grid-template-columns: 1fr;
  }
  .marketplace-search-button,
  .marketplace-search-field input {
    width: 100%;
  }
  .price-popover {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: var(--shadow-sm);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    position: static; max-height: none;
    display: flex; flex-wrap: wrap; gap: 4px; padding: 14px;
  }
  .app-download {
    grid-template-columns: 1fr;
  }
  .app-download-actions {
    justify-content: stretch;
  }
  .app-install-button {
    flex: 1 1 180px;
  }
  .install-prompt {
    inset: auto 14px 14px 14px;
    max-width: none;
  }
  .sidebar-brand { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .auth-experience {
    gap: 14px;
    padding: 14px;
    margin-top: -36px;
  }
  .auth-hero-panel {
    min-height: auto;
    padding: 24px;
    border-radius: 20px;
  }
  .auth-hero-copy h1 {
    font-size: 2rem;
    line-height: 1.08;
  }
  .auth-feature-list {
    margin-top: 22px;
  }
  .auth-proof-grid {
    grid-template-columns: 1fr;
  }
  .auth-form-panel {
    padding: 0 0 24px;
  }
  .auth-card {
    max-width: none;
    padding: 28px 22px;
    border-radius: 20px;
  }
  .auth-step-actions {
    grid-template-columns: 1fr;
  }
  .auth-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .marketplace-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 28px); }
  .price-pair { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar input, .filter-bar select, .filter-bar button { width: 100%; border-radius: var(--radius-sm); }
  .hero { padding: 24px 18px; }
  .marketplace-hero { padding: 22px 14px; }
  .marketplace-kicker { font-size: .68rem; }
  .marketplace-search-field input {
    min-height: 54px;
    padding-left: 46px !important;
  }
  .search-icon { left: 17px; }
  .price-popover { grid-template-columns: 1fr; }
}
