/* =================================================================
   FITPRO — Athletic neon-on-black fitness coaching theme (RTL)
   ================================================================= */
:root {
  --fp-accent: #E5FF00;
  --fp-accent-dark: #B8CC00;
  --fp-accent-soft: rgba(229,255,0,.12);
  --fp-bg: #0A0A0A;
  --fp-panel: #141414;
  --fp-panel-2: #1D1D1D;
  --fp-line: #262626;
  --fp-text: #FAFAFA;
  --fp-muted: #A3A3A3;
  --fp-dim: #737373;
  --fp-danger: #EF4444;
  --fp-ok: #10B981;
  --fp-radius: 14px;
  --fp-radius-lg: 20px;

  /* modal legacy aliases (reuses driffle modal class names) */
  --df-bg: var(--fp-bg);
  --df-bg-2: var(--fp-panel);
  --df-panel: var(--fp-panel);
  --df-panel-2: var(--fp-panel-2);
  --df-line: var(--fp-line);
  --df-muted: var(--fp-muted);
  --df-dim: var(--fp-dim);
  --df-brand: var(--fp-accent);
  --df-cta: var(--fp-accent-dark);
  --df-off: #22c55e;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--fp-bg);
  color: var(--fp-text);
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0; font-weight: 800; line-height: 1.2; }
button { font: inherit; cursor: pointer; }

.fp-main { min-height: 60vh; }

/* ---------- Buttons ---------- */
.fp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 800; font-size: 15px; letter-spacing: .2px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s, color .15s;
  text-decoration: none;
}
.fp-btn-primary { background: var(--fp-accent); color: #000; box-shadow: 0 8px 24px rgba(229,255,0,.25); }
.fp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(229,255,0,.4); }
.fp-btn-primary:active { transform: translateY(0); }
.fp-btn-ghost { background: transparent; color: var(--fp-text); border-color: var(--fp-line); }
.fp-btn-ghost:hover { border-color: var(--fp-accent); color: var(--fp-accent); }
.fp-btn-sm { padding: 10px 18px; font-size: 13px; }
.fp-arrow { font-size: 18px; transform: translateX(0); transition: transform .15s; }
.fp-btn:hover .fp-arrow { transform: translateX(-4px); }
.fp-btn:focus-visible { outline: 3px solid var(--fp-accent); outline-offset: 3px; }

/* ---------- Eyebrow / headings ---------- */
.fp-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 3px;
  color: var(--fp-accent); text-transform: uppercase;
  padding: 6px 12px; background: var(--fp-accent-soft);
  border: 1px solid rgba(229,255,0,.3); border-radius: 999px;
  margin-bottom: 14px;
}
.fp-accent { color: var(--fp-accent); }

/* ---------- Header ---------- */
.fp-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--fp-line);
}
.fp-header-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 24px; padding: 14px 24px;
}
.fp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fp-text); font-weight: 900; font-size: 20px; }
.fp-brand img { height: 36px; width: auto; }
.fp-brand-mark {
  display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
  background: var(--fp-accent); color: #000; border-radius: 10px;
}
.fp-brand-mark svg { width: 22px; height: 22px; }
.fp-brand-text { letter-spacing: -.3px; }
.fp-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.fp-nav a { color: var(--fp-text); font-weight: 600; font-size: 14px; position: relative; padding: 4px 0; }
.fp-nav a:hover { color: var(--fp-accent); }
.fp-nav a:hover::after { transform: scaleX(1); }
.fp-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--fp-accent); transform: scaleX(0); transform-origin: right;
  transition: transform .2s;
}
.fp-head-actions { display: flex; gap: 10px; align-items: center; }
.fp-burger { display: none; background: transparent; border: 0; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.fp-burger span { display: block; width: 24px; height: 2px; background: var(--fp-text); }

@media (max-width: 860px) {
  .fp-header-inner { grid-template-columns: auto 1fr auto; }
  .fp-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--fp-panel); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--fp-line); gap: 14px; }
  .fp-nav.is-open { display: flex; }
  .fp-head-actions { gap: 6px; }
  .fp-head-actions .fp-btn-ghost { display: none; }
  .fp-burger { display: inline-flex; }
}

/* ---------- Announcement ---------- */
.fp-ann { background: var(--fp-accent); color: #000; text-align: center; padding: 10px 24px; font-weight: 700; font-size: 13px; }

/* ---------- Hero ---------- */
.fp-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 20%, rgba(229,255,0,.08), transparent 60%), var(--fp-bg); padding: 60px 24px 0; }
.fp-hero-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.fp-hero-copy { padding: 20px 0; }
.fp-hero-title { font-size: clamp(36px, 5.5vw, 68px); font-weight: 900; line-height: 1.05; letter-spacing: -1px; margin-bottom: 20px; }
.fp-hero-sub { font-size: clamp(16px, 1.3vw, 19px); color: var(--fp-muted); max-width: 540px; margin-bottom: 32px; line-height: 1.7; }
.fp-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.fp-hero-badges { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 28px; color: var(--fp-muted); font-size: 14px; }
.fp-hero-badges strong { display: block; color: var(--fp-accent); font-size: 28px; font-weight: 900; line-height: 1; margin-bottom: 4px; }

.fp-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 500px; }
.fp-hero-ring { position: absolute; inset: 0; margin: auto; width: 440px; height: 440px; border: 1.5px solid rgba(229,255,0,.2); border-radius: 50%; animation: fp-spin 60s linear infinite; }
.fp-hero-ring-2 { width: 320px; height: 320px; border-style: dashed; border-color: rgba(229,255,0,.3); animation-duration: 40s; animation-direction: reverse; }
@keyframes fp-spin { to { transform: rotate(360deg); } }
.fp-hero-athlete { position: relative; z-index: 2; width: min(380px, 100%); height: auto; filter: drop-shadow(0 20px 40px rgba(229,255,0,.2)); }

@media (prefers-reduced-motion: reduce) {
  .fp-hero-ring, .fp-hero-ring-2 { animation: none; }
  .fp-marquee-track { animation: none; }
}

@media (max-width: 860px) {
  .fp-hero { padding: 40px 20px 0; }
  .fp-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .fp-hero-visual { min-height: 320px; }
  .fp-hero-ring { width: 300px; height: 300px; }
  .fp-hero-ring-2 { width: 220px; height: 220px; }
  .fp-hero-badges { gap: 20px; }
  .fp-hero-badges strong { font-size: 22px; }
}

/* ---------- Marquee ---------- */
.fp-marquee { margin-top: 40px; padding: 18px 0; border-top: 1px solid var(--fp-line); border-bottom: 1px solid var(--fp-line); overflow: hidden; white-space: nowrap; background: var(--fp-panel); }
.fp-marquee-track { display: inline-flex; gap: 32px; font-weight: 900; font-size: 20px; letter-spacing: 1px; color: var(--fp-muted); animation: fp-marq 35s linear infinite; }
.fp-marquee-track span { color: var(--fp-text); }
.fp-marquee-track span:nth-child(2n+1) { color: var(--fp-accent); }
@keyframes fp-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.fp-section { max-width: 1400px; margin: 0 auto; padding: 100px 24px; scroll-margin-top: 80px; }
.fp-section-dim { background: var(--fp-panel); max-width: none; margin: 0; }
.fp-section-dim > * { max-width: 1400px; margin-inline: auto; }
.fp-section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.fp-section-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 900; letter-spacing: -.5px; margin-bottom: 14px; }
.fp-section-sub { color: var(--fp-muted); font-size: 17px; line-height: 1.7; }

/* ---------- Features ---------- */
.fp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .fp-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .fp-features { grid-template-columns: 1fr; } }
.fp-feature {
  background: var(--fp-panel); border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius-lg); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.fp-feature:hover { border-color: var(--fp-accent); transform: translateY(-4px); }
.fp-feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--fp-accent-soft); color: var(--fp-accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.fp-feature-icon svg { width: 28px; height: 28px; }
.fp-feature h3 { font-size: 20px; margin-bottom: 8px; font-weight: 800; }
.fp-feature p { color: var(--fp-muted); margin: 0; font-size: 14px; line-height: 1.7; }

/* ---------- Pricing ---------- */
.fp-pricing-section { padding-top: 80px; padding-bottom: 80px; }
.fp-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; max-width: 1200px; margin: 0 auto; }
@media (max-width: 960px) { .fp-pricing { grid-template-columns: 1fr; gap: 18px; } }

.fp-tier {
  position: relative;
  background: var(--fp-panel); border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius-lg); padding: 32px 26px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color .2s, transform .2s;
}
.fp-tier:hover { border-color: var(--fp-accent); }
.fp-tier-popular {
  background: linear-gradient(180deg, rgba(229,255,0,.06) 0%, var(--fp-panel) 50%);
  border-color: var(--fp-accent);
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(229,255,0,.1), 0 0 0 1px var(--fp-accent) inset;
}
@media (max-width: 960px) { .fp-tier-popular { transform: scale(1); } }

.fp-tier-badge {
  position: absolute; top: -14px; right: 24px;
  background: var(--fp-accent); color: #000;
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: 1px;
  box-shadow: 0 6px 14px rgba(229,255,0,.3);
}
.fp-tier-head { }
.fp-tier-title { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.fp-tier-sub { color: var(--fp-muted); font-size: 13px; margin: 0; }
.fp-tier-price { padding: 14px 0; border-top: 1px solid var(--fp-line); border-bottom: 1px solid var(--fp-line); }
.fp-tier-compare { color: var(--fp-dim); font-size: 14px; text-decoration: line-through; direction: ltr; display: inline-block; margin-bottom: 4px; }
.fp-tier-pricerow { display: inline-flex; align-items: baseline; gap: 8px; }
.fp-tier-pricerow strong { font-size: 42px; font-weight: 900; color: var(--fp-text); direction: ltr; line-height: 1; letter-spacing: -1px; }
.fp-tier-popular .fp-tier-pricerow strong { color: var(--fp-accent); }
.fp-tier-cur { color: var(--fp-muted); font-size: 14px; font-weight: 700; }
.fp-tier-permo { color: var(--fp-muted); font-size: 12px; margin-top: 6px; }
.fp-tier-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fp-tier-list li { position: relative; padding-right: 26px; font-size: 14px; color: var(--fp-text); }
.fp-tier-list li::before {
  content: ''; position: absolute; right: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--fp-accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5FF00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}
.fp-tier-cta { margin-top: auto; width: 100%; }

/* ---------- Testimonials ---------- */
.fp-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .fp-testimonials { grid-template-columns: 1fr; } }
.fp-test {
  background: var(--fp-bg); border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.fp-test-stars { color: var(--fp-accent); font-size: 18px; letter-spacing: 3px; }
.fp-test p { margin: 0; color: var(--fp-text); font-size: 15px; line-height: 1.75; }
.fp-test footer { color: var(--fp-muted); font-size: 13px; }
.fp-test footer strong { color: var(--fp-text); display: block; }

/* ---------- FAQ ---------- */
.fp-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.fp-faq-item {
  background: var(--fp-panel); border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius); padding: 18px 22px;
  transition: border-color .2s;
}
.fp-faq-item[open] { border-color: var(--fp-accent); }
.fp-faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  list-style: none;
}
.fp-faq-item summary::-webkit-details-marker { display: none; }
.fp-faq-item summary::after {
  content: '+'; color: var(--fp-accent); font-size: 24px; font-weight: 900;
  transition: transform .2s;
}
.fp-faq-item[open] summary::after { transform: rotate(45deg); }
.fp-faq-item p { margin: 14px 0 0; color: var(--fp-muted); line-height: 1.75; font-size: 14px; }

/* ---------- CTA Band ---------- */
.fp-cta-band { background: var(--fp-accent); padding: 60px 24px; }
.fp-cta-band-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fp-cta-band h2 { color: #000; font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin: 0; max-width: 700px; }
.fp-cta-band .fp-btn-primary { background: #000; color: var(--fp-accent); box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.fp-cta-band .fp-btn-primary:hover { background: #111; box-shadow: 0 16px 36px rgba(0,0,0,.45); }

/* ---------- Footer ---------- */
.fp-footer { background: var(--fp-bg); border-top: 1px solid var(--fp-line); padding: 60px 24px 30px; }
.fp-footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 860px) { .fp-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .fp-footer-grid { grid-template-columns: 1fr; } }
.fp-footer-brand .fp-brand { margin-bottom: 14px; }
.fp-footer-about { color: var(--fp-muted); font-size: 13px; line-height: 1.8; margin: 0 0 16px; }
.fp-enamad { margin-top: 10px; }
.fp-enamad img { height: 100px; width: auto; }
.fp-footer h4 { font-size: 14px; font-weight: 800; margin-bottom: 14px; color: var(--fp-text); }
.fp-footer a:not(.fp-brand) { display: block; color: var(--fp-muted); font-size: 13px; padding: 5px 0; transition: color .15s; }
.fp-footer a:not(.fp-brand):hover { color: var(--fp-accent); }
.fp-footer-bot { max-width: 1400px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--fp-line); text-align: center; color: var(--fp-dim); font-size: 12px; }

/* ---------- Generic pages ---------- */
.fp-page, .df-page { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.fp-page h1, .df-page h1 { font-size: 32px; margin-bottom: 20px; font-weight: 900; }
.fp-page h3, .df-page h3 { font-size: 20px; margin: 24px 0 10px; font-weight: 800; }
.fp-page p, .df-page p { color: var(--fp-muted); line-height: 1.8; }
.fp-page ul, .df-page ul { padding-right: 20px; color: var(--fp-text); }
.fp-page a, .df-page a { color: var(--fp-accent); }

/* Account cards (from gamora-style) */
.card-wrap { max-width: 820px; margin: 0 auto; }
.page-card { background: var(--fp-panel); border: 1px solid var(--fp-line); border-radius: var(--fp-radius-lg); padding: 32px; }
.section { padding: 60px 24px; }
.container { max-width: 1400px; margin: 0 auto; }
.muted { color: var(--fp-muted); }
.prose { color: var(--fp-text); line-height: 1.8; }
.prose a { color: var(--fp-accent); }
.alert { padding: 12px 16px; border-radius: 10px; margin: 10px 0; }
.alert.ok { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.4); color: #86efac; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 700; border: 2px solid transparent; }
.btn.ghost { border-color: var(--fp-line); color: var(--fp-text); }
.btn.ghost:hover { border-color: var(--fp-accent); color: var(--fp-accent); }

/* =================================================================
   MODAL (reuses dfmodal-* class names from driffle shop.js)
   ================================================================= */
body.shop-modal-open { overflow: hidden; }
.dfmodal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.dfmodal.is-open { display: flex; }
.dfmodal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.9); backdrop-filter: blur(6px); }
.dfmodal-card {
  position: relative; width: min(900px, 100%); max-height: 92vh; overflow: auto;
  background: var(--fp-panel); color: var(--fp-text);
  border: 1px solid var(--fp-accent); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.85), 0 0 0 1px rgba(229,255,0,.1);
}
.dfmodal-close {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  background: rgba(255,255,255,.08); border: 0; color: var(--fp-text);
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s;
}
.dfmodal-close:hover { background: var(--fp-accent); color: #000; }
.dfmodal .modal-step { display: none; }
.dfmodal.step-options .modal-step-options,
.dfmodal.step-form    .modal-step-form,
.dfmodal.step-success .modal-step-success { display: block; }

.dfmodal-top { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 28px; }
@media (max-width: 760px) { .dfmodal-top { grid-template-columns: 1fr; padding: 20px; } }
.dfmodal-poster { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--fp-bg); }
.dfmodal-poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dfmodal-poster-ph { position: absolute; inset: 0; background: linear-gradient(145deg, var(--fp-accent) 0%, var(--fp-accent-dark) 100%); display: flex; align-items: center; justify-content: center; padding: 24px; }
.dfmodal-sticker { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.dfmodal-sticker > .sticker { width: 60%; height: 60%; }
.dfmodal-poster-name { position: relative; z-index: 2; color: #000; font-weight: 900; font-size: 22px; text-align: center; }

.dfmodal-info { display: flex; flex-direction: column; gap: 14px; }
.dfmodal-title { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.3; }
.dfmodal-region { color: var(--fp-muted); font-size: 12px; letter-spacing: 1px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.df-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fp-accent); }
.dfmodal-desc { margin: 4px 0 0; color: var(--fp-muted); font-size: 14px; line-height: 1.7; }
.dfmodal-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; background: var(--fp-accent-soft); color: var(--fp-accent); border: 1px solid rgba(229,255,0,.3); border-radius: 999px; font-size: 11px; font-weight: 700; }
.dfmodal-chip:empty { display: none; }

.dfmodal-options { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.dfmodal-opt-group { }
.dfmodal-opt-label { font-size: 11px; color: var(--fp-muted); margin-bottom: 8px; letter-spacing: 2px; font-weight: 800; text-transform: uppercase; }
.dfmodal-opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.dfmodal-opt-value {
  background: var(--fp-bg); border: 1.5px solid var(--fp-line); color: var(--fp-text);
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.dfmodal-opt-value:hover { border-color: var(--fp-accent); }
.dfmodal-opt-value.is-selected { background: var(--fp-accent); color: #000; border-color: var(--fp-accent); box-shadow: 0 4px 12px rgba(229,255,0,.3); }
.dfmodal-opt-value.is-disabled { opacity: .3; pointer-events: none; }

.dfmodal-pricebox { background: var(--fp-bg); border: 1px solid var(--fp-line); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.dfmodal-pricelabel { color: var(--fp-muted); font-size: 11px; letter-spacing: 1px; font-weight: 700; }
.dfmodal-pricerow { display: inline-flex; align-items: baseline; gap: 10px; }
.dfmodal-compare { color: var(--fp-dim); font-size: 14px; text-decoration: line-through; }
.dfmodal-price { font-size: 28px; font-weight: 900; color: var(--fp-accent); direction: ltr; letter-spacing: -.5px; }
.dfmodal-discount { background: var(--fp-ok); color: #000; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; direction: ltr; }

.dfmodal-actions { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 6px; }
@media (max-width: 760px) { .dfmodal-actions { grid-template-columns: 1fr; } }
.dfmodal-qty { display: inline-flex; align-items: center; background: var(--fp-bg); border: 1.5px solid var(--fp-line); border-radius: 10px; }
.dfmodal-qty button { background: transparent; border: 0; width: 36px; height: 44px; color: var(--fp-text); font-size: 16px; font-weight: 800; cursor: pointer; }
.dfmodal-qty button:hover { color: var(--fp-accent); }
.dfmodal-qty > span { min-width: 32px; text-align: center; font-weight: 800; }
.dfmodal-total { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dfmodal-total small { color: var(--fp-muted); font-size: 10px; letter-spacing: 1px; }
.dfmodal-total strong { font-size: 15px; direction: ltr; color: var(--fp-text); font-weight: 800; }
.dfmodal-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; border: 0;
  background: var(--fp-accent); color: #000; font-weight: 900; font-size: 15px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(229,255,0,.25); text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.dfmodal-buy:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(229,255,0,.4); }
.dfmodal-arrow { font-size: 16px; }

.dfmodal-form-head { padding: 28px 28px 10px; }
.dfmodal-form-head h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.dfmodal-form-head p { margin: 0; color: var(--fp-muted); font-size: 13px; }
.dfmodal-form { padding: 10px 28px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 580px) { .dfmodal-form { grid-template-columns: 1fr; } }
.dfmodal-form label { display: flex; flex-direction: column; gap: 6px; }
.dfmodal-form label:first-of-type, .dfmodal-form label:last-of-type { grid-column: 1 / -1; }
.dfmodal-form label > span { font-size: 12px; color: var(--fp-muted); font-weight: 700; letter-spacing: .3px; }
.dfmodal-form input, .dfmodal-form textarea {
  background: var(--fp-bg); border: 1.5px solid var(--fp-line); color: var(--fp-text);
  padding: 12px 14px; border-radius: 10px; font: inherit; outline: 0;
  transition: border-color .15s;
}
.dfmodal-form input:focus, .dfmodal-form textarea:focus { border-color: var(--fp-accent); }
.dfmodal-err { grid-column: 1 / -1; min-height: 1em; color: #fca5a5; font-size: 13px; }
.dfmodal-err:not(:empty) { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); padding: 10px; border-radius: 8px; }
.dfmodal-form-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.dfmodal-back { background: transparent; border: 0; color: var(--fp-muted); cursor: pointer; font-size: 13px; font-weight: 700; }
.dfmodal-back:hover { color: var(--fp-accent); }

.dfmodal-success { padding: 40px 28px 32px; text-align: center; }
.dfmodal-success-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--fp-accent); color: #000; display: inline-flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 900; margin: 0 auto 16px; box-shadow: 0 10px 30px rgba(229,255,0,.4); }
.dfmodal-success h3 { margin: 0 0 8px; font-size: 22px; font-weight: 900; }
.dfmodal-code { background: var(--fp-accent-soft); color: var(--fp-accent); padding: 3px 12px; border-radius: 6px; font-family: 'SF Mono', Consolas, monospace; font-weight: 800; }
.dfmodal-pwbox { margin: 20px auto; max-width: 440px; text-align: left; background: var(--fp-bg); border: 1.5px solid var(--fp-accent); border-radius: 12px; padding: 18px; }
.dfmodal-pwbox-head { color: var(--fp-accent); font-weight: 800; font-size: 13px; }
.dfmodal-pwbox-sub { color: var(--fp-muted); font-size: 11px; margin: 4px 0 10px; }
.dfmodal-pwbox-val { font-family: 'SF Mono', Consolas, monospace; font-size: 18px; letter-spacing: 2px; background: #000; color: var(--fp-accent); padding: 12px; border-radius: 8px; text-align: center; direction: ltr; border: 1px dashed var(--fp-accent); }
.dfmodal-instructions { margin: 16px auto; max-width: 500px; color: var(--fp-text); font-size: 14px; line-height: 1.7; }
.dfmodal-instructions:empty { display: none; }
.dfmodal-redirect { color: var(--fp-accent); font-size: 13px; font-weight: 700; }
.dfmodal-success .dfmodal-buy { display: inline-flex; max-width: 340px; margin: 12px auto 0; }

/* =================================================================
   ACCOUNT / FORM PAGES (uses .df-page, .df-form, .df-alert from templates)
   ================================================================= */
.df-page {
  max-width: 480px; margin: 60px auto; padding: 36px 32px;
  background: var(--fp-panel); border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius-lg);
}
.df-page h1 { font-size: 28px; font-weight: 900; margin-bottom: 20px; text-align: center; }
.df-page h3 { font-size: 18px; font-weight: 800; margin: 18px 0 10px; }
.df-page p { color: var(--fp-muted); line-height: 1.7; }
.df-page a { color: var(--fp-accent); font-weight: 700; }
.df-page ul { list-style: none; padding: 0; margin: 10px 0; }
.df-page ul li { padding: 10px 14px; background: var(--fp-bg); border: 1px solid var(--fp-line); border-radius: 10px; margin-bottom: 8px; }

.df-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.df-form .full, .df-form label.full { grid-column: 1 / -1; }
.df-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px;
}
.df-form label > span {
  font-size: 12px; font-weight: 700; color: var(--fp-muted); letter-spacing: .3px;
}
.df-form input, .df-form textarea, .df-form select {
  background: var(--fp-bg); border: 1.5px solid var(--fp-line); color: var(--fp-text);
  padding: 12px 14px; border-radius: 10px; font: inherit; outline: 0; width: 100%;
  transition: border-color .15s;
}
.df-form input:focus, .df-form textarea:focus, .df-form select:focus {
  border-color: var(--fp-accent);
}
.df-form .dfmodal-buy { width: 100%; justify-content: center; }
.df-form button:not(.dfmodal-buy) {
  background: transparent; border: 2px solid var(--fp-line); color: var(--fp-text);
  padding: 12px 20px; border-radius: 10px; font-weight: 800; cursor: pointer;
}
.df-form button:not(.dfmodal-buy):hover { border-color: var(--fp-accent); color: var(--fp-accent); }

.df-alert, .alert {
  padding: 12px 16px; border-radius: 10px; margin: 10px 0; font-size: 14px;
  grid-column: 1 / -1;
}
.df-alert.err, .alert.err {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.4); color: #fca5a5;
}
.df-alert.ok, .alert.ok {
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.4); color: #86efac;
}

/* Login / account page footer links */
.df-page + .df-page { margin-top: -30px; }
.df-page small, .df-page .muted { color: var(--fp-muted); display: block; margin-top: 14px; text-align: center; font-size: 13px; }
.df-page .muted a { color: var(--fp-accent); }

/* Pay-now link in order view */
.fp-pay-now {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 10px;
  background: var(--fp-accent); color: #000; font-weight: 900; font-size: 15px;
  box-shadow: 0 8px 22px rgba(229,255,0,.25); text-decoration: none; margin: 10px 0;
}
.fp-pay-now:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(229,255,0,.4); }
