/* Self-hosted Inter font (DSGVO: no external Google Fonts requests) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* LEVIAPAY Dashboard — Fintech Theme */
:root {
  --bg: #f5f5f9;
  --surface: #ffffff;
  --surface-elevated: #f0eef6;
  --accent: #652CD1;
  --accent-hover: #46208F;
  --accent-light: #ECE9FC;
  --accent-50: #F5F3FE;
  --accent-blue: #528ff5;
  --destructive: #ef4444;
  --destructive-light: rgba(239, 68, 68, 0.08);
  --warning: #F29C06;
  --warning-light: #FFF6E0;
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.08);
  --text-primary: #110E34;
  --text-secondary: #97A3B6;
  --text-tertiary: #9d9daf;
  --divider: #e8e8ef;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card-bold: 20px 24px 32px rgba(0, 0, 0, 0.2);
  --shadow-card: 21px 28px 66px rgba(52, 20, 139, 0.11);
  --sidebar-bg: #fafafc;
  --sidebar-width: 220px;
  --transition: 0.2s ease;
  --hero-gradient: linear-gradient(12deg, #1F0D44 0%, #8F78BD 100%);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden { display: none !important; }

/* ── Login ─────────────────────────────────────── */
#login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
  background: #f5f5f9;
  overflow-x: hidden;
}

.login-card,
.signup-card,
.onboarding-card,
.pending-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--divider);
}

.login-card,
.signup-card,
.onboarding-card {
  max-width: none;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f5f9;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 48px 20px;
  overflow: visible;
}

.onboarding-card form,
.signup-card form {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.login-card .auth-logo { height: 48px; margin-bottom: 12px; }

.login-card p,
.login-card .login-toggle { text-align: center; }

.login-card form,
.login-card .mfa-icon,
.login-card h2,
.login-card .mfa-resend,
.login-card .status-dropup {
  width: 100%;
  max-width: 380px;
}

.signup-card { max-width: 580px; margin: 16px; }
.onboarding-card { max-width: 520px; margin: 16px; }
.pending-card { max-width: 460px; text-align: center; margin: 16px; }

.login-card h1,
.signup-card h1,
.onboarding-card h1,
.pending-card h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.auth-logo {
  display: block;
  margin: 0 auto 8px;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.login-card p,
.signup-card > p,
.pending-card > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.pending-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pending-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.step-indicator {
  text-align: center;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--accent-light);
  width: fit-content;
  margin: 0 auto 24px;
  padding: 6px 16px;
  border-radius: 20px;
}

/* Section divider labels inside signup form */
.signup-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  margin-top: 24px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.signup-section-label:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Login / Signup toggle */
.login-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.login-toggle a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.login-toggle a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── Status Drop-up ───────────────────────────── */
.status-dropup {
  position: relative;
  margin-top: 32px;
  width: 100%;
  max-width: 380px;
}

.status-dropup-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.status-dropup-toggle:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.status-dropup-chevron {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
  transition: transform var(--transition);
}

.status-dropup-toggle.open .status-dropup-chevron {
  transform: rotate(0deg);
}

.status-dropup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34C759;
  flex-shrink: 0;
}

.status-dropup-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 100;
  animation: dropdown-in 0.15s ease-out;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.status-dropup-header {
  padding: 8px 16px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 4px;
}

.status-dropup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-primary);
}

.status-dropup-label {
  margin-left: auto;
  font-size: 13px;
  color: #34C759;
  font-weight: 500;
}

.status-dropup-dot.outage { background: #FF3B30; }
.status-dropup-label.outage { color: #FF3B30; }
.status-dropup-dot.degraded { background: #F29C06; }
.status-dropup-label.degraded { color: #F29C06; }
.status-dropup-dot.maintenance { background: #528ff5; }
.status-dropup-label.maintenance { color: #528ff5; }

/* ── Forms ─────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group input[type="color"] {
  height: 44px;
  cursor: pointer;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group { flex: 1; }

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.login-error {
  color: var(--destructive);
  font-size: 13px;
  text-align: center;
  min-height: 20px;
  margin-bottom: 8px;
  background: var(--destructive-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.login-error:empty {
  background: transparent;
  padding: 0;
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  letter-spacing: -0.1px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  width: 100%;
  border-radius: var(--radius-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-success {
  background: var(--accent);
  color: #ffffff;
}

.btn-success:hover {
  background: var(--accent-hover);
}

.btn-danger {
  background: var(--destructive);
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--divider);
}

.btn-ghost:hover {
  background: var(--surface-elevated);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
}

/* ── Dashboard Layout ──────────────────────────── */
#dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  min-height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.25s ease;
  z-index: 100;
}

.sidebar::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 60px;
  width: 70px;
  height: 140px;
  background: linear-gradient(135deg, #652CD1, #8b5cf6);
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
}

/* Sidebar header (logo + toggle) */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* Nav layout */
.sidebar nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  width: 100%;
  overflow-y: auto;
}

/* Nav button base */
.nav-btn {
  width: 100%;
  height: 40px;
  border: none;
  background: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-align: left;
}

.nav-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
}

.nav-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

/* Nav sub-items (indented) */
.nav-sub {
  padding-left: 40px;
  height: 36px;
  font-size: 13px;
}

/* Nav divider */
.nav-divider {
  height: 1px;
  background: var(--divider);
  margin: 8px 12px;
}

/* Nav group */
.nav-group {
  display: flex;
  flex-direction: column;
}

.nav-group-toggle {
  width: 100%;
  height: 40px;
  border: none;
  background: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-align: left;
}

.nav-group-toggle svg:first-child {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-group-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-group.group-active > .nav-group-toggle {
  color: var(--accent);
}

.nav-group-arrow {
  width: 18px;
  height: 18px;
  margin-left: auto;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-group.expanded .nav-group-arrow {
  transform: rotate(180deg);
}

.nav-group-items {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

.nav-group.expanded .nav-group-items {
  display: flex;
}

/* Sidebar footer */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 0;
  border-top: 1px solid var(--divider);
  margin-top: 8px;
}

.sidebar-footer .user-email {
  display: none;
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.25s;
}

.sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

/* Mobile hamburger button */
.mobile-sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* ── Sidebar collapsed state (tablet) ── */
.sidebar.sidebar-collapsed {
  width: 64px;
}

.sidebar.sidebar-collapsed .nav-label,
.sidebar.sidebar-collapsed .nav-group-arrow,
.sidebar.sidebar-collapsed .sidebar-toggle {
  display: none;
}

.sidebar.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding: 0;
}

.sidebar.sidebar-collapsed .nav-btn {
  justify-content: center;
  padding: 0;
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.sidebar.sidebar-collapsed .nav-sub {
  padding-left: 0;
}

.sidebar.sidebar-collapsed .nav-group-toggle {
  justify-content: center;
  padding: 0;
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.sidebar.sidebar-collapsed .nav-divider {
  margin: 8px 8px;
}

.sidebar.sidebar-collapsed .sidebar-footer {
  align-items: center;
  padding: 8px 0 0;
}

.sidebar.sidebar-collapsed .sidebar-footer .nav-btn {
  width: 40px;
  height: 40px;
}

.main-content {
  flex: 1;
  padding: 32px 40px;
  overflow-y: auto;
  background: var(--bg);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.section-hint { font-size: 13px; color: var(--text-secondary); margin: -8px 0 16px; line-height: 1.5; }

/* ── Cookie Notice ────────────────────────────── */
.cookie-notice { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(17,14,52,0.95); color: #fff; padding: 16px 24px; display: flex; align-items: center; justify-content: center; gap: 16px; z-index: 10000; font-size: 14px; backdrop-filter: blur(8px); }
.cookie-notice a { color: #a78bfa; text-decoration: underline; }
.cookie-notice-btn { background: #fff; color: #110E34; border: none; padding: 8px 20px; border-radius: 6px; font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.cookie-notice-btn:hover { background: #e8e8ef; }
.cookie-notice-btn--decline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.cookie-notice-btn--decline:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 600px) { .cookie-notice { flex-direction: column; text-align: center; gap: 12px; padding: 16px; } }

/* ── Table ─────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--divider);
  background: var(--sidebar-bg);
  font-weight: 600;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover { background: var(--accent-light); }

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-pending {
  background: var(--warning-light);
  color: #b45309;
}

.badge-danger {
  background: #FEE2E2;
  color: #DC2626;
}

.badge-deactivated {
  background: #f3f4f6;
  color: #6b7280;
}

/* ── Verification Banner ──────────────────────────── */
.verification-banner {
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.verification-banner-warning {
  background: #FFFBEB;
  border: 1px solid #F59E0B;
}
.verification-banner-danger {
  background: #FEF2F2;
  border: 1px solid #EF4444;
}
.verification-banner-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  color: #1a1a2e;
}
.verification-banner-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 12px;
}
.btn-warning {
  background: #F59E0B;
  color: #fff;
}
.btn-warning:hover { background: #D97706; }

.badge-role {
  background: var(--accent-light, #f0ebff);
  color: var(--accent);
}

.badge-perm {
  background: #f0f4ff;
  color: #3b6cf4;
  font-size: 11px;
  padding: 3px 8px;
}

/* ── Team Management ───────────────────────────── */
.section-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.row-deactivated {
  opacity: 0.5;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

/* Permissions toggle grid */
.permissions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: var(--bg-2, #f9fafb);
  border-radius: var(--radius-sm, 10px);
  margin: 8px 0 16px;
}

.permission-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.permission-toggle:hover {
  background: rgba(0,0,0,0.04);
}

.permission-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.permission-toggle input[type="checkbox"]:disabled {
  cursor: default;
  opacity: 0.6;
}

.permission-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Custom role items */
.custom-role-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm, 10px);
  margin-bottom: 8px;
}

.custom-role-info strong {
  display: block;
  margin-bottom: 6px;
}

.custom-role-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.custom-role-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* ── Catalog Cards ─────────────────────────────── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.catalog-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.catalog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.catalog-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.catalog-card-header strong {
  font-size: 15px;
  color: var(--text-primary);
}

.catalog-card-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.catalog-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}

/* ══ View Toggle (shared) ══ */
.view-toggle { display: flex; gap: 2px; background: var(--divider); border-radius: 6px; padding: 2px; }
.view-toggle-btn { background: none; border: none; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 16px; color: var(--text-secondary); line-height: 1; }
.view-toggle-btn.active { background: var(--surface); color: var(--text-primary); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.view-toggle-btn:hover:not(.active) { color: var(--text-primary); }

/* ══ Products Category List View ══ */
.products-category-group { margin-bottom: 24px; }
.products-category-header { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 2px solid var(--accent); margin-bottom: 8px; }
.products-category-header h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 0; }
.products-category-header .count { font-size: 13px; color: var(--text-secondary); }
.products-category-table { width: 100%; border-collapse: collapse; }
.products-category-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-secondary); padding: 6px 12px; border-bottom: 1px solid var(--divider); }
.products-category-table td { padding: 10px 12px; border-bottom: 1px solid var(--divider); font-size: 14px; vertical-align: middle; }
.products-category-table tr:hover { background: var(--hover); }
.products-category-table .prod-name { font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.products-category-table .prod-name img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.products-category-table .prod-price { font-weight: 600; color: var(--accent); white-space: nowrap; }
.products-category-table .prod-tags { display: flex; gap: 4px; }
.products-category-table .prod-tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--divider); color: var(--text-secondary); }
.products-category-table .prod-tag.fav { background: #fef3c7; color: #92400e; }
.products-category-table .prod-tag.sold-out { background: #fee2e2; color: #991b1b; }
.products-category-table .prod-actions { white-space: nowrap; }

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.sort-badge {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-left: auto;
  background: var(--surface-elevated);
  padding: 2px 8px;
  border-radius: 12px;
}

.price {
  margin-left: auto;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}

/* ── Variant Row ───────────────────────────────── */
.variant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
  transition: background var(--transition);
}

.variant-row:hover {
  background: var(--surface-elevated);
}

/* ── Modal ─────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--divider);
  animation: modal-enter 0.2s ease-out;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: var(--surface-elevated);
  border: none;
  color: var(--text-tertiary);
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--divider);
}

/* ── Toast ─────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text-primary);
  color: var(--surface);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

#toast.show { transform: translateX(-50%) translateY(0); }

/* ── Settings Form ─────────────────────────────── */
.settings-form {
  max-width: 640px;
}

.settings-form .btn-primary {
  margin-top: 20px;
  width: auto;
  padding: 12px 32px;
}

/* ── Settings Cards ───────────────────────────── */
.settings-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.settings-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.settings-card-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Field Tooltip ────────────────────────────── */
.label-with-tip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--divider);
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
}

.field-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.field-tip:hover::after {
  opacity: 1;
}

/* ── Cash Register Cards ─────────────────────── */
.cash-register-card {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  background: var(--bg);
}

.cash-register-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cash-register-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.cash-register-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ── Company Profile Cards ─────────────────────── */
.profile-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.profile-note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  font-style: italic;
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.profile-card {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: box-shadow var(--transition);
}

.profile-card:hover {
  box-shadow: var(--shadow-sm);
}

.profile-label {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-weight: 600;
}

.profile-value {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Role Select ───────────────────────────────── */
.role-select {
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.role-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  .sidebar {
    width: 64px;
  }
  .sidebar .nav-label,
  .sidebar .nav-group-arrow {
    display: none;
  }
  .sidebar .sidebar-toggle {
    display: none;
  }
  .sidebar .sidebar-header {
    justify-content: center;
    padding: 0;
  }
  .sidebar .nav-btn,
  .sidebar .nav-group-toggle {
    justify-content: center;
    padding: 0;
    width: 40px;
    height: 40px;
    margin: 0 auto;
  }
  .sidebar .nav-sub {
    padding-left: 0;
  }
  .sidebar .nav-divider {
    margin: 8px 8px;
  }
  .sidebar .sidebar-footer {
    align-items: center;
    padding: 8px 0 0;
  }
  .sidebar .sidebar-footer .nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  #dashboard {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    height: 100vh;
    min-height: 100vh;
    border-right: 1px solid var(--divider);
    transition: left 0.25s ease;
    z-index: 100;
  }

  .sidebar.sidebar-open {
    left: 0;
  }

  .sidebar::before { display: none; }

  .mobile-sidebar-toggle {
    display: flex;
  }

  .sidebar-toggle {
    display: none;
  }

  .main-content {
    padding: 16px;
    padding-top: 64px;
  }

  .overview-topbar-right { display: none; }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .profile-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .login-card {
    padding: 32px 20px;
  }

  .signup-card,
  .onboarding-card,
  .pending-card {
    max-width: 100%;
    padding: 32px 20px;
    box-shadow: var(--shadow-md);
  }

  .modal-content {
    margin: 16px;
    max-height: 90vh;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 12px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .catalog-card {
    padding: 16px;
  }
}

/* ── Overview Section ─────────────────────────── */
.overview-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.overview-topbar-left h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.overview-greeting {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 4px;
}

.overview-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Date range filter buttons */
.date-range-btns {
  display: flex;
  gap: 6px;
}

.range-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.range-btn.active,
.range-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Overview stats row */
.overview-stats {
  display: none;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.search-bar {
  position: relative;
  width: 280px;
}

.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1.5px solid var(--divider);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition);
}

.search-bar input::placeholder { color: var(--text-tertiary); }
.search-bar input:focus { border-color: var(--accent); }

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.avatar-wrapper {
  position: relative;
}

.topbar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  overflow: hidden;
}

.topbar-avatar:hover {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
  transform: scale(1.05);
}

.topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Profile Dropdown Menu */
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--surface);
  border: 1.5px solid var(--divider);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding: 8px;
  animation: profileMenuIn 0.18s ease-out;
}

@keyframes profileMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-menu.hidden {
  display: none;
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.profile-menu-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.profile-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.profile-menu-upload {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
  border-radius: 50%;
}

.profile-menu-avatar:hover .profile-menu-upload {
  opacity: 1;
}

.profile-menu-upload svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.profile-menu-info {
  flex: 1;
  min-width: 0;
}

.profile-menu-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu-email {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.profile-menu-divider {
  height: 1px;
  background: var(--divider);
  margin: 4px 8px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
  font-family: inherit;
}

.profile-menu-item:hover:not(:disabled) {
  background: var(--background);
}

.profile-menu-item:disabled {
  opacity: 0.55;
  cursor: default;
}

.profile-menu-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--text-secondary);
}

.profile-menu-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-light, rgba(139, 92, 246, 0.1));
  color: var(--accent);
}

.profile-menu-logout {
  color: #ef4444;
}

.profile-menu-logout svg {
  stroke: #ef4444;
}

.profile-menu-logout:hover {
  background: rgba(239, 68, 68, 0.06) !important;
}

/* ── KPI Cards Row ────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 16px;
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon svg {
  width: 22px;
  height: 22px;
}

.kpi-icon-revenue {
  background: var(--accent-light);
  color: var(--accent);
}

.kpi-icon-orders {
  background: #E8F5E9;
  color: #2E7D32;
}

.kpi-icon-avg {
  background: #E3F2FD;
  color: #1565C0;
}

.kpi-icon-tips {
  background: var(--warning-light);
  color: var(--warning);
}

.kpi-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-top: 2px;
}

/* ── Overview layout ─────────────────────────── */
.overview-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* Widget base */
.widget {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.widget-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.widget-empty {
  color: var(--text-tertiary);
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}

.widget-note {
  color: var(--text-tertiary);
  font-size: 13px;
  padding: 12px 0;
}

/* ── Top Products Widget ─────────────────────── */
.top-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}

.top-product-item:last-child {
  border-bottom: none;
}

.top-product-rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.top-product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.top-product-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-product-qty {
  font-size: 12px;
  color: var(--text-tertiary);
}

.top-product-revenue {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'SF Mono', monospace;
  flex-shrink: 0;
}

/* ── Payouts List ─────────────────────────────── */
.payouts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.payout-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}

.payout-row:last-child {
  border-bottom: none;
}

.payout-row-date {
  font-size: 14px;
  color: var(--text-secondary);
  min-width: 90px;
}

.payout-row-amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'SF Mono', monospace;
  flex: 1;
}

.payout-row-upcoming {
  background: rgba(139, 92, 246, 0.04);
  margin: 0 -20px;
  padding: 12px 20px;
  border-radius: 8px;
}

.payout-row-upcoming .payout-row-amount {
  color: var(--accent);
}

.badge-upcoming {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent);
}

.payouts-empty {
  font-size: 14px;
  color: var(--text-tertiary);
  padding: 16px 0;
}

/* ── Transactions Widget ──────────────────────── */

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

.transaction-icon-out {
  background: rgba(239, 68, 68, 0.08);
  color: var(--destructive);
  transform: rotate(45deg);
}

.transaction-icon-in {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
}

.transaction-icon-in svg {
  flex-shrink: 0;
}

.transaction-info {
  flex: 1;
  min-width: 0;
}

.transaction-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-date {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.transaction-amount {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.transaction-amount-out { color: var(--destructive); }
.transaction-amount-in { color: var(--success); }
.transaction-amount-refunded { color: var(--destructive); text-decoration: line-through; }
.transaction-amount-voided { color: var(--text-tertiary); text-decoration: line-through; }

.transaction-icon-refunded {
  background: rgba(239, 68, 68, 0.08);
  color: var(--destructive);
}

.transaction-badge-refunded {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--destructive);
  margin-left: 6px;
  vertical-align: middle;
}

.transaction-badge-voided {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-tertiary);
  margin-left: 6px;
  vertical-align: middle;
}

.btn-refund {
  background: none;
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}

.btn-refund:hover {
  border-color: var(--destructive);
  color: var(--destructive);
  background: rgba(239, 68, 68, 0.05);
}

.btn-refund:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Receipts Widget ──────────────────────────── */
.receipt-input-row {
  display: flex;
  gap: 10px;
}

.receipt-input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--divider);
  border-radius: 24px;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.receipt-input::placeholder { color: var(--text-tertiary); }
.receipt-input:focus { border-color: var(--accent); }

.btn-circle-accent {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.btn-circle-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ── News Widget ──────────────────────────────── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.news-empty {
  color: var(--text-secondary);
  font-size: 14px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--divider);
  cursor: pointer;
  transition: border-color 0.2s;
}

.news-item:hover {
  border-color: var(--accent);
}

.news-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.news-item-content {
  flex: 1;
  min-width: 0;
}

.news-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-item-date {
  font-size: 12px;
  color: var(--text-secondary);
}

/* News Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.news-modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.news-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
}

.news-modal-close:hover {
  color: var(--text-primary);
}

.news-modal-date {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}

.news-modal h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px;
}

#news-modal-body {
  font-size: 15px;
  line-height: 1.6;
  color: #364153;
  white-space: pre-wrap;
}

/* ── Employees Widget ─────────────────────────── */
.employee-avatars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.avatar-add {
  background: var(--bg) !important;
  border: 2px dashed var(--divider);
  color: var(--text-tertiary);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.avatar-add:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.employee-search-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ── Chart Widget ─────────────────────────────── */
.widget-chart { margin-bottom: 0; }

.chart-date-range {
  font-size: 13px;
  color: var(--text-tertiary);
}

.chart-placeholder {
  position: relative;
  padding-left: 40px;
  padding-bottom: 30px;
}

.chart-svg {
  width: 100%;
  height: 200px;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding-left: 0;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.chart-y-labels {
  position: absolute;
  left: 0;
  top: 0;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Overview Grid Layout (precise) ───────────── */
/* grid-areas removed — using overview-two-col layout */

/* ── Overview Responsive ──────────────────────── */
/* ── Overview Responsive ──────────────────────── */
@media (max-width: 1024px) {
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .kpi-row {
    grid-template-columns: 1fr;
  }
  .overview-two-col {
    grid-template-columns: 1fr;
  }
  .kpi-value {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .kpi-card {
    padding: 16px;
  }
  .kpi-value {
    font-size: 16px;
  }
}

/* ══════════════════════════════════════════════════
   Landing Page — Figma Redesign
   ══════════════════════════════════════════════════ */

#landing-page {
  background: var(--surface);
  min-height: 100vh;
}

/* ── Landing Nav (inside hero gradient) ──────── */
.landing-nav {
  position: relative;
  z-index: 10;
}

.landing-nav-inner {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.landing-nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.landing-nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  height: 62px;
  padding: 0 24px 0 52px;
  margin-right: -9999px;
  padding-right: 9999px;
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
}

.landing-nav-bar .landing-nav-links a.active {
  color: var(--text-primary);
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.landing-logo-icon {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  overflow: hidden;
  padding: 10px;
}

.landing-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleY(-1);
}

.landing-logo-full {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.landing-logo-icon svg {
  width: 28px;
  height: 28px;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.landing-nav-bar .landing-nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: 500px;
  transition: background var(--transition);
  line-height: 26px;
}

.landing-nav-bar .landing-nav-links a:hover {
  opacity: 0.7;
}

/* ── Nav Mega-Menu Dropdown ── */
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-trigger svg {
  transition: transform 0.2s ease;
}

.nav-dropdown-trigger.open svg {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 480px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10000;
}

.nav-dropdown-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.nav-dropdown-card:hover {
  background: var(--bg);
}

.nav-dropdown-img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-dropdown-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-dropdown-card-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.nav-dropdown-card-text span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .nav-dropdown-panel {
    display: none;
  }
}

.landing-nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.landing-nav-bar .btn-hero-cta {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  padding: 10px 20px;
  border-radius: 5000px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.landing-nav-bar .btn-hero-cta:hover {
  transform: translateY(-1px);
  background: var(--bg-secondary);
  box-shadow: none;
}

.btn-hero-cta {
  background: #fff;
  color: var(--text-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 5000px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-hero-cta-main {
  background: #fff;
  color: var(--text-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 5000px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-hero-cta-main:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ── Hero Section ────────────────────────────── */
.landing-hero {
  position: relative;
  padding: 50px 64px 64px;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  z-index: 0;
}

.landing-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
}

.landing-hero-grain svg {
  width: 100%;
  height: 100%;
  display: block;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1312px;
  margin: 0 auto;
  min-height: 670px;
  padding-top: 64px;
}

.landing-hero-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  max-width: 660px;
}

.landing-badge-hero {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 20px;
  border-radius: 500px;
  font-size: 16px;
  font-weight: 600;
}

.landing-hero-text h1 {
  font-size: 72px;
  font-weight: 600;
  font-style: italic;
  line-height: 82px;
  color: #fff;
  letter-spacing: -2px;
  text-transform: capitalize;
}

.landing-hero-text p {
  font-size: 20px;
  line-height: 30px;
  color: #fff;
  font-weight: 400;
}

.hero-asset {
  position: absolute;
  right: 64px;
  top: 132px;
  width: 450px;
  height: 916px;
  pointer-events: none;
  z-index: 2;
}

.hero-phone-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.hero-stat-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card-bold);
  width: 182px;
  z-index: 2;
}

.hero-stat-left {
  top: 260px;
  left: -100px;
  transform: rotate(-7.5deg);
}

.hero-stat-right {
  top: 469px;
  right: -67px;
  transform: rotate(7.5deg);
}

.hero-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 32px;
}

.hero-stat-label {
  font-size: 14px;
  color: #97A3B6;
  line-height: 26px;
}

/* ── Shared Section Styles ───────────────────── */
.landing-section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.landing-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.landing-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 500px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.landing-section-header h2 {
  font-size: 48px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 58px;
  text-transform: capitalize;
}

/* ── Services Section ────────────────────────── */
.landing-services {
  background: var(--surface);
  padding: 112px 0 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--divider);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.service-card-desc h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.service-card-desc p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 26px;
  text-align: center;
}

/* Mock: Transaction list */
.mock-transactions {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
}

.mock-tx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mock-tx-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.mock-tx-date { font-size: 12px; color: var(--text-secondary); }

.mock-tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.mock-tx-row + .mock-tx-row { border-top: 1px solid var(--divider); }

.mock-tx-info { display: flex; flex-direction: column; gap: 2px; }
.mock-tx-card { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.mock-tx-detail { font-size: 12px; color: var(--text-secondary); }
.mock-tx-amount { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.mock-tx-amount.green { color: var(--accent); }

/* Mock: Balance card */
.mock-balance {
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-balance-label { font-size: 13px; color: var(--text-secondary); }
.mock-balance-value { font-size: 32px; font-weight: 600; color: var(--text-primary); }
.mock-balance-info { font-size: 11px; color: var(--text-secondary); margin-top: 8px; }

/* Mock: Credit card */
.mock-creditcard {
  background: var(--hero-gradient);
  border-radius: 16px;
  padding: 24px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 180px;
}

.mock-cc-brand { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.mock-cc-number { font-size: 15px; font-weight: 500; letter-spacing: 2px; margin-top: auto; }
.mock-cc-bottom { display: flex; gap: 32px; }
.mock-cc-field { display: flex; flex-direction: column; gap: 2px; }
.mock-cc-label { font-size: 10px; opacity: 0.7; }
.mock-cc-val { font-size: 13px; font-weight: 600; }

/* ── Features Section ────────────────────────── */
.landing-features {
  background: var(--accent-50);
  padding: 112px 0 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--divider);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  min-height: 320px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card-wide {
  grid-column: span 1;
}

.features-grid .feature-card:nth-child(4),
.features-grid .feature-card:nth-child(5) {
  /* Row 2: 2 wide cards */
}

/* Make row 2 into 2 columns */
.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Override: last 2 items span wider */
.feature-card:nth-child(4) { grid-column: 1 / 3; }
.feature-card:nth-child(5) { grid-column: 3 / 4; }

/* Actually use a better approach: first 3 in row, last 2 split */
@supports (grid-template-columns: repeat(6, 1fr)) {
  .features-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3) {
    grid-column: span 2;
  }
  .feature-card:nth-child(4) {
    grid-column: span 3;
  }
  .feature-card:nth-child(5) {
    grid-column: span 3;
  }
}

.feature-card-desc h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.feature-card-desc p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 26px;
  text-align: center;
}

.feature-card-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

/* Mock: Lock */
.mock-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mock-lock-dots {
  display: flex;
  gap: 8px;
}

.mock-lock-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* Mock: Chart */
.mock-chart {
  width: 100%;
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
}

.mock-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mock-chart-filter { font-size: 12px; color: var(--text-secondary); }
.mock-chart-value { font-size: 14px; font-weight: 600; color: var(--accent); }

.mock-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 120px;
}

.mock-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.mock-bar {
  width: 100%;
  max-width: 30px;
  background: var(--accent-light);
  border-radius: 4px 4px 0 0;
}

.mock-bar.highlight {
  background: var(--accent);
}

.mock-bar-group span {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Mock: Currencies */
.mock-currencies {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
}

.mock-currency-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-currency-flag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}

.mock-currency-info { flex: 1; font-size: 13px; color: var(--text-secondary); }
.mock-currency-amount { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* Mock: Team avatars */
.mock-team {
  display: flex;
  gap: -8px;
  justify-content: center;
}

.mock-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 3px solid var(--surface);
  margin-left: -8px;
}

.mock-avatar:first-child { margin-left: 0; }

/* Mock: Notifications */
.mock-notifications {
  width: 100%;
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
}

.mock-notif-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.mock-notif-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.mock-notif-row + .mock-notif-row { border-top: 1px solid var(--divider); }

.mock-notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-notif-icon.green-bg { background: rgba(16, 185, 129, 0.1); }
.mock-notif-icon.red-bg { background: rgba(239, 68, 68, 0.1); }

.mock-notif-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mock-notif-info span { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.mock-notif-info .sub { font-size: 12px; font-weight: 400; color: var(--text-secondary); }

.mock-notif-amount { font-size: 14px; font-weight: 600; white-space: nowrap; }
.mock-notif-amount.green { color: var(--success); }
.mock-notif-amount.red { color: var(--destructive); }

/* ── Branchen Section ────────────────────────── */
.landing-branchen {
  background: var(--bg);
  padding: 112px 0;
}

.branchen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.branchen-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--divider);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.branchen-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
  border-color: var(--accent-light);
}

.branchen-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.branchen-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
  flex: 1;
}

.branchen-card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.branchen-card:hover .branchen-card-link {
  text-decoration: underline;
}

.branchen-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.branchen-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.branchen-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.branchen-addon-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--accent-50);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

/* ── Workflow Section ────────────────────────── */
.landing-workflow {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
}

.landing-workflow-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  z-index: 0;
}

.landing-workflow-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: soft-light;
  opacity: 0.3;
}

.landing-workflow .landing-section-inner {
  position: relative;
  z-index: 1;
}

.workflow-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.workflow-left h2 {
  font-size: 48px;
  font-weight: 600;
  font-style: italic;
  color: #fff;
  line-height: 58px;
  letter-spacing: -1px;
  text-transform: capitalize;
  margin-top: 16px;
  margin-bottom: 24px;
}

.workflow-left p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 28px;
}

.workflow-timeline {
  display: flex;
  flex-direction: column;
  gap: 52px;
  position: relative;
  padding-left: 0;
}

/* Background track (white) */
.workflow-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 6px;
  bottom: 6px;
  width: 8px;
  background: #fff;
  border-radius: 4px;
}

/* Progress fill (purple, covers first ~2 steps) */
.workflow-timeline::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 6px;
  height: 196px;
  width: 8px;
  background: #C1B6F8;
  border-radius: 4px;
  z-index: 1;
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}

.workflow-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #110E34;
  z-index: 2;
}

.workflow-step.active .workflow-step-icon {
  background: #A38CF3;
  border-color: #A38CF3;
  color: #fff;
}

.workflow-step-text h4 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  line-height: 32px;
  margin-bottom: 12px;
}

.workflow-step-text p {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 26px;
}

/* ── Preise Section ──────────────────────────── */
.landing-preise {
  background: var(--bg);
  padding: 112px 0;
}

.preise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.preise-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--divider);
}

.preise-card-primary {
  border: 2px solid var(--accent);
  position: relative;
}

.preise-card-primary::before {
  content: "Beliebteste Wahl";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.preise-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.preise-card-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.preise-price {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.preise-period {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.preise-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preise-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
}

.preise-features li svg {
  flex-shrink: 0;
}

.preise-tx {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.preise-tx strong {
  color: var(--accent);
}

/* ── Vergleich Table ──────────────────────────── */
.vergleich-section {
  margin-top: 80px;
}

.vergleich-section h3 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}

.vergleich-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--divider);
  background: var(--surface);
}

.vergleich-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.vergleich-table th,
.vergleich-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
}

.vergleich-table thead th {
  background: var(--bg);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vergleich-table tbody tr:last-child td {
  border-bottom: none;
}

.vergleich-highlight {
  background: var(--accent-50);
}

.vergleich-table thead th.vergleich-highlight {
  background: var(--accent-light);
  color: var(--accent);
}

.vergleich-yes {
  color: var(--success);
  font-weight: 600;
}

.vergleich-no {
  color: var(--text-secondary);
}

.vergleich-partial {
  color: var(--warning);
  font-size: 13px;
}

/* ── Testimonial Initials ────────────────────── */
.testimonial-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
}

/* ── Testimonials Section ────────────────────── */
.landing-testimonials {
  background: var(--surface);
  padding: 112px 0 80px;
}

.testimonials-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.testimonials-left h2 {
  font-size: 48px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-primary);
  line-height: 58px;
  letter-spacing: -1px;
  text-transform: capitalize;
  margin-top: 16px;
}

.testimonial-quote {
  font-size: 20px;
  line-height: 34px;
  color: var(--text-primary);
  font-weight: 400;
}

.testimonial-divider {
  height: 1px;
  background: var(--divider);
  margin: 24px 0;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent-light);
}

.testimonial-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-arrows {
  display: flex;
  gap: 24px;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition);
}

.testimonial-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.testimonial-separator {
  height: 1px;
  background: var(--divider);
  margin: 64px 0;
}

.testimonial-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-size: 56px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 70px;
}

.stat-label {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 26px;
}

/* ── Blog Section ────────────────────────────── */
.landing-blog {
  background: var(--surface);
  padding: 112px 0 80px;
}

.blog-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.blog-header-left h2 {
  font-size: 48px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-primary);
  line-height: 58px;
  letter-spacing: -1px;
  text-transform: capitalize;
  margin-top: 16px;
}

.blog-header-right {
  padding-top: 37px;
}

.blog-header-right p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 26px;
  margin-bottom: 24px;
}

.btn-outlined {
  background: transparent;
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: 5000px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-outlined:hover {
  background: var(--text-primary);
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card-img {
  width: 100%;
  height: 240px;
  background: var(--bg);
  border-radius: 16px;
}

.blog-category {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.blog-category.cat-security { color: var(--destructive); }

.blog-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 28px;
}

.blog-date {
  font-size: 14px;
  color: var(--text-secondary);
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Blog Card Clickable ─────────────────────── */
a.blog-card {
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition);
}
a.blog-card:hover {
  transform: translateY(-4px);
}
a.blog-card:hover .blog-card-img {
  opacity: 0.9;
}

/* ── Blog Nav ────────────────────────────────── */
.blog-nav {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--divider);
  padding: 16px 0;
}
.blog-nav .landing-logo-full {
  height: 28px;
}
.blog-nav .landing-nav-links a {
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 5000px;
  transition: all var(--transition);
}
.blog-nav .landing-nav-links a:hover,
.blog-nav .landing-nav-links a.active {
  color: var(--text-primary);
  background: var(--bg);
}
.blog-nav .btn-hero-cta {
  background: var(--accent);
  color: #fff;
  border: none;
}
.blog-nav .btn-hero-cta:hover {
  background: var(--accent-hover);
}

/* ── Blog Listing Page ───────────────────────── */
.blog-listing-container {
  padding: 48px 0 80px;
  min-height: 80vh;
  background: var(--surface);
}

.blog-listing-header {
  text-align: center;
  margin-bottom: 48px;
}
.blog-listing-header h1 {
  font-size: 48px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.blog-listing-header p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 28px;
}

.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── Blog Detail Page ────────────────────────── */
.blog-detail-container {
  padding: 48px 0 80px;
  min-height: 80vh;
  background: var(--surface);
}

.blog-detail-back {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}
.blog-detail-back:hover {
  text-decoration: underline;
}

.blog-detail-article {
  max-width: 760px;
  margin: 0 auto;
}

.blog-detail-article .blog-detail-hero-img {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  margin-bottom: 32px;
}

.blog-detail-article h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.blog-detail-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-secondary);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--divider);
}
.blog-detail-meta .blog-category {
  margin-top: 0;
}

.blog-detail-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
}
.blog-detail-body h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 40px 0 16px;
}
.blog-detail-body h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.blog-detail-body p {
  margin-bottom: 16px;
}
.blog-detail-body ul, .blog-detail-body ol {
  margin: 16px 0;
  padding-left: 24px;
}
.blog-detail-body li {
  margin-bottom: 8px;
}
.blog-detail-body code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 15px;
}
.blog-detail-body pre {
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
}
.blog-detail-body pre code {
  background: none;
  padding: 0;
}
.blog-detail-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
}
.blog-detail-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 16px 0;
}
.blog-detail-body strong {
  font-weight: 600;
}

/* ── Shop Promo Section ──────────────────────── */
.landing-shop-promo {
  background: var(--surface);
  padding: 100px 0;
}

.shop-promo-row {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
}

.shop-promo-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shop-promo-image img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 16px;
}

.shop-promo-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-promo-text h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.shop-promo-text p {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
  max-width: 440px;
}

.shop-promo-text .btn-hero-cta-main {
  align-self: flex-start;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}

/* ── CTA Section ─────────────────────────────── */
.landing-cta-section {
  background: var(--surface);
  padding: 80px 0;
}

.landing-cta-card {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border-radius: 32px;
  overflow: hidden;
}

.landing-cta-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  border-radius: 32px;
}

.landing-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: soft-light;
  opacity: 0.3;
  border-radius: 32px;
}

.landing-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 751px;
  margin: 0 auto;
}

.landing-cta-card h2 {
  color: #fff;
  font-size: 72px;
  font-weight: 600;
  font-style: italic;
  line-height: 82px;
  letter-spacing: -2px;
  text-transform: capitalize;
}

.landing-cta-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  line-height: 30px;
  font-weight: 300;
}

/* ── Sales Team Page v2 ─────────────────────────── */
#sales-team-page {
  min-height: 100vh;
  background: var(--surface);
}

/* Hero */
.sales-hero-v2 {
  position: relative;
  background: var(--hero-gradient);
  padding: 0 64px 64px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sales-hero-grain {
  position: absolute;
  inset: 0;
  background-image: url('../img/grain.png');
  background-size: 1024px;
  mix-blend-mode: soft-light;
  opacity: 0.3;
  pointer-events: none;
}

.sales-hero-glow {
  position: absolute;
  top: 50%;
  right: -810px;
  transform: translateY(-50%);
  width: 3059px;
  height: 2888px;
  background-image: url('../img/hero-glow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.sales-nav-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  position: relative;
  z-index: 2;
}

.sales-nav-left-v2 {
  display: flex;
  align-items: center;
  gap: 0;
}

.sales-nav-link {
  padding: 8px 24px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 500px;
  transition: background 0.2s;
}

.sales-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
}

.sales-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sales-nav-right-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sales-btn-ghost {
  padding: 12px 24px;
  background: #fff;
  color: var(--text-primary);
  border: none;
  border-radius: 5000px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.sales-btn-ghost:hover {
  opacity: 0.9;
}

.sales-hero-content {
  text-align: center;
  color: #fff;
  padding: 40px 0 24px;
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.sales-hero-content h1 {
  font-size: 72px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -2px;
  margin: 0 0 24px;
}

.sales-hero-content p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.95;
}

/* Body: two-column layout */
.sales-body-v2 {
  display: flex;
  gap: 64px;
  padding: 112px 64px;
  background: var(--surface);
}

.sales-body-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sales-body-left h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.sales-contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sales-contact-row {
  display: flex;
  gap: 40px;
}

.sales-contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.sales-contact-label {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: #677489;
}

.sales-contact-value {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #1e1f23;
}

.sales-social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.sales-social-icon {
  width: 35px;
  height: 35px;
  border-radius: 500px;
  background: var(--accent-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.2s;
}

.sales-social-icon:hover {
  background: var(--accent-light);
}

.sales-social-icon.small {
  width: 32px;
  height: 32px;
  background: #f1f4f8;
  color: #677489;
}

.sales-social-icon.small:hover {
  background: var(--accent-50);
  color: var(--accent);
}

.sales-map-container {
  flex: 1;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  background: #f1f4f8;
  position: relative;
  display: block;
  text-decoration: none;
}

.sales-map-container img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 24px;
}

.sales-map-pin {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -100%);
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.sales-map-pin span {
  font-size: 16px;
  font-weight: 600;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sales-map-pin::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}

/* Form card */
.sales-body-right {
  flex: 1;
}

.sales-form-card {
  background: var(--surface);
  border: 1px solid #e3e8ef;
  border-radius: 24px;
  padding: 24px;
}

.sales-form-group {
  margin-bottom: 24px;
}

.sales-form-group label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #1e1f23;
  margin-bottom: 8px;
  line-height: 1.625;
}

.sales-form-group input,
.sales-form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border: 0.5px solid #cdd5e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  color: #364153;
  background: var(--surface);
  line-height: 1.625;
  transition: border-color 0.2s;
}

.sales-form-group input:focus,
.sales-form-group textarea:focus {
  outline: none;
  border-color: var(--accent-hover);
}

.sales-form-group input::placeholder,
.sales-form-group textarea::placeholder {
  color: #97a3b6;
}

.sales-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.sales-btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--hero-gradient);
  color: #fff;
  border: none;
  border-radius: 5000px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
  overflow: hidden;
}

.sales-btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/grain.png');
  background-size: 1024px;
  mix-blend-mode: soft-light;
  opacity: 0.3;
  border-radius: 5000px;
  pointer-events: none;
}

.sales-btn-submit:hover {
  opacity: 0.92;
}

.sales-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* FAQ Section */
.sales-faq-v2 {
  background: var(--accent-50);
  padding: 112px;
}

.sales-faq-header {
  text-align: center;
  margin-bottom: 64px;
}

.sales-faq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: #fff;
  border-radius: 500px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 16px;
}

.sales-faq-header h2 {
  font-size: 62px;
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.sales-faq-grid {
  display: flex;
  gap: 64px;
}

.sales-faq-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.sales-faq-item h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.33;
  color: var(--accent-hover);
  margin: 0 0 16px;
}

.sales-faq-item p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.44;
  color: #677489;
  margin: 0;
}

/* CTA Section */
.sales-cta-v2 {
  background: var(--surface);
  padding: 64px 32px;
}

.sales-cta-card {
  position: relative;
  background: var(--hero-gradient);
  border-radius: 32px;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  min-height: 413px;
}

.sales-cta-grain {
  position: absolute;
  inset: 0;
  background-image: url('../img/grain.png');
  background-size: 1024px;
  mix-blend-mode: soft-light;
  opacity: 0.3;
  pointer-events: none;
  border-radius: 32px;
}

.sales-cta-left {
  position: relative;
  z-index: 2;
  max-width: 391px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sales-cta-left h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -1px;
  color: #fff;
  text-transform: capitalize;
}

.sales-cta-left p {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: #fff;
}

.sales-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #fff;
  color: var(--text-primary);
  border: none;
  border-radius: 5000px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.sales-cta-btn:hover {
  opacity: 0.9;
}

.sales-cta-right {
  position: relative;
  z-index: 2;
  max-width: 369px;
}

.sales-cta-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sales-cta-info-block h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 16px;
}

.sales-cta-info-block p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.44;
  color: #fff;
  margin: 0;
}

.sales-cta-contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 8px;
}

.sales-cta-contact-line span {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.44;
}

.sales-cta-phone {
  position: absolute;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  width: 280px;
  z-index: 1;
  pointer-events: none;
}

.sales-cta-phone img {
  width: 100%;
  height: auto;
}

/* Footer v2 */
.sales-footer-v2 {
  background: var(--surface);
  padding: 32px 64px;
}

.sales-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sales-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sales-footer-brand img {
  height: 32px;
}

.sales-footer-columns {
  display: flex;
  gap: 32px;
}

.sales-footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 150px;
}

.sales-footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1;
}

.sales-footer-col a {
  font-size: 16px;
  font-weight: 300;
  color: #677489;
  text-decoration: none;
  line-height: 1.625;
  transition: color 0.2s;
}

.sales-footer-col a:hover {
  color: var(--accent);
}

.sales-footer-divider {
  height: 1px;
  background: var(--divider);
}

.sales-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sales-footer-bottom span {
  font-size: 16px;
  font-weight: 300;
  color: #677489;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
  .sales-hero-content h1 { font-size: 48px; }
  .sales-body-v2 { flex-direction: column; padding: 64px 32px; }
  .sales-faq-v2 { padding: 64px 32px; }
  .sales-faq-header h2 { font-size: 40px; }
  .sales-faq-grid { flex-direction: column; gap: 40px; }
  .sales-cta-card { flex-direction: column; align-items: flex-start; gap: 32px; min-height: auto; }
  .sales-cta-phone { display: none; }
  .sales-footer-top { flex-direction: column; gap: 32px; }
}

@media (max-width: 768px) {
  .sales-hero-v2 { padding: 0 24px 48px; }
  .sales-nav-v2 { flex-direction: column; gap: 12px; }
  .sales-nav-left-v2 { flex-wrap: wrap; justify-content: center; }
  .sales-hero-content h1 { font-size: 36px; letter-spacing: -1px; }
  .sales-hero-content p { font-size: 16px; }
  .sales-body-v2 { padding: 48px 24px; gap: 40px; }
  .sales-body-left h2 { font-size: 32px; }
  .sales-contact-row { flex-direction: column; gap: 24px; }
  .sales-faq-v2 { padding: 48px 24px; }
  .sales-faq-header h2 { font-size: 28px; }
  .sales-faq-col { gap: 40px; }
  .sales-faq-item h3 { font-size: 20px; }
  .sales-cta-v2 { padding: 32px 16px; }
  .sales-cta-card { padding: 32px; }
  .sales-cta-left h2 { font-size: 32px; }
  .sales-footer-v2 { padding: 32px 24px; }
  .sales-footer-columns { flex-direction: column; gap: 24px; }
  .sales-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── Contact Section ─────────────────────────── */
.landing-contact {
  background: var(--bg);
  padding: 80px 0;
}

.landing-section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

.contact-form-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 4px;
}

.contact-form-group {
  margin-bottom: 16px;
}

.contact-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--divider);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2397A3B6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.contact-form-error {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.contact-form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.btn-contact-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-contact-submit:hover {
  background: var(--accent-hover);
}

.btn-contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-card {
    padding: 24px;
  }

}

/* ── Footer ──────────────────────────────────── */
.landing-footer {
  padding: 48px 0 0;
  border-top: 1px solid var(--divider);
  background: var(--surface);
}

.landing-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .landing-logo {
  color: var(--accent);
}

.footer-brand .landing-logo-icon {
  color: #fff;
}

.footer-logo-icon {
  background: var(--accent) !important;
}

.footer-logo-icon .landing-logo-img {
  filter: brightness(0) invert(1);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-subscribe p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 22px;
}

.footer-email-form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: 5000px;
  padding: 4px 4px 4px 16px;
  gap: 8px;
  margin-top: 8px;
}

.footer-email-icon { display: flex; flex-shrink: 0; }

.footer-email-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  min-width: 0;
}

.footer-email-form input::placeholder { color: var(--text-tertiary); }

.footer-send-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 5000px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
  flex-shrink: 0;
}

.footer-send-btn:hover { background: var(--accent-hover); }

.landing-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--divider);
}

.landing-footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-icon:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Landing Responsive ──────────────────────── */
@media (max-width: 1024px) {
  .landing-hero {
    padding: 40px 32px 48px;
  }

  .landing-hero-content {
    min-height: auto;
  }

  .hero-asset {
    display: none;
  }

  .landing-hero-text h1 {
    font-size: 48px;
    line-height: 56px;
  }

  .landing-section-inner {
    padding: 0 32px;
  }

  .services-grid,
  .blog-grid,
  .blog-listing-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
  }

  .feature-card:nth-child(n) {
    grid-column: span 1 !important;
  }

  .workflow-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .branchen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preise-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .testimonial-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-header-right { padding-top: 0; }

  .landing-cta-card h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .landing-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-subscribe {
    grid-column: span 2;
  }
}

/* ── Mobile Hamburger (hidden on desktop) ────── */
.mobile-hamburger {
  display: none;
}

/* ── Mobile Menu Drawer (hidden by default) ──── */
.mobile-menu-drawer {
  display: none;
}

@media (max-width: 768px) {
  /* ── Navbar: hide white bar, show hamburger ── */
  .landing-nav-bar {
    display: none;
  }

  .mobile-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 11;
  }

  .mobile-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }

  .landing-nav-inner {
    padding: 0 20px;
    position: relative;
    height: 56px;
  }

  .landing-nav-left {
    flex: 1;
  }

  .landing-logo-full {
    height: 24px;
  }

  /* ── Mobile Menu Drawer ── */
  .mobile-menu-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-menu-drawer.open {
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-menu-drawer.open .mobile-menu-overlay {
    opacity: 1;
  }

  .mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu-drawer.open .mobile-menu-panel {
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--divider, #eee);
  }

  .mobile-menu-header .landing-logo-full {
    height: 24px;
  }

  .mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-secondary, #666);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-close:hover {
    color: var(--text-primary, #111);
  }

  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    flex: 1;
  }

  .mobile-menu-links a {
    color: var(--text-primary, #1a1a2e);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid var(--divider, #f0f0f0);
    transition: color 0.2s;
  }

  .mobile-menu-links a:last-child {
    border-bottom: none;
  }

  .mobile-menu-links a:hover {
    color: var(--accent, #652CD1);
  }

  .mobile-menu-actions {
    padding-top: 24px;
    border-top: 1px solid var(--divider, #eee);
  }

  .mobile-menu-login {
    width: 100%;
    text-align: center;
    background: var(--accent, #652CD1);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 5000px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
  }

  .mobile-menu-login:hover {
    background: var(--accent-hover, #5424b5);
  }

  .mobile-menu-sales {
    width: 100%;
    text-align: center;
    background: transparent;
    color: var(--accent, #652CD1);
    border: 1.5px solid var(--accent, #652CD1);
    padding: 14px 24px;
    border-radius: 5000px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-menu-sales:hover {
    background: var(--accent-light, rgba(101, 44, 209, 0.08));
  }

  /* ── Hero: centered layout, phone visible ── */
  .landing-hero {
    padding: 20px 20px 0;
  }

  .landing-hero-content {
    min-height: auto;
    padding-top: 32px;
  }

  .landing-hero-text {
    align-items: center;
    text-align: center;
    max-width: 100%;
    gap: 20px;
  }

  .landing-hero-text h1 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1px;
  }

  .landing-hero-text p {
    font-size: 16px;
    line-height: 24px;
  }

  .landing-badge-hero {
    font-size: 13px;
    padding: 6px 16px;
  }

  .btn-hero-cta-main {
    padding: 14px 32px;
    font-size: 15px;
  }

  /* Show phone mockup on mobile */
  .hero-asset {
    display: block !important;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
    margin: 32px auto 0;
    max-width: 300px;
  }

  .hero-phone-img {
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
  }

  .hero-stat-card {
    width: 150px;
    padding: 10px;
    gap: 6px;
    border-radius: 10px;
  }

  .hero-stat-left {
    top: 60px;
    left: -30px;
    transform: rotate(-5deg);
  }

  .hero-stat-right {
    top: auto;
    bottom: 80px;
    right: -30px;
    transform: rotate(5deg);
  }

  .hero-stat-value {
    font-size: 16px;
  }

  .hero-stat-label {
    font-size: 10px;
  }

  .hero-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }

  .hero-stat-icon svg {
    width: 16px;
    height: 16px;
  }

  /* ── Sections: general mobile styles ── */
  .landing-section-inner {
    padding: 0 20px;
  }

  .landing-services,
  .landing-features,
  .landing-branchen,
  .landing-preise,
  .landing-testimonials,
  .landing-blog,
  .landing-workflow,
  .landing-shop-promo {
    padding: 56px 0;
  }

  .shop-promo-row {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .shop-promo-image img {
    max-height: 280px;
  }

  .shop-promo-text h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .shop-promo-text p {
    font-size: 15px;
    line-height: 22px;
  }

  .shop-promo-text .btn-hero-cta-main {
    align-self: center;
  }

  .branchen-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .preise-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .vergleich-section {
    margin-top: 48px;
  }

  .vergleich-section h3 {
    font-size: 24px;
  }

  .vergleich-table {
    font-size: 13px;
  }

  .vergleich-table th,
  .vergleich-table td {
    padding: 10px 12px;
  }

  .landing-section-header {
    text-align: center;
  }

  .landing-section-header h2,
  .workflow-left h2,
  .testimonials-left h2,
  .blog-header-left h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .landing-section-header p,
  .landing-section-subtitle {
    font-size: 15px;
    line-height: 22px;
  }

  .landing-badge {
    margin: 0 auto 12px;
  }

  /* ── Services ── */
  .services-grid {
    gap: 24px;
  }

  .service-card {
    border-radius: 16px;
  }

  .service-card-desc h3 {
    font-size: 20px;
  }

  .service-card-desc p {
    font-size: 14px;
  }

  /* ── Features ── */
  .features-grid {
    gap: 20px;
  }

  .feature-card {
    border-radius: 16px;
  }

  .feature-card-desc h3 {
    font-size: 18px;
  }

  .feature-card-desc p {
    font-size: 14px;
  }

  /* ── Workflow ── */
  .workflow-left {
    text-align: center;
  }

  .workflow-left .landing-badge-hero {
    margin: 0 auto;
  }

  .workflow-left p {
    font-size: 15px;
    line-height: 22px;
  }

  .workflow-timeline {
    gap: 36px;
  }

  .workflow-step-icon {
    width: 40px;
    height: 40px;
  }

  .workflow-timeline::before,
  .workflow-timeline::after {
    left: 16px;
    width: 6px;
  }

  .workflow-timeline::after {
    height: 150px;
  }

  .workflow-step-text h4 {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 8px;
  }

  .workflow-step-text p {
    font-size: 15px;
    line-height: 22px;
  }

  /* ── Testimonials ── */
  .testimonials-left {
    text-align: center;
  }

  .testimonials-left .landing-badge {
    margin: 0 auto 12px;
  }

  .testimonial-quote {
    font-size: 16px;
    line-height: 26px;
  }

  .testimonial-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-number {
    font-size: 36px;
    line-height: 44px;
  }

  .stat-label {
    font-size: 13px;
  }

  /* ── Blog ── */
  .blog-header {
    text-align: center;
  }

  .blog-header-right {
    text-align: center;
  }

  .blog-header-right .btn-outlined {
    margin: 0 auto;
  }

  /* Blog listing/detail pages */
  .blog-listing-header h1 {
    font-size: 28px;
  }
  .blog-listing-header p {
    font-size: 15px;
  }
  .blog-detail-article h1 {
    font-size: 26px;
  }
  .blog-detail-article .blog-detail-hero-img {
    height: 220px;
  }
  .blog-detail-body h2 {
    font-size: 20px;
  }
  .blog-nav .landing-nav-links {
    display: flex;
  }

  /* ── CTA ── */
  .landing-cta-card {
    padding: 48px 24px;
    border-radius: 20px;
  }

  .landing-cta-card h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .landing-cta-card p {
    font-size: 15px;
  }

  /* ── Footer ── */
  .landing-footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-subscribe {
    grid-column: span 1;
  }

  .footer-brand .landing-logo {
    justify-content: center;
  }

  .footer-col {
    align-items: center;
  }

  .landing-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  /* ── Contact ── */
  .contact-form-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .landing-hero-text h1 {
    font-size: 26px;
    line-height: 34px;
  }

  .landing-cta-card {
    padding: 36px 16px;
  }

  .landing-cta-card h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .testimonial-stats {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 32px;
  }

  .hero-asset {
    max-width: 240px;
  }

  .hero-stat-card {
    width: 130px;
    padding: 8px;
  }

  .hero-stat-left {
    left: -20px;
  }

  .hero-stat-right {
    right: -20px;
  }

  .hero-stat-value {
    font-size: 14px;
  }

  .landing-section-header h2,
  .workflow-left h2,
  .testimonials-left h2,
  .blog-header-left h2 {
    font-size: 24px;
    line-height: 32px;
  }
}

/* ══════════════════════════════════════════════════
   Icon Picker & Image Upload
   ══════════════════════════════════════════════════ */

/* ── Icon Picker Grid ────────────────────────── */
.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}

.icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 2px solid var(--divider);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
}

.icon-option:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.icon-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}

.icon-option .icon-emoji {
  font-size: 24px;
  line-height: 1;
}

.icon-option .icon-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ── Image Upload Area ───────────────────────── */
.image-upload-area {
  border: 2px dashed var(--divider);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.image-upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.image-upload-placeholder {
  color: var(--text-tertiary);
  font-size: 14px;
}

.image-upload-placeholder svg {
  display: block;
  margin: 0 auto 8px;
  width: 32px;
  height: 32px;
  color: var(--text-tertiary);
}

.image-preview {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.image-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--destructive);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}

.image-remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* ── Catalog Card Thumbnail ──────────────────── */
.catalog-card-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   MFA / Two-Factor Authentication
   ══════════════════════════════════════════════════ */

.mfa-icon {
  text-align: center;
  font-size: 48px;
  margin-bottom: 16px;
}

.mfa-code-input {
  text-align: center;
  font-size: 28px !important;
  font-family: 'SF Mono', 'Fira Code', monospace !important;
  letter-spacing: 8px;
  padding: 14px 16px !important;
}

.mfa-resend {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}

.mfa-resend a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.mfa-resend a:hover {
  text-decoration: underline;
}

.mfa-qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.mfa-qr-container canvas {
  border-radius: var(--radius-sm);
  border: 1px solid var(--divider);
}

.mfa-secret-text {
  text-align: center;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  word-break: break-all;
}

/* ══════════════════════════════════════════════════
   Setup Wizard (Post-Approval)
   ══════════════════════════════════════════════════ */

.setup-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 4px;
}

.setup-progress { margin-bottom: 32px; }

.setup-progress-track {
  height: 4px;
  background: var(--divider);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.setup-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

.setup-steps-indicator {
  display: flex;
  justify-content: space-between;
}

.setup-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
}

.setup-step-dot span {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  transition: color var(--transition);
}

.setup-step-dot.active span { color: var(--accent); font-weight: 600; }
.setup-step-dot.completed span { color: var(--success); }

.setup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--divider);
  border: 2px solid var(--divider);
  transition: all var(--transition);
}

.setup-step-dot.active .setup-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.setup-step-dot.completed .setup-dot {
  background: var(--success);
  border-color: var(--success);
}

.setup-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.setup-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--divider);
}

.setup-card-header > div:nth-child(2) { flex: 1; }
.setup-card-header h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.setup-card-header p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

.setup-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.setup-card-body { padding: 24px; }
.setup-card-body .settings-form { max-width: 100%; }

.setup-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.setup-card-complete {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--success);
  font-weight: 500;
  font-size: 15px;
}

.setup-card-complete .btn { margin-left: auto; }

.setup-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.setup-info-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 16px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.setup-complete-banner {
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.setup-complete-icon { font-size: 48px; margin-bottom: 16px; }
.setup-complete-banner h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.setup-complete-banner p { color: var(--text-secondary); font-size: 15px; }

#nav-setup { position: relative; }
#nav-setup .setup-indicator-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

/* ═══ Transactions Tab ═══ */

.tx-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tx-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tx-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-filter-chips {
  display: flex;
  gap: 6px;
}

.tx-chip {
  padding: 6px 14px;
  border: 1px solid var(--divider);
  border-radius: 20px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.tx-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tx-chip.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.tx-count {
  font-size: 13px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* List header */
.tx-list-header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--divider);
}

.tx-col-icon { width: 48px; flex-shrink: 0; }
.tx-col-info { flex: 1; min-width: 0; }
.tx-col-status { width: 120px; text-align: center; flex-shrink: 0; }
.tx-col-amount { width: 120px; text-align: right; flex-shrink: 0; }

/* Transaction rows */
.tx-list {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--divider);
  overflow: hidden;
}

.tx-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background var(--transition);
}

.tx-row:last-child {
  border-bottom: none;
}

.tx-row:hover {
  background: var(--accent-50);
}

.tx-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  margin-right: 14px;
}

.tx-row-icon svg { flex-shrink: 0; }

.tx-icon-muted {
  background: rgba(239, 68, 68, 0.08);
  color: var(--destructive);
}

.tx-row-info {
  flex: 1;
  min-width: 0;
}

.tx-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.tx-row-subtitle {
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 4px;
}

.tx-row-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-row-status {
  width: 120px;
  text-align: center;
  flex-shrink: 0;
}

.tx-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.status-completed {
  background: var(--success-light);
  color: var(--success);
}

.status-refunded {
  background: var(--destructive-light);
  color: var(--destructive);
}

.status-voided {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-tertiary);
}

.tx-row-amount {
  width: 120px;
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--text-primary);
}

.tx-amount-refunded {
  color: var(--destructive);
  text-decoration: line-through;
}

.tx-amount-voided {
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.tx-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ── Transaction Detail Modal ── */

.tx-detail-modal {
  max-width: 640px;
}

.tx-detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.tx-detail-header-row h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tx-detail-date {
  font-size: 13px;
  color: var(--text-tertiary);
}

.tx-detail-section {
  margin-bottom: 20px;
}

.tx-detail-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.tx-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tx-detail-table th {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.tx-detail-table th:last-child,
.tx-detail-table td:last-child {
  text-align: right;
}

.tx-detail-table th:nth-child(2),
.tx-detail-table td:nth-child(2),
.tx-detail-table th:nth-child(3),
.tx-detail-table td:nth-child(3) {
  text-align: center;
}

.tx-detail-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}

.tx-detail-table tr:last-child td {
  border-bottom: none;
}

.tx-detail-item-name { font-weight: 500; }

.tx-detail-modifiers {
  margin-top: 4px;
}

.tx-detail-modifier {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* Totals */
.tx-detail-totals {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.tx-detail-total-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.tx-detail-discount {
  color: var(--success);
}

.tx-detail-total-final {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  border-top: 1px solid var(--divider);
  margin-top: 6px;
  padding-top: 8px;
}

/* Payment info */
.tx-detail-payment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.tx-detail-payment-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--divider);
}

.tx-detail-payment-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.tx-detail-payment-amount {
  font-size: 14px;
  font-weight: 600;
}

/* Actions */
.tx-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--divider);
}

.btn-secondary:hover {
  background: var(--divider);
}

.btn-destructive {
  background: var(--destructive);
  color: #ffffff;
}

.btn-destructive:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ── Receipt Modal ── */

.receipt-modal-content {
  max-width: 400px;
}

.receipt-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.receipt-paper {
  background: #fff;
  padding: 24px 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #111;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.receipt-header {
  text-align: center;
  margin-bottom: 12px;
}

.receipt-company {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.receipt-address, .receipt-vat {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

.receipt-divider {
  border-top: 1px dashed #ccc;
  margin: 10px 0;
}

.receipt-order-info {
  font-size: 12px;
}

.receipt-item {
  margin: 6px 0;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.receipt-modifier {
  font-size: 11px;
  color: #888;
  padding-left: 16px;
}

.receipt-totals {
  font-size: 13px;
}

.receipt-total-line {
  font-weight: 700;
  font-size: 16px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #ccc;
}

.receipt-tax {
  font-size: 11px;
  color: #666;
}

.receipt-tax-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.receipt-payment {
  font-size: 12px;
}

.receipt-refunded-badge {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--destructive);
  border: 2px solid var(--destructive);
  padding: 6px;
  margin: 12px 0;
  transform: rotate(-5deg);
  letter-spacing: 2px;
}

.receipt-tse {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 10px;
  margin-top: 10px;
  font-size: 10px;
  word-break: break-all;
}

.receipt-tse-title {
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 4px;
}

.receipt-tse-row {
  margin: 2px 0;
}

.receipt-tse-sig {
  font-family: monospace;
  font-size: 9px;
  color: #555;
  word-break: break-all;
}

.receipt-qr {
  text-align: center;
  margin-top: 8px;
}

.receipt-qr canvas {
  display: inline-block;
}

.receipt-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #888;
}

/* ══ Addons Section ══ */
.addons-summary { display: flex; gap: 16px; align-items: center; }
.addons-summary-item { font-size: 14px; color: var(--text-secondary); }
.section-subtitle { font-size: 14px; color: var(--text-secondary); margin: -8px 0 20px; }
.addons-category { margin-bottom: 28px; }
.addons-category-title { font-size: 15px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.addons-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.addon-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border-radius: var(--radius-sm); border: 1.5px solid var(--divider); transition: var(--transition); }
.addon-card.active { border-color: var(--accent); background: var(--accent-50); }
.addon-icon { font-size: 24px; min-width: 36px; text-align: center; }
.addon-info { flex: 1; min-width: 0; }
.addon-name { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.addon-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.addon-dep-warning { font-size: 11px; color: var(--warning); margin-top: 4px; font-style: italic; }
.addon-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.addon-toggle input { opacity: 0; width: 0; height: 0; }
.addon-slider { position: absolute; cursor: pointer; inset: 0; background-color: var(--divider); border-radius: 24px; transition: 0.3s; }
.addon-slider:before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; border-radius: 50%; transition: 0.3s; }
.addon-toggle input:checked + .addon-slider { background-color: var(--accent); }
.addon-toggle input:checked + .addon-slider:before { transform: translateX(20px); }

/* ══ Bookings Section ══ */
.bookings-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.bookings-date { font-weight: 600; font-size: 16px; color: var(--text-primary); min-width: 200px; text-align: center; }
.bookings-badge { font-size: 13px; color: var(--text-secondary); margin-left: auto; }
.bookings-container { min-height: 200px; }
.bookings-view-toggle { display: flex; gap: 4px; }
.booking-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--divider); margin-bottom: 8px; }
.booking-time { font-weight: 600; font-size: 14px; color: var(--accent); min-width: 120px; }
.booking-details { flex: 1; min-width: 0; }
.booking-customer { font-weight: 600; font-size: 14px; }
.booking-service { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.booking-meta { font-size: 12px; color: var(--text-secondary); }

/* ══ Kitchen Section ══ */
.kitchen-controls { display: flex; align-items: center; gap: 8px; }
.kitchen-badge { font-size: 13px; color: var(--text-secondary); margin-left: 8px; }
.kitchen-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; min-height: 200px; }
.kitchen-card { padding: 16px; background: var(--surface); border-radius: var(--radius-sm); border: 2px solid var(--divider); transition: var(--transition); }
.kitchen-card.status-sent { border-left: 4px solid var(--accent-blue); }
.kitchen-card.status-preparing { border-left: 4px solid var(--warning); }
.kitchen-card.status-ready { border-left: 4px solid var(--success); }
.kitchen-card.status-served { border-left: 4px solid var(--divider); opacity: 0.6; }
.kitchen-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.kitchen-order-num { font-weight: 700; font-size: 16px; }
.kitchen-status-badge { font-size: 12px; padding: 2px 8px; border-radius: 12px; font-weight: 500; }
.kitchen-status-badge.status-sent { background: var(--accent-light); color: var(--accent); }
.kitchen-status-badge.status-preparing { background: var(--warning-light); color: var(--warning); }
.kitchen-status-badge.status-ready { background: var(--success-light); color: var(--success); }
.kitchen-elapsed { font-size: 12px; color: var(--text-secondary); margin-left: auto; }
.kitchen-table { font-size: 11px; color: var(--text-secondary); background: var(--accent-50); padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 6px; }
.kitchen-items { margin-bottom: 10px; }
.kitchen-line-item { display: flex; gap: 6px; padding: 4px 0; font-size: 13px; }
.kitchen-qty { font-weight: 700; color: var(--accent); min-width: 24px; }
.kitchen-mods { font-size: 11px; color: var(--text-secondary); font-style: italic; }
.kitchen-actions { display: flex; gap: 8px; }

/* ══ Invoices Section ══ */
.invoices-controls { display: flex; gap: 4px; flex-wrap: wrap; }
.invoices-stats { display: flex; gap: 12px; margin-bottom: 16px; }
.invoices-stats .stat-card { flex: 1; padding: 16px; background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--divider); text-align: center; }
.invoices-stats .stat-label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.invoices-stats .stat-card strong { font-size: 18px; color: var(--text-primary); }
.invoices-container { min-height: 200px; }
.invoice-table-header { display: flex; gap: 8px; padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--divider); }
.invoice-row { display: flex; gap: 8px; padding: 12px 16px; align-items: center; border-bottom: 1px solid var(--divider); font-size: 14px; }
.invoice-row:hover { background: var(--accent-50); }
.inv-col-num { width: 130px; font-weight: 600; }
.inv-col-customer { flex: 1; min-width: 0; }
.inv-col-date { width: 100px; color: var(--text-secondary); }
.inv-col-amount { width: 100px; text-align: right; font-weight: 600; }
.inv-col-status { width: 100px; text-align: center; }

/* ══ Shared badges ══ */
.badge-info { background: var(--accent-light); color: var(--accent); }
.badge-muted { background: var(--divider); color: var(--text-secondary); }
.badge-warning { background: var(--warning-light); color: var(--warning); }

/* ══ Empty state ══ */
.empty-state { text-align: center; padding: 48px 16px; color: var(--text-secondary); }

/* ── Print Styles ── */
@media print {
  body * {
    visibility: hidden;
  }
  #receipt-modal,
  #receipt-modal .modal-content,
  #receipt-content,
  #receipt-content * {
    visibility: visible;
  }
  #receipt-modal {
    position: absolute;
    inset: 0;
    background: #fff;
  }
  #receipt-modal .modal-content {
    box-shadow: none;
    border: none;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
  }
  #receipt-modal .modal-header {
    display: none;
  }
  .receipt-paper {
    box-shadow: none;
    border: none;
  }
}

/* ═══ Legal Pages ═══════════════════════════════════════ */

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-nav {
  background: var(--hero-gradient);
  padding: 20px 0;
}

.legal-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-nav .landing-logo-full { height: 28px; }

.legal-nav-back {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.legal-nav-back:hover { color: #fff; }

.legal-content {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 64px 80px;
  width: 100%;
}

.legal-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-content .legal-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-primary);
}

.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #000;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: #000;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover { text-decoration: underline; }

.legal-info-card {
  background: var(--accent-50);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
}

.legal-info-card p {
  color: var(--text-primary);
  margin-bottom: 4px;
}

.legal-info-card p:last-child { margin-bottom: 0; }

.legal-footer {
  border-top: 1px solid var(--divider);
  padding: 24px 0;
  text-align: center;
}

.legal-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.legal-footer-links { display: flex; gap: 24px; }
.legal-footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.legal-footer-links a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .legal-nav-inner { padding: 0 24px; }
  .legal-content { padding: 32px 24px 64px; }
  .legal-content h1 { font-size: 26px; }
  .legal-footer-inner { padding: 0 24px; flex-direction: column; gap: 12px; }
}

/* ═══ Branchen (Industry) Pages ══════════════════════════ */

.branchen-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text-primary);
}

/* ── Branchen Nav ── */
.branchen-nav {
  background: var(--hero-gradient);
  padding: 20px 0;
}

.branchen-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.branchen-nav .landing-logo-full { height: 28px; }

.branchen-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.branchen-nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.branchen-nav-links a:hover { color: #fff; }

.branchen-nav-links .btn-branchen-login {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 20px;
  border-radius: 5000px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.branchen-nav-links .btn-branchen-login:hover {
  background: rgba(255,255,255,0.25);
}

/* ── Breadcrumb ── */
.branchen-breadcrumb {
  background: var(--hero-gradient);
  padding: 0 0 12px;
}

.branchen-breadcrumb-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  font-size: 13px;
}

.branchen-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.branchen-breadcrumb a:hover { color: rgba(255,255,255,0.8); }

.branchen-breadcrumb span { color: rgba(255,255,255,0.8); }

/* ── Branchen Hero ── */
.branchen-hero {
  background: var(--hero-gradient);
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
}

.branchen-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.branchen-hero-text {
  color: #fff;
}

.branchen-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 20px;
  border-radius: 500px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.branchen-hero-text h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.branchen-hero-text h2 {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

.branchen-hero-text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

.btn-branchen-cta {
  display: inline-block;
  background: #fff;
  color: var(--text-primary);
  border: none;
  padding: 14px 32px;
  border-radius: 5000px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-branchen-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-branchen-cta-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 13px 28px;
  border-radius: 5000px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  margin-left: 12px;
}

.btn-branchen-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.branchen-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.branchen-hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}

/* ── Pain Point Sections ── */
.branchen-section {
  padding: 80px 0;
}

.branchen-section:nth-child(even) {
  background: var(--bg);
}

.branchen-section:nth-child(odd) {
  background: #fff;
}

.branchen-section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.branchen-section-inner.reverse {
  direction: rtl;
}

.branchen-section-inner.reverse > * {
  direction: ltr;
}

.branchen-section-text h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.branchen-section-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 16px;
}

.branchen-section-text .highlight-stat {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
}

.branchen-section-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

/* ── Features Grid ── */
.branchen-features {
  padding: 80px 0;
  background: var(--bg);
}

.branchen-features-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.branchen-features-header {
  text-align: center;
  margin-bottom: 48px;
}

.branchen-features-header .landing-badge {
  margin-bottom: 16px;
}

.branchen-features-header h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.branchen-features-header p {
  font-size: 16px;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.branchen-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.branchen-feature-card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.branchen-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-light);
}

.branchen-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.branchen-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.branchen-feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* ── Pricing Snippet ── */
.branchen-pricing {
  padding: 80px 0;
  background: #fff;
}

.branchen-pricing-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 64px;
  text-align: center;
}

.branchen-pricing-header h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.branchen-pricing-header p {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
}

.branchen-pricing-card {
  background: var(--bg);
  border: 2px solid var(--divider);
  border-radius: var(--radius);
  padding: 40px;
  text-align: left;
  margin-bottom: 32px;
}

.branchen-pricing-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.branchen-pricing-card .price-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -2px;
}

.branchen-pricing-card .price-period {
  font-size: 16px;
  color: #555;
}

.branchen-pricing-card .price-fee {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.branchen-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.branchen-pricing-features li {
  font-size: 15px;
  color: var(--text-primary);
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 10px;
}

.branchen-pricing-features li:last-child { border-bottom: none; }

.branchen-pricing-features .check {
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
}

/* ── Comparison Table ── */
.branchen-comparison {
  padding: 80px 0;
  background: var(--bg);
}

.branchen-comparison-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 64px;
}

.branchen-comparison h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.branchen-comparison table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.branchen-comparison th {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  background: var(--bg);
  border-bottom: 2px solid var(--divider);
  color: var(--text-primary);
}

.branchen-comparison th:first-child {
  text-align: left;
}

.branchen-comparison th.highlight {
  background: var(--accent);
  color: #fff;
}

.branchen-comparison td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--divider);
  color: var(--text-primary);
}

.branchen-comparison td:first-child {
  text-align: left;
  font-weight: 500;
}

.branchen-comparison tr:last-child td { border-bottom: none; }

.branchen-comparison .yes { color: var(--success); font-weight: 700; }
.branchen-comparison .no { color: var(--text-tertiary); }

/* ── CTA Banner ── */
.branchen-cta {
  padding: 80px 0;
  background: var(--hero-gradient);
  text-align: center;
}

.branchen-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 64px;
}

.branchen-cta h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.branchen-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── Branchen Footer (reuses legal-footer) ── */

/* ── Responsive ── */
@media (max-width: 1024px) {
  .branchen-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .branchen-hero-image { order: -1; }

  .branchen-section-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .branchen-section-inner.reverse { direction: ltr; }

  .branchen-section-image { order: -1; }

  .branchen-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .branchen-nav-inner { padding: 0 24px; }
  .branchen-breadcrumb-inner { padding: 0 24px; }
  .branchen-hero-inner { padding: 0 24px; }
  .branchen-hero-text h1 { font-size: 32px; }
  .branchen-hero-text h2 { font-size: 16px; }

  .branchen-section-inner { padding: 0 24px; }
  .branchen-section-text h2 { font-size: 24px; }

  .branchen-features-inner { padding: 0 24px; }
  .branchen-features-grid { grid-template-columns: 1fr; }
  .branchen-features-header h2 { font-size: 24px; }

  .branchen-pricing-inner { padding: 0 24px; }
  .branchen-pricing-header h2 { font-size: 24px; }
  .branchen-pricing-card .price-amount { font-size: 36px; }

  .branchen-comparison-inner { padding: 0 24px; }
  .branchen-comparison h2 { font-size: 22px; }
  .branchen-comparison table { font-size: 12px; }
  .branchen-comparison th,
  .branchen-comparison td { padding: 8px 6px; }

  .branchen-cta-inner { padding: 0 24px; }
  .branchen-cta h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .branchen-hero { padding: 24px 0 48px; }
  .branchen-section { padding: 48px 0; }
  .branchen-features { padding: 48px 0; }
  .branchen-pricing { padding: 48px 0; }
  .branchen-comparison { padding: 48px 0; }
  .branchen-cta { padding: 48px 0; }

  .branchen-nav-links a:not(.btn-branchen-login) { display: none; }
  .btn-branchen-cta-outline { display: none; }

  .branchen-pricing-card .price-row { flex-direction: column; gap: 4px; }
}

/* ═══ Super-Admin Design System ═════════════════════════ */

/* When superAdmin is active, kill old sidebar + main-content padding */
#dashboard.sa-mode > .sidebar,
#dashboard.sa-mode > .sidebar-overlay,
#dashboard.sa-mode > .mobile-sidebar-toggle {
  display: none !important;
}

#dashboard.sa-mode > .main-content {
  padding: 0;
}

#section-admin {
  --sa-sidebar-bg: #0f0f13;
  --sa-sidebar-active: #1a1a22;
  --sa-sidebar-text: #ccc;
  --sa-sidebar-muted: #888;
  --sa-sidebar-group: #888;
  --sa-bg: #fafafa;
  --sa-card: #fff;
  --sa-border: #e5e7eb;
  --sa-border-light: #f3f4f6;
  --sa-text: #111;
  --sa-text-secondary: #555;
  --sa-text-label: #777;
  --sa-accent: #652CD1;
  --sa-accent-light: #F5F3FE;
  --sa-success: #10b981;
  --sa-success-light: #ECFDF5;
  --sa-warning: #f59e0b;
  --sa-warning-light: #FEF3CD;
  --sa-error: #ef4444;
  --sa-error-light: #FEF2F2;
  --sa-radius: 10px;
  --sa-radius-sm: 6px;

}

/* ── Layout ──────────────────────────────────────────── */

.sa-layout {
  display: flex;
  min-height: 100vh;
}

.sa-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: var(--sa-sidebar-bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 110;
}

.sa-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.sa-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
}

.sa-sidebar-nav {
  flex: 1;
  padding: 4px 8px;
  overflow-y: auto;
}

.sa-sidebar-group {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sa-sidebar-group);
  padding: 0 12px;
  margin-top: 20px;
  margin-bottom: 4px;
}

.sa-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: var(--sa-radius-sm);
  color: var(--sa-sidebar-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.sa-sidebar-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.sa-sidebar-btn.active {
  background: var(--sa-sidebar-active);
  color: #fff;
}

.sa-sidebar-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.sa-sidebar-btn.active svg { opacity: 1; }

.sa-sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 14px;
  margin-top: auto;
}

.sa-system-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sa-system-dots span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--sa-sidebar-muted);
}

.sa-system-dots span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sa-success);
  flex-shrink: 0;
}

.sa-system-dots span.warn::before { background: var(--sa-warning); }
.sa-system-dots span.err::before { background: var(--sa-error); }

.sa-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sa-user-info .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sa-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sa-user-info .meta {
  display: flex;
  flex-direction: column;
}

.sa-user-info .meta .name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.sa-user-info .meta .role {
  font-size: 11px;
  color: var(--sa-sidebar-muted);
}

.sa-main {
  margin-left: 220px;
  padding: 24px;
  min-height: 100vh;
  background: var(--sa-bg);
  flex: 1;
}

/* ── Pages ───────────────────────────────────────────── */

.sa-page { animation: fadeIn 0.15s ease; }
.sa-page.hidden { display: none; }

.sa-page-header { margin-bottom: 24px; }

.sa-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--sa-text);
  margin: 0;
}

.sa-page-subtitle {
  font-size: 13px;
  color: var(--sa-text-secondary);
  margin-top: 4px;
}

/* ── Cards ───────────────────────────────────────────── */

.sa-card {
  background: var(--sa-card);
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius);
  overflow: hidden;
}

.sa-card-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--sa-border);
}

.sa-card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--sa-text);
  margin: 0;
}

.sa-card-body { padding: 20px; }
.sa-card-body.no-pad { padding: 0; }

/* ── Tables ──────────────────────────────────────────── */

.sa-table {
  width: 100%;
  border-collapse: collapse;
}

.sa-table thead th {
  padding: 10px 16px;
  background: #f9fafb;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sa-text-label);
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--sa-border);
}

.sa-table tbody td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--sa-text);
  border-bottom: 1px solid var(--sa-border-light);
}

.sa-table tbody tr:last-child td { border-bottom: none; }
.sa-table tbody tr:hover { background: #f9fafb; }

/* ── Tabs ────────────────────────────────────────────── */

.sa-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--sa-border);
  margin-bottom: 20px;
  gap: 0;
}

.sa-tab {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--sa-text-label);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}

.sa-tab:hover { color: var(--sa-text); }

.sa-tab.active {
  color: var(--sa-accent);
  border-bottom-color: var(--sa-accent);
  font-weight: 600;
}

.sa-tab-count {
  display: inline-block;
  background: var(--sa-border-light);
  color: var(--sa-text-secondary);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 50px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Toolbar ─────────────────────────────────────────── */

.sa-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.sa-toolbar-left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.sa-toolbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sa-search {
  padding: 7px 14px;
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius-sm);
  font-size: 12px;
  width: 220px;
  outline: none;
  font-family: inherit;
  color: var(--sa-text);
  background: var(--sa-card);
}

.sa-search:focus { border-color: var(--sa-accent); }

.sa-chip {
  padding: 5px 14px;
  border: 1px solid var(--sa-border);
  border-radius: 50px;
  font-size: 12px;
  color: var(--sa-text-secondary);
  cursor: pointer;
  background: var(--sa-card);
  font-family: inherit;
  transition: all 0.15s ease;
}

.sa-chip:hover {
  border-color: var(--sa-accent);
  color: var(--sa-accent);
}

.sa-chip.active {
  background: var(--sa-accent);
  color: #fff;
  border-color: var(--sa-accent);
}

/* ── Badges ──────────────────────────────────────────── */

.sa-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

.sa-badge-success { background: var(--sa-success-light); color: #065F46; }
.sa-badge-warning { background: var(--sa-warning-light); color: #92400E; }
.sa-badge-error   { background: var(--sa-error-light);   color: #991B1B; }
.sa-badge-accent  { background: var(--sa-accent-light);  color: var(--sa-accent); }
.sa-badge-neutral { background: #f3f4f6;                 color: #374151; }

/* ── KPI Grid ────────────────────────────────────────── */

.sa-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.sa-kpi-card {
  background: var(--sa-card);
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius);
  padding: 16px;
}

.sa-kpi-label {
  font-size: 11px;
  color: var(--sa-text-label);
  margin-bottom: 4px;
}

.sa-kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--sa-text);
}

.sa-kpi-delta {
  font-size: 11px;
  margin-top: 4px;
}

.sa-kpi-delta.positive { color: var(--sa-success); }
.sa-kpi-delta.negative { color: var(--sa-error); }
.sa-kpi-delta.warning  { color: var(--sa-warning); }

/* ── Alerts ──────────────────────────────────────────── */

.sa-alert {
  padding: 10px 16px;
  border-radius: var(--sa-radius-sm);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sa-alert-warning { background: var(--sa-warning-light); border: 1px solid #F0D86E; color: #92400E; }
.sa-alert-success { background: var(--sa-success-light); border: 1px solid #BBF7D0; color: #065F46; }
.sa-alert-error   { background: var(--sa-error-light);   border: 1px solid #FECACA; color: #991B1B; }

.sa-alert-dismiss {
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
  background: none;
  border: none;
  color: inherit;
}

.sa-alert-dismiss:hover { opacity: 1; }

/* ── Split Layout ────────────────────────────────────── */

.sa-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Forms ────────────────────────────────────────────── */

.sa-form-group { margin-bottom: 14px; }

.sa-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sa-text-secondary);
  margin-bottom: 4px;
}

.sa-form-group input,
.sa-form-group select,
.sa-form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--sa-text);
  box-sizing: border-box;
  background: var(--sa-card);
}

.sa-form-group input:focus,
.sa-form-group select:focus,
.sa-form-group textarea:focus {
  border-color: var(--sa-accent);
  outline: none;
}

.sa-form-row {
  display: flex;
  gap: 12px;
}

/* ── Buttons ─────────────────────────────────────────── */

.sa-btn {
  padding: 7px 18px;
  border-radius: var(--sa-radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sa-btn-primary {
  background: var(--sa-accent);
  color: #fff;
}
.sa-btn-primary:hover { background: #5024B0; }

.sa-btn-secondary {
  background: var(--sa-card);
  border: 1px solid var(--sa-border);
  color: var(--sa-text);
}
.sa-btn-secondary:hover { background: #f5f5f5; }

.sa-btn-success { background: var(--sa-success); color: #fff; }
.sa-btn-danger  { background: var(--sa-error);   color: #fff; }
.sa-btn-sm      { padding: 4px 12px; font-size: 11px; }

/* ── Activity Feed ───────────────────────────────────── */

.sa-feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--sa-border-light);
  font-size: 12px;
}

.sa-feed-item:last-child { border-bottom: none; }

.sa-feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sa-feed-text {
  flex: 1;
  color: var(--sa-text-secondary);
}

.sa-feed-text strong { color: var(--sa-text); }

.sa-feed-time {
  color: var(--sa-text-label);
  font-size: 11px;
  flex-shrink: 0;
}

/* ── Modal ───────────────────────────────────────────── */

.sa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-modal {
  background: var(--sa-card);
  border-radius: var(--sa-radius);
  padding: 24px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}

.sa-modal h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--sa-text);
}

.sa-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  font-size: 20px;
  color: var(--sa-text-label);
  background: none;
  border: none;
  line-height: 1;
}

.sa-modal-close:hover { color: var(--sa-text); }

/* ── Editor (Wiki / Blog) ────────────────────────────── */

.sa-editor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 400px;
}

.sa-editor-split textarea {
  min-height: 400px;
  resize: vertical;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius-sm);
  color: var(--sa-text);
  box-sizing: border-box;
  background: var(--sa-card);
}

.sa-editor-split textarea:focus {
  outline: none;
  border-color: var(--sa-accent);
}

.sa-editor-preview {
  padding: 16px;
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius-sm);
  overflow-y: auto;
  max-height: 500px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--sa-text);
  background: var(--sa-card);
}

/* ── Detail View ─────────────────────────────────────── */

.sa-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.sa-detail-back {
  width: 32px;
  height: 32px;
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--sa-text-label);
  background: var(--sa-card);
  font-size: 16px;
  flex-shrink: 0;
}

.sa-detail-back:hover { color: var(--sa-text); }

.sa-detail-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--sa-text);
}

.sa-detail-subtitle {
  font-size: 12px;
  color: var(--sa-text-secondary);
}

.sa-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sa-info-item {
  display: flex;
  flex-direction: column;
}

.sa-info-label {
  font-size: 11px;
  color: var(--sa-text-label);
  margin-bottom: 2px;
}

.sa-info-value {
  font-size: 13px;
  color: var(--sa-text);
  font-weight: 500;
}

/* ── Integration Status ──────────────────────────────── */

.sa-integration-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: var(--sa-radius-sm);
  margin-bottom: 8px;
}

.sa-integration-row:last-child { margin-bottom: 0; }

/* ── Notification History ────────────────────────────── */

.sa-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sa-history-item {
  padding: 14px 16px;
}

.sa-history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sa-history-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--sa-text);
}

.sa-history-preview {
  font-size: 13px;
  color: var(--sa-text-label);
  margin-top: 2px;
}

.sa-history-body {
  color: var(--sa-text-label);
  font-size: 13px;
  margin: 4px 0 0;
  white-space: pre-wrap;
  line-height: 1.5;
  opacity: 0.6;
}

.sa-history-date {
  font-size: 12px;
  color: var(--sa-text-label);
  white-space: nowrap;
}

.sa-history-images {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.sa-history-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--sa-border);
}

.sa-history-author {
  font-size: 12px;
  color: var(--sa-text-label);
  margin-top: 8px;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1200px) {
  .sa-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .sa-sidebar { width: 60px; }
  .sa-sidebar-logo span,
  .sa-sidebar-btn span,
  .sa-sidebar-group { display: none; }
  .sa-sidebar-btn { justify-content: center; padding: 10px; }
  .sa-main { margin-left: 60px; }
  .sa-split { grid-template-columns: 1fr; }
  .sa-editor-split { grid-template-columns: 1fr; }
}

/* ── Admin: mobile header + drawer overlay (hidden on desktop) ── */
.sa-mobile-header { display: none; }
.sa-sidebar-overlay { display: none; }

@media (max-width: 768px) {
  /* Top header with hamburger */
  .sa-mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 12px;
    align-items: center;
    gap: 12px;
    background: var(--sa-sidebar-bg);
    color: #fff;
    z-index: 115;
    padding-top: env(safe-area-inset-top);
    height: calc(56px + env(safe-area-inset-top));
  }
  .sa-burger {
    background: none;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .sa-burger:active { background: rgba(255,255,255,0.08); }
  .sa-mobile-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: contain;
  }
  .sa-mobile-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
  }

  /* Sidebar becomes a left drawer */
  .sa-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 16px rgba(0,0,0,0.2);
    padding-top: env(safe-area-inset-top);
  }
  body.sa-sidebar-open .sa-sidebar { transform: translateX(0); }

  /* Drawer content reverts to desktop-style stacked layout */
  .sa-sidebar-logo { display: flex; }
  .sa-sidebar-nav {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 8px;
  }
  .sa-sidebar-group { display: block; }
  .sa-sidebar-btn {
    flex-direction: row;
    width: 100%;
    font-size: 14px;
    padding: 10px 12px;
    gap: 10px;
    border-radius: var(--sa-radius-sm);
    text-align: left;
  }
  .sa-sidebar-btn svg { width: 18px; height: 18px; }
  .sa-sidebar-btn span { white-space: nowrap; }

  /* Footer with system dots, user info, logout — all visible in drawer */
  .sa-sidebar-footer {
    display: block;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-left: none;
    padding: 12px 14px;
    margin-top: auto;
    margin-left: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .sa-sidebar-footer .sa-system-dots,
  .sa-sidebar-footer .sa-user-info { display: flex; }
  .sa-sidebar-footer .sa-sidebar-btn {
    width: 100%;
    flex: none;
    padding: 8px 12px;
    font-size: 13px;
    margin-top: 8px;
  }

  /* Overlay backdrop */
  .sa-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 105;
  }
  body.sa-sidebar-open .sa-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* Main content sits below the header, no sidebar margin */
  .sa-main {
    margin-left: 0;
    margin-top: calc(56px + env(safe-area-inset-top));
    padding: 16px 12px;
  }
  .sa-page-title { font-size: 18px; }
  .sa-page-header { margin-bottom: 12px; }
  .sa-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .sa-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .sa-toolbar-left,
  .sa-toolbar-right {
    width: 100%;
    flex-wrap: wrap;
  }
  .sa-toolbar-left .sa-search { flex: 1 1 100%; }
  .sa-info-grid { grid-template-columns: 1fr; }
  /* Tables: tighten padding for narrow viewports */
  .sa-card-body { -webkit-overflow-scrolling: touch; }
  .sa-table thead th { padding: 8px 10px; font-size: 10px; white-space: nowrap; }
  .sa-table tbody td { padding: 10px; font-size: 12px; }
  .sa-table tbody td .sa-btn { padding: 4px 8px; font-size: 11px; }
}

/* Full-screen signup form when opened from iOS app (/signup deep-link) */
body.app-signup #login-screen {
  background: #ffffff;
  padding: 0;
}

body.app-signup .signup-card,
body.app-signup .signup-complete-card {
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  min-height: 100vh;
  padding: 32px 20px;
}

.signup-complete-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--divider);
}

/* ══════════════════════════════════════════════════════════
   Addon Billing — Trial Banner, Cart Bar, Payment, Prices
   ══════════════════════════════════════════════════════════ */

/* Trial Banner */
.addons-trial-banner {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.addons-trial-banner.trial-active {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.addons-trial-banner.trial-expired {
  background: var(--destructive-light);
  color: var(--destructive);
  border: 1px solid var(--destructive);
}

.addons-trial-banner.trial-subscribed {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.trial-icon {
  font-size: 18px;
}

/* Price Badge */
.addon-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.addon-price-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
  white-space: nowrap;
}

.addon-price-badge.free {
  background: var(--success-light);
  color: var(--success);
}

/* Soft-locked addon */
.addon-card.soft-locked {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.3);
}

.addon-card.soft-locked .addon-toggle {
  pointer-events: none;
}

/* Cart Bar */
.addons-cart-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--accent);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 50;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.cart-summary {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.cart-actions {
  display: flex;
  gap: 8px;
}

/* Payment Summary Table */
.payment-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.payment-summary-table th,
.payment-summary-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}

.payment-summary-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
}

.payment-summary-table tfoot td {
  border-top: 2px solid var(--divider);
  border-bottom: none;
  font-size: 15px;
}

.payment-summary-table td:last-child,
.payment-summary-table th:last-child {
  text-align: right;
}

/* Stripe Payment Element container */
#addon-payment-element {
  min-height: 120px;
}

/* ══════════════════════════════════════════════════════════
   Shift Planning
   ══════════════════════════════════════════════════════════ */

.shifts-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shifts-kw-badge {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 6px;
  margin-left: 8px;
}

.shifts-date-range {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: 4px;
}

.shifts-toolbar {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  flex-wrap: wrap;
}

/* Week Grid */
.shifts-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  min-height: 300px;
}

.shifts-day-column {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.shifts-day-column.today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.shifts-day-header {
  padding: 8px 10px;
  border-bottom: 1px solid var(--divider);
  text-align: center;
  background: var(--surface-elevated);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.shifts-day-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  display: block;
}

.shifts-day-date {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Shift Cell */
.shift-cell {
  margin: 4px 6px;
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 4px solid #999;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  position: relative;
}

.shift-cell:hover {
  background: var(--accent-50);
  box-shadow: var(--shadow-md);
}

.shift-cell.draft {
  border-left-style: dashed;
  opacity: 0.75;
}

.shift-cell-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.shift-staff-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.shift-unassigned {
  color: var(--warning) !important;
  font-style: italic;
}

.shift-cell-time {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.shift-draft-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--warning);
  background: var(--warning-light);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Create Modal — Position Rows */
.shift-position-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.shift-position-row select {
  flex: 1;
}

.shift-position-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.shift-position-count {
  width: 60px;
}

.shift-position-remove {
  flex-shrink: 0;
}

.time-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.time-input {
  width: 60px;
  text-align: center;
}

/* Detail Modal */
.shift-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
}

.shift-detail-row label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 13px;
  min-width: 100px;
}

.shift-detail-assign {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
}

.shift-detail-assign select {
  flex: 1;
}

.shift-detail-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--divider);
}

.shift-detail-pending #shift-detail-pending-text {
  margin: 0;
  width: 100%;
  color: var(--text-secondary);
  font-size: 13px;
}

/* Template List */
.shift-template-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}

.shift-template-info strong {
  font-size: 14px;
}

.shift-template-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.shift-template-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Template Entry Rows */
.shift-template-entry-row {
  background: var(--surface-elevated);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}

.template-entry-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.template-entry-line:last-child {
  margin-bottom: 0;
}

.template-entry-line label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: auto;
}

.template-entry-line select,
.template-entry-line input {
  font-size: 13px;
}

.template-entry-weekday { width: 120px; }
.template-entry-type { flex: 1; min-width: 100px; }
.template-entry-headcount { width: 60px; }
.template-entry-start-h,
.template-entry-start-m,
.template-entry-end-h,
.template-entry-end-m { width: 50px; text-align: center; }

/* Settings — Shift Types */
.shift-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.shift-type-name {
  flex: 1;
}

.shift-type-color {
  width: 40px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--divider);
  border-radius: 4px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .shifts-week-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .shifts-week-grid {
    grid-template-columns: 1fr;
  }
  .shifts-toolbar {
    flex-direction: column;
  }
  .shifts-controls {
    flex-wrap: wrap;
  }
}

/* ── Hardware Dashboard ──────────────────── */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.hardware-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
}

.hardware-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hardware-card-img {
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.hardware-card-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.hardware-card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hardware-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.hardware-status-badge.active { background: var(--success-light); color: var(--success); }
.hardware-status-badge.owned { background: var(--accent-light); color: var(--accent); }
.hardware-status-badge.returning { background: var(--warning-light); color: var(--warning); }
.hardware-status-badge.cancelled { background: var(--destructive-light); color: var(--destructive); }

.hardware-progress {
  margin: 16px 0;
}

.hardware-progress-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.hardware-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.hardware-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.hardware-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.hardware-card-actions button {
  flex: 1;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.hardware-btn-buyout {
  background: var(--accent);
  color: white;
}
.hardware-btn-buyout:hover { background: var(--accent-hover); }

.hardware-btn-cancel {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--divider) !important;
}
.hardware-btn-cancel:hover { background: var(--divider); }

.hardware-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.hardware-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* Payment Timeline */
.hardware-timeline {
  padding: 0;
  list-style: none;
}

.hardware-timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}

.hardware-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hardware-timeline-dot.paid { background: var(--success); }
.hardware-timeline-dot.upcoming { background: var(--divider); }
.hardware-timeline-dot.failed { background: var(--destructive); }

@media (max-width: 768px) {
  .hardware-grid {
    grid-template-columns: 1fr;
  }
}

/* In-button spinner for loading states */
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: middle;
}
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
