/* Pro Device Allocation Hub — Titanium Editorial Studio Theme */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --ink-muted: #475569;
  --line: #e2e8f0;

  --blue: #0071e3;
  --blue-hover: #0066cc;
  --blue-soft: #eff6ff;
  --emerald: #059669;
  --emerald-soft: #d1fae5;
  --amber-soft: #fef3c7;
  --amber-ink: #92400e;

  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-cta: 0 10px 24px rgba(0, 113, 227, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(0, 113, 227, 0.08), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(217, 179, 130, 0.14), transparent 34%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.45;
}

.page-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 16px 56px;
}

/* Live Batch Ticker */
.live-ticker-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.live-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  max-width: 100%;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulseDot 1.9s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-ticker-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero Card */
.hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.hero-preview-box {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #f5f5f7;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 4.8vw, 30px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.hero-title .accent-blue {
  color: var(--blue);
}

.hero-subtitle {
  font-size: 13.5px;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

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

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* Main Configurator Card */
.funnel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.step-block {
  margin-bottom: 20px;
}

.step-block:last-of-type {
  margin-bottom: 16px;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.step-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-hint {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

/* Model Grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 15px 10px 13px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
  font-family: inherit;
  color: inherit;
}

.model-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.model-card.is-selected {
  border-color: var(--blue);
  background: #f8fbff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.model-ribbon {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--ink);
}

.model-card.is-selected .model-ribbon {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.model-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 900;
}

.model-card.is-selected .model-check {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.model-art {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 6px 0 10px;
  background: #f5f5f7;
}

.model-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.model-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.model-desc {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 7px;
}

.model-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
}

/* Finish & Storage Option Strips */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-group-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 7px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.spec-chip:hover {
  border-color: #94a3b8;
}

.spec-chip.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.25);
  flex-shrink: 0;
}

/* Recipient Input */
.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}

.recipient-input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #f8fafc;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.recipient-input:focus {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.recipient-input.is-error {
  border-color: #dc2626;
  background: #fef2f2;
  animation: shakeInput 0.35s ease;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

.input-error-msg {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
}

.input-error-msg.visible {
  display: block;
}

/* Selection Summary + CTA */
.selection-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.selection-bar strong {
  color: var(--blue);
}

.cta-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 16px;
  background: var(--blue);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-cta);
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

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

.cta-btn:active {
  transform: translateY(1px);
}

.cta-subnote {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 10px;
}

/* FAQ Card */
.faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.faq-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:first-of-type {
  border-top: none;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.faq-chevron {
  font-size: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.faq-item.is-open .faq-a {
  display: block;
}

.site-footer {
  text-align: center;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  padding: 0 10px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  overflow-y: auto;
}

.modal-overlay.is-open {
  display: flex;
  animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  width: 100%;
  max-width: 470px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px 18px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  position: relative;
  margin: auto;
}

/* Sync Modal */
.sync-body {
  text-align: center;
  padding: 8px 4px;
}

.sync-art-ring {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 22px;
  border: 1.5px solid var(--line);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.16);
}

.sync-art-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sync-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  margin-bottom: 6px;
}

.sync-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 16px;
}

.sync-bar-track {
  width: 100%;
  height: 16px;
  border-radius: var(--radius-pill);
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 10px;
}

.sync-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #38bdf8, #10b981);
  transition: width 0.25s linear;
}

.sync-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

.sync-percent {
  color: var(--blue);
  font-size: 14.5px;
}

/* Locker Modal (No close X, sticky conversion) */
.locker-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.locker-pack-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f7;
}

.locker-pack-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.locker-heading-wrap {
  flex: 1;
  min-width: 0;
}

.locker-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  line-height: 1.18;
  margin-bottom: 2px;
}

.locker-subtitle {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.locker-target-pill {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
}

.locker-target-pill strong {
  color: var(--blue);
}

.locker-progress-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.locker-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  gap: 8px;
}

.locker-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid #bfdbfe;
}

.locker-status-pill.is-task1 {
  background: var(--emerald-soft);
  color: #065f46;
  border-color: #6ee7b7;
}

.locker-status-pill.is-pending {
  background: var(--amber-soft);
  color: var(--amber-ink);
  border-color: #fcd34d;
}

.locker-status-pill.is-complete {
  background: #059669;
  color: #ffffff;
  border-color: #047857;
}

.locker-bar-track {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: #e2e8f0;
  overflow: hidden;
}

.locker-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--blue), #10b981);
  transition: width 0.35s ease;
}

.helper-tip {
  display: none;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--amber-ink);
}

.helper-tip.visible {
  display: block;
}

/* Offers List */
.offers-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 12px;
}

.offer-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 11px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}

.offer-card:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.1);
}

.offer-card.is-opened {
  background: #f0fdf4;
  border-color: #34d399;
}

.offer-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-soft);
}

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

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}

.offer-badge.badge-best {
  background: var(--emerald-soft);
  color: #065f46;
}

.offer-badge.badge-fast {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.offer-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 3px;
}

.offer-desc {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.35;
}

.offer-cta {
  padding: 9px 13px;
  border-radius: 11px;
  background: var(--blue);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.offer-card.is-opened .offer-cta {
  background: var(--emerald);
}

/* Loading & Empty States */
.offers-loading,
.offers-empty {
  text-align: center;
  padding: 22px 14px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #cbd5e1;
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: spin 0.75s linear infinite;
}

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

.retry-btn {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.locker-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.preview-unlocked-box {
  display: none;
  text-align: center;
  padding: 14px 10px;
  background: #ecfdf5;
  border: 1.5px solid #34d399;
  border-radius: 14px;
  margin-bottom: 12px;
}

.preview-unlocked-box.visible {
  display: block;
}

.preview-unlocked-box h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  color: #065f46;
  margin-bottom: 3px;
}

.preview-unlocked-box p {
  font-size: 12px;
  font-weight: 600;
  color: #047857;
}

@media (max-width: 540px) {
  .page-shell {
    padding: 12px 12px 44px;
  }

  .hero-card {
    padding: 14px;
    gap: 12px;
  }

  .hero-preview-box {
    width: 74px;
    height: 74px;
    border-radius: 16px;
  }

  .funnel-card {
    padding: 16px 14px;
  }

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

  .model-grid {
    gap: 9px;
  }

  .model-art {
    width: 70px;
    height: 70px;
  }

  .modal-box {
    padding: 18px 14px 16px;
  }

  .offer-icon {
    width: 46px;
    height: 46px;
  }

  .offer-cta {
    padding: 8px 10px;
    font-size: 12px;
  }
}
