/* ============================================================
   Eric's 3D Services - Public Stylesheet (cleaned + final)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   Catch inputs without explicit type attribute
   ============================================================ */
input:not([type]),
input[type=""] {
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-800);
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
[data-theme="dark"] input:not([type]) {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}
input:not([type]):hover { border-color: var(--blue-300); }
input:not([type]):focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.15);
}
input:not([type])::placeholder { color: var(--gray-400); }
[data-theme="dark"] input:not([type])::placeholder { color: rgba(255, 255, 255, 0.35); }

/* ============================================================
   Feather Icons - sizing rules (applied site-wide)
   ============================================================ */

/* Default — every Feather icon is 16px unless overridden */
[data-feather],
svg.feather {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Size variants */
.feather-xs { width: 10px !important; height: 10px !important; }
.feather-sm { width: 12px !important; height: 12px !important; }
.feather-md { width: 16px !important; height: 16px !important; }
.feather-lg { width: 20px !important; height: 20px !important; }
.feather-xl { width: 28px !important; height: 28px !important; }
.feather-2xl { width: 40px !important; height: 40px !important; }
.feather-3xl { width: 56px !important; height: 56px !important; }

/* Context-specific sizes */
.btn .feather,
.btn-admin .feather,
button .feather,
input + .feather { width: 14px !important; height: 14px !important; }

.nav-link .feather,
.nav-item .feather { width: 15px !important; height: 15px !important; }

.user-dropdown-item .feather { width: 14px !important; height: 14px !important; }

/* Stats / large display icons */
.stat-tile-icon .feather,
.stat-icon .feather { width: 18px !important; height: 18px !important; }

/* Hero / empty-state icons */
.empty-state .feather,
.hero-icon .feather { width: 48px !important; height: 48px !important; }

/* Inline-with-text icons (matches text height) */
p .feather,
li .feather,
.inline-icon { width: 1em !important; height: 1em !important; }

/* ============================================================
   User Menu Dropdown
   ============================================================ */
.user-menu { position: relative; }

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  transition: background 0.15s, border-color 0.15s;
}
.user-menu-trigger:hover {
  background: white;
  border-color: var(--blue-300);
}
.user-menu-trigger > svg:last-child {
  color: var(--gray-400);
  transition: transform 0.2s;
}
.user-menu.open .user-menu-trigger > svg:last-child {
  transform: rotate(180deg);
}

[data-theme="dark"] .user-menu-trigger {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: var(--gray-700);
}
[data-theme="dark"] .user-menu-trigger:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--blue-400);
}

.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a6bc9, #2684ff);
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0s linear 0.15s;
}
.user-menu.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.15s, transform 0.15s, visibility 0s;
}
[data-theme="dark"] .user-dropdown {
  background: var(--gray-50);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.user-dropdown-header {
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px;
}
[data-theme="dark"] .user-dropdown-header { border-bottom-color: rgba(255,255,255,0.06); }

.user-dropdown-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-800);
}
[data-theme="dark"] .user-dropdown-name { color: var(--gray-700); }

.user-dropdown-email {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 300;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 0.1s;
}
.user-dropdown-item:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}
.user-dropdown-item svg {
  color: var(--gray-400);
  flex-shrink: 0;
}
.user-dropdown-item:hover svg { color: var(--blue-600); }

[data-theme="dark"] .user-dropdown-item { color: var(--gray-700); }
[data-theme="dark"] .user-dropdown-item:hover { background: rgba(38,132,255,0.1); color: var(--blue-300); }

.user-dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 6px 4px;
}
[data-theme="dark"] .user-dropdown-divider { background: rgba(255,255,255,0.06); }

.user-dropdown-signout { color: #dc2626 !important; }
.user-dropdown-signout:hover { background: #fef2f2 !important; color: #991b1b !important; }
.user-dropdown-signout svg { color: #dc2626 !important; }
[data-theme="dark"] .user-dropdown-signout:hover { background: rgba(248,113,113,0.1) !important; }

@media (max-width: 900px) {
  .user-menu { display: none; }
}




/* ============================================================
   Universal form control theming
   ============================================================ */

/* Tell browsers to render native UI in dark mode when active */
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="light"] {
  color-scheme: light;
}

/* All form inputs site-wide get base styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-800);
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--blue-300);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Select dropdown arrow */
select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
[data-theme="dark"] select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Native dropdown options - dark theme styling */
[data-theme="dark"] select option {
  background: #111827;
  color: var(--text);
}
[data-theme="dark"] select optgroup {
  background: #1e293b;
  color: var(--gray-700);
  font-weight: 600;
}

/* Number spinners off (cleaner look) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Disabled state */
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--gray-50);
  color: var(--gray-400);
  cursor: not-allowed;
  opacity: 0.7;
}
[data-theme="dark"] input:disabled,
[data-theme="dark"] select:disabled,
[data-theme="dark"] textarea:disabled {
  background: rgba(255, 255, 255, 0.02);
  color: var(--gray-500);
}

/* Textarea specifics */
textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}



.priority-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.priority-option {
  cursor: pointer;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  background: white;
  transition: all 0.15s;
}
.priority-option:hover { background: var(--gray-50); }
.priority-option.selected { background: var(--blue-50); }
[data-theme="dark"] .priority-option { background: rgba(255,255,255,0.02); border-color: var(--border); }
[data-theme="dark"] .priority-option.selected { background: rgba(38,132,255,0.08); }

@media (max-width: 600px) {
  .priority-options { grid-template-columns: 1fr 1fr; }
}










/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  /* Brand blues */
  --blue-950: #03112b;
  --blue-900: #071e3d;
  --blue-800: #0d3260;
  --blue-700: #1250a0;
  --blue-600: #1a6bc9;
  --blue-500: #2684ff;
  --blue-400: #5ca3ff;
  --blue-300: #93c3ff;
  --blue-200: #c2dcff;
  --blue-100: #e6f1ff;
  --blue-50:  #f0f7ff;
  --nav-bg:           #ffffff;
  --nav-bg-blur:      rgba(255, 255, 255, 0.92);
  --nav-border:       #e2e8f0;
  --nav-shadow:       0 1px 8px rgba(15, 23, 42, 0.04);


  /* Neutrals */
  --white:    #ffffff;
  --surface:  #ffffff;
  --bg:       #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;

  --text:        #1e293b;
  --text-muted:  #64748b;
  --border:      #e2e8f0;

  /* Semantic */
  --green:    #16a34a;
  --green-50: #f0fdf4;
  --amber:    #f59e0b;
  --red:      #dc2626;
  --red-50:   #fef2f2;
  --red-100:  #fee2e2;
  --red-700:  #991b1b;
  --purple:   #9333ea;

  /* Layout */
  --nav-height: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
  --bg:      #0a0f1c;
  --surface: #111827;
  --white:   #0f172a;

  --gray-50:  #1e293b;
  --gray-100: #334155;
  --gray-200: rgba(255, 255, 255, 0.08);
  --gray-300: #475569;
  --gray-400: #94a3b8;
  --gray-500: #cbd5e1;
  --gray-600: #d1d5db;
  --gray-700: #e5e7eb;
  --gray-800: #f1f5f9;

  --nav-bg:           #0a0f1c;
  --nav-bg-blur:      rgba(10, 15, 28, 0.92);
  --nav-border:       rgba(255, 255, 255, 0.08);
  --nav-shadow:       0 1px 12px rgba(0, 0, 0, 0.4);



  --text:        #e5e7eb;
  --text-muted:  #94a3b8;
  --border:      rgba(255, 255, 255, 0.08);

  --green-50:  #052e1d;
  --red-50:    #2a0a0a;
}


/* ============================================================
   Theme toggle — sliding switch with sun/moon
   ============================================================ */
.theme-toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 28px;
  background: var(--gray-200);
  border-radius: 14px;
  transition: background 0.2s ease;
  border: 1px solid var(--gray-300);
}
[data-theme="dark"] .theme-toggle-track {
  background: rgba(38, 132, 255, 0.2);
  border-color: var(--blue-700);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s, background 0.2s;
}
[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(24px);
  background: #1e293b;
  color: #fbbf24;
}

/* Show only the right icon based on theme */
.theme-icon-sun, .theme-icon-moon { transition: opacity 0.2s; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: inline-block; }

/* Mobile drawer theme button */
.mobile-drawer-theme {
  position: relative;
}
.mobile-drawer-theme .theme-icon-sun,
.mobile-drawer-theme .theme-icon-moon {
  color: var(--gray-400);
  flex-shrink: 0;
}
.mobile-drawer-theme:hover .theme-icon-sun,
.mobile-drawer-theme:hover .theme-icon-moon {
  color: var(--blue-600);
}


/* ============================================================
   Active mode indicator (visual confirmation)
   ============================================================ */
.theme-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 8px;
  background: var(--gray-100);
  color: var(--gray-600);
}
[data-theme="dark"] .theme-mode-badge {
  background: rgba(38, 132, 255, 0.15);
  color: var(--blue-300);
}
.theme-mode-badge::before {
  content: 'LIGHT';
}
[data-theme="dark"] .theme-mode-badge::before {
  content: 'DARK';
}


/* ============================================================
   Base
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

/* ============================================================
   Announcement bar
   ============================================================ */
.announce {
  position: relative;
  z-index: 200;
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.announce.info    { background: var(--blue-600); color: white; }
.announce.success { background: var(--green); color: white; }
.announce.warning { background: var(--amber); color: white; }
.announce.danger  { background: var(--red); color: white; }
.announce.promo   { background: linear-gradient(135deg, #9333ea 0%, #db2777 100%); color: white; }
.announce a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 8px;
}

/* ============================================================
   Impersonation banner
   ============================================================ */
.impersonate-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: white;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  flex-wrap: wrap;
  gap: 8px;
}
.impersonate-exit {
  background: rgba(0,0,0,0.25);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.impersonate-exit:hover { background: rgba(0,0,0,0.4); }

/* ============================================================
   SITE NAV — single definition, mobile-safe
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 24px;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--nav-shadow);
  /* Force re-render on theme change */
  will-change: background-color;
  transition: background-color 0.2s ease, border-bottom-color 0.2s ease;
}

@media (min-width: 901px) {
  .site-nav {
    background-color: var(--nav-bg-blur);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

[data-theme="dark"] .site-nav {
  background-color: #0a0f1c;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Glass effect ONLY on desktop */
@media (min-width: 901px) {
  .site-nav {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  [data-theme="dark"] .site-nav {
    background-color: rgba(10, 15, 28, 0.92);
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--blue-800);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo:hover { color: var(--blue-600); }
[data-theme="dark"] .nav-logo { color: white; }

.logo-mark {
  width: 32px; height: 32px;
  background: var(--blue-600);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; }

.nav-logo-text { white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links > a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links > a:hover { color: var(--blue-600); }
[data-theme="dark"] .nav-links > a { color: var(--gray-500); }
[data-theme="dark"] .nav-links > a:hover { color: var(--blue-400); }

.nav-cta {
  background: var(--blue-600);
  color: white !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-700); }

.nav-icon-btn {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  position: relative;
  font-family: inherit;
}
.nav-icon-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
  color: var(--blue-700);
}
[data-theme="dark"] .nav-icon-btn { color: var(--gray-500); }
[data-theme="dark"] .nav-icon-btn:hover { background: rgba(255, 255, 255, 0.05); }

.nav-admin-btn {
  background: linear-gradient(135deg, #1a6bc9 0%, #2684ff 100%);
  color: white !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-admin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(38, 132, 255, 0.4);
}

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--blue-600);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
  border: 2px solid var(--surface);
}

/* ============================================================
   Mobile burger + drawer
   ============================================================ */
.mobile-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  cursor: pointer;
  font-family: inherit;
}
.mobile-burger:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
  color: var(--blue-700);
}
[data-theme="dark"] .mobile-burger { color: var(--gray-600); border-color: var(--border); }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--surface);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-drawer-header .nav-logo { font-size: 16px; }

.mobile-drawer-close {
  background: transparent;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.mobile-drawer-close:hover { background: var(--gray-100); }

.mobile-user-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--blue-50), white);
  border-bottom: 1px solid var(--gray-200);
}
[data-theme="dark"] .mobile-user-banner {
  background: linear-gradient(135deg, rgba(38,132,255,0.08), transparent);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 2px;
}
.mobile-drawer-links a,
.mobile-drawer-theme {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: background 0.1s;
}
.mobile-drawer-links a:hover,
.mobile-drawer-theme:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}
.mobile-drawer-links svg,
.mobile-drawer-theme svg { color: var(--gray-400); flex-shrink: 0; }
.mobile-drawer-links a:hover svg { color: var(--blue-600); }

[data-theme="dark"] .mobile-drawer-links a,
[data-theme="dark"] .mobile-drawer-theme { color: var(--gray-600); }
[data-theme="dark"] .mobile-drawer-links a:hover { background: rgba(38,132,255,0.08); }

.mobile-drawer-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 8px 16px;
}

.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.mobile-drawer-overlay.visible { display: block; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: var(--blue-950);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}
.hero-grid,
.hero-glow,
.hero-glow-2 { z-index: 0; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 132, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 132, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(26, 107, 201, 0.25), transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: -300px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(38, 132, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-inner,
.hero-card { position: relative; z-index: 2; }
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-400);
  background: rgba(38, 132, 255, 0.1);
  border: 1px solid rgba(38, 132, 255, 0.2);
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.hero-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: pulse 2s ease infinite;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: white;
  max-width: 780px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 .accent { color: var(--blue-400); }
[data-theme="dark"] .hero p.lead {  color: white;}
.hero p.lead {
  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--blue-200);
  max-width: 520px;
  margin-bottom: 44px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  animation: fadeUp 0.6s 0.4s ease both;
  flex-wrap: wrap;
}
.stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
}
.stat-val span { color: var(--blue-400); }
.stat-label {
  font-size: 13px;
  color: var(--blue-300);
  margin-top: 4px;
  font-weight: 300;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.btn-blue { background: var(--blue-600); color: white; }
.btn-blue:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
}
.btn-outline:hover { background: var(--gray-50); }
[data-theme="dark"] .btn-outline { color: var(--text); border-color: var(--border); }

.btn-primary {
  background: var(--blue-500);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--blue-400); transform: translateY(-1px); }

.btn-ghost {
  color: var(--blue-300);
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(147, 195, 255, 0.2);
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(147, 195, 255, 0.4);
}

/* ============================================================
   Sections
   ============================================================ */
section.page-section { padding: 96px 48px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--blue-950);
  margin-bottom: 16px;
  line-height: 1.1;
}
[data-theme="dark"] .section-title { color: white;/*color: var(--blue-200);*/ }
.section-sub {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 520px;
  font-weight: 300;
}

/* ============================================================
   How it works (3-step grid)
   ============================================================ */
.how-section { background: var(--blue-50); }
[data-theme="dark"] .how-section { background: var(--gray-50); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  background: var(--blue-200);
  border-radius: 16px;
  overflow: hidden;
}
.step { background: white; padding: 36px 32px; }
[data-theme="dark"] .step { background: var(--gray-100); }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-400);
  margin-bottom: 20px;
}
.step-icon {
  width: 48px; height: 48px;
  background: var(--blue-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step-icon svg { width: 24px; height: 24px; }
.step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
[data-theme="dark"] .step h3 { color: white;/*color: var(--blue-200);*/ }
.step p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  font-weight: 300;
}

/* ============================================================
   Products
   ============================================================ */
.products-section { background: white; }
[data-theme="dark"] .products-section { background: var(--bg); }
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
[data-theme="dark"] .product-card { background: var(--gray-50); }
.product-card:hover { border-color: var(--blue-300); transform: translateY(-3px); }
.product-img {
  height: 200px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-img svg { width: 64px; height: 64px; opacity: 0.3; }
.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 500;
  background: var(--blue-100);
  /*color: var(--blue-700);*/
  padding: 3px 10px;
  border-radius: 20px;
}
.product-body { padding: 20px; }
.product-name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 6px;
}
[data-theme="dark"] .product-name { color: white;/*color: var(--blue-200);*/ }
.product-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 16px;
  font-weight: 300;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-400);
/*  color: var(--blue-700);*/
}
.product-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-400);
  font-family: 'DM Sans', sans-serif;
}
.product-btn {
  font-size: 13px;
  font-weight: 500;
  /*color: var(--blue-600);*/
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s;
}
.product-btn:hover { background: var(--blue-100); }

/* ============================================================
   Integrations strip
   ============================================================ */
.integrations-section {
  background: var(--blue-900);
  padding: 64px 48px;
}
.int-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}
.int-text { flex: 1; min-width: 280px; }
.int-text .section-label { color: var(--blue-300); }
.int-text .section-title { color: white; }
.int-text .section-sub { color: var(--blue-200); }
.int-chips {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 280px;
}
.int-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: white;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: #4ade80; }
.dot-blue  { background: var(--blue-400); }
.dot-amber { background: var(--amber); }

/* ============================================================
   Quote upload section
   ============================================================ */
.quote-section { background: var(--blue-600); padding: 96px 48px; }
.quote-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.quote-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.quote-text p {
  font-size: 16px;
  color: var(--blue-100);
  font-weight: 300;
  line-height: 1.65;
}
.upload-box {
  width: 340px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
}
.upload-icon { font-size: 32px; margin-bottom: 12px; }
.upload-title { font-size: 15px; font-weight: 500; color: white; margin-bottom: 6px; }
.upload-sub {
  font-size: 13px;
  color: var(--blue-100);
  margin-bottom: 20px;
  font-weight: 300;
}
.upload-btn {
  background: white;
  color: var(--blue-700);
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.upload-btn:hover { background: var(--blue-50); }

/* ============================================================
   Reviews
   ============================================================ */
.reviews-section { background: var(--gray-50); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.review-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px;
}
[data-theme="dark"] .review-card { background: var(--gray-100); }
.stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.review-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 300;
  font-style: italic;
}
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-700);
  font-family: 'Syne', sans-serif;
}
.reviewer-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-900);
}
[data-theme="dark"] .reviewer-name { color: var(--blue-200); }
.reviewer-sub { font-size: 12px; color: var(--gray-400); }

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
  background: var(--blue-950);
  padding: 64px 48px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-newsletter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-newsletter-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.footer-newsletter-sub {
  font-size: 13px;
  color: var(--blue-300);
  font-weight: 300;
}
.footer-newsletter-form {
  display: flex;
  gap: 8px;
  position: relative;
}
.footer-newsletter-form input[type="email"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  width: 240px;
  outline: none;
  transition: border-color 0.15s;
}
.footer-newsletter-form input[type="email"]:focus { border-color: var(--blue-400); }
.footer-newsletter-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.4); }
.footer-newsletter-form button {
  background: var(--blue-600);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
}
.footer-newsletter-form button:hover { background: var(--blue-500); }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand p {
  font-size: 13px;
  color: var(--blue-300);
  line-height: 1.65;
  max-width: 240px;
  font-weight: 300;
  margin-top: 16px;
}
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--blue-300);
  text-decoration: none;
  margin-bottom: 10px;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: var(--blue-300);
  font-weight: 300;
}
.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-300);
  text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

/* ============================================================
   Generic page container & cards
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px;
  min-height: 60vh;
}
.page-h1 {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--blue-950);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
[data-theme="dark"] .page-h1 { color: var(--blue-200); }
.page-sub {
  color: var(--gray-600);
  font-size: 15px;
  margin-bottom: 32px;
  font-weight: 300;
}

.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}
[data-theme="dark"] .card { background: var(--surface); }

/* ============================================================
   Form Controls
   ============================================================ */
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px;
}
[data-theme="dark"] .form-row label { color: var(--gray-600); }



.form-row input,
.form-row select,
.form-row textarea,
input:not([type]),
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
select,
textarea {


/*
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row input[type="search"],
.form-row input[type="date"],
.form-row input[type="time"],
.form-row select,
.form-row textarea {*/
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-800);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}



[data-theme="dark"] .form-row input,
[data-theme="dark"] .form-row select,
[data-theme="dark"] .form-row textarea,
[data-theme="dark"] input:not([type]),
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="month"],
[data-theme="dark"] input[type="week"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {

/*
[data-theme="dark"] .form-row input[type="text"],
[data-theme="dark"] .form-row input[type="email"],
[data-theme="dark"] .form-row input[type="password"],
[data-theme="dark"] .form-row input[type="number"],
[data-theme="dark"] .form-row input[type="tel"],
[data-theme="dark"] .form-row input[type="url"],
[data-theme="dark"] .form-row input[type="search"],
[data-theme="dark"] .form-row select,
[data-theme="dark"] .form-row textarea {*/
  background: var(--gray-50);
  color: var(--text);
  border-color: var(--border);
}
.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover { border-color: var(--blue-300); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.15);
}
.form-row textarea { min-height: 120px; resize: vertical; }

.form-row select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-row input[type="number"]::-webkit-outer-spin-button,
.form-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-row input[type="number"] { -moz-appearance: textfield; }

/* Custom checkbox */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
  vertical-align: middle;
}
input[type="checkbox"]:hover { border-color: var(--blue-400); }
input[type="checkbox"]:checked { background: var(--blue-600); border-color: var(--blue-600); }
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.2);
}

/* Custom radio */
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  transition: border-color 0.15s;
  flex-shrink: 0;
  vertical-align: middle;
}
input[type="radio"]:hover { border-color: var(--blue-400); }
input[type="radio"]:checked { border-color: var(--blue-600); border-width: 6px; }
input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.2);
}

/* File input */
.form-row input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed var(--gray-300);
  border-radius: 10px;
  background: var(--gray-50);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.form-row input[type="file"]:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}
.form-row input[type="file"]::-webkit-file-upload-button {
  background: var(--blue-600);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 12px;
}

/* Color picker */
.form-row input[type="color"] {
  width: 60px; height: 40px;
  padding: 4px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  background: white;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
  color: var(--gray-600);
  font-size: 14px;
  user-select: none;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.alert.error   { background: var(--red-50); border: 1px solid #fecaca; color: var(--red-700); }
.alert.success { background: var(--green-50); border: 1px solid #bbf7d0; color: #166534; }
.alert.info    { background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--blue-700); }
.alert.warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ============================================================
   Tables
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.data-table tr:last-child td { border-bottom: none; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.sb-blue   { background: var(--blue-100); color: var(--blue-700); }
.sb-green  { background: #dcfce7; color: #166534; }
.sb-amber  { background: #fef3c7; color: #92400e; }
.sb-red    { background: #fee2e2; color: var(--red-700); }
.sb-gray   { background: var(--gray-100); color: var(--gray-600); }
.sb-purple { background: #f3e8ff; color: #7c3aed; }

/* ============================================================
   Account dashboard stat tiles
   ============================================================ */
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.stat-tile:hover {
  border-color: var(--blue-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.stat-tile-label {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 6px;
}
.stat-tile-value {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-tile-sub {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 400;
}
.stat-tile-sub a { color: var(--blue-600); text-decoration: none; }
.stat-tile-sub a:hover { color: var(--blue-700); }

[data-theme="dark"] .stat-tile {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .stat-tile-value { color: var(--blue-300); }
[data-theme="dark"] .stat-tile-label { color: var(--gray-500); }
[data-theme="dark"] .stat-tile-sub { color: var(--gray-400); }

/* ============================================================
   Quick links (account dashboard)
   ============================================================ */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.quick-link:hover { background: var(--blue-50); color: var(--blue-700); }
.quick-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-600);
  flex-shrink: 0;
}
.quick-link:hover .quick-link-icon { background: var(--blue-100); }
[data-theme="dark"] .quick-link { color: var(--gray-600); }
[data-theme="dark"] .quick-link:hover { background: rgba(38, 132, 255, 0.08); color: var(--blue-400); }
[data-theme="dark"] .quick-link-icon { background: rgba(38, 132, 255, 0.1); color: var(--blue-400); }

/* ============================================================
   Saved address cards (checkout)
   ============================================================ */
.address-list { display: flex; flex-direction: column; gap: 8px; }

.address-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  margin: 0;
}
.address-card:hover { border-color: var(--blue-300); background: var(--blue-50); }
.address-card.selected {
  border-color: var(--blue-500);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.1);
}
.address-card.add-new { border-style: dashed; }

[data-theme="dark"] .address-card { background: var(--surface); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .address-card:hover { background: rgba(38,132,255,0.08); }
[data-theme="dark"] .address-card.selected { background: rgba(38,132,255,0.12); }

.address-radio {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  margin-top: 1px;
  transition: all 0.15s;
}
.address-card.selected .address-radio {
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.address-info { flex: 1; min-width: 0; }
.address-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.address-default-tag {
  font-size: 10px;
  font-weight: 500;
  background: var(--blue-100);
  color: var(--blue-700);
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.address-text {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}
.address-text strong { color: var(--gray-700); font-weight: 500; }
[data-theme="dark"] .address-label { color: var(--text); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ============================================================
   Responsive — Mobile (=900px)
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-burger { display: inline-flex; }
  .nav-logo-text { font-size: 16px; }
  .site-nav { padding: 0 16px; height: 60px; }

  body.drawer-open { overflow: hidden; }

  .hero { padding: 80px 20px 60px; min-height: 80vh; }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .hero p.lead { font-size: 16px; }
  .hero-stats {
    gap: 24px;
    margin-top: 48px;
    padding-top: 28px;
    justify-content: space-between;
  }
  .hero-stats > div { flex: 1; min-width: 100px; }
  .stat-val { font-size: 24px; }

  section.page-section { padding: 56px 20px; }
  .section-title { font-size: clamp(24px, 5vw, 36px); }
  .steps-grid,
  .products-grid,
  .reviews-grid { grid-template-columns: 1fr; gap: 12px; }

  .integrations-section,
  .quote-section { padding: 48px 20px; }
  .quote-inner { gap: 28px; }
  .upload-box { width: 100%; }

  .container { padding: 32px 20px; }
  .page-h1 { font-size: 26px; }
  .page-sub { font-size: 14px; margin-bottom: 22px; }

  .card { padding: 20px; border-radius: 12px; }

  .form-grid { grid-template-columns: 1fr; gap: 0; }

  .site-footer { padding: 48px 20px 24px; }
  .footer-newsletter { flex-direction: column; align-items: stretch; padding: 20px; }
  .footer-newsletter-form { flex-direction: column; }
  .footer-newsletter-form input[type="email"] { width: 100%; }
  .footer-top { gap: 24px; flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .data-table { font-size: 13px; }
  .data-table th,
  .data-table td { padding: 10px 12px; }

  .quick-links-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive — Small phones (=600px)
   ============================================================ */
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(28px, 9vw, 40px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { text-align: center; justify-content: center; }
  .hero-stats { gap: 16px; }
  .hero-stats > div { flex: 1 1 calc(50% - 8px); min-width: 0; }

  .container { padding: 24px 16px; }
  .page-h1 { font-size: 22px; }
}

/* ============================================================
   PWA / iOS safe areas
   ============================================================ */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}