/* =====================================================================
   ONYX GYM — تم تیره، لوکس، مینیمال شیشه‌ای (طلایی)
   ===================================================================== */
:root {
    --bg: #070707;
    --bg-2: #0d0c0a;
    --bg-3: #131210;
    --text: #f2ede3;
    --muted: #a39b8a;
    --gold: #d4a84b;
    --gold-light: #f1d58a;
    --gold-dark: #9a7125;
    --gold-grad: linear-gradient(135deg, #f6dc95 0%, #d4a84b 48%, #9a7125 100%);
    --line: rgba(212, 168, 75, .22);
    --line-strong: rgba(212, 168, 75, .55);
    --glass: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .018));
    --radius: 16px;
    --radius-lg: 22px;
    --shadow: 0 18px 44px rgba(0, 0, 0, .5);
    --font: 'Vazirmatn', 'Vazir', Tahoma, 'Segoe UI', sans-serif;
    --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
    --header-h: 78px;

    /* سازگاری با نام‌های قدیمی */
    --color-primary: #d4a84b;
    --color-primary-dark: #9a7125;
    --color-secondary: #f1d58a;
    --color-accent: #7fd69a;
    --color-bg: #070707;
    --color-surface: rgba(255, 255, 255, .04);
    --color-surface-strong: rgba(255, 255, 255, .08);
    --color-surface-border: rgba(212, 168, 75, .22);
    --color-line: rgba(212, 168, 75, .22);
    --color-text: #f2ede3;
    --color-text-muted: #a39b8a;
    --radius-md: 12px;
    --shadow-glow: 0 0 28px rgba(212, 168, 75, .18);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, .45);
    --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); color: var(--text); line-height: 1.85; font-size: 15px;
    background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.site {
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(212, 168, 75, .07), transparent 60%),
        radial-gradient(900px 500px at 0% 40%, rgba(212, 168, 75, .05), transparent 60%),
        var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.5; font-weight: 700; color: #fff; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.ico { flex-shrink: 0; vertical-align: middle; }
::selection { background: rgba(212, 168, 75, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- دکمه‌ها ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px;
    border-radius: 12px; font-weight: 700; font-size: .92rem; border: 1px solid transparent; cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
    white-space: nowrap; line-height: 1.4; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold, .btn-primary {
    background: var(--gold-grad); color: #1a1205; border-color: rgba(255, 255, 255, .15);
    box-shadow: 0 10px 26px rgba(212, 168, 75, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover, .btn-primary:hover { box-shadow: 0 14px 34px rgba(212, 168, 75, .42), inset 0 1px 0 rgba(255, 255, 255, .5); color: #120c02; }
.btn-outline-gold, .btn-outline {
    background: rgba(0, 0, 0, .35); color: var(--gold-light); border-color: var(--line-strong);
    backdrop-filter: blur(6px);
}
.btn-outline-gold:hover, .btn-outline:hover { background: rgba(212, 168, 75, .12); border-color: var(--gold); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .05); color: var(--text); border-color: rgba(255, 255, 255, .12); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-danger { background: rgba(220, 70, 70, .12); color: #ff9b9b; border-color: rgba(220, 70, 70, .4); }
.btn-danger:hover { background: rgba(220, 70, 70, .22); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 8px 18px; font-size: .82rem; border-radius: 10px; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

/* ---------- هدر ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60; background: rgba(7, 7, 7, .72);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 168, 75, .14); transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(7, 7, 7, .93); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: var(--header-h); direction: ltr; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 54px; width: auto; filter: drop-shadow(0 4px 14px rgba(212, 168, 75, .18)); }
.main-nav { direction: rtl; flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav ul a {
    position: relative; display: block; padding: 9px 15px; font-size: .9rem; font-weight: 500; color: #d9d2c3;
    border-radius: 10px; transition: color .2s, background .2s;
}
.main-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.main-nav ul a.active { color: var(--gold-light); font-weight: 700; }
.main-nav ul a.active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; width: 22px; height: 2px; transform: translateX(-50%);
    background: var(--gold-grad); border-radius: 2px; box-shadow: 0 0 10px rgba(212, 168, 75, .8);
}
.nav-auth-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; direction: ltr; }
.header-auth { padding: 9px 20px; font-size: .86rem; }
.icon-btn {
    position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; color: var(--gold-light); border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.icon-btn:hover { background: rgba(212, 168, 75, .12); }
.cart-badge {
    position: absolute; top: -6px; left: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: var(--gold-grad); color: #1a1205; font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--gold-light); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { display: none; }

.account-menu { position: relative; }
.account-trigger { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font-size: .85rem; }
.account-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-grad); color: #1a1205; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.account-dropdown {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px; padding: 8px; border-radius: 14px; z-index: 70;
    background: rgba(16, 15, 12, .98); border: 1px solid var(--line); box-shadow: var(--shadow); display: none;
}
.account-dropdown.open { display: block; }
.account-dropdown a { display: block; padding: 10px 14px; border-radius: 10px; font-size: .88rem; color: #ddd5c4; }
.account-dropdown a:hover { background: rgba(212, 168, 75, .1); color: #fff; }
.account-dropdown a.danger { color: #ff9b9b; }

/* ---------- اسلایدر ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #050505; }
.hero-slides { display: grid; }
.hero-slide {
    grid-area: 1 / 1; position: relative; min-height: clamp(540px, 70vh, 640px); padding: 56px 0 150px;
    display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-media {
    position: absolute; top: 0; bottom: 0; right: 0; left: auto; width: 74%; z-index: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-slide::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7, 7, 7, .78) 0%, rgba(7, 7, 7, .35) 34%, rgba(7, 7, 7, 0) 54%),
        linear-gradient(0deg, #070707 0%, rgba(7, 7, 7, 0) 26%);
}
.hero-inner { position: relative; z-index: 3; direction: ltr; }
.hero-copy { direction: rtl; text-align: right; max-width: 560px; }
.hero-badge { display: inline-block; padding: 5px 16px; margin-bottom: 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .78rem; color: var(--gold-light); letter-spacing: .5px; background: rgba(212, 168, 75, .08); }
.hero-title { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 800; line-height: 1.35; margin-bottom: 18px; }
.hero-title span { display: block; }
.hero-title .white-line { color: #fff; }
.hero-text { color: #cfc8b8; font-size: 1rem; line-height: 2; margin-bottom: 28px; max-width: 470px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-features-wrap { position: absolute; bottom: 30px; left: 0; right: 0; z-index: 4; pointer-events: none; direction: ltr; }
.hero-features { display: flex; gap: 14px; direction: rtl; max-width: 580px; pointer-events: auto; }
.hero-features li {
    flex: 1; text-align: center; padding: 14px 8px; border-radius: 16px; border: 1px solid rgba(212, 168, 75, .16);
    background: rgba(8, 8, 8, .55); backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.hf-icon { color: var(--gold); margin-bottom: 4px; display: inline-flex; filter: drop-shadow(0 0 8px rgba(212, 168, 75, .45)); }
.hero-features strong { font-size: .8rem; color: #fff; line-height: 1.5; }
.hero-features small { font-size: .7rem; color: var(--muted); line-height: 1.4; }
.hero-controls {
    position: absolute; bottom: 34px; right: 36px; z-index: 5; display: flex; align-items: center; gap: 10px;
    padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 8, 8, .6); backdrop-filter: blur(10px);
}
.hc-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--gold-light); display: flex; align-items: center; justify-content: center; }
.hc-btn:hover { background: rgba(212, 168, 75, .15); }
.hc-count { font-size: .8rem; color: var(--muted); min-width: 40px; text-align: center; }
.hc-count b { color: #fff; }
.hero-dots { display: none; }

/* ---------- بخش‌ها ---------- */
.sec { position: relative; padding: 76px 0; }
.sec::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 168, 75, .55), transparent); }
.sec-head { margin-bottom: 36px; }
.sec-head.center { text-align: center; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: #fff; position: relative; display: inline-block; margin-bottom: 8px; }
.sec-title::after { content: ''; display: block; width: 46px; height: 3px; margin-top: 8px; background: var(--gold-grad); border-radius: 3px; }
.sec-head.center .sec-title::after { margin-inline: auto; }
.sec-sub { color: var(--muted); font-size: .95rem; max-width: 560px; }
.sec-head.center .sec-sub { margin-inline: auto; }
.sec-sub-strong { color: var(--gold-light); font-size: 1.15rem; font-weight: 700; margin: 4px 0 6px; }
.sec-text { color: #c9c2b2; font-size: .95rem; line-height: 2.1; margin-bottom: 24px; max-width: 520px; }

.glass {
    background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-lg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .07);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.glass:hover { border-color: var(--line-strong); }

/* چرا اونیکس */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why-body { order: 1; }
.why-media { order: 2; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.why-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 7, .55), transparent 50%); }
.why-media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.why-stats {
    order: 3; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line);
    border-radius: var(--radius-lg); background: var(--glass); box-shadow: var(--shadow);
}
.why-stats li { padding: 22px 12px; text-align: center; border-inline-start: 1px solid var(--line); }
.why-stats li:first-child { border-inline-start: 0; }
.why-stats strong { display: block; font-size: 1.9rem; font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.3; }
.why-stats span { color: var(--muted); font-size: .85rem; }

/* تجهیزات */
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.equip-card { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; min-height: 300px; padding: 0; }
.equip-card:hover { transform: translateY(-5px); box-shadow: 0 26px 60px rgba(0, 0, 0, .6), 0 0 36px rgba(212, 168, 75, .12); }
.equip-body { padding: 32px 30px; display: flex; flex-direction: column; justify-content: center; gap: 10px; align-items: flex-start; }
.equip-brand { font-family: var(--font-display); letter-spacing: .14em; font-size: 1.35rem; font-weight: 700; color: #fff; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.equip-logo { max-height: 44px; width: auto; margin-bottom: 4px; }
.equip-body h3 { font-size: 1.05rem; font-weight: 700; }
.equip-body p { color: var(--muted); font-size: .88rem; line-height: 2; margin-bottom: 8px; }
.equip-media { position: relative; }
.equip-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.equip-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(10, 10, 10, .9), transparent 55%); }

/* چیدمان مطابق طرح مرجع: آیتم اول سمت چپ، متن‌ها راست‌به‌چین */
.program-grid, .trainer-grid, .plans-grid, .gallery-strip, .why-stats, .equipment-grid { direction: ltr; }
.program-card, .trainer-card, .plan-card, .gal-item, .why-stats li, .equip-card { direction: rtl; }

/* اسکرولر افقی (موبایل) */
.scroller { position: relative; }
.program-grid, .trainer-grid, .gallery-strip { display: grid; gap: 16px; }
.program-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.program-card {
    position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line);
    aspect-ratio: 3 / 4; background: #0a0a0a; box-shadow: var(--shadow); transition: transform .35s ease, border-color .3s, box-shadow .3s;
}
.program-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.program-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 24px 54px rgba(0, 0, 0, .65), 0 0 32px rgba(212, 168, 75, .16); }
.program-card:hover img { transform: scale(1.08); }
.pc-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 5, 5, .96) 4%, rgba(5, 5, 5, .55) 45%, rgba(5, 5, 5, .05) 78%); }
.pc-body { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.pc-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gold-light); border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); margin-bottom: 6px; }
.pc-body strong { font-size: 1rem; color: #fff; }
.pc-body small { color: #bdb5a4; font-size: .78rem; line-height: 1.7; }
.pc-arrow { position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, .45); color: var(--gold-light); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateX(6px); transition: .3s; }
.program-card:hover .pc-arrow { opacity: 1; transform: none; }

/* مربیان */
.trainer-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trainer-card { overflow: hidden; padding: 0; }
.trainer-card:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(0, 0, 0, .65), 0 0 30px rgba(212, 168, 75, .14); }
.tc-photo { aspect-ratio: 4 / 4.4; overflow: hidden; position: relative; background: #0b0b0b; }
.tc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.trainer-card:hover .tc-photo img { transform: scale(1.06); }
.tc-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 8, .85), transparent 45%); }
.tc-info { padding: 14px 16px 18px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.tc-info strong { color: #fff; font-size: 1rem; }
.tc-info span { color: var(--gold); font-size: .8rem; }
.tc-social { display: flex; justify-content: center; gap: 8px; margin-top: 8px; min-height: 30px; }
.tc-social a { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold-light); display: flex; align-items: center; justify-content: center; }
.tc-social a:hover { background: rgba(212, 168, 75, .18); }

/* پلن‌ها */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.plan-card { position: relative; padding: 30px 24px 26px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.plan-card:hover { transform: translateY(-6px); }
.plan-card.featured { border-color: var(--gold); background: linear-gradient(160deg, rgba(212, 168, 75, .16), rgba(255, 255, 255, .02) 60%); box-shadow: 0 26px 60px rgba(0, 0, 0, .6), 0 0 44px rgba(212, 168, 75, .2), inset 0 1px 0 rgba(255, 255, 255, .12); }
.plan-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); padding: 3px 18px 5px; font-size: .74rem; font-weight: 800; color: #1a1205; background: var(--gold-grad); border-radius: 0 0 12px 12px; }
.plan-card h3 { font-size: 1.15rem; margin-top: 6px; }
.plan-sub { color: var(--muted); font-size: .8rem; margin-top: -4px; }
.plan-price { padding: 14px 0; margin: 4px 0 2px; border-block: 1px solid var(--line); }
.plan-price strong { display: block; font-size: 1.7rem; font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.4; }
.plan-price small { color: var(--muted); font-size: .78rem; }
.plan-feats { display: flex; flex-direction: column; gap: 9px; text-align: right; margin: 6px 0 14px; flex: 1; }
.plan-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; color: #d6cfc0; line-height: 1.7; }
.plan-feats .ico { color: var(--gold); margin-top: 4px; }

/* گالری */
.gallery-strip { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gal-item { display: block; position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: #0b0b0b; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s; filter: saturate(1.05); }
.gal-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .4), transparent 50%); opacity: .8; transition: opacity .3s; }
.gal-item:hover img { transform: scale(1.1); }
.gal-item:hover { border-color: var(--line-strong); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: none; align-items: center; justify-content: center; padding: 24px; flex-direction: column; gap: 14px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 80vh; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
.lightbox p { color: var(--muted); font-size: .9rem; }
.lb-close, .lb-nav { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .6); color: var(--gold-light); display: flex; align-items: center; justify-content: center; }
.lb-close { top: 18px; left: 18px; }
.lb-nav.prev { left: 18px; top: 50%; }
.lb-nav.next { right: 18px; top: 50%; }

/* ---------- فوتر ---------- */
.site-footer { margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65)); border-top: 1px solid var(--line); padding: 54px 0 22px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-logo { width: 140px; height: auto; filter: drop-shadow(0 6px 24px rgba(212, 168, 75, .2)); }
.footer-brand p { color: var(--muted); font-size: .85rem; line-height: 2; max-width: 300px; }
.footer-col h4 { font-size: .95rem; color: var(--gold-light); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: .86rem; color: #c9c2b2; display: flex; gap: 8px; align-items: flex-start; }
.footer-col li a:hover { color: var(--gold-light); }
.footer-contact .ico { color: var(--gold); margin-top: 5px; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); color: var(--gold-light); display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .03); }
.socials a:hover { background: rgba(212, 168, 75, .16); transform: translateY(-2px); }
.footer-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(212, 168, 75, .14); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-bottom .credit { font-size: .68rem; opacity: .7; }
.footer-bottom .credit a { color: inherit; }

/* ---------- صفحات داخلی ---------- */
.page-hero { padding: 54px 0 34px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.page-hero p { color: var(--muted); margin-top: 10px; max-width: 560px; margin-inline: auto; }
.page-hero::after { content: ''; display: block; width: 60px; height: 3px; margin: 18px auto 0; background: var(--gold-grad); border-radius: 3px; }
.page-body { padding: 10px 0 70px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* ---------- فرم‌ها ---------- */
.form-group { margin-bottom: 18px; }
.form-group label, .form-label { display: block; margin-bottom: 7px; font-size: .84rem; color: #d3ccbc; font-weight: 500; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=tel], input[type=date], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
    width: 100%; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .045); color: var(--text);
    font-family: inherit; font-size: .92rem; transition: border-color .2s, box-shadow .2s, background .2s; min-height: 46px;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.9; }
input::placeholder, textarea::placeholder { color: #756e60; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 168, 75, .16); background: rgba(255, 255, 255, .07); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4a84b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
select option { background: #15130f; color: var(--text); }
input[type=file] { padding: 9px 12px; }
input[type=file]::file-selector-button { margin-inline-end: 12px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(212, 168, 75, .12); color: var(--gold-light); font-family: inherit; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); width: 17px; height: 17px; vertical-align: middle; }
.form-hint { font-size: .76rem; color: var(--muted); margin-top: 6px; line-height: 1.8; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: #d3ccbc; cursor: pointer; }
.check-row input { flex-shrink: 0; }

.alert { padding: 13px 18px; border-radius: 12px; margin-bottom: 18px; font-size: .88rem; border: 1px solid; line-height: 1.9; }
.alert-success { background: rgba(80, 200, 120, .1); color: #8ee6a8; border-color: rgba(80, 200, 120, .35); }
.alert-error { background: rgba(230, 80, 80, .1); color: #ffa3a3; border-color: rgba(230, 80, 80, .38); }
.alert-info { background: rgba(212, 168, 75, .09); color: var(--gold-light); border-color: var(--line-strong); }

/* ---------- احراز هویت ---------- */
.auth-page { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { position: relative; overflow: hidden; background: #050505; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.auth-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(7, 7, 7, 0) 20%, rgba(7, 7, 7, .96) 100%), linear-gradient(0deg, rgba(7, 7, 7, .8), transparent 40%); }
.auth-visual .auth-quote { position: absolute; z-index: 2; right: 48px; bottom: 56px; max-width: 360px; }
.auth-quote strong { font-family: var(--font-display); letter-spacing: .2em; color: var(--gold-light); font-size: .85rem; display: block; margin-bottom: 8px; }
.auth-quote p { font-size: 1.5rem; font-weight: 800; line-height: 1.7; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 430px; padding: 40px 34px; }
.auth-card h2 { font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 26px; }
.auth-card .auth-logo { width: 74px; margin: 0 auto 14px; }
.otp-input { font-size: 1.7rem !important; letter-spacing: .55em; text-align: center; direction: ltr; font-weight: 700; padding-inline-start: .55em !important; }
.mobile-input { direction: ltr; text-align: center; font-size: 1.15rem !important; letter-spacing: .08em; }
.auth-links { text-align: center; margin-top: 18px; font-size: .84rem; color: var(--muted); }
.auth-links a, .link-gold { color: var(--gold-light); }
.auth-links a:hover, .link-gold:hover { text-decoration: underline; }
.resend-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: .84rem; color: var(--muted); }
.resend-row button { background: none; border: 0; color: var(--gold-light); font-size: .84rem; padding: 0; }
.resend-row button[disabled] { color: #6b6455; cursor: not-allowed; }

/* ---------- کارت‌های محصول و کلاس ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card, .class-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.product-card:hover, .class-card:hover { transform: translateY(-5px); }
.pd-img { aspect-ratio: 1; background: #0c0c0c; overflow: hidden; position: relative; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .pd-img img { transform: scale(1.07); }
.pd-noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gold-dark); }
.pd-body, .cl-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pd-body h3, .cl-body h3 { font-size: 1rem; }
.pd-body p { color: var(--muted); font-size: .83rem; line-height: 1.9; flex: 1; }
.pd-price, .cl-price { font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.08rem; }
.cl-meta { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; color: #cfc8b8; margin: 4px 0 8px; }
.cl-meta div { display: flex; gap: 8px; align-items: center; }
.cl-meta .ico { color: var(--gold); }
.cl-cap { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 6px; overflow: hidden; margin-top: 2px; }
.cl-cap span { display: block; height: 100%; background: var(--gold-grad); border-radius: 6px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.chip { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: #d9d2c3; font-size: .86rem; cursor: pointer; font-family: inherit; }
.chip.active, .chip:hover { background: rgba(212, 168, 75, .16); border-color: var(--gold); color: #fff; }

/* ---------- جدول‌ها (عمومی) ---------- */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.admin-table th { text-align: right; padding: 12px 14px; color: var(--gold-light); font-weight: 600; font-size: .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(212, 168, 75, .05); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
.admin-table tbody tr:hover { background: rgba(212, 168, 75, .04); }

/* ---------- سازگاری با صفحات قدیمی ---------- */
.section { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: 1.7rem; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; }
.tag { display: inline-block; padding: 4px 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--gold-light); font-size: .76rem; margin-bottom: 12px; background: rgba(212, 168, 75, .07); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.glass-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(12px); }
.feature-card { padding: 24px; }
.feature-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: .86rem; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--gold-grad); color: #1a1205; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--gold-light); }
.price small { font-size: .75rem; color: var(--muted); font-weight: 400; }
.count-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold-grad); color: #1a1205; font-size: .7rem; font-weight: 800; align-items: center; justify-content: center; margin-inline-start: auto; }
.count-badge[data-count="0"] { display: none; }
.badge-s { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; border: 1px solid; white-space: nowrap; }
.badge-ok { color: #8ee6a8; border-color: rgba(80, 200, 120, .4); background: rgba(80, 200, 120, .08); }
.badge-warn { color: #f1cf7e; border-color: rgba(212, 168, 75, .45); background: rgba(212, 168, 75, .08); }
.badge-bad { color: #ffa3a3; border-color: rgba(230, 80, 80, .4); background: rgba(230, 80, 80, .08); }
.badge-info { color: #9ccfff; border-color: rgba(90, 160, 240, .4); background: rgba(90, 160, 240, .08); }
.badge-muted { color: var(--muted); border-color: rgba(255, 255, 255, .15); }
.prose { color: #d6cfc0; line-height: 2.1; }
.prose h3 { margin: 22px 0 8px; color: var(--gold-light); }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    :root { --header-h: 68px; }
    .burger { display: flex; }
    .brand img { height: 44px; }
    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); z-index: 90; background: rgba(10, 9, 7, .98);
        border-left: 1px solid var(--line); flex-direction: column; justify-content: flex-start; padding: 84px 20px 28px; gap: 22px;
        transform: translateX(105%); transition: transform .35s ease; overflow-y: auto; box-shadow: -20px 0 60px rgba(0, 0, 0, .7);
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav ul a { padding: 14px 16px; font-size: 1rem; border-radius: 12px; }
    .main-nav ul a.active { background: rgba(212, 168, 75, .1); }
    .main-nav ul a.active::after { display: none; }
    .nav-auth-mobile { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
    .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; transition: opacity .3s; }
    .nav-backdrop.open { opacity: 1; pointer-events: auto; }
    .account-name { display: none; }

    .hero-slide { min-height: 560px; padding: 56px 0 56px; align-items: flex-end; }
    .hero-slide::after { background: linear-gradient(0deg, rgba(7, 7, 7, .98) 6%, rgba(7, 7, 7, .78) 46%, rgba(7, 7, 7, .2) 100%); }
    .hero-media { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
    .hero-media img { object-position: 64% center; }
    .hero-copy { max-width: 100%; text-align: center; }
    .hero-text { margin-inline: auto; font-size: .92rem; }
    .hero-actions { justify-content: center; }
    .hero-features-wrap { position: static; padding: 0 0 20px; margin-top: -8px; background: #070707; }
    .hero-features { max-width: none; flex-wrap: wrap; padding-top: 14px; }
    .hero-features li { flex: 1 1 calc(50% - 14px); }
    .hero-controls { bottom: auto; top: 18px; right: 16px; }
    .why-grid { grid-template-columns: 1fr; gap: 26px; }
    .why-media { order: 1; } .why-body { order: 2; }
    .why-stats { grid-template-columns: repeat(2, 1fr); }
    .why-stats li:nth-child(3) { border-inline-start: 0; }
    .why-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .equip-card { grid-template-columns: 1fr; }
    .equip-media { height: 230px; order: -1; }
    .equip-media::after { background: linear-gradient(0deg, rgba(10, 10, 10, .9), transparent 60%); }
    .sec { padding: 54px 0; }
    .sec-head.split { align-items: flex-start; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-visual { display: none; }

    .program-grid, .trainer-grid, .gallery-strip { direction: rtl; }
    .scroller-track { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .scroller-track::-webkit-scrollbar { display: none; }
    .scroller-track > * { flex: 0 0 62%; max-width: 260px; scroll-snap-align: start; }
    .gallery-strip.scroller-track > * { flex-basis: 70%; max-width: 280px; }
}
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .container { padding: 0 16px; }
    .header-inner { gap: 10px; }
    .brand img { height: 40px; }
    .header-auth { padding: 8px 12px; font-size: .78rem; }
    .icon-btn, .burger { width: 38px; height: 38px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
    .footer-brand { align-items: center; text-align: center; }
    .footer-brand p { margin-inline: auto; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .plans-grid { grid-template-columns: 1fr; }
    .plan-card.featured { order: -1; }
    .equipment-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .why-stats strong { font-size: 1.5rem; }
    .auth-card { padding: 30px 20px; }
    .page-hero { padding: 38px 0 24px; }
    .sec-head.split .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
@media print {
    .site-header, .site-footer, .admin-sidebar, .admin-topbar, .btn, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
}
