/* ============================================================
   tsla.delivery — app.css
   Dark theme, mobile-first, breakpoint 768px
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  color: #fff;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: inherit; }

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }
  .mobile-only {
    display: none;
  }
}

/* ── Headers ──────────────────────────────────────────────── */
.header-desktop {
  display: none;
}

@media (min-width: 768px) {
  .header-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
  }
}

.header-desktop-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-desktop-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-mobile {
  display: block;
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .header-mobile {
    display: none;
  }
}

.header-mobile-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.2px;
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 20px;
    letter-spacing: -0.3px;
  }
}

.tagline {
  font-size: 13px;
  color: #888;
  margin: 0;
}

@media (min-width: 768px) {
  .tagline {
    color: #666;
  }
}

/* ── Hero Tiles ───────────────────────────────────────────── */
.hero-section {
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero-section {
    margin-bottom: 48px;
  }
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .hero-label {
    font-size: 14px;
    margin: 0 0 16px;
  }
}

.family-label {
  font-size: 12px;
  color: #555;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tiles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .tiles-grid-3 {
    gap: 10px;
    margin-bottom: 16px;
  }
}

.tiles-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .tiles-grid-4 {
    gap: 10px;
    margin-bottom: 12px;
  }
}

.hero-tile {
  text-align: center;
  padding: 12px 4px 10px;
  border: 0.5px solid #222;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.04) 0%, transparent 100%);
}

@media (min-width: 768px) {
  .hero-tile {
    padding: 24px 16px 20px;
    border-radius: 14px;
  }
}

.tile-label {
  font-size: 10px;
  color: #888;
  margin: 0 0 2px;
  letter-spacing: 0.3px;
}

@media (min-width: 768px) {
  .tile-label {
    font-size: 12px;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
  }
}

.tile-number {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #8B5CF6 0%, #5B21B6 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .tile-number {
    font-size: 52px;
  }
}

.tile-unit {
  font-size: 10px;
  color: #666;
  margin: 2px 0 0;
}

@media (min-width: 768px) {
  .tile-unit {
    font-size: 12px;
    margin: 6px 0 0;
  }
}

.tile-reports {
  font-size: 11px;
  color: #555;
  margin: 4px 0 0;
}

.hero-sub {
  text-align: center;
  font-size: 11px;
  color: #8B5CF6;
  margin: 0 0 20px;
}

@media (min-width: 768px) {
  .hero-sub {
    font-size: 13px;
    margin: 0 0 48px;
  }
}

/* ── Model Toggle (mobile only) ───────────────────────────── */
.model-toggle {
  display: flex;
  gap: 4px;
  background: #141414;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .model-toggle {
    display: none;
  }
}

.toggle-btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.toggle-btn.active {
  background: #8B5CF6;
  color: #fff;
}

.toggle-btn.inactive {
  background: transparent;
  color: #666;
}

.tile-group {
  display: none;
}

.tile-group.active {
  display: grid;
}

/* ── Reports ──────────────────────────────────────────────── */
.reports {
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .reports {
    margin-bottom: 48px;
  }
}

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

@media (min-width: 768px) {
  .reports-header {
    margin-bottom: 16px;
  }
}

.reports-title {
  font-size: 13px;
  font-weight: 500;
  color: #999;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .reports-title {
    font-size: 14px;
  }
}

.reports-subtitle {
  font-size: 12px;
  color: #555;
  margin: 0;
}

/* Desktop Table */
.reports-table {
  background: #141414;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.reports-table-head {
  display: grid;
  grid-template-columns: 110px 60px 1fr 1fr 1fr;
  padding: 10px 24px;
  border-bottom: 0.5px solid #1f1f1f;
}

.reports-table-head span {
  font-size: 11px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reports-table-head span:last-child {
  text-align: right;
}

.report-row {
  display: grid;
  grid-template-columns: 110px 60px 1fr 1fr 1fr;
  padding: 14px 24px;
  border-bottom: 0.5px solid #1f1f1f;
  align-items: center;
}

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

.state-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #0a0a0a;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.report-model {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}

.report-date {
  font-size: 13px;
  color: #999;
}

.report-status {
  font-size: 12px;
}

.report-delivery {
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

/* Mobile List */
.reports-list {
  background: #141414;
  border-radius: 12px;
  padding: 4px 16px;
  margin-bottom: 20px;
}

.report-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid #1f1f1f;
}

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

.report-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-item-badge {
  font-size: 11px;
  font-weight: 600;
  color: #0a0a0a;
  padding: 1px 6px;
  border-radius: 4px;
}

.report-item-date {
  font-size: 12px;
  color: #555;
}

.report-item-delivery {
  font-size: 12px;
  font-weight: 500;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  text-align: center;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 12px;
  color: #555;
  margin: 8px 0 0;
}

@media (min-width: 768px) {
  .cta-sub {
    font-size: 13px;
    margin: 10px 0 0;
  }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 14px 48px;
  background: #8B5CF6;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-cta {
  width: 100%;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .btn-cta {
    width: auto;
    border-radius: 10px;
  }
}

.btn-add-order {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-secondary {
  display: inline-block;
  padding: 14px 48px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.btn-secondary:hover {
  border-color: #555;
}

.btn-full {
  width: 100%;
}

.btn-kilotrip {
  display: inline-block;
  padding: 5px 12px;
  background: #EF4444;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn-kilotrip:hover {
  opacity: 0.9;
}

@media (min-width: 768px) {
  .btn-kilotrip {
    padding: 6px 16px;
  }
}

.btn-choice {
  display: block;
  width: 100%;
  padding: 18px 16px;
  background: #141414;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease;
}

.btn-choice:hover {
  border-color: #8B5CF6;
}

.btn-choice.selected {
  border-color: #8B5CF6;
}

.btn-choice-secondary {
  color: #999;
}

.btn-choice-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  display: block;
}

.btn-choice-desc {
  font-size: 12px;
  color: #666;
  display: block;
  margin-top: 2px;
}

/* ── Sticky KiloTrip Footer ───────────────────────────────── */
.kilotrip-bar {
  position: sticky;
  bottom: 0;
  background: #111;
  border-top: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  z-index: 50;
}

@media (min-width: 768px) {
  .kilotrip-bar {
    padding: 12px 48px;
  }
}

.kilotrip-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .kilotrip-bar-left {
    gap: 16px;
  }
}

.kilotrip-bar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.kilotrip-bar .built-by {
  font-size: 9px;
  color: #666;
  margin: 0 0 2px;
}

@media (min-width: 768px) {
  .kilotrip-bar .built-by {
    font-size: 10px;
  }
}

.kilotrip-bar-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

@media (min-width: 768px) {
  .kilotrip-bar-name {
    font-size: 14px;
    letter-spacing: 0.3px;
  }
}

.kilotrip-bar-tagline {
  font-size: 12px;
  color: #666;
  display: none;
}

@media (min-width: 768px) {
  .kilotrip-bar-tagline {
    display: inline;
  }
}

/* ── Wizard Modal ─────────────────────────────────────────── */
.wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.wizard-overlay.open {
  display: flex;
}

@media (min-width: 768px) {
  .wizard-overlay {
    align-items: center;
  }
}

.wizard-modal {
  position: relative;
  background: #141414;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0 24px 40px;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .wizard-modal {
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    max-height: 85vh;
    padding: 0 32px 40px;
  }
}

.wizard-header-row {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 0;
}

.wizard-close {
  background: none;
  border: none;
  color: #666;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.wizard-close:hover {
  color: #999;
}

.wizard-context {
  font-size: 12px;
  color: #8B5CF6;
  font-weight: 500;
  margin: 0 0 8px;
  min-height: 16px;
}

.wizard-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

@media (max-width: 767px) {
  .wizard-title {
    font-size: 22px;
  }
}

.wizard-desc {
  font-size: 14px;
  color: #666;
  margin: 0 0 28px;
}

.wizard-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Wizard steps */
.wizard-step {
  display: none;
  flex-direction: column;
  padding-top: 8px;
  min-height: 60vh;
}

@media (min-width: 768px) {
  .wizard-step {
    min-height: auto;
  }
}

.wizard-step.active {
  display: flex;
}

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

/* Progress dots */
.progress-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 24px;
  padding-bottom: 8px;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
}

.progress-dot.filled {
  background: #8B5CF6;
}

.progress-dot.empty {
  background: #333;
}

/* Wizard grid layouts */
.wizard-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.wizard-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.wizard-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.wizard-choice-btn {
  padding: 16px 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease;
}

.wizard-choice-btn:hover {
  border-color: #8B5CF6;
}

.wizard-choice-btn.selected {
  border-color: #8B5CF6;
  background: rgba(139, 92, 246, 0.08);
}

/* Wizard loading */
.wizard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  gap: 16px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #333;
  border-top-color: #8B5CF6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Wizard success */
.wizard-success-icon {
  width: 56px;
  height: 56px;
  background: #34D399;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.wizard-success-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: #141414;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  -webkit-appearance: auto;
  appearance: auto;
}

@media (min-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 14px;
    background: #0a0a0a;
  }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #8B5CF6;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #EF4444;
}

/* Mobile form overrides (wizard uses #141414 bg) */
.wizard-modal .form-group input,
.wizard-modal .form-group select {
  padding: 14px;
  font-size: 16px;
  background: #1a1a1a;
  border-radius: 12px;
}

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

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #8B5CF6;
  flex-shrink: 0;
}

.form-check label {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
  margin: 0;
}

.form-error {
  font-size: 12px;
  color: #EF4444;
  margin: 4px 0 0;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

/* ── Update Page ──────────────────────────────────────────── */
.update-page {
  padding-top: 32px;
}

.update-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .update-header {
    margin-bottom: 36px;
  }
}

.update-card {
  background: #141414;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .update-card {
    padding: 32px;
    margin-bottom: 32px;
  }
}

.update-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px;
}

@media (min-width: 768px) {
  .update-title {
    font-size: 22px;
    margin: 0 0 24px;
  }
}

.update-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 16px;
}

.order-summary {
  background: #0a0a0a;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 0.5px solid #1f1f1f;
}

@media (min-width: 768px) {
  .summary-row {
    padding: 14px 20px;
  }
}

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

.summary-label {
  font-size: 13px;
  color: #666;
}

.summary-value {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

.update-fields {
  margin-top: 16px;
}

.update-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-form-section {
  display: none;
  margin-top: 20px;
}

.update-form-section.active {
  display: block;
}

/* ── Admin Page ───────────────────────────────────────────── */
.admin-page {
  padding-top: 32px;
}

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

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-badge {
  font-size: 11px;
  color: #0a0a0a;
  background: #8B5CF6;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 4px;
}

.admin-user-email {
  font-size: 13px;
  color: #666;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 32px;
  }
}

.stat-card {
  background: #141414;
  border-radius: 10px;
  padding: 16px 20px;
}

.stat-label {
  font-size: 11px;
  color: #666;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 28px;
  }
}

.admin-tabs {
  display: flex;
  gap: 4px;
  background: #141414;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .admin-tabs {
    width: fit-content;
  }
}

.admin-tab {
  flex: 1;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .admin-tab {
    flex: none;
  }
}

.admin-tab.active {
  background: #8B5CF6;
  color: #fff;
}

.admin-tab.inactive {
  background: transparent;
  color: #666;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-form {
  background: #141414;
  border-radius: 12px;
  padding: 20px;
  max-width: 600px;
}

@media (min-width: 768px) {
  .admin-form {
    padding: 28px;
  }
}

.admin-form-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}

.admin-form-desc {
  font-size: 13px;
  color: #666;
  margin: 0 0 24px;
}

/* Source badges */
.source-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  width: fit-content;
}

.source-badge.community {
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.1);
}

.source-badge.admin {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
}

/* Admin table */
.admin-table {
  background: #141414;
  border-radius: 12px;
  overflow: hidden;
}

.admin-table-head {
  display: grid;
  grid-template-columns: 100px 50px 90px 70px 120px 80px 60px;
  padding: 10px 20px;
  border-bottom: 0.5px solid #1f1f1f;
}

.admin-table-head span {
  font-size: 10px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table-row {
  display: grid;
  grid-template-columns: 100px 50px 90px 70px 120px 80px 60px;
  padding: 12px 20px;
  border-bottom: 0.5px solid #1f1f1f;
  align-items: center;
}

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

/* Batch import */
.batch-textarea {
  width: 100%;
  height: 160px;
  padding: 12px 14px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease;
}

.batch-textarea:focus {
  border-color: #8B5CF6;
}

.batch-preview {
  margin-top: 20px;
  background: #0a0a0a;
  border-radius: 10px;
  overflow: hidden;
}

.batch-preview-head {
  display: grid;
  grid-template-columns: 100px 50px 90px 70px 120px 1fr;
  padding: 8px 16px;
  border-bottom: 0.5px solid #1f1f1f;
}

.batch-preview-head span {
  font-size: 10px;
  color: #444;
  text-transform: uppercase;
}

.batch-preview-row {
  display: grid;
  grid-template-columns: 100px 50px 90px 70px 120px 1fr;
  padding: 10px 16px;
  border-bottom: 0.5px solid #1f1f1f;
  align-items: center;
}

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

/* Admin login */
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.admin-login-card {
  background: #141414;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 360px;
  width: 100%;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.btn-google:hover {
  opacity: 0.9;
}

/* ── KiloTrip CTA (wizard success) ───────────────────────── */
.kilotrip-cta {
  background: #1a1a1a;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.kilotrip-cta-label {
  font-size: 9px;
  color: #555;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kilotrip-cta-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.kilotrip-cta-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.kilotrip-cta-desc {
  font-size: 13px;
  color: #999;
  margin: 0 0 14px;
}

.btn-kilotrip-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #EF4444;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

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

/* ── Toast Notification ───────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 13px;
  color: #fff;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.toast.visible {
  opacity: 1;
}

.toast.success {
  border-color: #34D399;
  color: #34D399;
}

.toast.error {
  border-color: #EF4444;
  color: #EF4444;
}

/* ── Misc utilities ───────────────────────────────────────── */
.color-green  { color: #34D399; }
.color-purple { color: #8B5CF6; }
.color-red    { color: #EF4444; }
.color-amber  { color: #F59E0B; }
.color-gray   { color: #666; }

.text-right { text-align: right; }

.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .kilotrip-bar,
  .wizard-overlay,
  .model-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
