/* IranSans — bundled locally in theme assets */
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSans-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSans-Regular.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
:root {
  --df-bg:     #0a0a0a;
  --df-bg-2:   #141414;
  --df-panel:  #1a1a1a;
  --df-panel-2:#222222;
  --df-ink:    #ffffff;
  --df-muted:  #9ca3af;
  --df-dim:    #6b7280;
  --df-brand:  #3b82f6;
  --df-cta:    #e23570;
  --df-off:    #ef4444;
  --df-line:   #2a2a2a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--df-bg); color: var(--df-ink); min-height: 100vh;
  font-family: 'IRANSans', Vazirmatn, Vazir, Tahoma, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* -------- announcement -------- */
.df-ann { background: linear-gradient(90deg, rgba(226,53,112,.15), rgba(59,130,246,.15)); color: var(--df-cta); text-align: center; padding: 8px 12px; font-size: 13px; }

/* -------- header -------- */
.df-header { background: var(--df-bg); border-bottom: 1px solid var(--df-line); }
.df-header-top {
  max-width: 1600px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 16px 24px;
}
.df-brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.df-brand img { max-height: 32px; }
.df-brand-mark { font-size: 26px; color: var(--df-brand); line-height: 1; }
.df-brand-text { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.df-search { display: flex; align-items: center; gap: 10px; background: var(--df-bg-2); border: 1px solid var(--df-line); border-radius: 10px; padding: 10px 16px; }
.df-search input { flex: 1; background: transparent; border: 0; color: #fff; outline: 0; font: inherit; font-size: 14px; }
.df-search input::placeholder { color: var(--df-dim); }
.df-search-icon { color: var(--df-muted); font-size: 16px; }
.df-head-actions { display: inline-flex; align-items: center; gap: 14px; }
.df-chip { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--df-line); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.df-chip:hover { background: var(--df-bg-2); }
.df-flag { font-size: 16px; }
.df-icon { background: transparent; border: 0; color: #fff; font-size: 20px; padding: 6px; }
.df-login { color: #fff; font-weight: 700; font-size: 14px; padding: 6px 10px; }
.df-login:hover { color: var(--df-brand); }

/* nav row */
.df-nav {
  max-width: 1600px; margin: 0 auto;
  display: flex; gap: 24px; padding: 10px 24px 14px;
  overflow-x: auto; white-space: nowrap;
  font-size: 14px; font-weight: 600;
}
.df-nav::-webkit-scrollbar { display: none; }
.df-nav a { color: #e5e7eb; display: inline-flex; align-items: center; gap: 4px; }
.df-nav a:hover { color: var(--df-brand); }
.df-nav-caret { color: var(--df-dim); font-size: 10px; }
.df-nav-plus { color: var(--df-cta) !important; }
.df-plus { background: var(--df-cta); color: #fff; padding: 1px 6px; border-radius: 3px; font-size: 11px; }

/* -------- main -------- */
.df-main { max-width: 1600px; margin: 0 auto; padding: 24px; min-height: 60vh; }

/* -------- sections -------- */
.df-section { margin-bottom: 42px; background: var(--df-bg-2); border-radius: 14px; padding: 20px 24px 24px; }
.df-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.df-section-title { margin: 0; font-size: 22px; font-weight: 800; }
.df-arrows { display: inline-flex; gap: 6px; }
.df-arrow {
  background: var(--df-panel-2); border: 1px solid var(--df-line); color: #fff;
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
}
.df-arrow:hover { background: var(--df-bg-2); border-color: var(--df-brand); }

/* -------- platforms row -------- */
.df-platforms {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
@media (max-width: 1100px) { .df-platforms { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .df-platforms { grid-template-columns: repeat(2, 1fr); } }
.df-platform {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 2 / 1; border-radius: 10px; overflow: hidden; position: relative;
  color: #fff; font-weight: 800; letter-spacing: 1px; font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
  text-transform: uppercase;
}
.df-platform:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.df-platform-logo { position: relative; z-index: 2; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.df-platforms-empty { grid-column: 1 / -1; color: var(--df-muted); text-align: center; padding: 30px; }

/* -------- row (horizontal scroll) -------- */
.df-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 230px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px;
  scrollbar-width: thin; scrollbar-color: var(--df-panel-2) transparent;
}
.df-row::-webkit-scrollbar { height: 6px; }
.df-row::-webkit-scrollbar-thumb { background: var(--df-panel-2); border-radius: 3px; }
.df-row > .df-card { scroll-snap-align: start; }

/* -------- card (vertical poster) -------- */
.df-card { display: flex; flex-direction: column; cursor: pointer; transition: transform .18s; }
.df-card:hover { transform: translateY(-4px); }
.df-card-art {
  position: relative; display: block;
  aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden;
  background: var(--df-panel);
}
.df-card-art img { width: 100%; height: 100%; object-fit: cover; }
.df-card-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 14px; text-align: center; }
.df-card-ph-brand { color: rgba(255,255,255,.3); font-size: 12px; letter-spacing: 3px; font-weight: 800; }
.df-card-ph-name { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.df-card-ph-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(50px); z-index: 0; }

/* poster backgrounds per category */
.df-card-ph-spotify     { background: linear-gradient(145deg, #1db954 0%, #0a3a1c 70%); }
.df-card-ph-playstation { background: linear-gradient(145deg, #0070d1 0%, #001e3b 70%); }
.df-card-ph-steam       { background: linear-gradient(145deg, #1b2838 0%, #000 70%); }
.df-card-ph-telegram    { background: linear-gradient(145deg, #2aabee 0%, #0d4e71 70%); }
.df-card-ph-giftcards   { background: linear-gradient(145deg, #5b2d82 0%, #1a0533 70%); }
.df-card-ph-default     { background: linear-gradient(145deg, #4b1b7a 0%, #0a0d1a 70%); }

.df-card-body { padding: 12px 4px 4px; display: flex; flex-direction: column; gap: 6px; }
.df-card-title { margin: 0; font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.df-card-region { display: inline-flex; align-items: center; gap: 6px; color: var(--df-muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.df-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #3b82f6); display: inline-block; }

.df-card-from { color: var(--df-cta); font-size: 11px; display: inline-flex; align-items: center; gap: 6px; }
.df-tag-p { background: var(--df-cta); color: #fff; width: 16px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10px; }

.df-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.df-card-pricewrap { display: flex; flex-direction: column; gap: 2px; }
.df-card-fromlabel { color: var(--df-muted); font-size: 10px; letter-spacing: 1px; }
.df-card-price { color: #fff; font-size: 16px; font-weight: 800; direction: ltr; display: inline-flex; align-items: baseline; gap: 4px; }
.df-card-price small { color: var(--df-muted); font-size: 11px; font-weight: 500; }
.df-badge-off { background: var(--df-off); color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; direction: ltr; }

/* -------- generic page -------- */
.df-page { max-width: 980px; margin: 0 auto; background: var(--df-bg-2); border-radius: 14px; padding: 32px; color: #e5e7eb; }
.df-page h1 { font-size: 26px; margin: 0 0 16px; }
.df-page a { color: var(--df-brand); }
.df-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.df-form .full, .df-form label.full { grid-column: 1 / -1; }
.df-form label { display: flex; flex-direction: column; gap: 4px; }
.df-form label > span { font-size: 12px; color: var(--df-muted); font-weight: 700; }
.df-form input, .df-form textarea {
  background: var(--df-panel); border: 1px solid var(--df-line); color: #fff;
  padding: 10px 12px; border-radius: 8px; font: inherit; outline: 0;
}
.df-form input:focus, .df-form textarea:focus { border-color: var(--df-brand); }
.df-form input:disabled { opacity: .6; }
.df-alert { padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.df-alert.ok  { background: rgba(16,185,129,.1); color: #a7f3d0; border: 1px solid rgba(16,185,129,.3); }
.df-alert.err { background: rgba(239,68,68,.1); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.df-orders { list-style: none; padding: 0; margin: 0; }
.df-orders li { padding: 12px 0; border-bottom: 1px solid var(--df-line); }
.df-link { background: none; border: 0; color: var(--df-brand); cursor: pointer; padding: 0; text-decoration: underline; }
.muted { color: var(--df-muted); }
.prose p { line-height: 1.8; }
.prose a { color: var(--df-brand); }

/* -------- footer -------- */
.df-footer { background: #000; padding: 40px 24px 20px; margin-top: 50px; color: var(--df-muted); border-top: 1px solid var(--df-line); }
.df-footer-grid { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.df-footer-grid h4 { color: #fff; margin: 0 0 10px; font-size: 14px; }
.df-footer-grid a { display: block; color: var(--df-muted); font-size: 13px; padding: 2px 0; }
.df-footer-grid a:hover { color: var(--df-brand); }
.df-footer-about { margin-top: 10px; font-size: 12px; line-height: 1.7; }
.df-footer-bot { max-width: 1600px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid var(--df-line); text-align: center; font-size: 11px; color: var(--df-dim); }

/* =================================================================
   DRIFFLE MODAL (dfmodal) — poster left, info right
   ================================================================= */
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(--df-bg-2);
  color: #fff;
  border: 1px solid var(--df-line);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.8);
}
.dfmodal-close {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  background: rgba(255,255,255,.08); border: 0; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.dfmodal-close:hover { background: var(--df-cta); }

.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: 280px 1fr; gap: 24px; padding: 24px; }
@media (max-width: 760px) { .dfmodal-top { grid-template-columns: 1fr; } }

/* LEFT: poster */
.dfmodal-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--df-panel); }
.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(--df-brand) 0%, #0a0533 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 18px; text-align: center; }
.dfmodal-poster-brand { color: rgba(255,255,255,.3); font-size: 12px; letter-spacing: 3px; font-weight: 800; text-transform: uppercase; }
.dfmodal-poster-name { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.2; }

/* RIGHT: info */
.dfmodal-info { display: flex; flex-direction: column; gap: 12px; }
.dfmodal-title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.3; }
.dfmodal-region { color: var(--df-muted); font-size: 12px; letter-spacing: 1px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.dfmodal-desc { margin: 4px 0 0; color: var(--df-muted); font-size: 13px; line-height: 1.6; }
.dfmodal-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(59,130,246,.15); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); border-radius: 999px; font-size: 11px; font-weight: 600; }
.dfmodal-chip:empty { display: none; }

/* options */
.dfmodal-options { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.dfmodal-opt-label { font-size: 11px; color: var(--df-muted); margin-bottom: 6px; letter-spacing: 1px; font-weight: 700; }
.dfmodal-opt-values { display: flex; flex-wrap: wrap; gap: 6px; }
.dfmodal-opt-value {
  background: var(--df-panel); border: 1px solid var(--df-line); color: #fff;
  padding: 8px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all .15s;
}
.dfmodal-opt-value:hover { border-color: var(--df-brand); }
.dfmodal-opt-value.is-selected {
  background: linear-gradient(135deg, var(--df-brand) 0%, var(--df-cta) 100%);
  border-color: transparent; font-weight: 700;
  box-shadow: 0 4px 12px rgba(59,130,246,.3);
}
.dfmodal-opt-value.is-disabled { opacity: .3; }

/* pricebox */
.dfmodal-pricebox { background: var(--df-panel); border: 1px solid var(--df-line); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.dfmodal-pricelabel { color: var(--df-muted); font-size: 11px; letter-spacing: 1px; }
.dfmodal-pricerow { display: inline-flex; align-items: baseline; gap: 10px; }
.dfmodal-compare { color: var(--df-dim); font-size: 14px; text-decoration: line-through; }
.dfmodal-price {
  font-size: 24px; font-weight: 800;
  background: linear-gradient(135deg, var(--df-brand) 0%, var(--df-cta) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr;
}
.dfmodal-discount { background: var(--df-off); color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; direction: ltr; }

/* actions row */
.dfmodal-actions { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 6px; }
.dfmodal-qty { display: inline-flex; align-items: center; background: var(--df-panel); border: 1px solid var(--df-line); border-radius: 8px; }
.dfmodal-qty button { background: transparent; border: 0; width: 32px; height: 40px; color: #fff; font-size: 14px; cursor: pointer; }
.dfmodal-qty button:hover { background: var(--df-panel-2); }
.dfmodal-qty > span { min-width: 32px; text-align: center; font-weight: 700; }
.dfmodal-total { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dfmodal-total small { color: var(--df-muted); font-size: 10px; }
.dfmodal-total strong { font-size: 14px; direction: ltr; color: #fff; }
.dfmodal-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 0;
  background: linear-gradient(135deg, var(--df-brand) 0%, var(--df-cta) 100%);
  color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(226,53,112,.3);
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.dfmodal-buy:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(226,53,112,.5); }
.dfmodal-arrow { font-size: 16px; }

/* form step */
.dfmodal-form-head { padding: 24px 24px 10px; }
.dfmodal-form-head h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.dfmodal-form-head p { margin: 0; color: var(--df-muted); font-size: 13px; }
.dfmodal-form { padding: 10px 24px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dfmodal-form label { display: flex; flex-direction: column; gap: 4px; grid-column: span 1; }
.dfmodal-form label:first-of-type, .dfmodal-form label:last-of-type { grid-column: 1 / -1; }
.dfmodal-form label > span { font-size: 11px; color: var(--df-muted); font-weight: 700; }
.dfmodal-form input, .dfmodal-form textarea {
  background: var(--df-panel); border: 1px solid var(--df-line); color: #fff;
  padding: 10px 12px; border-radius: 8px; font: inherit; outline: 0;
}
.dfmodal-form input:focus, .dfmodal-form textarea:focus { border-color: var(--df-brand); }
.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; }
.dfmodal-back { background: transparent; border: 0; color: var(--df-muted); cursor: pointer; font-size: 13px; }
.dfmodal-back:hover { color: #fff; }

/* success */
.dfmodal-success { padding: 36px 24px 28px; text-align: center; }
.dfmodal-success-mark { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #059669); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 14px; box-shadow: 0 10px 30px rgba(16,185,129,.4); }
.dfmodal-success h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.dfmodal-code { background: rgba(59,130,246,.15); color: var(--df-brand); padding: 2px 10px; border-radius: 6px; font-family: monospace; }
.dfmodal-pwbox {
  margin: 20px auto; max-width: 440px; text-align: left;
  background: var(--df-panel); border: 1px solid var(--df-brand); border-radius: 10px; padding: 16px;
}
.dfmodal-pwbox-head { color: var(--df-brand); font-weight: 700; font-size: 13px; }
.dfmodal-pwbox-sub { color: var(--df-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(--df-brand); padding: 12px; border-radius: 6px; text-align: center; direction: ltr;
  border: 1px dashed var(--df-brand);
}
.dfmodal-instructions { margin: 16px auto; max-width: 500px; color: #e5e7eb; font-size: 13px; }
.dfmodal-instructions:empty { display: none; }
.dfmodal-redirect { color: var(--df-brand); font-size: 13px; }
.dfmodal-redirect[style*="display: block"], .dfmodal-redirect[style*="display:block"] { display: block !important; }
.dfmodal-success .dfmodal-buy { display: inline-flex; max-width: 340px; margin: 12px auto 0; }

/* responsive */
@media (max-width: 760px) {
  .df-header-top { grid-template-columns: 1fr; gap: 10px; }
  .df-search { grid-row: 2; }
  .df-head-actions { justify-self: start; }
  .dfmodal-actions { grid-template-columns: 1fr; }
}
/* ---------- sticker (category SVG placeholder) ---------- */
.df-card-sticker-wrap { padding: 0; justify-content: flex-end; }
.df-card-sticker,
.df-card-sticker-wrap > .sticker { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.df-card-sticker-wrap .df-card-ph-name {
  position: relative; z-index: 2;
  background: linear-gradient(transparent 0%, rgba(0,0,0,.65) 60%, rgba(0,0,0,.85) 100%);
  padding: 24px 16px 16px; margin: 0;
  width: 100%; text-align: center;
  font-size: 16px; font-weight: 700;
}
.dfmodal-sticker { position: absolute; inset: 0; }
.dfmodal-sticker > .sticker { width: 100%; height: 100%; border-radius: 12px; }
.dfmodal-poster-ph .dfmodal-poster-name {
  position: relative; z-index: 2;
  background: linear-gradient(transparent 0%, rgba(0,0,0,.7) 70%, rgba(0,0,0,.9) 100%);
  margin: 0; padding: 100px 20px 20px;
  width: 100%; text-align: center;
}
.df-section { scroll-margin-top: 80px; }