/* ParcelPilot — Dark Theme Shipping Dashboard */
:root {
  --bg-deep: #0d1117;
  --bg-sidebar: #111820;
  --bg-card: #161b22;
  --bg-surface: #1c2128;
  --bg-input: #0d1117;
  --bg-hover: #1c2128;
  --accent: #22c55e;
  --accent-dim: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.12);
  --accent-bg: rgba(34, 197, 94, 0.08);
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-dim: #6e7681;
  --border: #21262d;
  --border-light: #30363d;
  --danger: #f85149;
  --warning: #d29922;
  --info: #58a6ff;
  --sidebar-width: 260px;
  --header-height: 0px;
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-deep);
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}

.auth-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.auth-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

/* ===== ONBOARDING ===== */
.onboarding-card {
  max-width: 480px;
}

/* ===== ONBOARDING PROGRESS STEPS ===== */
.ob-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.ob-step-dot-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: color 0.2s;
}

.ob-step-dot.ob-step-active {
  background: var(--accent);
  border-color: var(--accent);
}

.ob-step-dot.ob-step-active .ob-step-dot-num {
  color: #000;
}

.ob-step-dot.ob-step-done {
  background: var(--accent-bg);
  border-color: var(--accent);
}

.ob-step-dot.ob-step-done .ob-step-dot-num {
  color: var(--accent);
}

.ob-step-line {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  min-width: 40px;
  max-width: 80px;
  transition: background 0.2s;
}

.ob-step-line.ob-line-done {
  background: var(--accent);
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  text-align: center;
  user-select: none;
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.option-card:hover {
  border-color: var(--border-light);
  background: var(--bg-surface);
}

.option-card.selected,
.option-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-bg);
  box-shadow: 0 0 0 1px var(--accent);
}

.option-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.option-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.option-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
  color: var(--text-dim);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e7681' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

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

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

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

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: rgba(248, 81, 73, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 6px 12px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

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

/* ===== LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 24px;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sidebar-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-section {
  padding: 0 12px;
  margin-bottom: 8px;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  padding: 8px 12px 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.sidebar-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: var(--accent-bg);
  color: var(--accent);
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

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

.sidebar-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-user:hover {
  background: var(--bg-hover);
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-user-email {
  font-size: 0.75rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout {
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.sidebar-logout:hover {
  color: var(--danger);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  max-width: 1200px;
}

/* ===== TOP BAR (back button + notification bell) ===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  min-height: 40px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
}

.back-btn-placeholder {
  width: 88px;
  height: 36px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.back-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.back-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.home-btn:hover {
  background: var(--accent-dim);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}

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

.home-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ===== NOTIFICATION BELL ===== */
.notif-wrapper {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.notif-bell-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.notif-bell-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-deep);
  padding: 0 4px;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 500;
  overflow: hidden;
}

.notif-header {
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.notif-empty {
  padding: 36px 20px;
  text-align: center;
}

.notif-empty-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

.notif-empty-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.notif-empty-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===== STATS CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.stat-card-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.stat-card-change {
  font-size: 0.78rem;
  margin-top: 6px;
}

.stat-card-change.positive { color: var(--accent); }
.stat-card-change.negative { color: var(--danger); }

/* ===== TABLE ===== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.table-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-title {
  font-size: 1rem;
  font-weight: 600;
}

.table-search {
  padding: 7px 12px 7px 34px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  width: 240px;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e7681' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}

.table-search:focus {
  border-color: var(--accent);
}

.table-filters {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-select {
  padding: 7px 30px 7px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e7681' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

td {
  padding: 12px 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

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

tr:hover td {
  background: var(--bg-hover);
}

.table-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-dim);
}

.table-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.table-empty-text {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.table-empty-sub {
  font-size: 0.8rem;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-draft { background: rgba(139, 148, 158, 0.15); color: var(--text-secondary); }
.badge-label_created { background: rgba(88, 166, 255, 0.15); color: var(--info); }
.badge-in_transit { background: rgba(210, 153, 34, 0.15); color: var(--warning); }
.badge-out_for_delivery { background: rgba(34, 197, 94, 0.15); color: var(--accent); }
.badge-delivered { background: rgba(34, 197, 94, 0.25); color: var(--accent); }
.badge-returned { background: rgba(248, 81, 73, 0.15); color: var(--danger); }
.badge-cancelled { background: rgba(248, 81, 73, 0.15); color: var(--danger); }
/* Unified tracking_status badges (from Phase 1.2 Shippo sync) */
.badge-exception { background: rgba(248, 81, 73, 0.25); color: var(--danger); font-weight: 600; }
.badge-pre_transit { background: rgba(88, 166, 255, 0.1); color: var(--info); }
.badge-unknown { background: rgba(139, 148, 158, 0.1); color: var(--text-secondary); }
/* "Synced Xh ago" sub-label shown under status badge in shipments table */
.tracking-synced-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 3px;
  white-space: nowrap;
}

/* "No Tracking" warning sub-label shown under status badge for missing-visibility shipments */
.tracking-missing-label {
  font-size: 0.7rem;
  color: var(--warning);
  margin-top: 3px;
  white-space: nowrap;
  font-weight: 600;
}

/* "Tracking Requested" sub-label shown under status badge for requested-visibility shipments */
.tracking-requested-label {
  font-size: 0.7rem;
  color: #f59e0b;
  margin-top: 3px;
  white-space: nowrap;
  font-weight: 600;
  opacity: 0.85;
}

/* Dashboard alert banner for shipments missing tracking data */
.missing-tracking-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(210, 153, 34, 0.1);
  border: 1px solid rgba(210, 153, 34, 0.35);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background 0.15s;
}
.missing-tracking-alert:hover {
  background: rgba(210, 153, 34, 0.18);
}
.missing-tracking-alert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.missing-tracking-alert-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.missing-tracking-alert-text strong {
  font-size: 0.9rem;
  color: var(--warning);
}
.missing-tracking-alert-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.missing-tracking-alert-cta {
  font-size: 0.85rem;
  color: var(--warning);
  font-weight: 600;
  flex-shrink: 0;
}

/* Shipments list — view-mode banner shown when a visibility filter is active */
.shipments-view-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(210, 153, 34, 0.08);
  border-bottom: 1px solid rgba(210, 153, 34, 0.25);
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--warning);
  font-weight: 500;
}

/* Warning variant button (active state for "Missing Tracking" filter) */
.btn-warning {
  background: rgba(210, 153, 34, 0.15);
  color: var(--warning);
  border-color: rgba(210, 153, 34, 0.4);
  font-weight: 600;
}
.btn-warning:hover {
  background: rgba(210, 153, 34, 0.25);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.carrier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carrier-usps { background: rgba(0, 82, 165, 0.2); color: #5ba0e0; }
.carrier-ups { background: rgba(100, 53, 0, 0.25); color: #d4a853; }
.carrier-fedex { background: rgba(70, 0, 130, 0.2); color: #b87dff; }
.carrier-dhl { background: rgba(212, 175, 55, 0.2); color: #d4af37; }

/* ===== CARDS / SECTIONS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-icon {
  color: var(--accent);
}

/* ===== SHIPMENT FORM ===== */
.shipment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.address-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.address-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-section-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.from-icon { background: rgba(88, 166, 255, 0.15); color: var(--info); }
.to-icon { background: rgba(34, 197, 94, 0.15); color: var(--accent); }

/* ===== SETTINGS ===== */
.settings-section {
  margin-bottom: 24px;
}

.settings-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.toggle-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.toggle-group:last-child {
  border-bottom: none;
}

.toggle-label {
  font-size: 0.875rem;
}

.toggle-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-light);
  border-radius: 12px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ===== MESSAGES ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.2);
  color: var(--danger);
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--accent);
}

.alert-info {
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.2);
  color: var(--info);
}

/* ===== FORM VALIDATION ===== */
.form-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.12);
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  line-height: 1;
}

.empty-state-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 24px auto 0;
  text-align: left;
}

.quickstart-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.quickstart-step:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.quickstart-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.quickstart-step-text {
  flex: 1;
}

.quickstart-step-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.quickstart-step-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ===== 404 PAGE ===== */
.not-found-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  flex-direction: column;
  text-align: center;
  padding: 40px 24px;
}

.not-found-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--border-light);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -4px;
}

.not-found-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.not-found-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 300px;
}

/* ===== LOADING ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  flex-direction: column;
  gap: 12px;
  color: var(--text-dim);
}

/* ===== MISC ===== */
.link {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

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

.text-dim { color: var(--text-dim); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.85em; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }

.clickable-row {
  cursor: pointer;
}

.actions-cell {
  display: flex;
  gap: 4px;
}

/* ===== MOBILE ===== */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.mobile-menu-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 45;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .mobile-header {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding: 20px 16px;
  }

  /* Bell is in mobile header — hide duplicate in top-bar */
  .top-bar-right {
    display: none;
  }

  /* Tighten top-bar spacing on mobile */
  .top-bar {
    margin-bottom: 16px;
  }

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

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

  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
  }

  .table-header {
    flex-direction: column;
    align-items: stretch;
  }

  .table-search {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ALERTS ===== */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

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

.alert-item:hover {
  background: var(--bg-hover);
}

.alert-unread {
  background: rgba(34, 197, 94, 0.04);
  border-left: 3px solid var(--accent);
}

.alert-icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 2px;
}

.alert-unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

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

.alert-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.alert-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.alert-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.alert-right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.alert-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.alert-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* ===== ANALYTICS CHARTS ===== */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 8px 0 4px;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 8px;
  gap: 4px;
}

.chart-bar-value {
  width: 100%;
  min-width: 4px;
  border-radius: 4px 4px 0 0;
  transition: opacity 0.2s;
  cursor: default;
  min-height: 4px;
}

.chart-bar-value:hover {
  opacity: 0.8;
}

.chart-bar-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

/* ===== EMAIL BRANDING ===== */
.color-swatch {
  transition: transform 0.15s, border-color 0.15s;
}

.color-swatch:hover {
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .alert-item {
    gap: 10px;
    padding: 12px 16px;
  }

  .alert-right {
    display: none;
  }

  /* Analytics two-col -> one-col on mobile */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ===== LEGAL PAGES (Terms & Privacy) ===== */
.legal-page {
  min-height: 100vh;
  background: var(--bg-deep);
  padding: 40px 20px 80px;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.legal-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.legal-body section {
  margin-bottom: 36px;
}

.legal-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.legal-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 16px 0 8px;
}

.legal-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.legal-body ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 4px 0 4px 20px;
  position: relative;
}

.legal-body ul li::before {
  content: '–';
  position: absolute;
  left: 4px;
  color: var(--accent);
}

.legal-body a {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.legal-body a:hover {
  text-decoration: underline;
}

.legal-footer-nav {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.legal-footer-nav .link {
  cursor: pointer;
}

/* ===== AUTH LEGAL FOOTER ===== */
.auth-legal-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== TOS CHECKBOX ===== */
.tos-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tos-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.tos-checkbox-label a {
  color: var(--accent);
  cursor: pointer;
}

.tos-checkbox-label a:hover {
  text-decoration: underline;
}

/* ===== SIDEBAR LEGAL LINKS ===== */
.sidebar-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.sidebar-legal-links a {
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s;
}

.sidebar-legal-links a:hover {
  color: var(--text-secondary);
}

/* ===== LANDING PAGE ===== */
.landing-page {
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text-primary);
}

/* Nav */
.landing-nav {
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.landing-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.landing-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.landing-nav-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.landing-nav-link:hover {
  color: var(--text-primary);
}

/* Hamburger button — hidden on desktop, shown on mobile */
.landing-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.landing-hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: background 0.15s;
}

.landing-hamburger-btn:hover span {
  background: var(--accent);
}

/* Hero */
.landing-hero {
  padding: 90px 24px 72px;
  text-align: center;
}

.landing-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.landing-badge {
  display: inline-block;
  background: var(--accent-bg);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

.landing-headline {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -2px;
}

.landing-trial-callout {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
  display: block;
}

.landing-subheadline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 40px;
}

.landing-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.landing-cta-btn {
  font-size: 1.05rem !important;
  padding: 16px 40px !important;
  border-radius: 10px !important;
  box-shadow: 0 0 36px rgba(34, 197, 94, 0.28);
  letter-spacing: 0.2px;
  transition: all 0.2s !important;
}

.landing-cta-btn:hover {
  box-shadow: 0 0 50px rgba(34, 197, 94, 0.45) !important;
  transform: translateY(-2px);
}

.landing-cta-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Trust Bar */
.landing-trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 18px 24px;
}

.landing-trust-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.landing-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.landing-trust-icon {
  color: var(--accent);
  font-weight: 700;
}

.landing-trust-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

/* Features Section */
.landing-features {
  padding: 88px 24px;
}

.landing-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.landing-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.landing-section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.65;
}

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

.landing-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.landing-feature-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateY(-2px);
}

.landing-feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.landing-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.landing-feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Social Proof */
.landing-social-proof {
  padding: 72px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-proof-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.landing-proof-avatars {
  display: flex;
  align-items: center;
}

.landing-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  border: 2.5px solid var(--bg-card);
  margin-right: -12px;
}

.landing-avatar:last-child {
  margin-right: 0;
}

.landing-proof-text {
  font-size: 1rem;
  margin-left: 18px;
}

.landing-testimonial {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  padding: 28px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent);
}

.landing-testimonial p {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 14px;
}

.landing-testimonial cite {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 500;
}

/* Final CTA */
.landing-final-cta {
  padding: 88px 24px;
}

/* Footer */
.landing-footer {
  padding: 44px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-sidebar);
}

.landing-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.landing-footer-links a:hover {
  color: var(--text-secondary);
}

.landing-footer-links span {
  color: var(--border-light);
  font-size: 0.8rem;
}

/* Headline accent color */
.landing-headline-accent {
  color: var(--accent);
}

/* Hero social proof row (stars + count) */
.landing-hero-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.landing-stars {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 3px;
  line-height: 1;
}

.landing-hero-social-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.landing-hero-social-text strong {
  color: var(--text-primary);
}

/* Hero Screenshot Mockup */
.landing-hero-screenshot {
  margin-top: 48px;
  animation: lsm-fadein 0.5s ease both;
}

.landing-screenshot-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.05) inset;
  max-width: 720px;
  margin: 0 auto;
}

.mockup-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-title {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.mockup-body {
  display: flex;
  min-height: 240px;
}

.mockup-sidebar {
  width: 60px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mockup-menu-item {
  width: 32px;
  height: 32px;
  background: var(--border);
  border-radius: 6px;
}
.mockup-menu-item.active {
  background: var(--accent);
  opacity: 0.8;
}

.mockup-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.mockup-stat {
  flex: 1;
  height: 48px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.mockup-table-header {
  height: 24px;
  background: var(--bg);
  border-radius: 6px;
  width: 60%;
}

.mockup-table-row {
  height: 28px;
  background: var(--bg);
  border-radius: 6px;
  width: 100%;
  opacity: 0.6;
}

.screenshot-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* How It Works section */
.landing-how {
  padding: 80px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
}

.landing-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 270px;
  flex: 1;
  min-width: 200px;
}

.landing-step-num {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.landing-step-body {
  flex: 1;
}

.landing-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.landing-step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.landing-step-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  padding-top: 8px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Final CTA section */
.landing-final-cta-inner {
  text-align: center;
}

.landing-final-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ===== INTEGRATIONS BAR (Trust Signals) ===== */
.landing-integrations-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.landing-integrations-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.landing-integrations-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.landing-integrations-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-integration-logo {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  padding: 5px 14px;
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.landing-integration-logo:hover {
  opacity: 0.85;
}

.landing-integrations-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  display: inline-block;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .landing-integrations-inner {
    flex-direction: column;
    gap: 12px;
  }
}

/* Back to home link on auth pages */
.landing-back-link {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 0.82rem;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.landing-back-link:hover {
  color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .landing-headline {
    font-size: 2.6rem;
    letter-spacing: -0.8px;
  }

  .landing-trial-callout {
    font-size: 1.05rem;
  }

  .landing-subheadline {
    font-size: 1rem;
  }

  .landing-hero {
    padding: 64px 20px 52px;
  }

  .landing-hero-screenshot {
    margin-top: 32px;
  }

  .landing-screenshot-mockup {
    border-radius: 8px;
  }

  .mockup-body {
    min-height: 160px;
  }

  .mockup-stats-row {
    flex-wrap: wrap;
  }

  .mockup-stat {
    height: 36px;
  }

  .screenshot-caption {
    font-size: 0.8rem;
  }

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

  .landing-trust-divider {
    display: none;
  }

  .landing-nav-inner {
    height: 56px;
  }

  /* Show hamburger, hide inline nav links */
  .landing-hamburger-btn {
    display: flex;
  }

  .landing-nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    z-index: 99;
  }

  .landing-nav-links.open {
    display: flex;
  }

  .landing-nav-link {
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 0;
  }

  .landing-nav-links .btn {
    margin: 8px 16px 0;
    text-align: center;
    justify-content: center;
  }

  .landing-features {
    padding: 60px 20px;
  }

  .landing-section-title {
    font-size: 1.7rem;
  }

  .landing-social-proof {
    padding: 56px 20px;
  }

  .landing-final-cta {
    padding: 64px 20px;
  }

  .landing-testimonial {
    padding: 20px 24px;
  }

  .landing-how {
    padding: 56px 20px;
  }

  .landing-step-arrow {
    display: none;
  }

  .landing-steps {
    flex-direction: column;
    align-items: flex-start;
    max-width: 400px;
    margin: 0 auto;
    gap: 24px;
  }

  .landing-step {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .landing-headline {
    font-size: 2.1rem;
    letter-spacing: -0.3px;
  }

  .landing-trial-callout {
    font-size: 0.95rem;
  }

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

  .landing-cta-btn {
    font-size: 0.95rem !important;
    padding: 14px 28px !important;
  }

  .landing-trust-inner {
    gap: 10px;
  }

  .landing-trust-item {
    font-size: 0.78rem;
  }

  .landing-proof-card {
    flex-direction: column;
    gap: 12px;
  }

  .landing-proof-text {
    margin-left: 0;
    text-align: center;
  }

  .landing-testimonial {
    border-left: none;
    border-top: 3px solid var(--accent);
    text-align: center;
  }
}

/* ===== WALKTHROUGH TOOLTIP ===== */

/* Pulsing ring around the CTA button */
@keyframes wt-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  70%  { box-shadow: 0 0 0 14px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.wt-pulse {
  animation: wt-pulse 1.8s ease-out infinite !important;
  position: relative;
  z-index: 1;
}

/* Tooltip box */
.wt-tooltip {
  position: fixed;
  background: #1e293b;
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 12px;
  padding: 14px 16px 14px 16px;
  width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 9999;
  pointer-events: auto;
  animation: wt-fadein 0.2s ease;
}

@keyframes wt-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wt-tooltip-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Arrow pointing up (tooltip below element) */
.wt-tooltip-arrow-up {
  top: -8px;
  left: 20px;
  border-width: 0 8px 8px 8px;
  border-color: transparent transparent #1e293b transparent;
}

/* Arrow pointing down (tooltip above element) */
.wt-tooltip-arrow-down {
  bottom: -8px;
  left: 20px;
  border-width: 8px 8px 0 8px;
  border-color: #1e293b transparent transparent transparent;
}

.wt-tooltip-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.wt-tooltip-step {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 1px;
}

.wt-tooltip-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: -1px;
  transition: color 0.15s;
}

.wt-tooltip-close:hover {
  color: #94a3b8;
}

.wt-tooltip-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
}

.wt-tooltip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wt-tooltip-dots {
  display: flex;
  gap: 5px;
}

.wt-tooltip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334155;
  transition: background 0.2s;
}

.wt-tooltip-dot.active {
  background: #22c55e;
}

.wt-tooltip-next {
  background: #22c55e;
  color: #000;
  border: none;
  border-radius: 7px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.wt-tooltip-next:hover {
  background: #16a34a;
}

/* Highlight ring around the focused element */
.wt-highlight {
  outline: 2px solid rgba(34,197,94,0.7) !important;
  outline-offset: 3px !important;
  border-radius: 6px;
  transition: outline 0.2s;
}


/* ===== SHOPIFY WAITLIST ===== */
.shopify-waitlist {
  background: var(--bg-card);
  border: 1px solid rgba(149, 191, 71, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 28px 0;
  text-align: center;
}

.shopify-badge {
  display: inline-block;
  background: rgba(149, 191, 71, 0.12);
  color: #95BF47;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(149, 191, 71, 0.25);
}

.shopify-headline {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.shopify-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.shopify-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.shopify-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.shopify-input:focus {
  border-color: #95BF47;
}

.shopify-input::placeholder {
  color: var(--text-dim);
}

.shopify-btn {
  background: #95BF47;
  color: #000;
  border: none;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, opacity 0.2s;
  box-shadow: 0 0 20px rgba(149, 191, 71, 0.25);
}

.shopify-btn:hover {
  background: #7fa83a;
}

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

.shopify-confirm {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}
