/* ═══════════════════════════════════════════════════
   SHIP CHIP — style.css
   Real sky photo backgrounds + glassmorphism UI
═══════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --navy: #0D1B2A;
  --navy2: #1a2e44;
  --navy3: #243b55;
  --sky: #1976D2;
  --green: #00C96A;
  --green-bg: rgba(0, 201, 106, 0.15);
  --green-b: rgba(0, 201, 106, 0.35);
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-b: rgba(255, 255, 255, 0.92);
  --glass-dk: rgba(13, 27, 42, 0.65);
  --text: #0D1B2A;
  --text2: #1a3a5c;
  --text3: #3a6080;
  --text4: #6a8ca8;
  --r: 20px;
  --r2: 14px;
  --r3: 10px;
  --sh: 0 8px 40px rgba(13, 27, 42, 0.22);
  --sh2: 0 4px 20px rgba(13, 27, 42, 0.14);
  --sh3: 0 2px 10px rgba(13, 27, 42, 0.10);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { height: 100%; scroll-behavior: smooth; }
body { font-family: 'Syne', sans-serif; color: var(--text); min-height: 100vh; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; }

/* ══════════════════════════════════════════════════
   REAL SKY PHOTO BACKGROUND
══════════════════════════════════════════════════ */
#sky-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

/* Hero sky — the above-clouds dramatic shot */
.sky-photo-layer {
  position: absolute;
  inset: 0;
  background-image: url('bg-hero.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: sky-breathe 20s ease-in-out infinite alternate;
}

@keyframes sky-breathe {
  from { transform: scale(1.05) translateY(0px); }
  to   { transform: scale(1.08) translateY(-8px); }
}

/* Overlay: darken the photo for text legibility, keep sky feel */
.sky-overlay-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 40, 90, 0.28) 0%,
    rgba(12, 50, 100, 0.18) 20%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(240, 248, 255, 0.55) 80%,
    rgba(230, 244, 255, 0.80) 100%
  );
}

/* Floating cloud elements using the isolated cloud photo */
#float-clouds { position: absolute; inset: 0; pointer-events: none; }
.fc {
  position: absolute;
  background-image: url('cloud.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  animation: cloud-float linear infinite;
}
@keyframes cloud-float {
  0%   { opacity: 0;    transform: translateX(-100px); }
  5%   { opacity: var(--co, 0.55); }
  90%  { opacity: var(--co, 0.55); }
  100% { opacity: 0;    transform: translateX(calc(100vw + 200px)); }
}

/* Swap to sky photo for inner screens */
body.screen-scan #sky-bg .sky-photo-layer,
body.screen-ship #sky-bg .sky-photo-layer,
body.screen-print #sky-bg .sky-photo-layer {
  background-image: url('bg-sky.jpg');
  background-position: center center;
}

/* ══════════════════════════════════════════════════
   APP SHELL
══════════════════════════════════════════════════ */
#app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */
#nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 30, 60, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 20px rgba(8, 25, 55, 0.25);
}

.nav-back {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 20px;
  padding: 4px 8px 4px 0;
  transition: color .2s;
}
.nav-back:hover { color: white; }

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

.nav-wordmark {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  color: white;
}

.nav-actions { display: flex; gap: 8px; }

.nav-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 20px;
  transition: .2s;
  letter-spacing: .02em;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.28); }
.nav-btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  font-weight: 700;
}
.nav-btn.primary:hover { background: #00b05c; }

/* ══════════════════════════════════════════════════
   SCREENS
══════════════════════════════════════════════════ */
.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 0 0 80px;
}
.screen.active { display: flex; }
.screen-inner { padding: 28px 20px; flex: 1; }

/* ══════════════════════════════════════════════════
   HOME — HERO
══════════════════════════════════════════════════ */
#s-home { padding: 0 0 80px; align-items: center; }

.hero {
  width: 100%;
  text-align: center;
  padding: 48px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  margin-bottom: 20px;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 201, 106, 0.22);
  border: 1px solid rgba(0, 201, 106, 0.45);
  color: #b9ffd9;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: .06em;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.3); } }

.hero-h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: white;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 4px 40px rgba(0,0,0,0.3);
}
.hero-h1 em {
  font-style: normal;
  color: var(--green);
  text-shadow: 0 0 30px rgba(0, 201, 106, 0.4), 0 2px 20px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  margin-bottom: 36px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  max-width: 320px;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.cta-btn {
  width: 100%;
  padding: 18px 28px;
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  border: none;
  transition: .25s;
}
.cta-btn:active { transform: scale(.97); }

.cta-btn.primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 6px 28px rgba(13, 27, 42, 0.5), 0 2px 8px rgba(0,0,0,0.3);
}
.cta-btn.primary:hover { background: var(--navy2); transform: translateY(-2px); box-shadow: 0 10px 36px rgba(13, 27, 42, 0.55); }

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.20);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.cta-btn.secondary:hover { background: rgba(255, 255, 255, 0.30); }

/* ── HOW GRID ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  padding: 0 20px;
  margin-bottom: 14px;
}

.how-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: var(--r2);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--sh2);
}
.how-num { font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 500; color: var(--green); letter-spacing: .14em; margin-bottom: 8px; }
.how-icon { font-size: 22px; margin-bottom: 6px; }
.how-card strong { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.how-card p { font-size: 11px; color: var(--text3); line-height: 1.4; }

/* ── CARRIER STRIP ── */
.carrier-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px 16px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: var(--r2);
  box-shadow: var(--sh3);
}
.carrier-pills { display: flex; gap: 8px; }
.carrier-pills span {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text2);
  background: rgba(13,27,42,0.07);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.carrier-sub { font-size: 11px; color: var(--text3); }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: .12em;
  padding: 0 20px;
  margin-bottom: 12px;
}

/* ── FEAT GRID ── */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 24px;
}
.feat-card {
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: var(--r2);
  padding: 16px 14px;
  box-shadow: var(--sh3);
}
.feat-icon { font-size: 22px; margin-bottom: 9px; }
.feat-card strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feat-card p { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* ── SEO BLOCK ── */
.seo-block {
  margin: 0 20px 24px;
  padding: 22px 20px;
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: var(--r2);
}
.seo-block h2 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.seo-block p { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.seo-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 16px; }
.seo-list li { font-size: 12px; color: var(--text3); padding: 3px 0; }
.seo-list li::before { content: '→ '; color: var(--green); font-weight: 700; }

/* ── FAQ ── */
.faq-section { padding: 0 20px; margin-bottom: 24px; }
.faq-item {
  border-bottom: 1px solid rgba(13,27,42,0.08);
  padding: 14px 0;
  cursor: pointer;
}
.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-ch { transition: .2s; color: var(--text3); flex-shrink: 0; margin-left: 8px; }
.faq-item.open .faq-ch { transform: rotate(180deg); }
.faq-a { font-size: 13px; color: var(--text2); line-height: 1.65; margin-top: 10px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ══════════════════════════════════════════════════
   PRINT SCREEN
══════════════════════════════════════════════════ */
.screen-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin-bottom: 6px; }
.screen-sub { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 24px; }

.chip-sheet-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: var(--r2);
  padding: 16px;
  box-shadow: var(--sh3);
  backdrop-filter: blur(12px);
}
.csp-cell {
  border: 1.5px dashed rgba(13,27,42,0.14);
  border-radius: 7px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.55);
}
.csp-qr { width: 38px; height: 38px; background: var(--navy); border-radius: 3px; opacity: .85; }
.csp-cell span { font-family: 'DM Mono', monospace; font-size: 8px; color: var(--text4); }

.info-card {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: var(--r2);
  padding: 14px 18px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
}
.irow { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(13,27,42,0.06); }
.irow:last-child { border-bottom: none; }
.idot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 5px; }
.irow span:last-child { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ══════════════════════════════════════════════════
   SCAN SCREEN
══════════════════════════════════════════════════ */
#scan-wrap {
  flex: 1;
  position: relative;
  background: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 54px);
}
#qr-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  opacity: .88;
}
.scan-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.scan-frame {
  width: 248px;
  height: 248px;
  position: relative;
}
.sc-tl, .sc-tr, .sc-bl, .sc-br {
  position: absolute;
  width: 36px;
  height: 36px;
  display: block;
}
.sc-tl { top: 0; left: 0; border-top: 3px solid #fff; border-left: 3px solid #fff; border-radius: 5px 0 0 0; }
.sc-tr { top: 0; right: 0; border-top: 3px solid #fff; border-right: 3px solid #fff; border-radius: 0 5px 0 0; }
.sc-bl { bottom: 0; left: 0; border-bottom: 3px solid #fff; border-left: 3px solid #fff; border-radius: 0 0 0 5px; }
.sc-br { bottom: 0; right: 0; border-bottom: 3px solid #fff; border-right: 3px solid #fff; border-radius: 0 0 5px 0; }
.scan-laser {
  position: absolute;
  width: 210px;
  height: 2.5px;
  left: 19px;
  background: linear-gradient(90deg, transparent, var(--green), #00ff8c, var(--green), transparent);
  border-radius: 2px;
  animation: laser 2.2s ease-in-out infinite;
  top: 12px;
  box-shadow: 0 0 10px rgba(0,201,106,0.8);
}
@keyframes laser { 0%,100% { top: 12px; } 50% { top: 224px; } }
.scan-hint {
  margin-top: 30px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: .03em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.scan-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px 48px;
  background: linear-gradient(to top, rgba(0,0,0,.92), transparent);
}
#scan-status {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  font-family: 'DM Mono', monospace;
  letter-spacing: .07em;
  margin-bottom: 14px;
  min-height: 20px;
}
.btn-manual {
  width: 100%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: white;
  padding: 16px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: .2s;
}
.btn-manual:hover { background: rgba(255,255,255,.22); }

/* ══════════════════════════════════════════════════
   SHIP SCREEN
══════════════════════════════════════════════════ */
.chip-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: var(--r3);
  backdrop-filter: blur(12px);
}
.chip-tag-badge {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  background: rgba(13,27,42,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(13,27,42,0.12);
}
.chip-tag-sub { font-size: 12px; color: var(--text3); }

.fg { margin-bottom: 20px; }
.fl { font-size: 11px; font-weight: 700; color: var(--text3); letter-spacing: .1em; margin-bottom: 8px; display: block; }
.fi {
  width: 100%;
  background: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(255,255,255,0.96);
  border-radius: var(--r3);
  padding: 16px;
  color: var(--navy);
  font-size: 15px;
  font-family: 'Syne', sans-serif;
  outline: none;
  transition: .2s;
  box-shadow: 0 2px 12px rgba(13,27,42,0.08);
}
.fi:focus { border-color: #64B5F6; box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.22); }
.fi::placeholder { color: var(--text4); }

.sg { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.sb {
  background: rgba(255,255,255,0.80);
  border: 1.5px solid rgba(255,255,255,0.96);
  border-radius: var(--r3);
  padding: 14px 6px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  box-shadow: var(--sh3);
}
.sb b { display: block; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.sb small { font-size: 9px; font-family: 'DM Mono', monospace; color: var(--text4); }
.sb.on { border-color: var(--navy); background: var(--navy); }
.sb.on b, .sb.on small { color: white; }

.dims3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.ep-quick-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ep-pill {
  background: rgba(13,27,42,0.08);
  border: 1px solid rgba(13,27,42,0.12);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
}
.ep-pill:hover { background: rgba(13,27,42,0.15); }

/* Rates */
.rates-hdr { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.rates-title { font-size: 22px; font-weight: 800; color: var(--navy); }
.rates-dest { font-size: 12px; color: var(--text3); margin-top: 3px; font-family: 'DM Mono', monospace; }
.btn-edit { background: none; border: none; color: var(--text2); font-size: 13px; font-weight: 600; }

.rlist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.rc {
  background: rgba(255,255,255,0.84);
  border: 1.5px solid rgba(255,255,255,0.96);
  border-radius: var(--r);
  padding: 18px;
  cursor: pointer;
  transition: .22s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--sh3);
  backdrop-filter: blur(10px);
}
.rc.best { margin-top: 12px; }
.rc:hover { box-shadow: var(--sh2); }
.rc.sel { border-color: var(--navy); background: rgba(13,27,42,0.07); }
.cbest {
  position: absolute;
  top: -11px; left: 14px;
  background: var(--green);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: .1em;
  font-family: 'DM Mono', monospace;
}
.rc-carrier { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.rc-service { font-size: 12px; color: var(--text2); }
.rc-days { font-size: 11px; color: var(--text3); margin-top: 3px; font-family: 'DM Mono', monospace; }
.rc-price { font-family: 'DM Mono', monospace; font-size: 26px; font-weight: 500; color: var(--navy); }
.rc.best .rc-price { color: var(--green); }
.rc-radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(13,27,42,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: 10px; transition: .2s; }
.rc.sel .rc-radio { border-color: var(--navy); }
.rc.sel .rc-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); display: block; }

/* ══════════════════════════════════════════════════
   CONFIRM SCREEN
══════════════════════════════════════════════════ */
.confirm-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.check-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 2px solid var(--green-b);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 0 30px rgba(0,201,106,0.25);
}
.confirm-h { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.confirm-c { font-size: 14px; color: var(--text2); margin-bottom: 4px; }
.confirm-t { font-size: 12px; color: var(--text3); font-family: 'DM Mono', monospace; margin-bottom: 22px; }
.confirm-i { font-size: 13px; font-weight: 700; color: var(--text2); margin-bottom: 14px; }
.qr-box {
  background: white;
  border-radius: var(--r);
  padding: 20px;
  display: inline-block;
  box-shadow: var(--sh);
  border: 1px solid rgba(0,0,0,0.06);
}
.conf-steps {
  width: 100%;
  text-align: left;
  margin-top: 22px;
  padding-left: 0;
  list-style: none;
  counter-reset: steps;
}
.conf-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(13,27,42,0.07);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  counter-increment: steps;
}
.conf-steps li:last-child { border-bottom: none; }
.conf-steps li::before {
  content: counter(steps);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ══════════════════════════════════════════════════
   TRACK SCREEN
══════════════════════════════════════════════════ */
.track-top { margin-bottom: 24px; }
.tbadge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 20px; font-family: 'DM Mono', monospace; letter-spacing: .05em; background: rgba(239,159,39,0.14); color: #854F0B; border: 1px solid rgba(239,159,39,0.3); }
.tbadge.done { background: var(--green-bg); color: #006e3a; border-color: var(--green-b); }
.tbadge.idle { background: rgba(13,27,42,0.08); color: var(--navy2); border-color: rgba(13,27,42,0.12); }
.track-h { font-size: 22px; font-weight: 800; color: var(--navy); margin-top: 10px; margin-bottom: 4px; }
.track-s, .track-c { font-size: 12px; color: var(--text3); font-family: 'DM Mono', monospace; }
.track-tl {
  position: relative;
  list-style: none;
  padding-left: 0;
}
.track-tl::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(13,27,42,0.10);
}
.te {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
}
.te-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(13,27,42,0.12);
  background: white;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--sh3);
}
.te-dot.done { border-color: var(--green); background: var(--green-bg); }
.te-dot.done::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: block; }
.te-dot.cur { border-color: var(--navy); background: rgba(13,27,42,0.08); }
.te-dot.cur::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); display: block; }
.te-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.te-sub { font-size: 12px; color: var(--text3); font-family: 'DM Mono', monospace; }
.tempty { text-align: center; padding: 48px 0; }
.eicon { font-size: 52px; margin-bottom: 16px; }
.tempty h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.tempty p { font-size: 13px; color: var(--text2); }

/* ══════════════════════════════════════════════════
   ACCOUNT SCREEN
══════════════════════════════════════════════════ */
.auth-card {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: var(--r);
  padding: 22px 20px;
  margin-bottom: 24px;
  text-align: center;
  backdrop-filter: blur(12px);
}
.auth-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.ep-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: var(--r2);
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--sh3);
}
.ep-card:hover { background: rgba(255,255,255,0.88); }
.ep-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.ep-addr { font-size: 12px; color: var(--text2); }
.ep-meta { font-size: 11px; color: var(--text3); margin-top: 2px; }
.hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(13,27,42,0.07);
  cursor: pointer;
}
.hist-row:last-child { border-bottom: none; }
.hist-id { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--green); margin-bottom: 2px; }
.hist-d { font-size: 13px; font-weight: 600; color: var(--navy); }
.hist-m { font-size: 11px; color: var(--text3); margin-top: 2px; }
.hist-s { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.addbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: none; border: 1.5px dashed rgba(13,27,42,0.14); color: var(--text2); padding: 14px; border-radius: var(--r2); font-size: 14px; margin-top: 4px; transition: .2s; }
.addbtn:hover { border-color: rgba(13,27,42,0.28); color: var(--navy); }
.empty-p { font-size: 13px; color: var(--text4); padding: 10px 0; }

/* ══════════════════════════════════════════════════
   SHARED COMPONENTS
══════════════════════════════════════════════════ */
.btn-full {
  width: 100%;
  padding: 17px 24px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  transition: .2s;
  letter-spacing: .01em;
  border: none;
  display: block;
}
.btn-full:active { transform: scale(.98); }

.btn-full.navy { background: var(--navy); color: white; box-shadow: 0 4px 18px rgba(13,27,42,0.28); }
.btn-full.navy:hover { background: var(--navy2); transform: translateY(-1px); }
.btn-full.navy:disabled { opacity: .4; cursor: default; transform: none; }

.btn-full.glass {
  background: rgba(255,255,255,0.72);
  color: var(--navy);
  border: 1.5px solid rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
}
.btn-full.glass:hover { background: rgba(255,255,255,0.88); }

.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.divider { height: 1px; background: rgba(13,27,42,0.08); margin: 22px 0; }

.spinner-wrap, .spin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 0;
  font-size: 13px;
  color: var(--text2);
}
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(13,27,42,0.10);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 45, 0.65);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-box {
  background: white;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 28px 24px 52px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 -8px 48px rgba(13,27,42,0.22);
}
.modal-title { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.modal-close { float: right; background: none; border: none; color: var(--text3); font-size: 24px; margin-top: -6px; }

/* ══════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════ */
#toast {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 13px 24px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: .3s;
  z-index: 300;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--sh);
}
#toast.show { opacity: 1; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
  background: rgba(8, 20, 50, 0.72);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 32px 20px;
  margin-top: auto;
}
.footer-wrap { max-width: 480px; margin: 0 auto; }
.flogo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.flogo span { font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 500; color: white; letter-spacing: .12em; }
.fdesc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 16px; }
.ftags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ftags span { font-size: 10px; color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); padding: 3px 8px; border-radius: 10px; }
.fcopy { font-size: 11px; color: rgba(255,255,255,0.30); }

/* ══════════════════════════════════════════════════
   UTILITY
══════════════════════════════════════════════════ */
.hidden { display: none !important; }
