/* ===== Zurvan MC — dark RTL theme (Vazirmatn) ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0e17;
  --bg2: #121728;
  --card: #161c30;
  --card2: #1c2340;
  --border: #26304f;
  --text: #e8ecf8;
  --muted: #8a93b5;
  --gold: #f0b429;
  --gold-dark: #d29a12;
  --green: #34c77b;
  --red: #ef5350;
  --blue: #4f8cff;
  --radius: 14px;
}

html { scroll-behavior: smooth; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  min-height: 100vh;
}
code { font-family: Consolas, monospace; background: rgba(255,255,255,.07); padding: .1rem .45rem; border-radius: 6px; direction: ltr; display: inline-block; }
a { color: var(--gold); text-decoration: none; }

.container { max-width: 1150px; margin: 0 auto; padding: 0 1.2rem; }
.container.narrow { max-width: 720px; }

/* ===== navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,23,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.logo { font-weight: 900; font-size: 1.25rem; color: var(--text); display: flex; align-items: center; gap: .55rem; }
.logo-img {
  width: 34px; height: 34px; max-width: 34px; max-height: 34px;
  border-radius: 9px; object-fit: cover; flex-shrink: 0; display: block;
}
.logo-mark {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), #ff7847); color: #111;
  border-radius: 9px; font-size: 1.15rem; font-weight: 900;
}
.nav-links { list-style: none; display: flex; gap: 1.3rem; margin-inline-start: auto; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--gold); }

/* ===== buttons ===== */
.btn {
  display: inline-block; border: none; cursor: pointer; text-align: center;
  font-family: inherit; font-size: .95rem; font-weight: 700;
  padding: .65rem 1.4rem; border-radius: 10px; transition: all .2s;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #14100a; box-shadow: 0 4px 18px rgba(240,180,41,.25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(240,180,41,.4); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: rgba(239,83,80,.15); color: var(--red); border: 1px solid rgba(239,83,80,.35); }
.btn-danger:hover { background: rgba(239,83,80,.28); }
.btn-sm { padding: .38rem .95rem; font-size: .85rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ===== hero ===== */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 6.5rem 0 5.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(240,180,41,.16), transparent),
    linear-gradient(180deg, #10152a 0%, var(--bg) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 3rem); font-weight: 900; margin-bottom: .8rem; }
.gold { color: var(--gold); }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }

.ip-box {
  display: inline-flex; align-items: center; gap: .9rem;
  background: var(--card); border: 1px dashed var(--gold);
  border-radius: 12px; padding: .8rem 1.5rem; cursor: pointer;
  transition: all .2s; direction: ltr;
}
.ip-box:hover { background: var(--card2); transform: scale(1.02); }
.ip-box code { font-size: 1.15rem; font-weight: 700; color: var(--gold); background: none; }
.ip-label { color: var(--muted); font-size: .9rem; direction: rtl; }
.copy-hint { color: var(--muted); font-size: .85rem; direction: rtl; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.online-badge { margin-top: 1.6rem; color: var(--muted); font-size: .88rem; display: flex; justify-content: center; align-items: center; gap: .5rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ===== sections ===== */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg2); }
.section-title { text-align: center; font-size: 1.9rem; font-weight: 900; margin-bottom: .6rem; position: relative; }
.section-title::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: .7rem auto 0; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
}
.feature-card { text-align: center; transition: all .25s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 10px 32px rgba(0,0,0,.4); }
.feature-icon { font-size: 2.6rem; margin-bottom: .8rem; }
.feature-card h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.feature-card p { color: var(--muted); font-size: .93rem; }

/* ===== ranks strip ===== */
.rank-strip { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.5rem; }
.rank-pill {
  font-weight: 900; font-size: 1.05rem; padding: .55rem 1.5rem;
  border-radius: 999px; border: 2px solid; letter-spacing: .5px; direction: ltr;
  transition: transform .2s;
}
.rank-pill:hover { transform: translateY(-4px) scale(1.05); }
.p1 { color: #ff8a65; border-color: #ff8a65; }   /* Phoenix */
.p2 { color: #ffd54f; border-color: #ffd54f; }   /* Rostam */
.p3 { color: #4fc3f7; border-color: #4fc3f7; }   /* Cyrus */
.p4 { color: #ba68c8; border-color: #ba68c8; }   /* Simorgh */
.p5 { color: #ef5350; border-color: #ef5350; }   /* Demon */
.p6 { color: #f0b429; border-color: #f0b429; text-shadow: 0 0 14px rgba(240,180,41,.7); } /* Zurvan */
.p7 { color: #69f0ae; border-color: #69f0ae; }   /* Sponsor */

/* ===== gallery (placeholder art) ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.shot {
  aspect-ratio: 16/9; border-radius: var(--radius); position: relative; overflow: hidden;
  border: 1px solid var(--border); display: flex; align-items: flex-end;
}
.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.shot span {
  position: relative; z-index: 1;
  width: 100%; padding: .7rem 1rem; font-size: .9rem; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.s1 { background: linear-gradient(135deg, #2c3e67, #6b4fa0 60%, #f0b429); }
.s2 { background: linear-gradient(135deg, #14532d, #2e7d46 55%, #a3e635); }
.s3 { background: linear-gradient(135deg, #7f1d1d, #b91c1c 55%, #f59e0b); }

/* ===== footer ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg2); margin-top: 3rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; padding: 2.2rem 1.2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .93rem; }
.footer-links a:hover { color: var(--gold); }
.copyright { text-align: center; color: var(--muted); font-size: .82rem; padding: 1rem; border-top: 1px solid var(--border); }

/* ===== alerts ===== */
.alert { padding: .85rem 1.2rem; border-radius: 10px; margin: 1rem 0; font-size: .95rem; }
.alert-error { background: rgba(239,83,80,.12); border: 1px solid rgba(239,83,80,.4); color: #ff8a80; }
.alert-success { background: rgba(52,199,123,.1); border: 1px solid rgba(52,199,123,.4); color: #7ee2ae; }
.alert-info { background: rgba(79,140,255,.1); border: 1px solid rgba(79,140,255,.4); color: #9dc0ff; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ok-msg { color: var(--green); margin-inline-start: .8rem; }
.err-msg { color: var(--red); margin-inline-start: .8rem; }

/* ===== shop ===== */
.shop-tabs { display: flex; gap: .7rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.shop-tab {
  background: var(--card); border: 1.5px solid var(--border); color: var(--muted);
  padding: .5rem 1.4rem; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: .92rem;
  transition: all .2s;
}
.shop-tab.active { border-color: var(--gold); color: var(--gold); background: rgba(240,180,41,.08); }
.product-card { position: relative; display: flex; flex-direction: column; gap: .55rem; transition: all .25s; }
.product-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 12px 36px rgba(0,0,0,.45); }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .18rem .7rem; border-radius: 999px; width: fit-content; }
.badge-auto { background: rgba(240,180,41,.13); color: var(--gold); border: 1px solid rgba(240,180,41,.4); }
.badge-handy { background: rgba(79,140,255,.13); color: #9dc0ff; border: 1px solid rgba(79,140,255,.4); }
.badge-founder { background: rgba(105,240,174,.12); color: #69f0ae; border: 1px solid rgba(105,240,174,.4); margin-inline-start: .5rem; }
.product-desc { color: var(--muted); font-size: .88rem; flex: 1; }
.product-price { font-size: 1.3rem; font-weight: 900; color: var(--gold); }
.product-price small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.empty-msg { text-align: center; color: var(--muted); padding: 2rem; }

/* ===== cart drawer ===== */
.cart-btn { position: relative; }
.cart-count {
  display: none; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: #14100a; color: var(--gold); border-radius: 999px;
  font-size: .72rem; font-weight: 800; margin-inline-start: .3rem;
}
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 98; }
.cart-overlay.show { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; bottom: 0; left: -400px; width: min(380px, 92vw);
  background: var(--card); border-inline-end: 1px solid var(--border);
  z-index: 99; display: flex; flex-direction: column; transition: left .3s;
}
.cart-drawer.open { left: 0; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border); }
.cart-close { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; display: flex; flex-direction: column; gap: .9rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.cart-item {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  background: var(--card2); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .9rem;
}
.cart-item.static { justify-content: space-between; }
.qty-controls { display: flex; align-items: center; gap: .5rem; }
.qty-controls button {
  width: 27px; height: 27px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; font-weight: 800;
}
.qty-controls button:hover { border-color: var(--gold); color: var(--gold); }
.cart-remove { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: .6; }
.cart-remove:hover { opacity: 1; }
.cart-foot { padding: 1.1rem 1.3rem; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.cart-total.big { font-size: 1.15rem; margin: 1.2rem 0; }

/* ===== forms ===== */
.form-card h3 { margin-bottom: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .35rem; }
input, textarea, select {
  width: 100%; background: var(--bg2); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: .65rem .9rem; font-family: inherit; font-size: .95rem;
  transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
.check { display: flex; align-items: center; gap: .5rem; margin: .5rem 0; cursor: pointer; font-size: .92rem; }
.check input { width: auto; }

.track-form { display: flex; gap: .7rem; margin-bottom: 2rem; }
.track-form input { flex: 1; text-align: center; letter-spacing: 1px; }

.table { width: 100%; border-collapse: collapse; margin: .8rem 0; font-size: .93rem; }
.table th, .table td { padding: .6rem .8rem; text-align: right; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; white-space: nowrap; width: 40%; }
.items-table th { width: auto; }

/* ===== confirmation / tracking ===== */
.confirm-card { text-align: center; }
.confirm-icon {
  width: 76px; height: 76px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 900;
}
.confirm-icon.success { background: rgba(52,199,123,.13); color: var(--green); border: 2px solid rgba(52,199,123,.5); }
.confirm-icon.failed { background: rgba(239,83,80,.13); color: var(--red); border: 2px solid rgba(239,83,80,.5); }
.handy-note { font-weight: 800; font-size: 1.05rem; }
.pnum-box {
  display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap;
  background: var(--bg2); border: 1px dashed var(--gold); border-radius: 12px;
  padding: 1rem 1.4rem; margin: 1.4rem 0;
}
.pnum-box strong { font-size: 1.3rem; color: var(--gold); direction: ltr; }
.confirm-actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }
.track-status { padding: .8rem 1.2rem; border-radius: 10px; margin-bottom: 1rem; background: var(--bg2); }
.track-status.paid, .track-status.delivered { border: 1px solid rgba(52,199,123,.45); color: #7ee2ae; }
.track-status.pending { border: 1px solid rgba(239,83,80,.45); color: #ff8a80; }

/* ===== tickets ===== */
.ticket-layout {
  display: grid; grid-template-columns: 340px 1fr; gap: 1.2rem; align-items: start;
}
.ticket-side, .ticket-main { padding: 1.1rem 1.2rem; }
.side-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .8rem; max-height: 520px; overflow-y: auto; }
.side-item {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: .7rem .9rem; cursor: pointer; transition: all .15s;
}
.side-item:hover { border-color: var(--gold); }
.side-item.selected { border-color: var(--gold); background: rgba(240,180,41,.07); box-shadow: inset 3px 0 0 var(--gold); }
.side-item-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.side-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.side-filters .shop-tab { font-size: .8rem; padding: .35rem .9rem; }

.thread-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .8rem; margin-bottom: 1rem; }
.msg-thread { display: flex; flex-direction: column; gap: .8rem; max-height: 420px; overflow-y: auto; padding: .3rem; }
.msg { max-width: 78%; border-radius: 12px; padding: .6rem .95rem; }
.msg-meta { font-size: .72rem; color: var(--muted); margin-bottom: .25rem; }
.msg-text { font-size: .93rem; white-space: pre-wrap; }
.msg.user { align-self: flex-start; background: var(--card2); border: 1px solid var(--border); }
.msg.admin { align-self: flex-end; background: rgba(240,180,41,.09); border: 1px solid rgba(240,180,41,.35); }
.reply-row { display: flex; gap: .6rem; margin-top: 1rem; align-items: flex-end; }
.reply-row textarea { flex: 1; }

/* ticket status badge colors */
.ticket-badge.sb-open_pending { background: rgba(240,180,41,.14); color: var(--gold); }
.ticket-badge.sb-open_reply { background: rgba(239,83,80,.14); color: #ff8a80; }
.ticket-badge.sb-answered { background: rgba(52,199,123,.13); color: #7ee2ae; }
.ticket-badge.sb-closed { background: rgba(138,147,181,.13); color: var(--muted); }
.ticket-item { background: var(--bg2); border: 1px solid var(--border); border-right: 4px solid var(--blue); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.ticket-item.status-answered { border-right-color: var(--green); }
.ticket-item.status-closed { border-right-color: var(--muted); opacity: .75; }
.ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ticket-badge { font-size: .78rem; font-weight: 700; padding: .15rem .8rem; border-radius: 999px; background: rgba(79,140,255,.13); color: #9dc0ff; }
.status-answered .ticket-badge { background: rgba(52,199,123,.13); color: #7ee2ae; }
.status-closed .ticket-badge { background: rgba(138,147,181,.13); color: var(--muted); }
.ticket-answer { background: rgba(52,199,123,.06); border: 1px dashed rgba(52,199,123,.35); border-radius: 8px; padding: .7rem 1rem; margin-top: .7rem; font-size: .9rem; }
.ticket-actions { margin-top: .8rem; display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.ticket-actions textarea { flex: 1; min-width: 220px; }
.ticket-item p { margin-top: .5rem; }

/* ===== admin ===== */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(ellipse at top, #1a2140, var(--bg)); }
.login-card { width: min(400px, 92vw); padding: 2.2rem; }
.admin-main { padding: 2rem 1.2rem 4rem; }
.admin-tabs { display: flex; gap: .6rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.admin-tab {
  background: var(--card); border: 1.5px solid var(--border); color: var(--muted);
  padding: .6rem 1.3rem; border-radius: 10px 10px 0 0; cursor: pointer; font-family: inherit;
  font-size: .92rem; font-weight: 700; transition: all .2s;
}
.admin-tab.active { background: var(--gold); color: #14100a; border-color: var(--gold); }
.admin-section { animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
.search-row { display: flex; gap: .7rem; margin: .8rem 0 1.2rem; max-width: 480px; }
.search-row input { flex: 1; }
.perm-box { border: 1px solid var(--border); border-radius: 10px; padding: .8rem 1.1rem; margin: 1rem 0; }
.perm-box legend { color: var(--muted); font-size: .88rem; padding: 0 .5rem; }
.handy-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: .9rem 1.2rem; margin-bottom: .8rem;
}
#products-list table td { vertical-align: middle; }

/* ===== slideshow ===== */
.slideshow-section { padding-bottom: 1rem; }
.slideshow {
  position: relative; width: 100%; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 21/9; max-height: 480px; background: var(--card);
}
.store-slideshow { aspect-ratio: 21/7; margin-bottom: 2rem; }
.slideshow .slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .6s ease;
}
.slideshow .slide.active { opacity: 1; }
.sl-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(11,14,23,.65); color: var(--text); font-size: 1.5rem;
  cursor: pointer; z-index: 3; transition: all .2s; line-height: 1;
}
.sl-arrow:hover { background: var(--gold); color: #14100a; }
.sl-prev { right: .8rem; }
.sl-next { left: .8rem; }
.sl-dots { position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%); display: flex; gap: .45rem; z-index: 3; }
.sl-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(232,236,248,.4); transition: all .25s; padding: 0;
}
.sl-dot.active { background: var(--gold); width: 26px; border-radius: 999px; }

/* ===== responsive ===== */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .ip-box { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .ticket-layout { grid-template-columns: 1fr; }
}
