/* ============================================
   «باشگاه شما» — تم روشن و شیک
   (پس‌زمینه‌ی کرم/رز + اکسنت رز و لهجهٔ طلایی؛
    مناسب باشگاه بانوان — تایپوگرافی نرم و ظریف)
   ============================================ */

/* فونت وزیرمتن محلی */
@font-face { font-family: 'Vazirmatn'; font-weight: 300; font-display: swap;
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 400; font-display: swap;
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 500; font-display: swap;
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 600; font-display: swap;
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 700; font-display: swap;
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); }

:root {
    --color-primary: #D26A93;
    --color-primary-dark: #B04E77;
    --color-bg: #FDF7F8;
    --color-bg-2: #FBF1F3;
    --color-surface: #FFFFFF;
    --color-surface-2: #FBEFF2;
    --color-border: #F0DCE2;
    --color-border-2: #E6C9D2;
    --color-text: #4A3B42;
    --color-muted: #A08890;
    --color-danger: #D9536A;
    --color-success: #3FAE7C;
    --radius: 14px;
    --shadow: 0 6px 22px rgba(122, 59, 87, 0.10);
    --glow: 0 6px 26px rgba(210, 106, 147, 0.22);
    --header-h: 68px;
}

* { box-sizing: border-box; }

html { direction: rtl; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Vazirmatn', system-ui, -apple-system, Tahoma, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
/* صفحهٔ خدمات — ظرف پهن‌تر تا نوارهای رشته‌ها کشیده‌تر شوند */
.container--wide { max-width: min(1760px, 96vw); }

a { color: var(--color-primary); text-decoration: none; transition: color .15s; }
a:hover { color: #B04E77; }

img { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }

::selection { background: var(--color-primary); color: #FFFFFF; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ============================================================
   هدر عمومی
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(253, 247, 248, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: var(--header-h);
    padding: 10px 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--color-text);
    letter-spacing: .01em;
}
.brand:hover { color: var(--color-text); }
.brand span { position: relative; }
.brand span::after {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    margin-inline-start: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    vertical-align: middle;
}
.brand-logo { height: 42px; width: auto; object-fit: contain; border-radius: 8px; }

.main-nav { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
.main-nav a {
    padding: 8px 12px;
    border-radius: 9px;
    color: #7A6570;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--color-surface-2); color: var(--color-text); }
.main-nav a.active { background: var(--color-primary); color: #FFFFFF; font-weight: 700; }

/* زیرمنوی «خدمات» — فهرستِ رشته‌های ورزشی */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown .nav-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-dropdown .nav-link::after {
    content: '▾'; font-size: 0.72rem; opacity: 0.75; transition: transform .15s;
}
.nav-dropdown:hover .nav-link::after,
.nav-dropdown:focus-within .nav-link::after { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 250px;
    background: #FFFFFF; border: 1px solid var(--color-border);
    border-radius: 12px; box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
    padding: 8px; display: none; flex-direction: column; z-index: 60;
}
/* پل نامرئی روی فاصلهٔ میان لینک و منو تا منو هنگام حرکت موس بسته نشود */
.nav-dropdown-menu::before {
    content: ''; position: absolute; top: -8px; right: 0; left: 0; height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a.nav-drop-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 9px; color: #7A6570;
    font-weight: 500; white-space: nowrap;
}
.nav-dropdown-menu a.nav-drop-item:hover { background: var(--color-surface-2); color: var(--color-text); }
.nav-drop-icon { font-size: 1.05rem; }
@media (max-width: 900px) {
    .nav-dropdown { display: block; }
    .nav-dropdown-menu { position: static; display: flex; box-shadow: none; border: none; background: transparent; padding: 2px 6px 2px 0; }
    .nav-dropdown-menu a { padding: 9px 14px; }
}

.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.btn-header-cta {
    background: var(--color-primary);
    color: #FFFFFF;
    font-weight: 700;
    padding: 9px 18px;
    box-shadow: 0 4px 18px rgba(210, 106, 147, 0.22);
}
.btn-header-cta:hover { color: #FFFFFF; box-shadow: 0 6px 26px rgba(210, 106, 147, 0.35); transform: translateY(-1px); }

.btn-header-cta-alt {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-weight: 600;
    padding: 9px 18px;
}
.btn-header-cta-alt:hover { border-color: var(--color-primary); box-shadow: 0 6px 18px rgba(210, 106, 147, 0.15); transform: translateY(-1px); color: var(--color-text); }

.nav-toggle {
    display: none;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 9px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text);
}
@media (max-width: 1024px) {
    .main-nav { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #FFFFFF;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
        padding: 12px;
        z-index: 50;
    }
    .main-nav a { padding: 11px 14px; }
    .main-nav.open { display: flex; }
    .header-inner { flex-wrap: wrap; }
}

/* ============================================================
   هیرو صفحه اصلی
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    padding: clamp(76px, 12vw, 136px) 0 clamp(68px, 10vw, 112px);
    background:
        radial-gradient(900px 420px at 50% -80px, rgba(210, 106, 147, 0.14), transparent 62%),
        radial-gradient(720px 320px at 88% 115%, rgba(210, 106, 147, 0.22), transparent 60%),
        radial-gradient(620px 320px at 8% 100%, rgba(210, 106, 147, 0.06), transparent 55%),
        linear-gradient(160deg, #2A1721 0%, #1E1017 55%, #241320 100%);
    border-bottom: 1px solid var(--color-border);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 60%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 60%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(to top, rgba(42, 23, 33, 0.93) 0%, rgba(42, 23, 33, 0.80) 45%, rgba(42, 23, 33, 0.62) 100%),
        url('../img/hero-gym.jpg') center / cover no-repeat;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
    position: relative;
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 6.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}
.hero p {
    position: relative;
    margin: 0 auto;
    max-width: 660px;
    color: #FFF0F4;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
}
.hero .hero-actions { position: relative; margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn {
    background: var(--color-primary);
    color: #FFFFFF;
    font-weight: 700;
    padding: 12px 28px;
    box-shadow: 0 8px 28px rgba(210, 106, 147, 0.24);
}
.hero .btn:hover { color: #FFFFFF; box-shadow: 0 10px 34px rgba(210, 106, 147, 0.36); transform: translateY(-2px); }
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #FFF7FA;
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ============================================================
   هیرو صفحات داخلی
   ============================================================ */
.page-hero {
    padding: clamp(52px, 8vw, 84px) 0 38px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    background:
        radial-gradient(800px 300px at 50% -100px, rgba(210, 106, 147, 0.12), transparent 60%),
        linear-gradient(160deg, #2A1721, #1E1017 70%);
}
.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
.page-hero p { color: var(--color-muted); margin: 0; font-size: 1.02rem; }

/* ============================================================
   بخش‌ها
   ============================================================ */
.section { padding: clamp(28px, 5vw, 48px) 0; }
.section h2 {
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    margin: 0 0 20px;
    padding-right: 16px;
    position: relative;
}
.section > .container > h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    border-radius: 5px;
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(210, 106, 147, 0.5);
}
.muted { color: var(--color-muted); }

/* ============================================================
   فرم‌ها
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: #7A6570; }
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--color-bg-2);
    color: var(--color-text);
    transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder { color: #B9A3AC; }
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(210, 106, 147, 0.15);
}
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--color-bg-2) inset;
    -webkit-text-fill-color: var(--color-text);
    caret-color: var(--color-text);
    border-color: var(--color-border);
    transition: background-color 9999s ease-in-out 0s;
}

/* ============================================================
   دکمه‌ها
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--color-primary);
    color: #FFFFFF;
    transition: transform .15s, box-shadow .15s, background .15s, opacity .15s;
}
.btn:hover { color: #FFFFFF; transform: translateY(-1px); box-shadow: var(--glow); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary { background: var(--color-surface-2); color: var(--color-text); border: 1px solid var(--color-border-2); }
.btn-secondary:hover { background: #F0DCE2; color: var(--color-text); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { color: #fff; box-shadow: 0 6px 22px rgba(255, 92, 87, .25); }
.btn-success { background: var(--color-success); color: #FFFFFF; }
.btn-success:hover { color: #FFFFFF; box-shadow: 0 6px 22px rgba(91, 214, 122, .25); }
.btn-sm { padding: 5px 10px; font-size: 0.82rem; border-radius: 8px; }
.reply-input { padding: 5px 8px; font-size: 0.82rem; min-width: 0; }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.lead-note { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--color-border-2); border-radius: 10px; font-size: 0.85rem; color: var(--color-muted); }

/* ============================================================
   کارت‌ها و گریدها
   ============================================================ */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { border-color: var(--color-border-2); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.feature-card { transition: transform .18s, border-color .18s, box-shadow .18s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(210, 106, 147, 0.45); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); }
.feature-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.feature-card p { margin: 0; color: var(--color-muted); font-size: 0.92rem; }

/* صفحهٔ خدمات — نوار افقی کم‌قد و پهن (آیکون کنار عنوان/توضیح) */
.sport-card { display: flex; align-items: center; gap: 12px; text-align: right; padding: 8px 18px; transition: transform .18s, border-color .18s, box-shadow .18s; }
.sport-card:hover,
.sport-card:focus-within {
    transform: translateY(-4px);
    border-color: #C9A227;
    box-shadow: 0 0 0 1px #C9A227, 0 0 22px rgba(255, 224, 102, 0.35), 0 14px 34px rgba(0, 0, 0, 0.4);
}
.sport-icon {
    width: 36px; height: 36px; flex-shrink: 0; margin: 0; display: grid; place-items: center;
    font-size: 1.05rem; border-radius: 50%;
    background: rgba(210, 106, 147, 0.1); border: 1px solid rgba(210, 106, 147, 0.25);
}
.sport-card h3 { margin: 0; font-size: 0.95rem; }
.sport-card p { margin: 0; color: var(--color-muted); font-size: 0.8rem; line-height: 1.5; }

/* هایلایت هنگام پرش از لنگر (خدمات › نام رشته) */
.sport-card--highlight { border-color: #C9A227; box-shadow: 0 0 0 1px #C9A227, 0 0 22px rgba(255, 224, 102, 0.35); }

/* صفحهٔ اصلی — کادرهای مربع‌مانند با نام رشته (بدون توضیح) */
.home-sports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.sport-square { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; transition: transform .18s, border-color .18s, box-shadow .18s; }
.sport-square .sport-icon { width: 54px; height: 54px; font-size: 1.6rem; margin: 0 0 10px; }
.sport-square h3 { margin: 0; font-size: 1.1rem; }

.auth-box { max-width: 400px; margin: clamp(48px, 10vw, 90px) auto; }
.auth-box .card { padding: 30px; border-color: var(--color-border-2); }

.field-error { color: var(--color-danger); font-size: 0.85rem; margin-top: 4px; }

/* ============================================================
   توستر
   ============================================================ */
.toast {
    position: fixed;
    bottom: 26px;
    right: 50%;
    transform: translate(50%, 22px);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-2);
    color: var(--color-text);
    padding: 11px 22px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all .25s;
    z-index: 1000;
    font-size: 0.92rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.toast.show { opacity: 1; transform: translate(50%, 0); }
.toast-success { background: var(--color-success); color: #FFFFFF; border-color: transparent; font-weight: 600; }
.toast-danger { background: var(--color-danger); color: #fff; border-color: transparent; }

/* ============================================================
   لودینگ
   ============================================================ */
.loading-box { text-align: center; padding: 48px 0; color: var(--color-muted); }
.loading-spinner {
    width: 36px; height: 36px;
    margin: 0 auto 12px;
    border: 3px solid var(--color-border-2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
[hidden] { display: none !important; }

.jalali-picker { display: inline-flex; gap: 6px; align-items: stretch; width: 100%; flex-wrap: wrap; }
.jalali-picker .form-control { flex: 1 1 auto; min-width: 0; }
.jalali-picker .jp-y { max-width: 7.5em; }
.jalali-picker .jp-m { max-width: 8em; }

/* ============================================================
   جدول‌ها
   ============================================================ */
.table { width: 100%; border-collapse: collapse; background: transparent; }
.table th, .table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--color-border);
    text-align: right;
    font-size: 0.9rem;
}
.table th { background: var(--color-surface-2); color: #7A6570; font-weight: 600; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(210, 106, 147, 0.06); }
.table .row-actions { display: flex; gap: 6px; }
.table td .btn { padding: 6px 14px; font-size: 0.82rem; }
.table.sport-matrix th, .table.sport-matrix td { text-align: center; white-space: nowrap; }
.table.sport-matrix th:first-child, .table.sport-matrix td:first-child { text-align: right; }

.sched-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.sched-day { background: var(--color-surface-2); border: 1px solid var(--color-border-2); border-radius: 12px; padding: 10px; min-height: 100px; }
.sched-day h4 { margin: 0 0 10px; font-size: 0.85rem; text-align: center; color: #7A6570; }
.sched-day.is-empty h4 { opacity: .55; }
.sched-session { background: var(--color-surface); border: 1px solid var(--color-border-2); border-radius: 8px; padding: 7px 8px; margin-bottom: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sched-session .sched-time { font-size: 0.78rem; font-weight: 700; color: var(--color-primary); direction: ltr; }
.sched-session .sched-title { font-size: 0.82rem; text-align: center; }
.sched-empty { font-size: 0.9rem; }
@media (max-width: 980px) { .sched-days { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sched-days { grid-template-columns: 1fr; } }

.badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-surface-2);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.badge-success { background: rgba(91, 214, 122, 0.14); color: #1F7A4D; border-color: rgba(91, 214, 122, 0.3); }
.badge-danger  { background: rgba(255, 92, 87, 0.14); color: #C0304A; border-color: rgba(255, 92, 87, 0.3); }
.badge-warn    { background: rgba(255, 200, 60, 0.14); color: #9A6B10; border-color: rgba(255, 200, 60, 0.3); }
.badge-info    { background: rgba(90, 160, 255, 0.14); color: #2F6FB0; border-color: rgba(90, 160, 255, 0.3); }
.badge-primary { background: rgba(210, 106, 147, 0.12); color: var(--color-primary); border-color: rgba(210, 106, 147, 0.3); }
.avatar-sm     { width: 26px; height: 26px; object-fit: cover; border-radius: 50%; margin-inline-start: 6px; vertical-align: middle; border: 1px solid var(--color-border-2); }
.day-chips     { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.day-chip      { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--color-border-2); border-radius: 20px; font-size: 0.85rem; cursor: pointer; user-select: none; background: var(--color-surface-2); }
.day-chip input { margin: 0; accent-color: var(--color-primary); }
.day-chip.checked { border-color: var(--color-primary); color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface-2)); }

/* ============================================================
   فوتر
   ============================================================ */
.site-footer {
    margin-top: clamp(48px, 8vw, 80px);
    background:
        radial-gradient(700px 260px at 10% 0%, rgba(210, 106, 147, 0.05), transparent 60%),
        #FBEFF2;
    border-top: 1px solid var(--color-border);
    color: #8A7480;
    font-size: 0.92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding: 52px 20px 40px;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: var(--color-text);
    position: relative;
    padding-right: 12px;
}
.footer-col h4::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    border-radius: 4px;
    background: var(--color-primary);
}
.footer-about .brand { font-size: 1.15rem; margin-bottom: 10px; }
.footer-slogan { color: var(--color-text); font-weight: 600; margin: 6px 0; }
.footer-about-text { margin: 10px 0 16px; color: var(--color-muted); font-size: 0.88rem; line-height: 1.9; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #8A7480; font-size: 0.92rem; transition: color .15s, padding-right .15s; }
.footer-links a:hover { color: var(--color-primary); padding-right: 4px; }
.footer-contacts { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-line { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    font-size: 1rem;
}
.footer-contact-line small { display: block; color: var(--color-muted); font-size: 0.72rem; }
.footer-contact-line span { color: #5A4A52; font-size: 0.9rem; }
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 16px 0;
    font-size: 0.85rem;
    color: #A08890;
}
.footer-bottom .container { display: flex; justify-content: center; text-align: center; }

/* ============================================================
   چرخ‌دندهٔ ورود مدیریت (نامحسوس، ثابت، هنگام اسکرول)
   ============================================================ */
.admin-gear {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 60;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    opacity: .5;
    transition: opacity .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.admin-gear svg { width: 19px; height: 19px; }
.admin-gear:hover { opacity: 1; color: var(--color-primary); border-color: var(--color-primary); box-shadow: 0 0 18px rgba(210, 106, 147, 0.3); transform: rotate(45deg); }
@media (max-width: 560px) {
    .admin-gear { width: 36px; height: 36px; bottom: 14px; left: 14px; }
}

/* ============================================================
   کارت تعرفه
   ============================================================ */
.plan-card { text-align: center; position: relative; overflow: hidden; padding: 18px; }
.plan-card.highlight {
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), 0 14px 40px rgba(210, 106, 147, 0.12);
}
.plan-card.highlight::after {
    content: 'پیشنهاد ما';
    position: absolute;
    top: 12px;
    left: -34px;
    transform: rotate(-45deg);
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 38px;
}
.plan-card h3 { margin: 0; font-size: 1rem; }
.plan-price { font-size: 1.4rem; font-weight: 700; color: var(--color-text); margin: 10px 0; }
.plan-card.highlight .plan-price { color: var(--color-primary); }
.plan-price span { font-size: 0.78rem; color: var(--color-muted); font-weight: 400; }
.plan-feats { list-style: none; margin: 0 0 14px; padding: 0; text-align: right; font-size: 0.85rem; }
.plan-feats li { padding: 6px 0; border-bottom: 1px dashed var(--color-border); color: #7A6570; }
.plan-card .btn { padding: 8px 18px; font-size: 0.88rem; }

/* ============================================================
   جدول زمان‌بندی کلاس
   ============================================================ */
.schedule-table th, .schedule-table td { font-size: 0.85rem; }
.schedule-table td { vertical-align: top; }
.schedule-cell { display: block; background: rgba(210, 106, 147, 0.12); border: 1px solid rgba(210, 106, 147, 0.25); border-radius: 8px; padding: 5px 10px; margin: 3px 0; font-size: 0.8rem; color: #7A6570; }
.schedule-cell b { display: block; color: var(--color-primary); }

/* ============================================================
   پنل مدیریت
   ============================================================ */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px; flex-shrink: 0;
    background: linear-gradient(180deg, #33202B 0%, #241620 100%);
    color: #F6EAEF;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    border-left: 1px solid var(--color-border);
}
.admin-sidebar .brand {
    color: #fff; padding: 20px 18px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-weight: 800; font-size: 1.02rem; letter-spacing: .01em;
    background: radial-gradient(120% 120% at 100% 0%, rgba(210, 106, 147, .10), transparent 55%);
    position: relative;
}
.admin-sidebar .brand::after {
    content: '';
    position: absolute; right: 18px; bottom: -1px; left: 18px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}
.admin-sidebar .brand small { display: block; color: #C9A9B6; font-weight: 400; font-size: .75rem; margin-top: 4px; }
.admin-nav { flex: 1; padding: 14px 10px 20px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a {
    color: #E7D3DB;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 13px; border-radius: 10px; font-size: .88rem;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s, box-shadow .2s, transform .15s;
}
.admin-nav a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-color: rgba(210, 106, 147, .22);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    transform: translateX(-3px);
}
.admin-nav a.active { color: #E7D3DB; }
.admin-nav .nav-title {
    font-size: .72rem; font-weight: 800; color: var(--color-primary);
    letter-spacing: .06em;
    padding: 14px 10px 6px;
    border-top: 1px dashed rgba(255, 255, 255, .08);
    margin-top: 10px;
    display: flex; align-items: center; gap: 6px;
}
.admin-nav .nav-title:first-of-type { border-top: none; margin-top: 2px; }
.admin-nav .nav-title::before { content: ''; width: 10px; height: 2px; border-radius: 2px; background: var(--color-primary); opacity: .8; }
.admin-nav .lock { font-size: .7rem; opacity: .7; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--color-bg); }
.admin-topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(253, 247, 248, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 22px;
    position: sticky;
    top: 0;
    z-index: 20;
}
.admin-site-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 8px; }
.admin-site-link svg { display: block; }
.admin-site-link:hover svg { color: var(--color-primary); }
.admin-content { padding: 24px; flex: 1; }
.admin-topbar h1 { font-size: 1.05rem; font-weight: 800; margin: 0; color: var(--color-text); }
.admin-topbar .admin-meta { font-size: .78rem; color: var(--color-muted); }

.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(210, 106, 147, .05); }
.table tbody tr:hover td { color: var(--color-text); }

@media (max-width: 900px) {
    .admin-wrap { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; border-left: none; border-bottom: 1px solid var(--color-border); }
    .admin-nav { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .admin-nav .nav-title { flex-basis: 100%; border-top: none; margin-top: 6px; padding-top: 6px; }
    .admin-nav a:hover { transform: none; }
}

/* ============================================================
   کارت آمار
   ============================================================ */
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform .16s, border-color .16s;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(210, 106, 147, 0.35); }
.stat-card .stat-icon { font-size: 1.3rem; }
.stat-card .stat-label { color: var(--color-muted); font-size: 0.82rem; margin-top: 6px; }
.stat-card .stat-value { font-size: 1.55rem; font-weight: 700; margin-top: 2px; }
.stat-card .stat-sub { font-size: 0.75rem; color: var(--color-muted); }

/* ============================================================
   ابزار صفحه (جدول + جستجو)
   ============================================================ */
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .form-control { max-width: 260px; }

.table-wrap {
    overflow-x: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.table-wrap .table { margin: 0; }

/* ============================================================
   مودال
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(74, 59, 66, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}
.modal {
    background: var(--color-surface);
    border: 1px solid var(--color-border-2);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.modal.modal-lg {
    max-width: 760px;
}
.modal h3 { margin: 0 0 16px; }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ============================================================
   عنوان صفحه
   ============================================================ */
.page-title-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.page-title-row h1 { margin: 0; font-size: 1.45rem; }

/* ============================================================
   اطلاعیه فوری
   ============================================================ */
.important-banner {
    background: rgba(255, 92, 87, 0.14);
    border: 1px solid rgba(255, 92, 87, 0.4);
    color: #7A1E30;
    padding: 13px 18px;
    border-radius: 12px;
    margin-bottom: 14px;
}
.important-banner b { display: block; color: #C0304A; margin-bottom: 2px; }

/* ============================================================
   فروشگاه
   ============================================================ */
.cart-sticky { position: sticky; bottom: 12px; margin-top: 20px; }
.cart-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    padding: 16px;
}
.cart-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; border-bottom: 1px dashed var(--color-border); color: #7A6570; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; padding-top: 10px; }

.shop-card { display: flex; flex-direction: column; }
.shop-card .shop-body { flex: 1; }
.shop-card .shop-cat { color: var(--color-muted); font-size: 0.75rem; }
.shop-price { font-weight: 700; color: var(--color-primary); font-size: 1.05rem; }

/* کارت کوچک محصول (صفحه اصلی — ۴ مربع در هر سطر) */
.shop-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shop-card--sm {
    padding: 10px;
    aspect-ratio: 1 / 1;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.shop-card--sm h3 {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-card--sm .shop-cat { font-size: 0.68rem; margin-bottom: 2px; }
.shop-card--sm .shop-price { font-size: 0.88rem; }
.shop-card--sm .muted { font-size: 0.7rem; margin: 2px 0 0; }

/* ============================================================
   گالری
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.about-banner { width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--color-border); margin: 14px 0; filter: saturate(0.92); }
.gallery-item { overflow: hidden; border-radius: 14px; border: 1px solid var(--color-border); background: var(--color-surface); transition: transform .18s, border-color .18s; }
.gallery-item:hover { transform: translateY(-3px); border-color: rgba(210, 106, 147, 0.4); }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; }
.gallery-item figcaption { font-size: 0.82rem; color: var(--color-muted); padding: 10px 12px 12px; }

/* ============================================================
   سوالات متداول
   ============================================================ */
.faq-item { margin-bottom: 12px; }
.faq-item .faq-q {
    cursor: pointer;
    font-weight: 600;
    margin: 0;
    padding: 14px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: border-color .15s, background .15s;
}
.faq-item .faq-q::after { content: '\25BE'; transition: transform .2s; color: var(--color-muted); }
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-item .faq-a { padding: 12px 18px 4px; color: var(--color-muted); font-size: 0.92rem; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { border-color: var(--color-primary); background: rgba(210, 106, 147, 0.05); }

/* ============================================================
   کارت بانکی
   ============================================================ */
.bank-card {
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(210, 106, 147, 0.14), transparent 60%),
        linear-gradient(135deg, #7A3B57, #B05C7E 60%, #8A3F5E);
    color: #fff;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.bank-card .bank-logo { position: absolute; top: 16px; left: 18px; font-weight: 700; opacity: .85; }
.bank-card .card-digits { font-size: 1.3rem; letter-spacing: .1em; direction: ltr; margin: 30px 0 6px; color: #FFF7FA; }
.bank-card .bank-holder { font-size: 0.88rem; opacity: .9; }
.bank-card.inactive { filter: grayscale(1); opacity: .55; }

/* ============================================================
   پروفایل عضو
   ============================================================ */
.member-hero { display: flex; gap: 16px; align-items: center; }
.member-avatar {
    width: 66px; height: 66px; border-radius: 50%;
    background: var(--color-primary);
    color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.4rem; flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(210, 106, 147, 0.12);
}
.membership-bar { background: rgba(210, 106, 147, 0.12); border: 1px solid rgba(210, 106, 147, 0.3); border-radius: 10px; padding: 10px 16px; font-size: 0.9rem; margin-top: 10px; color: #7A6570; }

/* ============================================================
   تب‌ها
   ============================================================ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button {
    padding: 9px 18px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s;
}
.tabs button:hover { color: var(--color-text); }
.tabs button.active { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: 700; }

/* ============================================================
   قواعد
   ============================================================ */
.rule-item { display: flex; gap: 14px; margin-bottom: 16px; }
.rule-no {
    width: 32px; height: 32px; flex-shrink: 0;
    background: var(--color-primary);
    color: #FFFFFF;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(210, 106, 147, 0.25);
}

/* ============================================================
   متن فشرده / آغازین
   ============================================================ */
.text-2col { columns: 2; column-gap: 40px; }
@media (max-width: 700px) { .text-2col { columns: 1; } }

/* ============================================================
   پاگینیشن
   ============================================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination button {
    padding: 7px 14px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s;
}
.pagination button:hover { border-color: var(--color-primary); }
.pagination button.active { background: var(--color-primary); color: #FFFFFF; border-color: var(--color-primary); font-weight: 700; }

.empty-state { text-align: center; color: var(--color-muted); padding: 48px 0; }
.empty-state .big { font-size: 2.2rem; margin-bottom: 8px; }

/* ============================================================
   تماس
   ============================================================ */
.contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--color-border); }
.contact-row:last-child { border-bottom: none; }
.contact-icon {
    width: 40px; height: 40px;
    background: rgba(210, 106, 147, 0.08);
    border: 1px solid rgba(210, 106, 147, 0.22);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* ============================================================
   اطلاعیه‌ها
   ============================================================ */
.announce-item { border: 1px solid var(--color-border); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; background: var(--color-surface); }
.announce-item.important { border-color: rgba(255, 92, 87, 0.5); }
.announce-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.announce-date { color: var(--color-muted); font-size: 0.78rem; }

.auth-panel { max-width: 440px; margin: 0 auto; }
/* ============================================================
   ?????? ??????? ??? (wizard)
   ============================================================ */
.enroll-steps { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.enroll-step { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--color-border); color: var(--color-muted); background: var(--color-surface); font-size: 0.88rem; }
.enroll-step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--color-surface-2); font-weight: bold; font-size: 0.8rem; }
.enroll-step.active { border-color: var(--color-primary); color: var(--color-text); }
.enroll-step.active .enroll-step-num { background: var(--color-primary); color: #FFFFFF; }
.enroll-classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.enroll-class { border-color: var(--color-border); margin: 0; display: flex; flex-direction: column; }
.enroll-class-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.enroll-class-date { margin-top: 10px; max-width: 220px; }
.enroll-class-date label { display: block; margin-bottom: 4px; color: var(--color-muted); }
@media (max-width: 720px) { .enroll-classes { grid-template-columns: 1fr; } }
.att-check { width: 34px; height: 30px; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface); cursor: pointer; color: #fff; font-size: 0.95rem; line-height: 1; transition: border-color .12s, background .12s, transform .05s; }
.att-check:hover:not(:disabled) { border-color: var(--color-primary); transform: scale(1.05); }
.att-check.on { background: #1f9d55; border-color: #1f9d55; }
.att-check.off, .att-check:disabled { opacity: .3; cursor: not-allowed; }
.att-check.att-warn { border-style: dashed; border-color: #C9A227; color: #C9A227; }
.att-check.att-warn:hover:not(:disabled) { border-color: #C9A227; }
.att-sheet td, .att-sheet th { padding: 5px 6px; }
.att-th.att-today { background: rgba(255, 214, 10, .12); }
.att-total { text-align: center; font-weight: bold; white-space: nowrap; }
.att-name-th, .att-sheet tbody td:first-child { min-width: 150px; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); flex-wrap: wrap; }
.pay-opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }


/* ============================================================
   Feminine theme refinements
   ============================================================ */
.hero::before { display: none; }
.page-hero { color: #FFF7FA; }
.page-hero p { color: #F3D9E2; }
body {
    background-color: #FDF7F8;
    background-image:
        radial-gradient(1100px 480px at 100% -10%, rgba(210, 106, 147, 0.07), transparent 60%),
        radial-gradient(900px 420px at 0% 8%, rgba(201, 162, 39, 0.05), transparent 55%);
    background-attachment: fixed;
}
.btn { border-radius: 999px; }
.section > .container > h2::before {
    background: linear-gradient(180deg, #D26A93, #C9A227);
    box-shadow: 0 0 12px rgba(210, 106, 147, 0.35);
}
.brand span::after { background: linear-gradient(180deg, #D26A93, #C9A227); }