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

/* =====================================================
   باشگاه وکلای افرا — هویت بصری افرا v2
   پالت: آبی حقوقی (#0B3A82) + نارنجی (#FF9800) + سبز لوگو برای success
   ساختار سایدبار حفظ شده
   ===================================================== */

:root {
    /* Primary – Deep Legal Blue (JSON) */
    --primary: #0B3A82;
    --primary-dark: #082c63;
    --primary-darker: #061e45;
    --primary-light: #E8F0FB;
    --primary-soft: rgba(11, 58, 130, 0.12);
    --secondary: #1E88E5;

    /* Accent – Orange (JSON) */
    --accent: #FF9800;
    --accent-light: #FFF3E0;
    --accent-soft: rgba(255, 152, 0, 0.15);

    /* Surfaces */
    --bg: #FAFBFD;
    --sidebar-bg: #ffffff;
    --text: #1A2332;
    --text-light: #5A6577;
    --text-muted: #8B95A8;
    --border: #E2E8F0;
    --card-bg: #FFFFFF;

    /* Status — سبز لوگو فقط برای موفقیت / رایگان */
    --success: #2E9B6A;
    --success-bg: #E6F7EF;
    --danger: #D32F2F;
    --danger-bg: #FFEBEE;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(11, 58, 130, 0.06);
    --shadow: 0 4px 16px rgba(11, 58, 130, 0.08);
    --shadow-hover: 0 12px 32px rgba(11, 58, 130, 0.14);
    --radius: 14px;
    --radius-sm: 10px;
    --transition: 0.2s ease;
}

body.dark-mode {
    --primary: #4B8FE8;
    --primary-dark: #1E88E5;
    --primary-darker: #0A1628;
    --primary-light: #132A4A;
    --primary-soft: rgba(75, 143, 232, 0.18);
    --secondary: #64B5F6;

    --accent: #FFB74D;
    --accent-light: #3D2E12;
    --accent-soft: rgba(255, 183, 77, 0.18);

    --bg: #0A1628;
    --sidebar-bg: #0F1F38;
    --text: #F0F4FA;
    --text-light: #A8B4C8;
    --text-muted: #6B7A94;
    --border: #1E3355;
    --card-bg: #12243F;

    --success: #4CAF7A;
    --success-bg: #143028;
    --danger: #EF5350;
    --danger-bg: #3D1515;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
    direction: rtl;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* --- Layout --- */
.app-container { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-left: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: background-color 0.3s;
}

.sidebar-header { text-align: center; margin-bottom: 28px; }
.sidebar-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 2px solid var(--primary-soft);
}
.sidebar-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-darker);
}
body.dark-mode .sidebar-header h2 { color: var(--text); }

.sidebar-nav { list-style: none; flex: 1; }
.nav-item { margin-bottom: 4px; }

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    transition: all var(--transition);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
}
.nav-link span { display: flex; align-items: center; gap: 10px; }
.nav-link:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
}
.nav-link.active {
    background-color: var(--primary);
    color: #fff;
}
.nav-link .arrow { font-size: 0.75rem; transition: transform 0.3s; opacity: 0.7; }
.nav-item.open > .nav-link .arrow { transform: rotate(180deg); }

/* Dropdowns */
.dropdown-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 14px;
}
.nav-item.open > .dropdown-menu { max-height: 500px; }

.dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    font-size: 0.88rem;
    color: var(--text-light);
    border-right: 2px solid transparent;
    transition: all var(--transition);
    border-radius: 6px;
}
.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    color: var(--primary);
    border-right-color: var(--accent);
    background-color: var(--primary-soft);
}

.sub-dropdown {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 14px;
}
.dropdown-menu li.open > .sub-dropdown { max-height: 300px; }
.sub-dropdown li a { padding: 7px 14px; font-size: 0.84rem; }

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.btn-theme {
    width: 100%;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    transition: all var(--transition);
}
.btn-theme:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Main Content --- */
.main-content { flex: 1; padding: 28px 30px; overflow-y: auto; }
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.page-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--primary-darker); }
body.dark-mode .page-header h1 { color: var(--text); }
.page-subtitle { color: var(--text-light); font-size: 0.94rem; margin-top: 4px; }

.btn-icon {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text);
    transition: all var(--transition);
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }

/* --- Cards & Grids --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card h3 i { color: var(--primary); }
.card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; }

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.service-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 14px;
    display: block;
    transition: color 0.2s;
}
.service-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--text-light); font-size: 0.9rem; }
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.service-card:hover i { color: var(--accent); }

/* --- Buttons --- */
.btn-copy {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-copy:hover {
    background: var(--primary);
    color: #fff;
}
.btn-copy.success {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

/* --- Search --- */
.search-box, .search-wrap, .search-container {
    position: relative;
    margin-bottom: 20px;
}
.search-box input, .search-wrap input, .search-container input {
    width: 100%;
    padding: 11px 40px 11px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.94rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box input:focus, .search-wrap input:focus, .search-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.search-box i, .search-wrap i, .search-container i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* --- Prompt cards --- */
.prompt-card { cursor: pointer; display: flex; flex-direction: column; }
.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}
.prompt-header h3 { font-size: 1.02rem; margin: 0; font-weight: 700; }
.badge {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.prompt-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Modal --- */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(6, 30, 69, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.dossier {
    width: 90%;
    max-width: 700px;
    background: var(--card-bg);
    border-radius: 14px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
}
.dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}
.dossier-content {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text);
    white-space: pre-wrap;
}
.dossier-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 6px;
    padding: 2px 6px;
}
.dossier-close:hover { color: var(--danger); background: var(--danger-bg); }

/* --- Bookmark --- */
.bookmark-btn {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--transition);
}
.bookmark-btn.bookmarked,
.bookmark-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* --- Quiz --- */
.quiz-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-top: 18px;
}
.quiz-question { font-weight: 700; margin-bottom: 14px; }
.quiz-options { list-style: none; }
.quiz-option {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    margin-bottom: 7px;
    cursor: pointer;
    transition: all var(--transition);
}
.quiz-option:hover { background: var(--primary-soft); border-color: var(--primary); }
.quiz-option.correct { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.quiz-option.wrong { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

/* --- Course shared --- */
.course-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.course-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    height: fit-content;
    position: sticky;
    top: 18px;
    box-shadow: var(--shadow-sm);
}
.lesson-list { list-style: none; }
.lesson-item {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.lesson-item:hover { background: var(--primary-soft); }
.lesson-item.active { background: var(--primary); color: #fff; }
.lesson-item.locked { opacity: 0.5; cursor: not-allowed; }
.lesson-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    min-height: 500px;
    box-shadow: var(--shadow-sm);
}
.lesson-content h2 { margin-bottom: 18px; color: var(--primary); font-weight: 800; }
.lesson-content p { line-height: 2; margin-bottom: 14px; }

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        right: -280px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 14px rgba(0,0,0,0.12);
    }
    .sidebar.mobile-open { right: 0; }
    .main-content { padding: 16px; }
    .course-layout { grid-template-columns: 1fr; }
    .grid-container, .services-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   بخش‌های محصول: لندینگ، Auth، داشبورد، قیمت
   ===================================================== */

/* Top Nav */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.top-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-darker);
}
body.dark-mode .brand { color: var(--text); }
.brand img { border-radius: 8px; }
.top-nav-links {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-light);
}
.top-nav-links a:hover,
.top-nav-links a.active-link { color: var(--primary); font-weight: 600; }
.top-nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-nav-ghost {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
}
.btn-nav-ghost:hover { color: var(--primary); }
.btn-nav-primary {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
}
.btn-nav-primary:hover { background: var(--primary-dark); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text);
}

/* Hero */
.hero {
    background: linear-gradient(160deg, var(--primary-darker) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: #fff;
    padding: 4rem 1.5rem 3.5rem;
    text-align: center;
}
.hero-content { max-width: 720px; margin: 0 auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}
.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 1rem;
}
.text-accent { color: var(--accent); }
body:not(.dark-mode) .hero .text-accent { color: #d6a846; }
.hero-desc {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 1.75rem;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--accent);
    color: #1a1a18;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary-lg:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    border: 1.5px solid rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all var(--transition);
}
.btn-outline-lg:hover { background: rgba(255,255,255,0.1); }
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.stat span { font-size: 0.82rem; opacity: 0.8; }

/* Sections */
.section { padding: 3.5rem 1.5rem; }
.section-alt { background: var(--card-bg); }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-darker);
    margin-bottom: 0.5rem;
}
body.dark-mode .section-title { color: var(--text); }
.section-desc {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 560px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

.course-cards { display: grid; gap: 1.25rem; }
.course-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.course-card.featured { border-color: var(--primary); box-shadow: var(--shadow); }
.badge-level {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}
.course-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
}
.course-meta i { color: var(--primary); margin-left: 4px; }
.link-accent { color: var(--primary); font-weight: 600; font-size: 0.95rem; }
.link-accent:hover { text-decoration: underline; }

.cta-band {
    background: linear-gradient(135deg, var(--primary-darker), var(--primary));
    color: #fff;
}
.cta-band h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.25rem; }

.site-footer {
    background: var(--primary-darker);
    color: rgba(255,255,255,0.75);
    padding: 2rem 1.5rem;
    font-size: 0.88rem;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { opacity: 0.6; }

/* Auth pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-darker);
}
body.dark-mode .auth-brand { color: var(--text); }
.auth-brand img { border-radius: 10px; }
.auth-card h1 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.25rem; }
.auth-sub { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}
.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-error {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}
.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Dashboard */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.dash-card h3 { margin-bottom: 0.25rem; }
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.4s ease;
}
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.quick-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: start;
}
.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.price-card.featured-price {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: scale(1.02);
}
.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #1a1a18;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
}
.price-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.75rem; }
.price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-darker);
    margin-bottom: 0.25rem;
}
body.dark-mode .price { color: var(--text); }
.price span { font-size: 0.85rem; font-weight: 500; color: var(--text-light); }
.price-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.price-features {
    list-style: none;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.9rem;
}
.price-features i { margin-left: 6px; color: var(--success); }
.price-features .muted { color: var(--text-muted); }
.price-features .muted i { color: var(--text-muted); }
.payment-note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-light);
    background: var(--primary-soft);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    .top-nav-links { display: none; }
    .mobile-menu-btn { display: block; margin-right: auto; }
    .hero { padding: 2.5rem 1rem; }
    .hero-stats { gap: 1.25rem; }
    .price-card.featured-price { transform: none; }
}

/* Trust bar & access table */
.trust-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1rem;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
}
.trust-items i { color: var(--primary); margin-left: 6px; }

.access-table-wrap { overflow-x: auto; }
.access-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.access-table th,
.access-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.access-table th {
  background: var(--primary-darker);
  color: #fff;
  font-weight: 700;
}
.access-table td:first-child,
.access-table th:first-child {
  text-align: right;
  font-weight: 600;
}
.access-table .yes { color: var(--success); font-weight: 700; }
.access-table .no { color: var(--text-muted); }

select:focus {
  outline: none;
  border-color: var(--primary);
}

/* =====================================================
   کاتالوگ واحد — بج‌های سطح دسترسی + کارت‌های قفل‌شده
   ===================================================== */
.badge-free { background: var(--success-bg); color: var(--success); }
.badge-member { background: var(--primary-soft); color: var(--primary); }
.badge-lawyer { background: var(--accent-soft); color: var(--accent); }
.badge-paid { background: var(--accent-soft); color: var(--accent); }
.catalog-card { display: flex; flex-direction: column; gap: 10px; }
.catalog-card .badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; }
.catalog-card.is-locked { opacity: 0.72; }
.catalog-card .catalog-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* بنر تبلیغ داشبورد ویژه وکلا */
.lawyer-promo-banner {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #fff; border-radius: var(--radius); padding: 26px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-bottom: 30px;
}
.lawyer-promo-banner h3 { font-size: 1.15rem; margin-bottom: 6px; }
.lawyer-promo-banner p { color: rgba(255,255,255,0.88); font-size: 0.9rem; }
.lawyer-promo-banner .btn-copy { background: #fff; color: var(--primary-dark); border-color: #fff; }

/* کارت دونیت */
.donate-card { border: 1.5px dashed var(--accent); background: var(--accent-soft); }
.donate-card i { color: var(--accent); font-size: 1.6rem; margin-bottom: 8px; display: block; }

/* گروه‌بندی محتوای صفحه اصلی داخل سایدبار */
.catalog-section-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 800; margin: 30px 0 14px; }
.catalog-section-title:first-child { margin-top: 0; }
.catalog-section-title i { color: var(--primary); }

/* =====================================================
   نظرات اعضا + دکمه تم فشرده در Top Nav
   ===================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.testimonial-stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 0.95rem;
}
.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text);
  flex: 1;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.testimonial-meta strong { color: var(--primary-darker); }
body.dark-mode .testimonial-meta strong { color: var(--text); }
.testimonial-meta span { color: var(--text-muted); }

.btn-theme-compact {
  width: auto !important;
  padding: 0.4rem 0.65rem !important;
  margin: 0;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}
.btn-theme-compact:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.top-nav-actions .btn-theme { margin: 0; }

textarea:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

@media (max-width: 768px) {
  .top-nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.75rem;
    z-index: 95;
  }
  .top-nav { position: sticky; }
  .top-nav-inner { position: relative; flex-wrap: wrap; }
}

/* =====================================================
   ایلاستریشن و mascot — v2
   ===================================================== */
.hero-visual {
  margin-top: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.illust-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}
.illust-card img { width: 100%; height: auto; display: block; }
.section-illust {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 768px) {
  .section-illust { grid-template-columns: 1fr; }
  .section-illust .illust-card { order: -1; }
}
.icon-svg {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: -0.2em;
}
.feature-icon img, .feature-icon .icon-svg {
  width: 22px;
  height: 22px;
}
/* کمی فشرده‌تر برای دروازه ورود */
.section { padding: 2.75rem 1.5rem; }
.hero { padding: 3.25rem 1.5rem 2.75rem; }
