@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
    --navy-deep: #0a2440;
    --navy: #0f3a63;
    --ocean: #14507f;
    --aqua: #2fa3d1;
    --aqua-light: #8fd3ec;
    --silver: #cfd8e0;
    --silver-light: #eef2f5;
    --ink: #10202f;
    --paper: #f6f9fb;
    --white: #ffffff;
    --good: #1f9d55;
    --warn: #c98a12;
    --bad: #c0392b;
    --radius-s: 6px;
    --radius-m: 12px;
    --shadow: 0 10px 30px -14px rgba(10, 36, 64, 0.35);
    --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; height: 100%; }

body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.85;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.site-main > section:last-child { flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; color: var(--navy-deep); }

p { margin: 0 0 1em; }

.muted { color: #5a6b78; }

/* ---------- دکمه‌ها ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-s);
    border: 2px solid transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--aqua); color: var(--white); }
.btn-primary:hover { background: #278fb8; }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { background: var(--silver-light); color: var(--navy-deep); }
.btn-ghost:hover { background: var(--silver); }
.btn-danger { background: #fdeceb; color: var(--bad); }
.btn-danger:hover { background: #f8d7d3; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- هدر سایت ---------- */
.site-header {
    background: var(--navy-deep);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 14px rgba(0,0,0,.15);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 14px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand span { font-weight: 800; font-size: 19px; letter-spacing: .3px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav a {
    color: var(--silver-light);
    padding: 10px 14px;
    border-radius: var(--radius-s);
    font-size: 14.5px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.1); color: var(--white); }
.nav-login-link { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}
.header-mobile-actions { display: none; align-items: center; gap: 10px; }

/* ---------- هیرو ---------- */
.hero {
    position: relative;
    background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--ocean) 100%);
    color: var(--white);
    overflow: hidden;
}
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(24px, 5vw, 60px);
    align-items: center;
    padding-top: clamp(48px, 8vw, 90px);
    padding-bottom: clamp(70px, 10vw, 120px);
}
.hero-eyebrow { color: var(--aqua-light); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.hero h1 {
    color: var(--white);
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.28;
    margin-bottom: 18px;
}
.hero p { color: #d7e5ef; font-size: clamp(15px, 1.6vw, 17.5px); max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-badge-wrap { display: flex; justify-content: center; }
.hero-logo-plate {
    width: min(320px, 80%);
    border-radius: 50%;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
}
.wave-divider { display: block; width: 100%; margin-top: -2px; }
.wave-divider svg { display: block; width: 100%; height: auto; }

/* ---------- بخش‌های عمومی ---------- */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 42px); }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: clamp(28px, 4vw, 42px);
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- مربیان ---------- */
.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.coach-card {
    background: var(--white);
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #e5ecf1;
    cursor: pointer;
    transition: transform .18s ease;
}
.coach-card:hover { transform: translateY(-4px); }
.coach-card .photo-wrap { aspect-ratio: 1/1; background: var(--silver-light); overflow: hidden; }
.coach-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.coach-card .info { padding: 16px 18px 20px; }
.coach-card h3 { font-size: 17px; margin-bottom: 4px; }
.coach-card .role-tag { color: var(--aqua); font-size: 13px; font-weight: 600; }

/* ---------- شناگران ---------- */
.swimmers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}
.swimmer-card {
    background: var(--white);
    border-radius: var(--radius-m);
    overflow: hidden;
    border: 1px solid #e5ecf1;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform .18s ease;
    text-align: center;
}
.swimmer-card:hover { transform: translateY(-4px); }
.swimmer-card .photo-wrap { aspect-ratio: 1/1; background: var(--silver-light); }
.swimmer-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.swimmer-card .info { padding: 12px 10px 16px; }
.swimmer-card h4 { font-size: 14.5px; margin: 0; }

.view-more-wrap { text-align: center; margin-top: 30px; }

/* ---------- تب‌های صفحه شناگران و مربیان ---------- */
.tab-buttons { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.tab-buttons button {
    font-family: inherit; cursor: pointer; border: 1.5px solid var(--silver);
    background: var(--white); color: var(--navy-deep); padding: 10px 22px;
    border-radius: 30px; font-size: 14px; font-weight: 600;
}
.tab-buttons button.active { background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- صفحه تماس با ما ---------- */
.contact-hero {
    position: relative;
    background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--ocean) 100%);
    color: var(--white);
    padding: clamp(40px, 6vw, 64px) 0 clamp(64px, 8vw, 90px);
    text-align: center;
}
.contact-hero h1 { color: var(--white); font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 10px; }
.contact-hero p { color: #d7e5ef; max-width: 52ch; margin: 0 auto; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-top: -56px;
    position: relative;
    z-index: 3;
}
.contact-card {
    background: var(--white);
    border-radius: var(--radius-m);
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 20px 45px -22px rgba(10,36,64,.45);
    border: 1px solid #eaf0f4;
    transition: transform .18s ease, box-shadow .18s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -20px rgba(10,36,64,.5); }
.contact-icon {
    width: 62px; height: 62px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-icon.ic-instagram { background: linear-gradient(135deg, #fde3d0, #fbc7dd); color: #c1367f; }
.contact-icon.ic-telegram { background: #dcedfb; color: #1f8fe0; }
.contact-icon.ic-whatsapp { background: #dcf5e6; color: #29a86b; }
.contact-icon.ic-phone { background: #e6eef6; color: var(--ocean); }
.contact-card h2 { font-size: 17px; margin-bottom: 6px; }
.contact-card p.muted { font-size: 13.5px; min-height: 40px; }
.contact-note {
    max-width: 760px; margin: 44px auto 0; text-align: center;
    padding: 20px 26px; border-radius: var(--radius-m);
    background: var(--white); border: 1px dashed #c9d7e0;
}
.contact-note strong { color: var(--navy-deep); }

/* ---------- تقویم شمسی ---------- */
.jdate-field { position: relative; }
.jdate-display { cursor: pointer; background: var(--white) !important; padding-left: 40px !important; }
.jdate-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    font-size: 16px; cursor: pointer; opacity: .6; pointer-events: none;
}
.jdate-popup {
    z-index: 500;
    background: var(--white);
    border: 1px solid #dde6ec;
    border-radius: 12px;
    box-shadow: 0 20px 45px -12px rgba(10,36,64,.35);
    padding: 12px;
    width: 270px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.jdate-pop-header { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.jdate-pop-header .jdate-select {
    flex: 1; padding: 6px 4px; font-size: 13px; border-radius: 6px; border: 1px solid #dde6ec;
}
.jdate-nav {
    background: var(--silver-light); border: none; width: 30px; height: 30px; border-radius: 8px;
    font-size: 16px; cursor: pointer; color: var(--navy-deep); flex-shrink: 0;
}
.jdate-nav:hover { background: var(--silver); }
.jdate-weekrow { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; font-size: 11.5px; color: #8496a3; margin-bottom: 4px; }
.jdate-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.jdate-day {
    aspect-ratio: 1/1; border: none; background: transparent; border-radius: 8px;
    font-size: 13px; cursor: pointer; color: var(--ink); font-family: inherit;
}
.jdate-day:hover { background: var(--silver-light); }
.jdate-day.selected { background: var(--aqua); color: var(--white); font-weight: 700; }
.jdate-day.jdate-blank { cursor: default; pointer-events: none; }
.jdate-pop-footer { margin-top: 8px; text-align: center; border-top: 1px solid #eef2f5; padding-top: 8px; }
.jdate-today-btn { background: none; border: none; color: var(--ocean); font-size: 13px; cursor: pointer; font-family: inherit; font-weight: 600; }
.jdate-today-btn:hover { text-decoration: underline; }

/* ---------- گالری ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.gallery-slot {
    aspect-ratio: 4/3;
    border-radius: var(--radius-m);
    background: var(--silver-light);
    border: 2px dashed #b9c7d1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8496a3;
    font-size: 13px;
    text-align: center;
    padding: 10px;
    overflow: hidden;
}
.gallery-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-m) - 2px); }

/* ---------- درباره ما / کارت‌های ویژگی ---------- */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 5vw, 50px);
    align-items: center;
}
.feature-list { display: grid; gap: 14px; margin-top: 20px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; }
.feature-item .dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--aqua);
    margin-top: 8px; flex-shrink: 0;
}
.about-media {
    border-radius: var(--radius-m);
    background: linear-gradient(160deg, var(--navy) 0%, var(--ocean) 100%);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}
.about-media img { width: 55%; opacity: .95; }

/* ---------- فوتر ---------- */
.site-footer { background: var(--navy-deep); color: #c8d6e0; padding: 44px 0 22px; }
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand span { color: var(--white); font-weight: 700; }
.social-row { display: flex; gap: 10px; }
.social-row a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.social-row a:hover { background: var(--aqua); }
.footer-bottom { text-align: center; font-size: 13px; color: #93a7b7; }
.footer-credit { text-align: center; font-size: 11.5px; color: #6f8296; margin-top: 8px; }

/* ---------- فرم‌ها ---------- */
.form-stack { display: grid; gap: 16px; }
.form-stack label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy-deep); }
input, select, textarea {
    font-family: inherit;
    font-size: 15px;
    padding: 11px 14px;
    border-radius: var(--radius-s);
    border: 1.5px solid #d3dee6;
    background: var(--white);
    color: var(--ink);
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(47,163,209,.18);
}
textarea { resize: vertical; min-height: 90px; }
fieldset { border: none; padding: 0; margin: 0; }

.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rating-stars { display: flex; gap: 4px; flex-direction: row-reverse; }
.rating-stars input { display: none; }
.rating-stars label {
    font-size: 26px; color: #d6dee4; cursor: pointer; width: auto; padding: 0;
}
.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label { color: var(--warn); }

/* ---------- فرم چند مرحله‌ای ثبت‌نام ---------- */
.form-page-wrap { max-width: 640px; margin: 0 auto; }
.step-indicator { display: flex; gap: 6px; margin-bottom: 30px; }
.step-indicator span { flex: 1; height: 5px; border-radius: 3px; background: var(--silver); }
.step-indicator span.done { background: var(--aqua); }
.form-card {
    background: var(--white);
    border-radius: var(--radius-m);
    padding: clamp(22px, 4vw, 38px);
    box-shadow: var(--shadow);
    border: 1px solid #e5ecf1;
}
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- کارت بانکی ---------- */
.bank-card {
    max-width: 380px;
    aspect-ratio: 1.6/1;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--navy-deep), var(--ocean) 60%, var(--aqua));
    color: var(--white);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.bank-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.18), transparent 55%);
}
.bank-card .chip { width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg,#e9d38f,#c9a94e); }
.bank-card .number { font-size: clamp(18px, 4vw, 24px); letter-spacing: 3px; font-family: monospace, 'Vazirmatn'; direction: ltr; text-align: left; }
.bank-card .holder { font-size: 14px; color: #dceaf3; }

/* ---------- کارت‌های اطلاعیه ---------- */
.notice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 18px; }
.notice-card { background: var(--white); border: 1px solid #e5ecf1; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow); }
.notice-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.notice-card .body { padding: 16px 18px; }
.notice-card .date { font-size: 12.5px; color: #7c8c99; margin-bottom: 6px; }

/* ---------- جدول عمومی ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid #e5ecf1; }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); min-width: 640px; }
th, td { padding: 12px 14px; text-align: right; border-bottom: 1px solid #eef2f5; white-space: nowrap; }
thead th { background: var(--silver-light); color: var(--navy-deep); font-weight: 700; }
tbody tr:hover { background: #f8fbfd; }

.badge { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-new { background: #e8f0fb; color: var(--navy); }
.badge-wait { background: #fdf2df; color: var(--warn); }
.badge-sent { background: #e6f3fb; color: var(--aqua); }
.badge-active { background: #e5f7ea; color: var(--good); }
.badge-reject { background: #fdeceb; color: var(--bad); }

.alert { padding: 12px 16px; border-radius: var(--radius-s); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fdeceb; color: var(--bad); }
.alert-success { background: #e5f7ea; color: var(--good); }
.alert-info { background: #e8f0fb; color: var(--navy); }

/* ---------- صفحات ورود/نصب ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--navy-deep), var(--ocean)); padding: 20px; }
.auth-box { background: var(--white); border-radius: var(--radius-m); padding: clamp(26px,5vw,42px); max-width: 400px; width: 100%; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.auth-logo { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; }
.auth-box .form-stack { text-align: right; margin-top: 20px; }
.link-back { display: inline-block; margin-top: 16px; font-size: 13.5px; color: var(--ocean); }

/* ---------- پنل (ادمین/مربی/شناگر) ---------- */
.panel-body { display: flex; min-height: 100vh; background: var(--paper); }
.panel-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--navy-deep);
    color: var(--silver-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.panel-sidebar .brand { padding: 0 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.panel-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14.5px;
    color: #c7d5e0;
    border-right: 3px solid transparent;
}
.panel-sidebar nav a:hover { background: rgba(255,255,255,.06); }
.panel-sidebar nav a.active { background: rgba(255,255,255,.09); border-color: var(--aqua); color: var(--white); }
.panel-sidebar .logout-link { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }

.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel-topbar {
    background: var(--white);
    border-bottom: 1px solid #e5ecf1;
    padding: 14px clamp(16px,3vw,30px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
}
.panel-topbar h1 { font-size: 18px; margin: 0; }
.sidebar-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--navy-deep); }
.panel-content { padding: clamp(16px,3vw,30px); max-width: 1300px; flex: 1 0 auto; width: 100%; }
.panel-footer {
    padding: 16px clamp(16px,3vw,30px) 22px;
    border-top: 1px solid #e5ecf1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: #8496a3;
}
.panel-footer-credit { color: #a3b2bd; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border: 1px solid #e5ecf1; border-radius: var(--radius-m); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--navy-deep); }
.stat-card .label { font-size: 13px; color: #6c7d8a; margin-top: 4px; }

.card-box { background: var(--white); border: 1px solid #e5ecf1; border-radius: var(--radius-m); padding: clamp(16px,3vw,26px); box-shadow: var(--shadow); margin-bottom: 22px; }
.card-box h2 { font-size: 17px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

.avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--silver-light); }
.actions-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- جدول برنامه هفتگی استخر ---------- */
.schedule-scroll { overflow-x: auto; }
.schedule-grid-table { min-width: 780px; }
.schedule-grid-table td.slot-cell { font-size: 12.5px; padding: 8px; vertical-align: top; }
.slot-pill { background: #e8f0fb; border-radius: 6px; padding: 5px 7px; margin-bottom: 4px; font-size: 11.5px; line-height: 1.5; }

/* ---------- پروفایل عمومی شناگر/مربی ---------- */
.profile-header {
    display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
    background: var(--white); border: 1px solid #e5ecf1; border-radius: var(--radius-m);
    padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.profile-header img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.rating-bars { display: grid; gap: 10px; margin-top: 8px; }
.rating-bar-row { display: grid; grid-template-columns: 90px 1fr 30px; align-items: center; gap: 10px; font-size: 13.5px; }
.rating-bar-bg { background: var(--silver-light); border-radius: 20px; height: 9px; overflow: hidden; }
.rating-bar-fill { background: var(--aqua); height: 100%; border-radius: 20px; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-badge-wrap { order: -1; }
    .hero-logo-plate { width: 200px; }
    .about-wrap { grid-template-columns: 1fr; }
    .about-media { order: -1; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 800px) {
    .main-nav, .header-desktop-actions { display: none; }
    .header-mobile-actions { display: flex; }
    .site-header.nav-open .main-nav {
        display: flex;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--navy-deep);
        flex-direction: column;
        padding: 10px clamp(16px,4vw,32px) 18px;
        gap: 2px;
        box-shadow: 0 12px 20px rgba(0,0,0,.2);
    }
    .nav-login-link { display: block; }
    .panel-sidebar { position: fixed; right: -260px; top: 0; z-index: 60; transition: right .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,.2); }
    .panel-body.sidebar-open .panel-sidebar { right: 0; }
    .sidebar-toggle { display: inline-block; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .brand span { display: none; }
    .profile-header { flex-direction: column; text-align: center; }
    .rating-bar-row { grid-template-columns: 70px 1fr 26px; font-size: 12px; }
}
