:root {
  --navy: #0b2442;
  --navy-deep: #0b253e;
  --navy-light: #15365e;
  --orange: #fe4c03;
  --orange-hover: #e04000;
  --orange-soft: #fff2ec;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --success: #0d9488;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-text: #991b1b;
  --wa: #16a34a;
  --wa-hover: #15803d;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(11, 36, 66, 0.06), 0 1px 2px rgba(11, 36, 66, 0.04);
  --shadow-md: 0 10px 28px -6px rgba(11, 36, 66, 0.1), 0 4px 12px -4px rgba(11, 36, 66, 0.05);
  --shadow-lg: 0 22px 48px -12px rgba(11, 36, 66, 0.16);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  max-width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

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

/* Top Announcement Strip */
.top-strip {
  background: var(--navy-deep);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  padding: 8px 14px;
}

.top-strip strong {
  color: #ffb08e;
}

/* Navbar (pure white so horizontal logo blends seamlessly) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand-logo-img {
    height: 44px;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-links a {
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--orange);
  background: var(--surface-alt);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

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

.nav-status-link {
  display: none;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-status-link:hover {
  background: var(--surface-alt);
}

@media (min-width: 640px) {
  .nav-status-link {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.985);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(254, 76, 3, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-hover);
}

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

.btn-navy:hover:not(:disabled) {
  background: var(--navy-light);
}

.btn-outline {
  background: #ffffff;
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-outline:hover:not(:disabled) {
  background: var(--surface-alt);
}

.btn-wa {
  background: var(--wa);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-wa:hover:not(:disabled) {
  background: var(--wa-hover);
}

.hero-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-wa-btn .wa-svg-icon {
  color: #25d366;
}

.wa-svg-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.btn-sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 85% 15%, rgba(254, 76, 3, 0.09), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: 28px 0 48px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .hero {
    padding: 44px 0 64px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.02fr 1.08fr;
    gap: 40px;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pill-orange {
  background: var(--orange-soft);
  color: var(--orange-hover);
  border: 1px solid rgba(254, 76, 3, 0.25);
}

.pill-navy {
  background: #edf2f9;
  color: var(--navy);
  border: 1px solid rgba(11, 36, 66, 0.14);
}

.pill-green {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid rgba(13, 148, 136, 0.22);
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(27px, 4.2vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
}

.hero-title span {
  color: var(--orange);
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 56ch;
}

.hero-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

@media (min-width: 540px) {
  .hero-points {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
}

.hero-point-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 1px;
}

.hero-point strong {
  display: block;
  font-size: 13.5px;
  color: var(--navy);
  line-height: 1.3;
}

.hero-point small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--navy);
}

.stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

/* Calculator Card */
.calc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .calc-card {
    padding: 24px 26px;
  }
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.calc-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

.calc-header p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--border);
}

.step-dot.active {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
}

.step-dot.done {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.field-group {
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.field-hint {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background-color: #ffffff;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 769px) {
  .form-control {
    font-size: 14.5px;
  }
}

.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(254, 76, 3, 0.14);
}

select.form-control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  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='%230b2442' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  padding: 10px 38px 10px 13px;
  text-align: left;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%230b2442' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 17px 17px;
}

input[type="date"].form-control::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
}

input[type="date"].form-control::-webkit-datetime-edit,
input[type="date"].form-control::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-flex;
  align-items: center;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

textarea.form-control {
  min-height: 76px;
  resize: vertical;
}

/* Alive Gate Cards */
.alive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.choice-card:hover {
  border-color: #94a3b8;
}

.choice-card.selected {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 0 0 1px var(--orange);
}

.choice-card.selected-danger {
  border-color: var(--danger);
  background: var(--danger-bg);
  box-shadow: 0 0 0 1px var(--danger);
}

.choice-card strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}

.choice-card small {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}

.choice-badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--orange-hover);
}

.choice-badge-ok {
  color: var(--success-text);
}

/* Quick Chips */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--orange);
  color: var(--orange-hover);
  background: var(--orange-soft);
}

.chip-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* Brand Tabs */
.tab-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* Pill Selector Row */
.pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-option {
  min-height: 40px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-option.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.grid-2 > *,
.grid-3 > *,
.alive-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 540px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Issues Multi-Select Chips */
.issues-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.issue-chip {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.issue-chip.selected {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-hover);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.link-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange);
  cursor: pointer;
}

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

.alert-box {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.alert-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.alert-info {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.step-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.step-actions .btn-back {
  flex: 0 0 auto;
}

.step-actions .btn-next {
  flex: 1 1 auto;
}

/* Loading Overlay */
.calc-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.calc-loading img {
  width: 170px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 14px;
}

.calc-loading h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--navy);
}

.calc-loading p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 34ch;
}

/* Valuation Offer Box */
.offer-box {
  background: linear-gradient(135deg, var(--navy) 0%, #15365e 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}

.offer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.offer-device {
  font-size: 13.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.source-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.offer-price {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.offer-range {
  margin-top: 6px;
  font-size: 12.5px;
  color: #cbd5e1;
}

.offer-refresh-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.offer-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Deduction Breakdown */
.breakdown-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #ffffff;
  margin-bottom: 14px;
}

.breakdown-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--border);
}

.breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.breakdown-row.is-deduction span:last-child {
  color: var(--danger);
  font-weight: 700;
  white-space: nowrap;
}

.breakdown-row.is-total {
  border-top: 1.5px solid var(--border);
  border-bottom: none;
  margin-top: 4px;
  padding-top: 10px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
}

/* Market Samples Accordion */
.samples-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  margin-bottom: 18px;
}

.samples-details summary {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.samples-list {
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sample-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
}

.sample-item a {
  color: var(--navy);
  font-weight: 600;
}

.sample-item a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.sample-meta {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.sample-price {
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

/* Booking Inline Section */
.booking-divider {
  border-top: 2px dashed var(--border-strong);
  padding-top: 18px;
  margin-top: 16px;
}

.booking-title {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy);
}

.booking-subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

/* Booking Confirmed Card */
.confirmed-box {
  text-align: center;
  padding: 8px 2px;
}

.confirmed-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--wa);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 12px;
}

.booking-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1.5px dashed var(--navy);
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0 14px;
}

.copy-btn {
  border: none;
  background: var(--navy);
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.summary-grid {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #ffffff;
  margin-bottom: 16px;
  font-size: 13px;
}

.summary-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--surface-alt);
}

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

/* Generic Content Sections */
.section {
  padding: 52px 0;
}

.section-white {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.3vw, 32px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.section-desc {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* Trust Strip */
.trust-strip {
  background: var(--navy);
  color: #ffffff;
  padding: 20px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

.trust-stat {
  text-align: center;
}

.trust-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #ffb08e;
}

.trust-stat span {
  font-size: 12.5px;
  color: #cbd5e1;
}

/* Eligibility Cards */
.eligibility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .eligibility-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.elig-card {
  border-radius: var(--radius-md);
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.elig-card.accept {
  border-top: 4px solid var(--success);
}

.elig-card.reject {
  border-top: 4px solid var(--danger);
}

.elig-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--navy);
}

.elig-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.elig-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--navy);
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Price Highlights Grid */
.price-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .price-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .price-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-item-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.price-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.price-item-card h3 {
  margin: 0;
  font-size: 16.5px;
  color: var(--navy);
}

.price-item-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.price-buyback-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
}

/* Comparison Table */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--surface-alt);
  color: var(--navy);
  font-weight: 800;
}

.compare-table th.is-us,
.compare-table td.is-us {
  background: #fff9f6;
  color: var(--navy);
  font-weight: 700;
}

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testi-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.testi-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.testi-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
}

.testi-meta {
  font-size: 12px;
  color: var(--muted);
}

.testi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.testi-quote {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.testi-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--surface-alt);
  font-size: 12.5px;
}

.testi-sold-val {
  font-weight: 800;
  color: var(--success-text);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 600;
  color: var(--orange);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #173a64 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    padding: 36px 40px;
  }
}

.cta-banner h2 {
  margin: 0 0 6px;
  font-size: clamp(21px, 3vw, 28px);
}

.cta-banner p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14.5px;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

/* Footer (matched to exact #0B253E of profil_wa.jpeg) */
.footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  padding: 36px 0 calc(96px + env(safe-area-inset-bottom));
  font-size: 13.5px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.footer.footer-compact {
  padding: 26px 0 calc(52px + env(safe-area-inset-bottom));
}

@media (min-width: 769px) {
  .footer {
    padding: 44px 0 36px;
  }
  .footer.footer-compact {
    padding: 28px 0 32px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }
}

.footer-logo-square {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .footer-logo-square {
    width: 68px;
    height: 68px;
  }
}

.footer h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 14.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #94a3b8;
}

.footer-compact .footer-bottom {
  border-top: none;
  padding-top: 0;
  gap: 12px;
}

.footer-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 176, 142, 0.35);
  color: #ffb08e;
  font-weight: 700;
  font-size: 13px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.footer-back-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffb08e;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Sticky Mobile Action Bar */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(11, 36, 66, 0.08);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-sticky-bar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 769px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Status & Admin Utility Styles */
.page-shell {
  padding: 32px 0 64px;
  min-height: 72vh;
}

.card-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--surface-alt);
  color: var(--navy);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

/* Homepage Launcher & Dedicated /jual Wizard Page */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-main-cta {
  padding: 13px 22px;
  font-size: 15.5px;
}

.launcher-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.wizard-page-shell {
  padding: 28px 0 64px;
  min-height: 82vh;
  background: radial-gradient(circle at 80% 10%, rgba(254, 76, 3, 0.08), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.wizard-page-intro {
  text-align: center;
  margin-bottom: 22px;
}

.wizard-page-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(23px, 3.6vw, 32px);
  color: var(--navy);
  line-height: 1.2;
}

.wizard-page-intro p {
  margin: 0 auto;
  max-width: 56ch;
  font-size: 14.5px;
  color: var(--muted);
}

.lead-gate-box {
  text-align: center;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff9f6 0%, #ffffff 100%);
  border: 1.5px solid rgba(254, 76, 3, 0.25);
  margin-bottom: 18px;
}

.lead-lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin: 0 auto 10px;
}

.lead-gate-box h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--navy);
}

.lead-gate-box p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.lead-summary-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
}

.price-teaser-card {
  margin: 14px auto 6px;
  max-width: 320px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1.5px dashed rgba(254, 76, 3, 0.45);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.teaser-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.teaser-price-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 3px;
  filter: blur(4px);
  user-select: none;
  transition: filter 0.3s ease;
}

/* Brand Icons & Showcase Badges */
.brand-svg-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.showcase-brand-title {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.brand-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--surface-alt);
  color: var(--navy);
  border: 1px solid var(--border);
}

.brand-icon-badge.is-apple {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.brand-icon-badge.is-samsung {
  background: transparent;
  border-color: transparent;
  padding: 0;
  overflow: hidden;
}

.brand-samsung-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-samsung-tab-img {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Mobile-Friendly Admin Dashboard */
.admin-shell {
  padding: 20px 0 92px;
  min-height: 85vh;
}

.admin-top-bar {
  margin-bottom: 16px;
}

.admin-title {
  margin: 2px 0 10px;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--navy);
}

.admin-config-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.admin-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
}

.admin-kpi-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.admin-kpi-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin: 2px 0;
}

.admin-kpi-money {
  font-size: clamp(16px, 2.3vw, 21px);
}

.admin-kpi-card small {
  font-size: 11px;
  color: var(--muted);
}

.admin-tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.admin-tab-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.admin-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-item-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.admin-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-item-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.admin-user-meta {
  font-size: 11.5px;
  color: var(--muted);
}

.admin-badges-col {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-device-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  margin-bottom: 12px;
  font-size: 14px;
}

.admin-region-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 700;
}

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

@media (min-width: 640px) {
  .admin-price-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-price-box {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.admin-price-box.is-highlight {
  background: var(--orange-soft);
  border-color: rgba(254, 76, 3, 0.25);
}

.admin-price-box small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.admin-price-box strong {
  font-size: 13.5px;
  color: var(--navy);
}

.admin-deductions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.admin-deduction-chip {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--danger-bg);
  color: var(--danger-text);
  font-weight: 600;
}

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--surface-alt);
}

.admin-lead-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 320px;
}

.form-control-sm {
  min-height: 40px;
  padding: 6px 10px;
  font-size: 16px;
  flex: 1 1 140px;
}

@media (min-width: 769px) {
  .form-control-sm {
    min-height: 36px;
    font-size: 13px;
  }
}

/* Global Mobile Responsiveness Polish */
@media (max-width: 640px) {
  .navbar-inner {
    min-height: 58px;
    gap: 8px;
  }

  .brand-logo-img {
    height: 32px;
    max-width: 145px;
  }

  .hero {
    padding: 20px 0 36px;
  }

  .hero-cta-row .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .wizard-page-shell {
    padding: 18px 0 42px;
  }

  .calc-card {
    padding: 16px 15px;
    border-radius: 16px;
  }

  .calc-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .step-actions {
    flex-wrap: wrap;
  }

  .step-actions .btn-back,
  .step-actions .btn-next {
    min-height: 46px;
  }

  .summary-grid div {
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .summary-grid div strong {
    text-align: right;
    word-break: break-word;
    margin-left: auto;
  }

  .booking-code-pill {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 15.5px;
    padding: 8px 12px;
  }

  .cta-banner-actions {
    width: 100%;
  }

  .cta-banner-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .admin-cache-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 390px) {
  .alive-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-actions {
    flex-direction: column-reverse;
  }

  .step-actions .btn-back,
  .step-actions .btn-next {
    width: 100%;
  }
}

.admin-cache-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* AI Inspector Styles */
.ai-inspect-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.ai-kpi-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.ai-kpi-box strong {
  display: block;
  font-size: 18px;
  color: var(--navy);
  margin-top: 2px;
}

.ai-inspect-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.ai-inspect-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ai-inspect-card.is-valid {
  border-left: 4px solid var(--success);
}

.ai-inspect-card.is-invalid {
  border-left: 4px solid #ef4444;
  opacity: 0.88;
  background: #fffafa;
}

.ai-inspect-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.ai-badge.valid {
  background: #dcfce7;
  color: #15803d;
}

.ai-badge.invalid {
  background: #fee2e2;
  color: #b91c1c;
}

.ai-reason-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #334155;
  margin: 8px 0;
  line-height: 1.45;
}

.ai-tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ai-tag-pill {
  font-size: 11px;
  background: var(--bg-soft);
  color: var(--navy);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.admin-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(11, 36, 66, 0.08);
}

@media (min-width: 769px) {
  .admin-bottom-nav {
    display: none;
  }
}

.admin-bottom-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.admin-bottom-btn span {
  font-size: 17px;
}

.admin-bottom-btn small {
  font-size: 11px;
}

.admin-bottom-btn.active {
  color: var(--orange);
  background: var(--orange-soft);
}

