/* =============================================
   فایل استایل اصلی سایت sadekon.ir
   ============================================= */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== ANNOUNCEMENT ===== */
.announcement {
    background: #1e293b;
    color: #e2e8f0;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.announcement span {
    font-weight: 600;
    color: #a5b4fc;
}

.announcement i {
    font-size: 14px;
}

/* ===== HEADER ===== */
.site-header {
    background: white;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
}

.brand {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 600;
    color: #0f172a;
    font-size: 16px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 8px;
    font-weight: 900;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #6366f1;
}

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

.icon-button {
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 18px;
}

.icon-button:hover {
    background: #f1f5f9;
    color: #6366f1;
}

.login-button {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    color: #475569;
    transition: all 0.2s;
    text-decoration: none;
}

.login-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.signup-button {
    padding: 6px 18px;
    border-radius: 8px;
    border: none;
    background: #6366f1;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.2s;
    text-decoration: none;
}

.signup-button:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logout-button {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: transparent;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.2s;
}

.logout-button:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s;
}

.user-avatar:hover img {
    border-color: #6366f1;
}

.menu-button {
    background: none;
    border: none;
    font-size: 22px;
    color: #1e293b;
    cursor: pointer;
    display: none;
    padding: 4px;
}

/* ===== SEARCH PANEL ===== */
.search-panel {
    background: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.search-panel i {
    color: #94a3b8;
    font-size: 18px;
}

.search-panel input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Vazirmatn', sans-serif;
    background: transparent;
    color: #0f172a;
}

.search-panel input::placeholder {
    color: #94a3b8;
}

.search-panel kbd {
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #64748b;
    font-family: monospace;
}

.hidden {
    display: none !important;
}

/* ===== SECTION KICKER ===== */
.section-kicker {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
}

/* =============================================
   صفحه اصلی (index.php)
   ============================================= */

/* ===== HERO ===== */
.hero-wrap {
    display: flex;
    gap: 40px;
    padding: 48px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    min-height: 500px;
}

.hero-copy {
    flex: 1;
    min-width: 280px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    color: #6366f1;
    padding: 4px 16px 4px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    display: inline-block;
}

.hero-copy h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 12px;
}

.hero-copy h1 em {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

.hero-copy p {
    font-size: 17px;
    color: #475569;
    max-width: 460px;
    margin-bottom: 24px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 12px;
    border: none;
    background: #6366f1;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.2s;
    text-decoration: none;
}

.primary-button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: color 0.2s;
}

.text-button:hover {
    color: #6366f1;
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #eef2ff;
    border-radius: 50%;
    color: #6366f1;
    font-size: 13px;
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    border: 2px solid white;
    margin-left: -6px;
}

.avatar-stack span:first-child {
    margin-left: 0;
}

.trust-row strong {
    color: #0f172a;
}

/* ===== HERO ART ===== */
.hero-art {
    flex: 1;
    min-width: 260px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px;
}

.art-sun {
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #eef2ff 0%, transparent 70%);
    border-radius: 50%;
    top: -20px;
    right: -20px;
    opacity: 0.5;
    z-index: 0;
}

.art-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 0;
}

.floating-note {
    position: absolute;
    background: white;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    font-size: 13px;
    color: #475569;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    font-weight: 500;
}

.floating-note i {
    color: #6366f1;
}

.note-one {
    top: 10%;
    right: -10px;
}

.note-two {
    bottom: 20%;
    left: -10px;
}

.book-illustration {
    position: relative;
    z-index: 1;
    width: 200px;
    height: 260px;
    background: linear-gradient(145deg, #eef2ff, #e0e7ff);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.book-spine {
    position: absolute;
    left: -8px;
    top: 10px;
    width: 8px;
    height: 80%;
    background: #6366f1;
    border-radius: 4px;
    opacity: 0.3;
}

.book-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-page small {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.book-page strong {
    font-size: 20px;
    color: #0f172a;
    font-weight: 800;
}

.book-page span {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.page-line {
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 6px;
}

.page-line.short {
    width: 60%;
}

.art-caption {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.art-caption span {
    font-size: 20px;
    font-weight: 900;
    color: #6366f1;
    opacity: 0.3;
    line-height: 1;
}

.art-caption strong {
    font-size: 14px;
    color: #0f172a;
    display: block;
}

.art-caption small {
    font-size: 12px;
    color: #94a3b8;
}

/* ===== METRICS ===== */
.metrics {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.metrics div {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
}

.metrics strong {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    display: block;
}

.metrics span {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ===== BOOK GRID (صفحه اصلی) ===== */
.section-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-heading h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
}

.section-heading h2 em {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s;
    white-space: nowrap;
}

.view-all:hover {
    gap: 10px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.book-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.25s;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.book-card.mint {
    border-top: 3px solid #10b981;
}
.book-card.peach {
    border-top: 3px solid #f59e0b;
}
.book-card.lavender {
    border-top: 3px solid #8b5cf6;
}
.book-card.butter {
    border-top: 3px solid #fbbf24;
}

.book-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.book-number {
    font-size: 20px;
    font-weight: 900;
    color: #e2e8f0;
}

.book-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
}

.book-status.free {
    background: #ecfdf5;
    color: #10b981;
}

.book-status.premium {
    background: #fef3c7;
    color: #d97706;
}

.mini-cover {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 14px;
    border: 1px solid #f1f5f9;
}

.mini-cover i {
    font-size: 28px;
    color: #6366f1;
    margin-bottom: 8px;
    display: block;
}

.mini-cover span {
    font-size: 13px;
    color: #94a3b8;
    display: block;
}

.mini-cover strong {
    font-size: 18px;
    color: #0f172a;
    display: block;
    margin: 4px 0;
}

.mini-cover small {
    font-size: 12px;
    color: #94a3b8;
}

.book-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.book-info p {
    font-size: 13px;
    color: #94a3b8;
    margin: 4px 0 12px;
}

.book-info p span {
    margin: 0 4px;
}

.book-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #6366f1;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: gap 0.2s;
    padding: 0;
    text-decoration: none;
}

.book-link:hover {
    gap: 10px;
}

/* ===== FEATURES ===== */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    background: white;
    border-radius: 24px;
    margin-top: 16px;
}

.feature-intro h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 12px;
}

.feature-intro h2 em {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

.feature-intro p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: transparent;
    color: #475569;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    font-family: 'Vazirmatn', sans-serif;
}

.outline-button:hover {
    border-color: #6366f1;
    color: #6366f1;
    gap: 12px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.feature-item:hover {
    background: white;
    border-color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: #eef2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    flex-shrink: 0;
    font-size: 20px;
}

.feature-item span {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 2px 0 4px;
}

.feature-item p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* ===== STUDY PREVIEW ===== */
.study-preview {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.preview-copy h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 12px;
}

.preview-copy h2 em {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

.preview-copy p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.8;
}

.study-window {
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.window-head {
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
}

.window-dots {
    font-size: 12px;
    letter-spacing: 2px;
    color: #cbd5e1;
}

.window-head i {
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 17px;
}

.window-head i:hover {
    color: #6366f1;
}

.window-head i.saved {
    color: #6366f1;
}

.study-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
    min-height: 320px;
}

.study-body aside {
    padding: 16px 20px;
    background: #fafbfc;
    border-left: 1px solid #f1f5f9;
}

.study-body aside span {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.study-body aside b {
    font-size: 15px;
    color: #0f172a;
    display: block;
    margin-bottom: 12px;
}

.study-body aside p {
    font-size: 13px;
    color: #64748b;
    padding: 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.study-body aside p:hover {
    color: #0f172a;
}

.study-body aside p.active {
    color: #6366f1;
    font-weight: 600;
}

.study-body aside p i {
    font-size: 12px;
    color: #10b981;
}

.lesson {
    padding: 20px 24px;
}

.lesson small {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-bottom: 4px;
}

.lesson h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tabs span {
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.tabs span.active {
    background: #eef2ff;
    color: #6366f1;
    font-weight: 600;
}

.tabs span:hover:not(.active) {
    background: #f1f5f9;
}

.lesson p {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 10px;
}

.lesson-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #94a3b8;
}

.lesson-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lesson-footer strong {
    color: #6366f1;
}

/* ===== COMMUNITY ===== */
.community {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 40px;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.community h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.community h2 em {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

.community-card {
    background: white;
    padding: 20px 28px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.community-icon {
    width: 44px;
    height: 44px;
    background: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 23px;
}

.community-card p {
    font-size: 14px;
    color: #475569;
}

.community-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: gap 0.2s;
}

.community-link:hover {
    gap: 10px;
}

/* =============================================
   صفحه کتاب‌ها (books.php)
   ============================================= */

/* ===== هدر صفحه ===== */
.page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px 0;
}

.page-header-content {
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.page-header-content h1 {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    margin: 4px 0 8px;
}

.page-header-content h1 em {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

.page-header-content p {
    color: #64748b;
    font-size: 16px;
}

/* ===== فیلترها ===== */
.filter-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 0;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.filter-label i {
    color: #6366f1;
}

.filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: transparent;
    color: #475569;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.filter-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.filter-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Vazirmatn', sans-serif;
}

.filter-clear:hover {
    background: #fee2e2;
}

/* ===== گرید کتاب‌ها ===== */
.books-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px 40px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ===== کارت کتاب بزرگ ===== */
.book-card-large {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.25s;
    overflow: hidden;
}

.book-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.book-card-large.mint { border-top: 3px solid #10b981; }
.book-card-large.peach { border-top: 3px solid #f59e0b; }
.book-card-large.lavender { border-top: 3px solid #8b5cf6; }
.book-card-large.butter { border-top: 3px solid #fbbf24; }
.book-card-large.teal { border-top: 3px solid #14b8a6; }
.book-card-large.rose { border-top: 3px solid #f43f5e; }
.book-card-large.indigo { border-top: 3px solid #4f46e5; }
.book-card-large.amber { border-top: 3px solid #d97706; }

.book-card-inner {
    padding: 20px;
}

.book-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.book-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
}

.book-badge.free {
    background: #ecfdf5;
    color: #10b981;
}

.book-badge.premium {
    background: #fef3c7;
    color: #d97706;
}

.book-number-large {
    font-size: 18px;
    font-weight: 900;
    color: #e2e8f0;
}

/* ===== جلد کتاب ===== */
.book-cover-large {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid #f1f5f9;
}

.book-cover-icon {
    width: 48px;
    height: 48px;
    background: #eef2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 24px;
    flex-shrink: 0;
}

.book-cover-img {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.book-cover-info {
    flex: 1;
}

.book-cover-info .book-subtitle {
    font-size: 11px;
    color: #94a3b8;
    display: block;
}

.book-cover-info .book-title-large {
    font-size: 16px;
    color: #0f172a;
    display: block;
    font-weight: 700;
}

.book-cover-info .book-author {
    font-size: 12px;
    color: #94a3b8;
}

/* ===== جزئیات کتاب ===== */
.book-details h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.book-description {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 12px;
    line-height: 1.6;
}

.book-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 12px;
    color: #94a3b8;
}

.book-meta i {
    margin-left: 4px;
}

.book-link-large {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #6366f1;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: gap 0.2s;
    padding: 0;
    text-decoration: none;
}

.book-link-large:hover {
    gap: 10px;
}

/* ===== صفحه‌بندی ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.pagination-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-number:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.pagination-number.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* ===== حالت خالی ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
}

.empty-state i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 8px;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 20px;
}

/* =============================================
   انیمیشن‌ها
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-wrap,
.metrics,
.section-block,
.features-section,
.study-preview,
.community,
.books-grid-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.metrics {
    animation-delay: 0.1s;
}
.section-block {
    animation-delay: 0.2s;
}
.features-section {
    animation-delay: 0.3s;
}
.study-preview {
    animation-delay: 0.4s;
}
.community {
    animation-delay: 0.5s;
}
.books-grid-section {
    animation-delay: 0.2s;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 40px;
    border-top: 1px solid #f1f5f9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-brand .brand {
    font-size: 18px;
}

.footer-brand p {
    color: #64748b;
    font-size: 14px;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 48px;
    justify-content: flex-end;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links strong {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 2px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #6366f1;
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.footer-bottom span:last-child {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-bottom i {
    color: #6366f1;
    font-size: 14px;
}

/* =============================================
   استایل‌های صفحات ورود و ثبت‌نام (auth.css)
   ============================================= */

/* ===== کانتینر اصلی ===== */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 40px 48px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.auth-logo .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 10px;
    font-weight: 900;
    font-size: 22px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.auth-header p {
    font-size: 14px;
    color: #64748b;
}

/* ===== هشدارها ===== */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-alert.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.auth-alert.error::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.auth-alert.success {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.auth-alert.success::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* ===== فرم ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-form .form-group label i {
    color: #94a3b8;
    font-size: 14px;
}

.auth-form .form-group .required {
    color: #dc2626;
    font-weight: 700;
}

.auth-form .form-row {
    display: flex;
    gap: 12px;
}

.auth-form .form-row .form-group {
    flex: 1;
}

.auth-form .form-group input,
.auth-form .form-group select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s;
    background: white;
    width: 100%;
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-form .form-group input::placeholder {
    color: #94a3b8;
}

/* ===== نمایش رمز ===== */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-left: 44px;
}

.password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #6366f1;
}

/* ===== گزینه‌های فرم ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
}

.terms-group .checkbox-label {
    font-size: 13px;
}

.terms-group .checkbox-label a {
    color: #6366f1;
    text-decoration: none;
}

.terms-group .checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #4f46e5;
}

/* ===== دکمه ارسال ===== */
.auth-submit {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #6366f1;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.auth-submit:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== تقسیم‌کننده ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
}

/* ===== دکمه‌های اجتماعی ===== */
.auth-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.social-btn.google {
    color: #ea4335;
}

.social-btn.google i {
    font-size: 18px;
}

/* ===== فوتر ===== */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: #64748b;
}

.auth-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* =============================================
   استایل‌های صفحات ورود و ثبت‌نام - ریسپانسیو
   ============================================= */
@media (max-width: 600px) {
    .auth-container {
        padding: 20px 12px;
        min-height: 70vh;
    }
    
    .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .auth-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-form .form-group input,
    .auth-form .form-group select {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .auth-submit {
        font-size: 14px;
        padding: 10px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* =============================================
   استایل‌های صفحه مطالعه (study.php)
   ============================================= */

/* ===== مسیر راهنما ===== */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px 0;
    font-size: 13px;
    color: #94a3b8;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #4f46e5;
}

.breadcrumb .separator {
    color: #cbd5e1;
}

.breadcrumb .current {
    color: #0f172a;
    font-weight: 600;
}

/* ===== مطالعه اصلی ===== */
.study-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 40px;
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 24px;
}

/* ===== ستون چپ: فهرست درختی ===== */
.study-sidebar {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    height: fit-content;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.sidebar-book-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.sidebar-tree {
    padding: 8px 0;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    text-decoration: none;
    transition: all 0.2s;
    border-right: 3px solid transparent;
    font-size: 13px;
    color: #475569;
}

.tree-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.tree-item.active {
    background: #eef2ff;
    color: #6366f1;
    border-right-color: #6366f1;
    font-weight: 600;
}

.tree-number {
    font-weight: 700;
    color: #94a3b8;
    min-width: 30px;
    font-size: 12px;
}

.tree-item.active .tree-number {
    color: #6366f1;
}

.tree-title {
    flex: 1;
}

.tree-check {
    color: #10b981;
    font-size: 12px;
}

.tree-empty {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* ===== ستون وسط: محتوای اصلی ===== */
.study-content {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 24px;
    min-height: 600px;
}

/* هدر بخش */
.study-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.study-title-group {
    flex: 1;
}

.study-badge {
    font-size: 12px;
    color: #94a3b8;
    display: block;
}

.study-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 2px 0 4px;
}

.study-reference {
    font-size: 13px;
    color: #94a3b8;
    display: block;
}

.study-reference i {
    color: #6366f1;
}

.study-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.study-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.study-action-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #eef2ff;
}

.study-action-btn.bookmarked {
    color: #6366f1;
    border-color: #6366f1;
}

/* تب‌ها */
.study-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.tab-btn {
    padding: 6px 18px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    color: #475569;
    background: #f8fafc;
}

.tab-btn.active {
    background: #6366f1;
    color: white;
}

.tab-btn i {
    font-size: 13px;
}

/* محتوای متن */
.study-body-content {
    min-height: 200px;
}

.content-level {
    display: none;
}

.content-level.active {
    display: block;
}

.content-text {
    font-size: 15px;
    color: #475569;
    line-height: 2;
}

.content-text p {
    margin-bottom: 12px;
}

.content-example {
    background: #f0fdf4;
    border-right: 3px solid #10b981;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.content-example h4 {
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 8px;
}

.content-example h4 i {
    color: #10b981;
}

.content-example p {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
}

.content-faq {
    background: #fefce8;
    border-right: 3px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.content-faq h4 {
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 8px;
}

.content-faq h4 i {
    color: #f59e0b;
}

.content-faq p {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
}

.content-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.content-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

/* متن اصلی */
.original-text-section {
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.original-toggle {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px dashed #6366f1;
    background: transparent;
    color: #6366f1;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.original-toggle:hover {
    background: #eef2ff;
}

.original-text-content {
    margin-top: 12px;
}

.original-text-inner {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #f1f5f9;
}

.original-text-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.original-text-label .label {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

.original-text-label .reference {
    font-size: 12px;
    color: #94a3b8;
}

.original-text-body {
    font-size: 14px;
    color: #475569;
    line-height: 2;
    max-height: 400px;
    overflow-y: auto;
}

/* پیشرفت مطالعه */
.study-progress {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.progress-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.progress-info i {
    margin-left: 4px;
}

.progress-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
}

.progress-text strong {
    color: #6366f1;
}

.progress-complete-btn {
    padding: 4px 16px;
    border-radius: 8px;
    border: 1px solid #10b981;
    background: transparent;
    color: #10b981;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.progress-complete-btn:hover {
    background: #ecfdf5;
}

/* ===== نظرات ===== */
.comments-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.comments-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.comments-title i {
    color: #6366f1;
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-form-group {
    flex: 1;
}

.comment-form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    min-height: 70px;
    resize: vertical;
    transition: border-color 0.2s;
}

.comment-form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.comment-submit {
    padding: 8px 24px;
    border-radius: 10px;
    border: none;
    background: #6366f1;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    height: fit-content;
}

.comment-submit:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.comment-login-notice {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

.comment-login-notice a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.comment-login-notice a:hover {
    text-decoration: underline;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #94a3b8;
}

.comment-text {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.8;
}

.comment-actions {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
}

.comment-like-btn,
.comment-reply-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-like-btn:hover,
.comment-reply-btn:hover {
    color: #6366f1;
}

.comment-like-btn.liked {
    color: #6366f1;
}

.comments-empty {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
}

.comments-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.comments-load-more {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #6366f1;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.comments-load-more:hover {
    background: #f8fafc;
    border-color: #6366f1;
}

/* ===== ستون راست: نوار جانبی ===== */
.study-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 16px;
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.sidebar-card-header i {
    color: #6366f1;
}

/* ===== فلش‌کارت‌ها ===== */
.flashcards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flashcard-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #f1f5f9;
}

.flashcard-question {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.flashcard-question i {
    color: #6366f1;
    margin-top: 2px;
}

.flashcard-answer {
    font-size: 13px;
    color: #475569;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.flashcard-toggle {
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.flashcard-toggle:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.flashcards-empty {
    text-align: center;
    padding: 20px 10px;
    color: #94a3b8;
    font-size: 13px;
}

.flashcards-empty i {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.flashcards-view-all {
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.flashcards-view-all:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* ===== سوالات آزمون ===== */
.exam-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exam-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #f1f5f9;
}

.exam-question p {
    font-size: 13px;
    color: #0f172a;
    font-weight: 500;
    margin: 4px 0 8px;
}

.exam-badge {
    font-size: 10px;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    padding: 0 8px;
    border-radius: 4px;
    display: inline-block;
}

.exam-options {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.exam-option {
    font-size: 13px;
    color: #475569;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.exam-option span {
    font-weight: 700;
    color: #94a3b8;
    min-width: 20px;
}

.exam-option.correct {
    color: #10b981;
}

.exam-option.correct span {
    color: #10b981;
}

.exam-explanation {
    margin-top: 8px;
    padding: 8px;
    background: #fefce8;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
}

.exam-toggle {
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.exam-toggle:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.exam-empty {
    text-align: center;
    padding: 20px 10px;
    color: #94a3b8;
    font-size: 13px;
}

.exam-empty i {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

/* ===== اشتراک‌گذاری ===== */
.share-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.share-btn.copy:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

/* =============================================
   استایل‌های صفحه آزمون (exam.php)
   ============================================= */

/* ===== هدر آزمون ===== */
.exam-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px 0;
}

.exam-header-content {
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.exam-header-content h1 {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    margin: 4px 0 8px;
}

.exam-header-content h1 em {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

.exam-header-content p {
    color: #64748b;
    font-size: 16px;
}

/* ===== فیلترهای آزمون ===== */
.exam-filters {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 0;
}

.exam-filters-inner {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 20px 24px;
}

.exam-filter-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.exam-filter-form .filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
}

.exam-filter-form .filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-filter-form .filter-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    color: #0f172a;
    background: white;
    transition: border-color 0.2s;
    width: 100%;
}

.exam-filter-form .filter-select:focus {
    outline: none;
    border-color: #6366f1;
}

.exam-filter-form .filter-actions {
    min-width: 120px;
    flex: 0.5;
}

.exam-filter-form .filter-submit {
    width: 100%;
    padding: 9px 16px;
    border-radius: 8px;
    border: none;
    background: #6366f1;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.exam-filter-form .filter-submit:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ===== کانتینر آزمون ===== */
.exam-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 40px 40px;
}

.exam-wrapper {
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

/* ===== نوار پیشرفت آزمون ===== */
.exam-header-bar {
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.exam-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.exam-question-counter {
    font-size: 14px;
    color: #64748b;
}

.exam-question-counter strong {
    color: #0f172a;
}

.exam-timer {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exam-timer i {
    color: #6366f1;
}

.exam-timer #timerDisplay {
    font-family: monospace;
    font-size: 18px;
    min-width: 50px;
}

.exam-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.exam-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ===== سوالات ===== */
.exam-questions-wrapper {
    padding: 24px;
}

.exam-question-item {
    display: none;
}

.exam-question-item.active {
    display: block;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.question-number {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.question-badge {
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 12px;
    border-radius: 4px;
}

.question-text {
    margin-bottom: 20px;
}

.question-text p {
    font-size: 17px;
    color: #0f172a;
    line-height: 1.8;
    font-weight: 500;
}

/* ===== گزینه‌ها ===== */
.question-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover:not(.correct) {
    border-color: #6366f1;
    background: #f8fafc;
}

.option-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
    flex-shrink: 0;
}

.option-label {
    font-weight: 700;
    color: #94a3b8;
    min-width: 20px;
}

.option-text {
    font-size: 15px;
    color: #475569;
}

.option-item.correct {
    border-color: #10b981;
    background: #ecfdf5;
}

.option-item.correct .option-label {
    color: #10b981;
}

/* ===== ناوبری ===== */
.question-navigation {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 8px;
}

.question-nav-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.question-nav-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.question-nav-btn.submit-btn {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.question-nav-btn.submit-btn:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* =============================================
   صفحه نتایج
   ============================================= */
.exam-results {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 40px 40px;
}

.results-wrapper {
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.results-icon {
    font-size: 64px;
    margin-bottom: 12px;
}

.results-icon i {
    color: #f59e0b;
}

.results-wrapper h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.results-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.score-number {
    font-size: 48px;
    font-weight: 900;
    color: #6366f1;
}

.score-total {
    font-size: 18px;
    color: #94a3b8;
}

.results-percentage {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
}

/* ===== آمار نتایج ===== */
.results-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-item {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.stat-item.correct {
    background: #ecfdf5;
}

.stat-item.incorrect {
    background: #fef2f2;
}

.stat-item.unanswered {
    background: #fefce8;
}

.stat-item.time-spent {
    background: #eff6ff;
}

.stat-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.stat-item.correct i {
    color: #10b981;
}
.stat-item.incorrect i {
    color: #dc2626;
}
.stat-item.unanswered i {
    color: #f59e0b;
}
.stat-item.time-spent i {
    color: #6366f1;
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
    display: block;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

/* ===== دکمه‌های نتایج ===== */
.results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.results-btn {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.results-btn.retry-btn {
    background: #e2e8f0;
    color: #475569;
}

.results-btn.retry-btn:hover {
    background: #cbd5e1;
}

.results-btn.review-btn {
    background: #6366f1;
    color: white;
}

.results-btn.review-btn:hover {
    background: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.results-btn.study-btn {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.results-btn.study-btn:hover {
    background: #f1f5f9;
}

/* ===== پاسخ‌نامه تشریحی ===== */
.results-review {
    text-align: right;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
    margin-top: 8px;
}

.results-review h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-review h3 i {
    color: #6366f1;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    border-right: 3px solid #94a3b8;
}

.review-item.correct {
    border-right-color: #10b981;
}

.review-item.incorrect {
    border-right-color: #dc2626;
}

.review-item.unanswered {
    border-right-color: #f59e0b;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-number {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

.review-status {
    font-size: 12px;
    font-weight: 600;
}

.review-question {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
}

.review-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-option {
    font-size: 13px;
    color: #475569;
    padding: 4px 8px;
    border-radius: 4px;
}

.review-option.correct {
    background: #ecfdf5;
    color: #10b981;
}

.review-option.user-wrong {
    background: #fef2f2;
    color: #dc2626;
}

.review-option.user-correct {
    background: #ecfdf5;
    color: #10b981;
}

.review-explanation {
    margin-top: 8px;
    padding: 8px 12px;
    background: #eef2ff;
    border-radius: 6px;
    font-size: 13px;
    color: #6366f1;
}

/* =============================================
   حالت خالی آزمون
   ============================================= */
.exam-empty-state {
    max-width: 600px;
    margin: 40px auto;
    padding: 60px 40px;
    text-align: center;
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.exam-empty-state i {
    font-size: 48px;
    color: #94a3b8;
    display: block;
    margin-bottom: 16px;
}

.exam-empty-state h3 {
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 8px;
}

.exam-empty-state p {
    color: #64748b;
    margin-bottom: 20px;
}

/* =============================================
   استایل‌های صفحه اشتراک (subscription.php)
   ============================================= */

/* ===== هدر اشتراک ===== */
.subscription-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px 0;
}

.subscription-header-content {
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}

.subscription-header-content h1 {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    margin: 4px 0 8px;
}

.subscription-header-content h1 em {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

.subscription-header-content p {
    color: #64748b;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.current-subscription {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 20px;
    background: #ecfdf5;
    border-radius: 20px;
    color: #10b981;
    font-size: 14px;
}

.current-subscription i {
    color: #10b981;
}

.current-subscription strong {
    font-weight: 700;
}

.current-subscription .expiry-date {
    font-size: 12px;
    color: #64748b;
}

/* ===== پلن‌های اشتراک ===== */
.subscription-plans {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.plan-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.plan-card.free {
    border-top: 3px solid #94a3b8;
}

.plan-card.premium {
    border-top: 3px solid #6366f1;
}

.plan-card.popular {
    border-top: 3px solid #f59e0b;
    transform: scale(1.02);
}

.plan-card.popular:hover {
    transform: scale(1.02) translateY(-4px);
}

.plan-card.current {
    border: 2px solid #10b981;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #f59e0b;
    color: white;
    white-space: nowrap;
}

.plan-badge.current-badge {
    background: #10b981;
}

.plan-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.plan-header p {
    font-size: 13px;
    color: #64748b;
}

.plan-price {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    display: block;
}

.plan-card.free .price-amount {
    color: #94a3b8;
}

.plan-card.popular .price-amount {
    color: #f59e0b;
}

.price-period {
    font-size: 13px;
    color: #94a3b8;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: right;
}

.plan-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li i {
    color: #10b981;
    font-size: 14px;
    flex-shrink: 0;
}

.plan-action {
    margin-top: 12px;
}

.plan-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.plan-btn.free-btn {
    background: #f1f5f9;
    color: #475569;
}

.plan-btn.free-btn:hover {
    background: #e2e8f0;
}

.plan-btn.subscribe-btn {
    background: #6366f1;
    color: white;
}

.plan-btn.subscribe-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.plan-btn.login-btn {
    background: #e2e8f0;
    color: #475569;
}

.plan-btn.login-btn:hover {
    background: #cbd5e1;
}

.plan-btn.current-btn {
    background: #ecfdf5;
    color: #10b981;
    cursor: default;
}

/* ===== جدول مقایسه ===== */
.comparison-table {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.comparison-header {
    text-align: center;
    margin-bottom: 24px;
}

.comparison-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.comparison-header p {
    color: #64748b;
    font-size: 15px;
}

.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
}

.comparison-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.comparison-grid th,
.comparison-grid td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-grid th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

.comparison-grid th:first-child {
    text-align: right;
}

.comparison-grid td:first-child {
    text-align: right;
    font-weight: 500;
    color: #475569;
}

.comparison-grid .yes i {
    color: #10b981;
    font-size: 18px;
}

.comparison-grid .no i {
    color: #e2e8f0;
    font-size: 18px;
}

.comparison-grid tbody tr:hover {
    background: #f8fafc;
}

/* ===== سوالات متداول ===== */
.subscription-faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.faq-header {
    text-align: center;
    margin-bottom: 32px;
}

.faq-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.faq-header p {
    color: #64748b;
    font-size: 15px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.2s;
    text-align: right;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question i {
    color: #94a3b8;
    transition: transform 0.3s;
    font-size: 14px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.open {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 20px 16px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== مودال پرداخت ===== */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-modal.active {
    display: flex;
}

.payment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.payment-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 32px 36px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.payment-modal-close {
    position: absolute;
    top: 12px;
    left: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.payment-modal-close:hover {
    color: #0f172a;
}

.payment-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.payment-modal-header i {
    font-size: 40px;
    color: #6366f1;
    display: block;
    margin-bottom: 8px;
}

.payment-modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.payment-modal-header p {
    font-size: 14px;
    color: #64748b;
}

.payment-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #475569;
}

.payment-row:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.payment-amount {
    font-weight: 700;
    color: #0f172a;
}

.payment-status {
    color: #f59e0b;
    font-weight: 600;
}

.payment-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-method {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: #cbd5e1;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method:has(input:checked) {
    border-color: #6366f1;
    background: #eef2ff;
}

.payment-method span {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.payment-method span i {
    margin-left: 6px;
}

.payment-submit {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #6366f1;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-submit:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.payment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
}

.payment-security i {
    color: #10b981;
}

/* =============================================
   ریسپانسیو جامع
   ============================================= */

/* ===== ریسپانسیو - 1200px ===== */
@media (max-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plan-card.popular {
        transform: none;
    }
    
    .plan-card.popular:hover {
        transform: translateY(-4px);
    }
}

/* ===== ریسپانسیو - 1100px ===== */
@media (max-width: 1100px) {
    .study-main {
        grid-template-columns: 240px 1fr 260px;
        gap: 16px;
        padding: 16px 20px 32px;
    }
}

/* ===== ریسپانسیو - 992px ===== */
@media (max-width: 992px) {
    /* مطالعه */
    .study-main {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .study-sidebar {
        position: relative;
        top: 0;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .study-sidebar-right {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .study-sidebar-right .sidebar-card {
        flex: 1;
        min-width: 200px;
    }
    
    .breadcrumb {
        padding: 12px 20px 0;
    }
    
    /* آزمون */
    .exam-header {
        padding: 24px 20px 0;
    }
    
    .exam-header-content h1 {
        font-size: 28px;
    }
    
    .exam-filters {
        padding: 16px 20px 0;
    }
    
    .exam-filters-inner {
        padding: 16px;
    }
    
    .exam-filter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .exam-filter-form .filter-group {
        min-width: 100%;
    }
    
    .exam-filter-form .filter-actions {
        flex: 1;
    }
    
    .exam-container {
        padding: 16px 20px 32px;
    }
    
    .exam-results {
        padding: 16px 20px 32px;
    }
    
    .results-wrapper {
        padding: 24px;
    }
    
    .results-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exam-questions-wrapper {
        padding: 16px;
    }
    
    /* اشتراک */
    .subscription-header {
        padding: 24px 20px 0;
    }
    
    .subscription-header-content h1 {
        font-size: 28px;
    }
    
    .subscription-plans {
        padding: 24px 20px;
    }
    
    .comparison-table {
        padding: 0 20px 32px;
    }
    
    .subscription-faq {
        padding: 0 20px 40px;
    }
    
    /* کتاب‌ها */
    .page-header {
        padding: 24px 20px 0;
    }
    
    .page-header-content h1 {
        font-size: 28px;
    }
    
    .filter-section {
        padding: 16px 20px 0;
    }
    
    .books-grid-section {
        padding: 16px 20px 32px;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    /* صفحه اصلی */
    .hero-wrap {
        flex-direction: column;
        padding: 32px 20px;
        text-align: center;
    }
    
    .hero-copy p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .trust-row {
        justify-content: center;
    }
    
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-section {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    
    .study-preview {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    
    .study-body {
        grid-template-columns: 1fr;
    }
    
    .study-body aside {
        border-left: none;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .metrics {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px 20px 24px;
    }
    
    .community {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    
    .floating-note {
        display: none;
    }
    
    /* فوتر */
    footer {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    
    .footer-links {
        justify-content: flex-start;
    }
}

/* ===== ریسپانسیو - 768px ===== */
@media (max-width: 768px) {
    /* کتاب‌ها */
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
    }
    
    .filter-buttons {
        gap: 4px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    /* مطالعه */
    .study-content {
        padding: 16px;
    }
    
    .study-title {
        font-size: 20px;
    }
    
    .study-header {
        flex-direction: column;
    }
    
    .study-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .study-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .comment-form {
        flex-direction: column;
    }
    
    .comment-submit {
        width: 100%;
    }
    
    .study-sidebar-right .sidebar-card {
        min-width: 100%;
    }
    
    .progress-info {
        flex-direction: column;
        gap: 4px;
    }
    
    /* اشتراک */
    .plans-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .plan-card {
        padding: 20px 16px;
    }
    
    .price-amount {
        font-size: 24px;
    }
    
    .plan-features li {
        font-size: 12px;
        padding: 4px 0;
    }
    
    .comparison-grid {
        font-size: 12px;
    }
    
    .comparison-grid th,
    .comparison-grid td {
        padding: 8px 12px;
    }
    
    /* آزمون */
    .exam-header-bar {
        padding: 12px 16px;
    }
    
    .exam-question-counter {
        font-size: 12px;
    }
    
    .exam-timer {
        font-size: 14px;
    }
    
    .exam-questions-wrapper {
        padding: 12px;
    }
    
    .question-text p {
        font-size: 15px;
    }
    
    .option-item {
        padding: 10px 12px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .question-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .question-nav-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .results-wrapper {
        padding: 16px;
    }
    
    .results-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .score-number {
        font-size: 36px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-btn {
        justify-content: center;
    }
}

/* ===== ریسپانسیو - 700px ===== */
@media (max-width: 700px) {
    /* اشتراک */
    .plans-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* ===== ریسپانسیو - 600px ===== */
@media (max-width: 600px) {
    /* هدر */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px;
        right: 16px;
        left: 16px;
        background: white;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid #f1f5f9;
        gap: 12px;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .menu-button {
        display: block;
    }
    
    .login-button,
    .signup-button {
        display: none;
    }
    
    .user-avatar img {
        width: 28px;
        height: 28px;
    }
    
    /* صفحه اصلی */
    .hero-copy h1 {
        font-size: 36px;
    }
    
    .book-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .book-card {
        padding: 14px;
    }
    
    .mini-cover strong {
        font-size: 15px;
    }
    
    .section-heading h2 {
        font-size: 24px;
    }
    
    .metrics {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .metrics strong {
        font-size: 20px;
    }
    
    .section-block,
    .features-section,
    .study-preview,
    .community,
    footer {
        padding: 16px;
    }
    
    .community h2 {
        font-size: 22px;
    }
    
    .community-card {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* کتاب‌ها */
    .page-header-content h1 {
        font-size: 24px;
    }
    
    .books-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .book-card-inner {
        padding: 14px;
    }
    
    .book-cover-large {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .book-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    /* مطالعه */
    .study-main {
        padding: 12px 12px 24px;
    }
    
    /* اشتراک */
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .subscription-header-content h1 {
        font-size: 24px;
    }
    
    .payment-modal-content {
        padding: 24px 20px;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    /* آزمون */
    .exam-header-content h1 {
        font-size: 24px;
    }
    
    /* auth */
    .auth-container {
        padding: 20px 12px;
        min-height: 70vh;
    }
    
    .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .auth-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-form .form-group input,
    .auth-form .form-group select {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .auth-submit {
        font-size: 14px;
        padding: 10px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ===== ریسپانسیو - 500px ===== */
@media (max-width: 500px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ===== ریسپانسیو - 400px ===== */
@media (max-width: 400px) {
    .book-grid {
        grid-template-columns: 1fr;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   استایل‌های صفحه پروفایل (profile.php)
   ============================================= */

/* ===== کانتینر اصلی ===== */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px 40px;
}

/* ===== هدر پروفایل ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #eef2ff;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #6366f1;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-upload-btn:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.profile-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.profile-meta i {
    margin-left: 4px;
    color: #94a3b8;
}

.profile-role {
    display: flex;
    align-items: center;
    gap: 4px;
}

.role-custom {
    font-size: 12px;
    color: #6366f1;
    background: #eef2ff;
    padding: 0 8px;
    border-radius: 4px;
}

.profile-subscription {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.subscription-badge.free {
    background: #f1f5f9;
    color: #64748b;
}

.subscription-badge.premium {
    background: #fef3c7;
    color: #d97706;
}

.subscription-badge.lifetime {
    background: #fef3c7;
    color: #d97706;
}

.subscription-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    background: #6366f1;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.subscription-upgrade:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ===== آمار کاربر ===== */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    display: block;
    margin-top: 4px;
}

.stat-label i {
    margin-left: 4px;
}

/* ===== نوار پیشرفت کلی ===== */
.profile-progress {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.progress-bar-large {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.progress-details {
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
}

/* ===== محتوای پروفایل ===== */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

.profile-left,
.profile-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== کارت‌های پروفایل ===== */
.profile-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 20px 24px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.card-header i {
    color: #6366f1;
    font-size: 18px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    flex: 1;
}

.card-link {
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.card-link:hover {
    color: #4f46e5;
}

/* ===== فرم‌ها ===== */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.form-group input,
.form-group select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    color: #0f172a;
    transition: border-color 0.2s;
    background: white;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
}

.profile-submit-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: #6366f1;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.profile-submit-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ===== لیست‌ها ===== */
.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}

.profile-list li:last-child {
    border-bottom: none;
}

.profile-list a {
    text-decoration: none;
    display: block;
}

.list-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.list-badge {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 0 8px;
    border-radius: 4px;
}

.list-subtitle {
    font-size: 13px;
    color: #64748b;
    display: block;
}

.list-note-preview {
    font-size: 13px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.list-date {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

/* ===== حالت خالی کوچک ===== */
.empty-state-small {
    text-align: center;
    padding: 24px 16px;
}

.empty-state-small i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.empty-state-small p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.empty-link {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 8px;
    background: #6366f1;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.empty-link:hover {
    background: #4f46e5;
}

/* ===== هشدارها ===== */
.alert {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.alert-success {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fefce8;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #93c5fd;
}

/* =============================================
   ریسپانسیو - پروفایل
   ============================================= */
@media (max-width: 992px) {
    .profile-container {
        padding: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 16px;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-subscription {
        justify-content: center;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .profile-container {
        padding: 12px;
    }
    
    .profile-header {
        padding: 16px;
    }
    
    .profile-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .profile-info h1 {
        font-size: 22px;
    }
    
    .profile-meta {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .profile-card {
        padding: 16px;
    }
    
    .profile-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-group input,
    .form-group select {
        font-size: 13px;
    }
}