
/* ============================================================
   DESIGN TOKENS — Salmart Brand
   ============================================================ */
:root {
  --brand:        #28a745;
  --brand-mid:    #22a050;
  --brand-light:  #2ecc71;
  --brand-glow:   rgba(34,160,80,0.16);
  --brand-tint:   rgba(34,160,80,0.07);
  --brand-tint-2: rgba(34,160,80,0.13);

  --gold:         #c9922a;
  --gold-light:   #f0c040;
  --gold-tint:    rgba(201,146,42,0.10);

  --danger:       #e63946;

  --bg:           #f0f2f5;
  --surface:      #ffffff;
  --surface-2:    #f7f8fa;
  --border:       #e4e6ea;
  --border-subtle:#eef0f3;

  --text-1:       #050505;
  --text-2:       #444950;
  --text-3:       #8a8d91;
  --text-4:       #b0b3b8;

  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 9999px;

  --font-body:  'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.20);
  --shadow-btn: 0 2px 8px rgba(26,122,60,0.32);
  --shadow-btn-h: 0 4px 16px rgba(26,122,60,0.44);
  --shadow-gold: 0 3px 12px rgba(201,146,42,0.35);

  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --ease-out:    cubic-bezier(0.22,1,0.36,1);
  --ease-std:    cubic-bezier(0.4,0,0.2,1);
  --t-fast: 0.15s;
  --t-mid:  0.25s;
  --t-slow: 0.40s;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  margin: 0; padding: 0;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 56px;
}
.ph-back {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface-2);
  color: var(--text-2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; text-decoration: none;
  transition: all var(--t-fast) ease; flex-shrink: 0;
}
.ph-back:hover { background: var(--brand-tint); border-color: var(--brand-mid); color: var(--brand); }
.ph-brand {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-size: 17px; font-weight: 800;
  letter-spacing: 1.5px; text-decoration: none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 55%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  user-select: none;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-wrap { max-width: 640px; margin: 0 auto; padding: 0 0 80px; }

/* ============================================================
   HERO
   ============================================================ */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 20px 24px;
  text-align: center;
  animation: fadeUp 0.4s var(--ease-out) both;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-tint); border: 1px solid rgba(34,160,80,0.2);
  color: var(--brand); padding: 4px 12px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 12px;
}
.hero-eyebrow i { font-size: 9px; }
.page-hero h1 {
  font-family: var(--font-body); font-size: clamp(22px, 5vw, 28px); font-weight: 800;
  color: var(--text-1); margin: 0 0 8px; line-height: 1.2; letter-spacing: -0.5px;
}
.page-hero h1 span {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p { font-size: 14px; color: var(--text-3); line-height: 1.55; margin: 0; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 20px 16px 0; }
.section:nth-child(1) { animation: fadeUp 0.4s 0.05s var(--ease-out) both; }
.section:nth-child(2) { animation: fadeUp 0.4s 0.10s var(--ease-out) both; }
.section:nth-child(3) { animation: fadeUp 0.4s 0.15s var(--ease-out) both; }
.section:nth-child(4) { animation: fadeUp 0.4s 0.20s var(--ease-out) both; }
.section:nth-child(5) { animation: fadeUp 0.4s 0.25s var(--ease-out) both; }

.section-title {
  font-size: 11.5px; font-weight: 700; color: var(--text-3);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   POST PREVIEW — Square 1:1 image
   ============================================================ */
.post-preview {
  background: var(--surface); border-radius: var(--r-xl);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 4px;
}
.post-preview-inner {
  display: flex; flex-direction: column;
}

/* Square product image */
.post-preview-img-wrap {
  width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden;
  background: var(--surface-2);
}
.post-preview-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.post-preview-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-4); font-size: 48px;
}

/* Sponsored badge overlay */
.sponsored-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r-full);
  letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
  pointer-events: none;
}
.sponsored-badge i { font-size: 8px; color: var(--gold-light); }

/* Info row below image */
.post-preview-info {
  padding: 14px 16px 16px;
}
.post-preview-title {
  font-size: 15px; font-weight: 700; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.post-preview-desc {
  font-size: 12px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 8px;
}
.post-preview-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-meta-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2);
}
.post-meta-pill.price { color: var(--brand); background: var(--brand-tint); border-color: rgba(34,160,80,0.2); }
.post-meta-pill i { font-size: 9px; }

/* ============================================================
   AD CREDITS CARD — simple, no top-up
   ============================================================ */
.credit-card {
  background: #28a745;
  border-radius: var(--r-xl); padding: 22px 20px; margin-bottom: 4px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 4px 20px rgba(26,122,60,0.28);
  position: relative; overflow: hidden;
}
.credit-card::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.credit-card::after {
  content: ''; position: absolute; bottom: -60%; left: -5%;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.credit-coin-icon {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--gold-light);
}
.credit-info { flex: 1; }
.credit-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.credit-balance { font-size: 34px; font-weight: 800; color: #fff; line-height: 1; margin: 0 0 4px; }
.credit-sub { font-size: 11px; color: rgba(255,255,255,0.55); font-weight: 500; }

/* ============================================================
   PLANS LIST
   ============================================================ */
.plans-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }

.plan-row {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 18px;
  cursor: pointer; transition: all var(--t-fast) var(--ease-out);
  position: relative; overflow: hidden;
}
.plan-row:hover { border-color: var(--brand-mid); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.plan-row.selected {
  border-color: var(--brand-mid);
  background: linear-gradient(135deg, rgba(34,160,80,0.04), rgba(34,160,80,0.01));
  box-shadow: 0 0 0 4px var(--brand-glow), var(--shadow-sm);
}
.plan-row.popular { border-color: rgba(34,160,80,0.35); }

.plan-row-top { display: flex; align-items: flex-start; gap: 14px; }

.plan-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
  transition: all var(--t-fast) ease;
}
.plan-row.selected .plan-radio { border-color: var(--brand-mid); background: var(--brand-mid); }
.plan-radio-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  opacity: 0; transform: scale(0); transition: all var(--t-fast) var(--ease-spring);
}
.plan-row.selected .plan-radio-dot { opacity: 1; transform: scale(1); }

.plan-content { flex: 1; }
.plan-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.plan-name { font-size: 15px; font-weight: 800; color: var(--text-1); }

.plan-badge {
  padding: 2px 9px; border-radius: var(--r-full);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-popular { background: var(--brand); color: #fff; }
.badge-best { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #fff; }

.plan-price-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.plan-price { font-size: 22px; font-weight: 800; color: var(--text-1); letter-spacing: -1px; }
.plan-duration { font-size: 12px; color: var(--text-3); font-weight: 500; }
.plan-per-day {
  font-size: 11px; color: var(--brand); font-weight: 600;
  padding: 2px 8px; background: var(--brand-tint); border-radius: var(--r-full);
}
.plan-credits { font-size: 11px; font-weight: 600; }

.plan-features { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.plan-feat { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); font-weight: 500; }
.plan-feat-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-mid); flex-shrink: 0; }

/* Expanded CTA */
.plan-row-expanded {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s var(--ease-out), opacity 0.2s ease;
  opacity: 0;
}
.plan-row.selected .plan-row-expanded { max-height: 80px; opacity: 1; }

.plan-select-btn {
  width: 100%; height: 44px; margin-top: 14px;
  border-radius: var(--r-md); border: none;
  background: var(--brand-mid); color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow-btn); transition: all var(--t-fast) ease;
}
.plan-select-btn:hover { background: var(--brand); box-shadow: var(--shadow-btn-h); transform: translateY(-1px); }
.plan-select-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.plan-btn { /* alias */ }

/* ============================================================
   CUSTOM PLAN
   ============================================================ */
.custom-plan-card {
  background: var(--surface); border: 1.5px dashed var(--border);
  border-radius: var(--r-xl); padding: 18px; margin-bottom: 4px;
  transition: border-color var(--t-fast) ease, border-style var(--t-fast) ease;
}
.custom-plan-card:focus-within { border-color: var(--brand-mid); border-style: solid; }
.custom-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.custom-icon {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--gold-tint); color: var(--gold);
  font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.custom-head h3 { font-size: 14px; font-weight: 800; margin: 0; color: var(--text-1); }
.custom-head p { font-size: 11.5px; color: var(--text-3); margin: 2px 0 0; }
.custom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 440px) { .custom-row { grid-template-columns: 1fr; } }
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 11px; font-weight: 700; color: var(--text-2); letter-spacing: 0.02em; text-transform: uppercase; }
.field-input {
  height: 44px; padding: 0 14px; border: 1.5px solid var(--border);
  border-radius: var(--r-md); background: var(--surface-2);
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text-1);
  outline: none; transition: all var(--t-fast) var(--ease-std); width: 100%;
}
.field-input::placeholder { color: var(--text-4); font-weight: 400; }
.field-input:focus { border-color: var(--brand-mid); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-glow); }
.field-input[readonly] {
  background: var(--surface-2); color: var(--brand); font-weight: 800;
  border-color: rgba(34,160,80,0.2); cursor: default;
}
.custom-plan-btn {
  width: 100%; height: 44px; margin-top: 12px;
  border-radius: var(--r-md); border: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow-gold); transition: all var(--t-fast) ease;
}
.custom-plan-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,146,42,0.45); }
.custom-plan-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.rate-hint {
  font-size: 11.5px; color: var(--text-3); margin-top: 8px;
  display: flex; align-items: center; gap: 5px;
}
.rate-hint i { color: var(--brand); font-size: 10px; }

/* ============================================================
   PAYMENT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--t-mid) ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-sheet {
  width: 100%; max-width: 640px;
  background: var(--surface); border-radius: 24px 24px 0 0;
  transform: translateY(100%); transition: transform 0.35s var(--ease-out);
  overflow: hidden; max-height: 92vh; overflow-y: auto;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-drag {
  width: 40px; height: 4px; background: var(--border);
  border-radius: 99px; margin: 14px auto 0;
}
.modal-header {
  padding: 20px 20px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.modal-eyebrow { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.modal-title { font-size: 20px; font-weight: 800; color: var(--text-1); letter-spacing: -0.3px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--surface-2); color: var(--text-2); font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast) ease; flex-shrink: 0;
}
.modal-close:hover { background: var(--border); }

.modal-order-summary {
  margin: 16px 20px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px;
}
.order-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.order-row + .order-row { margin-top: 8px; }
.order-label { color: var(--text-3); font-weight: 500; }
.order-val { font-weight: 700; color: var(--text-1); }
.order-divider { height: 1px; background: var(--border); margin: 10px 0; }
.order-total-row { display: flex; justify-content: space-between; align-items: center; }
.order-total-label { font-size: 14px; font-weight: 700; color: var(--text-1); }
.order-total-val { font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: -0.5px; }

.modal-methods-label {
  padding: 0 20px; margin-bottom: 10px;
  font-size: 11px; font-weight: 700; color: var(--text-3);
  letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 7px;
}
.modal-methods-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.method-options { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.method-card {
  border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px;
  cursor: pointer; transition: all var(--t-fast) var(--ease-out);
  display: flex; align-items: center; gap: 14px;
}
.method-card:hover { border-color: var(--brand-mid); box-shadow: var(--shadow-sm); }
.method-card.active {
  border-color: var(--brand-mid);
  background: linear-gradient(135deg, rgba(34,160,80,0.05), rgba(34,160,80,0.02));
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.method-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.method-icon-cash    { background: #fff8ed; color: #f59e0b; }
.method-icon-credits { background: var(--brand-tint); color: var(--brand-mid); }
.method-icon-mixed   { background: rgba(59,130,246,0.08); color: #3b82f6; }
.method-text { flex: 1; }
.method-name { font-size: 14px; font-weight: 700; color: var(--text-1); }
.method-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.method-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all var(--t-fast) ease;
}
.method-card.active .method-radio { border-color: var(--brand-mid); background: var(--brand-mid); }
.method-radio-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  opacity: 0; transform: scale(0); transition: all var(--t-fast) var(--ease-spring);
}
.method-card.active .method-radio-dot { opacity: 1; transform: scale(1); }

/* Mixed credits panel */
.credits-panel {
  margin: 0 20px 16px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 16px; display: none;
}
.credits-panel.show { display: block; }
.credits-avail { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.credits-avail strong { color: var(--brand); font-weight: 800; }
.credits-input-row { display: flex; align-items: center; gap: 10px; }
.credits-input {
  flex: 1; height: 40px; padding: 0 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); font-family: var(--font-body);
  font-size: 14px; font-weight: 600; color: var(--text-1); outline: none;
  transition: all var(--t-fast) ease;
}
.credits-input:focus { border-color: var(--brand-mid); box-shadow: 0 0 0 3px var(--brand-glow); }
.use-max-btn {
  height: 40px; padding: 0 14px; border-radius: var(--r-md); border: none;
  background: var(--brand-tint); color: var(--brand);
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  cursor: pointer; transition: all var(--t-fast) ease; white-space: nowrap;
}
.use-max-btn:hover { background: var(--brand-mid); color: #fff; }
.remaining-row {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.remaining-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.remaining-val { font-size: 18px; font-weight: 800; color: var(--text-1); }

/* Pay button */
.modal-pay-wrap { padding: 0 20px 28px; }
.modal-pay-btn {
  width: 100%; height: 52px; border-radius: var(--r-xl); border: none;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand));
  color: #fff; font-family: var(--font-body); font-size: 16px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 4px 16px rgba(26,122,60,0.38); transition: all var(--t-fast) ease;
  letter-spacing: -0.2px;
}
.modal-pay-btn:hover { box-shadow: 0 6px 24px rgba(26,122,60,0.50); transform: translateY(-1px); }
.modal-pay-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.pay-lock { font-size: 14px; opacity: 0.75; }
.modal-security {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 10px; font-size: 11px; color: var(--text-3);
}
.modal-security i { color: var(--brand); font-size: 10px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1001; opacity: 0;
  transition: all var(--t-mid) var(--ease-spring);
  pointer-events: none; width: calc(100vw - 32px); max-width: 420px;
}
.toast-wrap.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-radius: var(--r-lg); font-family: var(--font-body);
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-xl);
  backdrop-filter: blur(12px);
}
.toast.success { background: linear-gradient(135deg, #0a5c2a, var(--brand)); color: #fff; }
.toast.error   { background: linear-gradient(135deg, #8b1521, var(--danger)); color: #fff; }
.toast.loading { background: rgba(13,15,18,0.94); color: #eceef0; }
.toast.info    { background: rgba(13,15,18,0.94); color: #eceef0; }
.toast.warning { background: linear-gradient(135deg, #92400e, #f59e0b); color: #fff; }
.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.25); border-top-color: #fff;
  animation: spin 0.7s linear infinite; flex-shrink: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ============================================================
   FOCUS
   ============================================================ */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-xs); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   DARK MODE
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --brand:        #2ecc71;
    --brand-mid:    #27ae60;
    --brand-light:  #45e785;
    --brand-glow:   rgba(46,204,113,0.22);
    --brand-tint:   rgba(46,204,113,0.10);
    --brand-tint-2: rgba(46,204,113,0.16);
    --gold-tint:    rgba(201,146,42,0.14);
    --bg:           #0e1012;
    --surface:      #18191a;
    --surface-2:    #222426;
    --border:       #2e3034;
    --border-subtle:#222426;
    --text-1:       #e3e5e8;
    --text-2:       #9ba3ae;
    --text-3:       #6b7280;
    --text-4:       #4b5563;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.50);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.55);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.70);
    --shadow-btn: 0 3px 12px rgba(46,204,113,0.30);
    --shadow-btn-h: 0 6px 22px rgba(46,204,113,0.44);
  }
  body { background: #0e1012; }
  .page-header     { background: rgba(14,16,18,0.97); border-bottom-color: #2e3034; }
  .page-hero       { background: #18191a; border-bottom-color: #2e3034; }
  .post-preview    { background: #18191a; border-color: #2e3034; }
  .plan-row        { background: #18191a; border-color: #2e3034; }
  .custom-plan-card{ background: #18191a; border-color: #2e3034; }
  .modal-sheet     { background: #18191a; }
  .modal-order-summary { background: #222426; border-color: #2e3034; }
  .credits-panel   { background: #222426; border-color: #2e3034; }
  .credits-input   { background: #18191a; border-color: #2e3034; color: #e3e5e8; }
  .method-card     { background: #18191a; border-color: #2e3034; }
  .method-icon-cash{ background: rgba(245,158,11,0.10); }
  .field-input     { background: #222426; border-color: #2e3034; color: #e3e5e8; }
  .field-input:focus{ background: #18191a; }
  .field-input[readonly]{ background: #222426; }
  .ph-back         { background: #222426; border-color: #2e3034; color: #9ba3ae; }
  .post-meta-pill  { background: #222426; border-color: #2e3034; }
  .credit-card     { box-shadow: 0 4px 20px rgba(0,0,0,0.50); }
}
  