:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-muted: #EFEFF4;
  --surface-soft: #F9F9FB;
  --dark: #000000;
  --dark-card: #161617;
  --dark-elev: #1D1D1F;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: #86868B;
  --border: #E5E5EA;
  --border-strong: #D2D2D7;
  --blue: #0071E3;
  --blue-hover: #0066CC;
  --blue-tint: #E8F1FD;
  --emerald: #00C896;
  --emerald-dark: #00A87E;
  --emerald-tint: #E2F9F1;
  --indigo: #5E5CE6;
  --indigo-dark: #4F46E5;
  --indigo-tint: #EEF0FF;
  --red: #FF4A5A;
  --red-tint: #FFEBF0;
  --amber: #D97706;
  --amber-tint: #FEF3C7;
  --cream: #EFECE3;
  --navy: #122347;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.14);
  --font-ar: 'IBM Plex Sans Arabic', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Consolas', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  background: #E8E8ED;
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 20px 60px rgba(0, 0, 0, 0.10);
  overflow-x: hidden;
}

@media (max-width: 460px) {
  body { background: var(--bg); }
  .app-shell { max-width: 100%; box-shadow: none; }
}

.hidden { display: none !important; }
.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: embed; }
.ltr { direction: ltr; unicode-bidi: embed; }

/* Sticky Apple Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(245, 245, 247, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(210, 210, 215, 0.65);
}

.topbar-dark {
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.brand-wrap img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
}

.brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-center {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  flex: 1;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--blue);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--indigo-tint);
  color: var(--indigo-dark);
  border: 1px solid rgba(94, 92, 230, 0.22);
  border-radius: var(--radius-pill);
  padding: 4px 10px 4px 8px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.guide-pill img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.topbar-dark .guide-pill {
  background: rgba(94, 92, 230, 0.24);
  color: #D9D6FF;
  border-color: rgba(165, 148, 249, 0.35);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
}

.pill-btn:active { transform: scale(0.97); }
.pill-btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill-btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-btn-emerald { background: var(--emerald); border-color: var(--emerald); color: #052e22; font-weight: 700; }
.pill-btn-ghost-dark { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }

.notif-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.notif-dot {
  position: absolute;
  top: -2px;
  left: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Page container */
.page-pad {
  padding: 16px 16px 96px;
}

.page-pad-landing {
  padding-bottom: 0;
}

/* Typography & Cards */
.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.h1 {
  font-family: 'Tajawal', var(--font-ar);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.h2 {
  font-family: 'Tajawal', var(--font-ar);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ink);
}

.h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.card-dark {
  background: var(--dark-card);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 12px;
}

.card-dark .sub { color: #A1A1A6; }

/* Primary Buttons */
.btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-blue { background: var(--blue); color: #FFFFFF; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-emerald { background: var(--emerald); color: #052e22; }
.btn-emerald:hover { background: var(--emerald-dark); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); }
.btn-indigo { background: var(--indigo); color: #FFFFFF; }
.btn-soft-blue { background: var(--blue-tint); color: var(--blue); }
.btn-soft-emerald { background: var(--emerald-tint); color: #007A5B; }
.btn-soft-red { background: var(--red-tint); color: #C91D32; }
.btn-sm { padding: 9px 12px; font-size: 12.5px; border-radius: 10px; }

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-blue { background: var(--blue-tint); color: var(--blue); }
.badge-emerald { background: var(--emerald-tint); color: #008060; }
.badge-amber { background: var(--amber-tint); color: #B45309; }
.badge-red { background: var(--red-tint); color: #C91D32; }
.badge-indigo { background: var(--indigo-tint); color: var(--indigo-dark); }
.badge-dark { background: rgba(255,255,255,0.12); color: #fff; }

/* Form Elements */
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}

.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.textarea { min-height: 82px; resize: vertical; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }

/* Segmented Control (Apple) */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-muted);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 14px;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Progress Stepper */
.step-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}

.step-bar.three { grid-template-columns: repeat(3, 1fr); }
.step-seg { height: 4px; border-radius: 99px; background: var(--border); }
.step-seg.done { background: var(--blue); }

/* Selectable Chips & Option Cards */
.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.choice-chip {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.14s ease;
}

.choice-chip.active {
  border-color: var(--blue);
  background: var(--blue-tint);
  color: var(--blue);
  font-weight: 700;
}

.pkg-tile {
  padding: 10px 6px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}

.pkg-tile .pkg-p { font-size: 13px; font-weight: 800; color: var(--ink); }
.pkg-tile .pkg-c { font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.pkg-tile.active { border-color: var(--blue); background: var(--blue-tint); }
.pkg-tile.active .pkg-p, .pkg-tile.active .pkg-c { color: var(--blue); }

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.toggle-pill.active {
  background: var(--blue-tint);
  border-color: var(--blue);
  color: var(--blue);
}

/* Upload Dropzone */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover { border-color: var(--blue); background: var(--blue-tint); }
.dropzone-ico {
  width: 38px; height: 38px; margin: 0 auto 8px;
  border-radius: 50%; background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800;
}

/* =========================================================================
   LANDING PAGE (00 - PagerIQ / Apple Style)
   ========================================================================= */
.landing-hero {
  background: #000000;
  color: #FFFFFF;
  padding: 26px 18px 28px;
}

.landing-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #34D399;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.landing-hero h1 {
  font-family: 'Tajawal', var(--font-ar);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.landing-hero h1 span {
  display: block;
  background: linear-gradient(90deg, #2997FF, #00C896);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero p {
  color: #A1A1A6;
  font-size: 13.5px;
  margin-top: 10px;
  line-height: 1.65;
}

.hero-preview-card {
  margin-top: 20px;
  background: linear-gradient(180deg, #1A1A1F 0%, #111114 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
}

.landing-section {
  padding: 28px 16px;
}

.landing-section.white { background: #FFFFFF; }
.landing-section.dark { background: #000000; color: #FFFFFF; }

.section-kicker {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.landing-section.dark .section-kicker { color: #00C896; }

.stat-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px;
}

.stat-tile-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
}

.stat-tile-title { font-size: 13px; font-weight: 700; margin-top: 4px; }
.stat-tile-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}

.step-num-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.compare-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
}

.compare-row-title { font-size: 12.5px; font-weight: 800; margin-bottom: 6px; }
.compare-good { color: #007A5B; font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.compare-bad { color: #A1A1A6; font-size: 11.5px; }

.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
}

.price-card.featured {
  background: #161617;
  color: #FFFFFF;
  border-color: var(--emerald);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.price-card.featured .sub { color: #A1A1A6; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
}

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

.faq-a {
  padding: 0 14px 13px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

.landing-footer {
  background: #000000;
  color: #A1A1A6;
  padding: 28px 18px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================================
   PROTECTED PREVIEW (Screen 09)
   ========================================================================= */
.protected-doc-wrap {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--border-strong);
  border-radius: 16px;
  padding: 18px 14px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.watermark-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  overflow: hidden;
}

.watermark-line {
  transform: rotate(-24deg);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 74, 90, 0.16);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.pdf-canvas-list canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

@media print {
  .protected-doc-wrap, body.preview-protected * {
    display: none !important;
  }
}

/* Privacy shield overlay */
.privacy-shield {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 17, 19, 0.94);
  backdrop-filter: blur(22px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-shield-card {
  max-width: 320px;
  text-align: center;
  color: #FFFFFF;
}

.shield-ico { font-size: 42px; margin-bottom: 10px; }

/* =========================================================================
   QR PAYMENT CARD (Screen 10)
   ========================================================================= */
.qr-card {
  background: #161617;
  color: #FFFFFF;
  border-radius: 22px;
  padding: 20px;
  text-align: center;
  margin-bottom: 14px;
}

.qr-frame {
  width: 196px;
  height: 196px;
  margin: 12px auto;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-frame img, .qr-frame svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================================
   GRADUATION STORY STUDIO (Screens 13A, 13B, 14)
   ========================================================================= */
.story-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 15.5;
  border-radius: 24px;
  overflow: hidden;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  margin-bottom: 14px;
  transition: background 0.25s ease;
}

.story-stage.cream {
  background: #EFECE3;
  color: #1D1D1F;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.story-stage.navy {
  background: #122347;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.story-cap-decor {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 66px;
  height: auto;
  opacity: 0.92;
  pointer-events: none;
}

.story-emblem-decor {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: auto;
  opacity: 0.92;
  pointer-events: none;
}

.story-diploma-decor {
  position: absolute;
  bottom: 12px;
  left: 8px;
  width: 112px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
}

.story-year-col {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  opacity: 0.22;
  line-height: 1;
  pointer-events: none;
}

.story-photo-box {
  position: relative;
  z-index: 2;
  width: 72%;
  aspect-ratio: 3 / 3.7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 4px solid #FFFFFF;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  padding: 12px;
  color: #1D1D1F;
}

.story-stage.navy .story-photo-box {
  transform: rotate(-3.5deg);
  border-width: 6px;
}

.story-photo-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================================
   BOTTOM NAVIGATION
   ========================================================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}

.bnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px;
  cursor: pointer;
}

.bnav-item.active { color: var(--blue); }
.bnav-ico { font-size: 18px; line-height: 1.1; }
.bnav-badge {
  position: absolute;
  top: 0;
  left: 24%;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Modal Sheet & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 86dvh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 18px 16px 26px;
  box-shadow: var(--shadow-float);
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast-root {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 400px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #1D1D1F;
  color: #FFFFFF;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  border-right: 4px solid var(--emerald);
  pointer-events: auto;
}

.toast.error { border-right-color: var(--red); }
.toast.info { border-right-color: var(--blue); }

/* Progress bar */
.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #00C896, #2997FF);
  transition: width 0.3s ease;
}

.divider { height: 1px; background: var(--border); margin: 12px 0; }
