/* ================================================================
   style.css — Customer-facing pages (index.html, success.html)
   Design: Dark carbon-texture mobile web app, warm gold accents
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg:          #0b0b0b;
  --bg-card:     #161616;
  --bg-card2:    #1e1e1e;
  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(201,169,110,0.3);
  --gold:        #c9a96e;
  --gold-light:  #e2c88f;
  --gold-dim:    rgba(201,169,110,0.15);
  --text:        #ffffff;
  --text-2:      rgba(255,255,255,0.55);
  --text-3:      rgba(255,255,255,0.3);
  --green:       #34d399;
  --red:         #f87171;
  --blue:        #60a5fa;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 24px rgba(201,169,110,0.15);
  --font:        'Inter', -apple-system, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Page Layout ──────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(88px + var(--safe-bottom));
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  padding: 52px 20px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header__icon-wrap svg { width: 22px; height: 22px; color: var(--gold); }

.header__text {}
.header__ssid {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.header__subtitle {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 2px;
}

/* ── Section label ────────────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 20px;
  margin-bottom: 12px;
}

/* ── Package Cards ────────────────────────────────────────── */
.packages-section { padding: 0 20px; }

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

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.4s both;
}

.package-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(201,169,110,0.06), transparent 60%);
  pointer-events: none;
}

.package-card:active { transform: scale(0.97); }
.package-card.out-of-stock { opacity: 0.45; pointer-events: none; }

.package__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.package__badge--available { background: rgba(52,211,153,0.12); color: var(--green); }
.package__badge--low       { background: rgba(251,191,36,0.12);  color: #fbbf24; }
.package__badge--out       { background: rgba(248,113,113,0.12); color: var(--red); }

.package__duration {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.package__price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}

.package__price-cents {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Quantity stepper inside card */
.qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-stepper__btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.qty-stepper__btn:hover:not(:disabled) { background: rgba(255,255,255,0.06); }
.qty-stepper__btn:disabled { opacity: 0.3; cursor: default; }

.qty-stepper__val {
  min-width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Add to cart button */
.btn-add {
  width: 100%;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-add:hover { background: rgba(201,169,110,0.22); }
.btn-add:active { transform: scale(0.97); }
.btn-add:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.btn-add svg { width: 14px; height: 14px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 12px 20px;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: default; }

.btn-primary {
  background: var(--gold);
  color: #0b0b0b;
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); }

.btn-block { width: 100%; }
.btn-sm { font-size: 0.8rem; padding: 8px 14px; border-radius: 9px; }

/* ── Cart Bar (floating bottom) ──────────────────────────── */
.cart-bar {
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(200%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  width: calc(100% - 28px);
  max-width: 440px;
  background: var(--gold);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), opacity 0.25s ease, visibility 0.3s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 2px 12px rgba(201,169,110,0.3);
}
.cart-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.cart-bar__info { display: flex; align-items: center; gap: 9px; min-width: 0; }

.cart-bar__badge {
  background: #0b0b0b;
  color: var(--gold);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cart-bar__count { font-size: 0.82rem; font-weight: 700; color: #0b0b0b; line-height: 1.1; white-space: nowrap; }
.cart-bar__total { font-size: 0.78rem; font-weight: 600; color: rgba(11,11,11,0.75); line-height: 1.1; white-space: nowrap; }

.cart-bar__actions { display: flex; gap: 6px; flex-shrink: 0; }

.cart-bar__btn {
  background: rgba(11,11,11,0.18);
  color: #0b0b0b;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
  white-space: nowrap;
}
.cart-bar__btn:hover { background: rgba(11,11,11,0.28); }
.cart-bar__btn--solid { background: #0b0b0b; color: var(--gold); }

/* ── Cart Drawer ─────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  z-index: 201;
  transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1);
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.cart-drawer.open { transform: translateX(-50%) translateY(0); }

.cart-drawer__handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__title { font-size: 1rem; font-weight: 700; }

.cart-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card2);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer__close svg { width: 16px; height: 16px; }

.cart-drawer__body { overflow-y: auto; flex: 1; padding: 12px 0; }

.cart-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.875rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 0.875rem; font-weight: 600; }
.cart-item__meta { font-size: 0.75rem; color: var(--text-2); margin-top: 2px; }

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item__price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 50px;
  text-align: right;
}

.cart-item__remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(248,113,113,0.1);
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item__remove svg { width: 12px; height: 12px; }

.cart-drawer__footer {
  padding: 16px 20px calc(16px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer__totals {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cart-drawer__totals-label { font-size: 0.875rem; color: var(--text-2); }
.cart-drawer__totals-value { font-size: 1rem; font-weight: 800; color: var(--gold); }

/* ── Bottom Nav ───────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(14,14,14,0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 10px 0 calc(10px + var(--safe-bottom));
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  cursor: pointer;
  color: var(--text-3);
  transition: color 0.2s;
  border: none;
  background: none;
  font-family: var(--font);
}
.bottom-nav__item.active { color: var(--gold); }
.bottom-nav__item svg { width: 22px; height: 22px; }
.bottom-nav__item span { font-size: 0.65rem; font-weight: 500; }

/* ── Success / Status page ───────────────────────────────── */
.status-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 8px 20px 16px;
  min-width: 0;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.status-card h1 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.status-card p { color: var(--text-2); font-size: 0.875rem; }

.success-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(52,211,153,0.12);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.success-ring svg { width: 32px; height: 32px; color: var(--green); }

.error-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(248,113,113,0.1);
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.error-ring svg { width: 32px; height: 32px; color: var(--red); }

.pending-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(251,191,36,0.1);
  border: 2px solid #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.pending-ring svg { width: 32px; height: 32px; color: #fbbf24; }

/* Token display */
.token-display {
  background: var(--bg-card2);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 16px;
  margin: 20px 0;
  text-align: left;
}
.token-display__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.token-display__value {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  word-break: break-all;
}

.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.token-row:last-child { border-bottom: none; }
.token-row__value {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 0;
  overflow-wrap: anywhere;
}

.token-row__copy {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.token-row__copy svg { width: 14px; height: 14px; }
.token-row__copy:hover, .token-row__copy.copied { background: var(--gold-dim); color: var(--gold); }

.tokens-group { margin-bottom: 8px; }
.tokens-group__header {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 6px 0 4px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 4px 12px;
}

/* Package summary grid */
.package-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
  text-align: left;
}
.package-summary__item {
  background: var(--bg-card2);
  border-radius: 10px;
  padding: 12px;
}
.package-summary__label { font-size: 0.68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.package-summary__value { font-size: 0.9rem; font-weight: 700; }

/* Instructions */
.instructions-box {
  background: var(--bg-card2);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  margin: 16px 0;
}
.instructions-box h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; }
.instructions-box ol { padding-left: 18px; }
.instructions-box li { font-size: 0.82rem; color: var(--text-2); padding: 3px 0; }
.instructions-box li strong { color: var(--text); }

/* Copy button */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.btn-copy:hover, .btn-copy.copied { background: rgba(201,169,110,0.25); }
.btn-copy svg { width: 14px; height: 14px; }

.ref-display { font-size: 0.78rem; color: var(--text-2); margin-top: 8px; }
.ref-display code { color: var(--gold); font-family: monospace; }

/* Order recovery and direct checkout */
.recovery-card {
  margin: 0 20px 24px;
  padding: 18px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.recovery-card h2 { font-size: 1rem; margin-bottom: 6px; }
.recovery-card p { font-size: .85rem; color: var(--text-2); line-height: 1.6; }
.recovery-card strong { color: var(--text); }
.recovery-manual { margin-top: 14px; font-size: .83rem; }
.recovery-manual summary { color: var(--gold-light); cursor: pointer; padding: 8px 0; }
.recovery-manual form { margin: 12px 0; }
.recovery-manual label, .recovery-label { display: block; font-size: .75rem; color: var(--text-2); margin: 12px 0 6px; }
.recovery-manual input {
  width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--border-gold);
  border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.recovery-manual p { margin: 8px 0; font-size: .78rem; }
.recovery-manual .recovery-error { color: var(--red); }
.recovery-order { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.recovery-order__link { flex: 1; min-width: 0; color: var(--gold-light); text-decoration: none; padding: 6px 0; }
.recovery-order__link strong { display: block; font-size: .9rem; color: var(--gold-light); }
.recovery-order__link span { display: block; font-size: .75rem; color: var(--text-2); margin-top: 4px; overflow-wrap: anywhere; }
.recovery-remove { background: transparent; color: var(--text-2); border: 0; font-size: 24px; min-width: 44px; min-height: 44px; cursor: pointer; }
.recovery-card code { display: block; overflow-wrap: anywhere; color: var(--gold-light); font-size: .85rem; margin-bottom: 12px; user-select: all; }
.recovery-card > .btn { margin: 12px 0; }
.recovery-link { display: block; text-align: center; color: var(--gold-light); font-size: .85rem; padding: 14px 0 0; }
.payment-field { display: block; margin: 12px 0 6px; font-size: .78rem; font-weight: 600; color: var(--text-2); }
.payment-input {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border-gold);
  border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.payment-help { margin: 8px 0 14px; font-size: .76rem; line-height: 1.45; color: var(--text-2); }
.order-page .header { padding: 28px 20px 20px; }
.order-page .success-ring { width: 56px; height: 56px; margin-bottom: 16px; }
.order-page .success-ring svg { width: 28px; height: 28px; }
.payment-waiting { padding: 28px 24px 22px; background: radial-gradient(ellipse at 50% 0, rgba(201,169,110,.08), transparent 65%), var(--bg-card); }
.payment-step { min-width: 0; }
.payment-phone { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 22px; border: 1px solid var(--border-gold); border-radius: 24px; background: var(--gold-dim); color: var(--gold-light); }
.payment-phone svg { width: 44px; height: 44px; }
.payment-step .payment-order-summary { color: var(--gold-light); font-size: .74rem; font-weight: 600; margin-bottom: 10px; }
.payment-step h2 { font-size: 1.55rem; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; margin-bottom: 12px; }
.payment-step p { color: rgba(255,255,255,.7); font-size: .875rem; line-height: 1.65; }
.payment-progress { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 18px; }
.payment-waiting .loading-state { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0; }
.payment-waiting .loading-state__text { margin: 0; font-size: .8rem; font-weight: 500; color: var(--gold-light); }
.payment-progress .spinner { width: 16px; height: 16px; }
.payment-waiting .payment-auto-note { font-size: .78rem; line-height: 1.55; margin-top: 14px; }
.payment-waiting .payment-no-repeat { font-size: .69rem; color: var(--text-2); margin-top: 12px; }
.payment-code { display: grid; justify-items: center; gap: 10px; margin-top: 18px; padding: 16px 12px; background: var(--bg); border: 1px solid var(--border-gold); border-radius: 12px; }
.payment-code span { color: var(--text-2); font-size: .72rem; }
.payment-code code { max-width: 100%; overflow-wrap: anywhere; font-size: 1.2rem; font-weight: 800; letter-spacing: .06em; color: var(--gold-light); user-select: all; }
.payment-code .btn-copy { min-height: 44px; }
.payment-pending-text { display: flex; align-items: center; justify-content: center; gap: 10px; }
.payment-pending-text p { font-size: .8rem; }
.order-details { margin: 0 20px 28px; border: 1px solid var(--border); border-radius: 12px; }
.order-details > summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; color: var(--text-2); font-size: .8rem; cursor: pointer; list-style: none; }
.order-details > summary::-webkit-details-marker { display: none; }
.order-details[open] > summary span { transform: rotate(180deg); }
.order-details__body { padding: 0 16px 16px; }
.order-details__body p { color: var(--text-2); font-size: .8rem; line-height: 1.55; }
.order-details code { display: block; overflow-wrap: anywhere; color: var(--gold-light); font-size: .78rem; margin: 6px 0 16px; user-select: all; }
.order-details .order-private-note { font-size: .7rem; margin-top: 12px; }
.package-summary:empty { display: none; }
.connection-help { text-align: left; padding: 8px 0; }
.connection-help summary { color: var(--text-2); font-size: .8rem; cursor: pointer; padding: 6px 0; }
.connection-help p { margin-top: 10px; line-height: 1.6; }
.status-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status-secondary-actions .btn { min-width: 0; font-size: .8rem; padding: 12px 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 360px) {
  .order-page .status-card { padding: 24px 18px; }
  .payment-step h2 { font-size: 1.4rem; }
  .payment-phone { width: 64px; height: 64px; margin-bottom: 18px; border-radius: 20px; }
  .payment-phone svg { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .order-page .spinner, .order-page .success-ring { animation: none; } }
.payment-reassurance { margin: 16px 0; }
.ref-display { overflow-wrap: anywhere; }
.btn { text-decoration: none; justify-content: center; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ── Spinner ──────────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
.spinner--lg { width: 40px; height: 40px; border-width: 3px; }

.loading-state {
  padding: 40px 20px;
  text-align: center;
}
.loading-state__text { margin-top: 16px; font-weight: 600; }
.loading-state__subtext { margin-top: 6px; font-size: 0.8rem; color: var(--text-2); }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.83rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 40px);
  white-space: normal;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(52,211,153,0.3); color: var(--green); }
.toast.error { border-color: rgba(248,113,113,0.3); color: var(--red); }

/* ── Skeleton ─────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
  border-color: transparent !important;
}
.skeleton-card { height: 180px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer__address { font-size: 0.75rem; color: var(--text-3); }
.footer__brand { font-size: 0.75rem; color: var(--text-3); margin-top: 4px; }
.footer__brand span { color: var(--gold); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.animate-pulse { animation: pulse 2s ease infinite; }

.hidden { display: none !important; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
