﻿/* ============================================================
   سامانه کمک — کلینیک مشاوره کتاب
   CSS اختصاصی — اپ‌مانند و Mobile-First
   ============================================================ */

/* ============================================================
   1) Reset و ریشه
   ============================================================ */
:root {
    /* سرمه‌ای لوکس */
    --bc-navy: #0a2540;
    --bc-navy-dark: #051529;
    --bc-navy-light: #1e4d7b;
    --bc-navy-glow: rgba(30, 77, 123, 0.4);
    /* طلایی درخشان (Champagne Gold) */
    --bc-gold: #e8c66a;
    --bc-gold-dark: #c9a227;
    --bc-gold-light: #ffe9a8;
    --bc-gold-bright: #fff3c4;
    --bc-gold-gradient: linear-gradient(135deg, #f5d97a 0%, #e8c66a 25%, #d4af37 50%, #e8c66a 75%, #f5d97a 100%);
    --bc-gold-glow: rgba(232, 198, 106, 0.55);
    --bc-gold-glow-strong: rgba(232, 198, 106, 0.85);
    /* کرم لوکس */
    --bc-cream: #fffaf0;
    --bc-cream-dark: #fdf2dd;
    --bc-white: #ffffff;
    /* رنگ‌های تاکیدی */
    --bc-teal: #00d4e6;
    --bc-teal-dark: #00a8b8;
    --bc-coral: #ff7a7a;
    --bc-mint: #4ee0d0;
    --bc-violet: #9d6bff;
    /* متن */
    --bc-text: #1a2733;
    --bc-text-secondary: #455a64;
    --bc-text-muted: #78909c;
    --bc-text-light: #b0bec5;
    /* وضعیت */
    --bc-success: #00d96b;
    --bc-success-bg: #e6fbf0;
    --bc-danger: #ff4d6d;
    --bc-danger-bg: #ffe6eb;
    --bc-warning: #ffbe3d;
    --bc-warning-bg: #fff6e0;
    --bc-info: #00d4e6;
    --bc-info-bg: #e0fafd;
    /* حاشیه */
    --bc-border: #e6edf5;
    --bc-border-light: #f2f6fb;
    --bc-border-gold: rgba(232, 198, 106, 0.35);
    /* سایه‌های لوکس */
    --bc-shadow-sm: 0 2px 12px rgba(10, 37, 64, 0.09);
    --bc-shadow-md: 0 8px 28px rgba(10, 37, 64, 0.14);
    --bc-shadow-lg: 0 18px 48px rgba(10, 37, 64, 0.2);
    --bc-shadow-gold: 0 6px 24px rgba(232, 198, 106, 0.5);
    --bc-shadow-gold-strong: 0 10px 36px rgba(232, 198, 106, 0.7);
    --bc-shadow-inner-gold: inset 0 1px 0 rgba(255, 243, 196, 0.6);
    /* گرادیان‌های لوکس */
    --bc-gradient-navy: linear-gradient(135deg, #0a2540 0%, #1e4d7b 100%);
    --bc-gradient-navy-lux: linear-gradient(135deg, #051529 0%, #0a2540 35%, #1e4d7b 100%);
    --bc-gradient-gold: linear-gradient(135deg, #f5d97a 0%, #e8c66a 25%, #d4af37 50%, #c9a227 75%, #e8c66a 100%);
    --bc-gradient-lux: linear-gradient(135deg, #0a2540 0%, #1e4d7b 50%, #e8c66a 100%);
    /* گوشه‌ها */
    --bc-radius-sm: 10px;
    --bc-radius-md: 14px;
    --bc-radius-lg: 20px;
    --bc-radius-xl: 26px;
    /* Safe area و ارتفاع‌ها */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --appbar-h: 62px;
    --bottomnav-h: 68px;
    --fab-size: 56px;
}
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   افکت‌های لوکس و درخشان
   ============================================================ */

/* دکمه طلایی لوکس */
.bc-btn-gold {
    background: var(--bc-gradient-gold);
    background-size: 200% 200%;
    color: var(--bc-navy-dark);
    box-shadow: var(--bc-shadow-gold), var(--bc-shadow-inner-gold);
    position: relative;
    overflow: hidden;
    animation: goldShimmer 4s ease-in-out infinite;
}

    .bc-btn-gold::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
        transition: left 0.6s ease;
    }

    .bc-btn-gold:hover::before {
        left: 100%;
    }

    .bc-btn-gold:hover {
        box-shadow: var(--bc-shadow-gold-strong), var(--bc-shadow-inner-gold);
        transform: translateY(-2px);
    }

@keyframes goldShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* لوگو با درخشش */
.panel-appbar-logo,
.bc-appbar-logo {
    background: var(--bc-gradient-gold);
    color: var(--bc-navy-dark);
    box-shadow: 0 0 20px var(--bc-gold-glow), 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 0 18px var(--bc-gold-glow), 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    50% {
        box-shadow: 0 0 28px var(--bc-gold-glow-strong), 0 4px 16px rgba(0, 0, 0, 0.2);
    }
}

/* Appbar با گرادیان لوکس */
.panel-appbar,
.bc-appbar {
    background: var(--bc-gradient-navy-lux);
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.25), 0 1px 0 rgba(232, 198, 106, 0.15) inset;
    position: relative;
}

    .panel-appbar::after,
    .bc-appbar::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--bc-gold-glow), transparent);
    }

/* Bottom Navigation لوکس */
.panel-bottomnav,
.bc-bottomnav {
    box-shadow: 0 -6px 30px rgba(10, 37, 64, 0.12), 0 -1px 0 var(--bc-border-gold) inset;
}

.panel-bottomnav-item.active::before,
.bc-bottomnav-item.active::before {
    background: var(--bc-gradient-gold);
    box-shadow: 0 0 12px var(--bc-gold-glow-strong);
    height: 4px;
}

.panel-bottomnav-item.active i,
.bc-bottomnav-item.active i {
    filter: drop-shadow(0 0 6px var(--bc-gold-glow));
    color: var(--bc-gold-dark);
}

/* FAB لوکس */
.panel-fab {
    background: var(--bc-gradient-gold);
    background-size: 200% 200%;
    color: var(--bc-navy-dark);
    box-shadow: var(--bc-shadow-gold-strong), var(--bc-shadow-inner-gold);
    animation: goldShimmer 4s ease-in-out infinite, fabPulse 3s ease-in-out infinite;
}

@keyframes fabPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.panel-fab:hover {
    transform: scale(1.1) translateY(-3px);
}

/* کارت‌های لوکس */
.bc-card,
.panel-card {
    background: var(--bc-white);
    border: 1px solid var(--bc-border-gold);
    box-shadow: var(--bc-shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.3s ease;
}

    .bc-card:hover,
    .panel-card:hover {
        box-shadow: var(--bc-shadow-md), 0 0 20px rgba(232, 198, 106, 0.15);
    }

/* Page Header لوکس */
.bc-page-header,
.panel-page-header {
    background: var(--bc-gradient-navy-lux);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(10, 37, 64, 0.25);
}

    .bc-page-header::before,
    .panel-page-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(232, 198, 106, 0.15) 0%, transparent 70%);
        border-radius: 50%;
    }

    .bc-page-header::after,
    .panel-page-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--bc-gold), transparent);
        opacity: 0.6;
    }

/* Badge طلایی لوکس */
.bc-badge-gold {
    background: var(--bc-gradient-gold);
    color: var(--bc-navy-dark);
    box-shadow: 0 2px 10px var(--bc-gold-glow);
    font-weight: 800;
}

/* Chip لوکس */
.bc-chip {
    background: linear-gradient(135deg, #fffaf0 0%, #fdf2dd 100%);
    border: 1px solid var(--bc-border-gold);
    color: var(--bc-navy);
    box-shadow: 0 1px 4px rgba(232, 198, 106, 0.2);
}

/* Sidebar / Drawer لوکس */
.panel-drawer-header {
    background: var(--bc-gradient-navy-lux);
    position: relative;
}

    .panel-drawer-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        height: 2px;
        background: var(--bc-gradient-gold);
    }

.panel-drawer-avatar {
    background: var(--bc-gradient-gold);
    color: var(--bc-navy-dark);
    box-shadow: 0 4px 16px var(--bc-gold-glow);
}

/* Avatar با درخشش */
.bc-avatar {
    background: var(--bc-gradient-gold);
    color: var(--bc-navy-dark);
    box-shadow: 0 4px 12px var(--bc-gold-glow);
    position: relative;
}

/* لینک‌های Drawer */
.panel-drawer-list li a.active {
    background: linear-gradient(90deg, rgba(232, 198, 106, 0.15) 0%, rgba(232, 198, 106, 0.05) 100%);
    border-right: 3px solid var(--bc-gold);
    box-shadow: inset -4px 0 12px rgba(232, 198, 106, 0.1);
}

/* Input لوکس */
.bc-input:focus,
.bc-select:focus,
.bc-textarea:focus {
    border-color: var(--bc-gold);
    box-shadow: 0 0 0 4px rgba(232, 198, 106, 0.15), 0 2px 8px rgba(232, 198, 106, 0.2);
    background: #fffef9;
}

/* Alert لوکس */
.bc-alert-success {
    background: var(--bc-success-bg);
    border-right: 4px solid var(--bc-success);
    box-shadow: 0 2px 10px rgba(0, 217, 107, 0.15);
}

.bc-alert-danger {
    background: var(--bc-danger-bg);
    border-right: 4px solid var(--bc-danger);
    box-shadow: 0 2px 10px rgba(255, 77, 109, 0.15);
}

/* Toast لوکس */
.bc-toast {
    box-shadow: 0 12px 40px rgba(10, 37, 64, 0.35), 0 0 0 1px rgba(232, 198, 106, 0.2) inset;
}

/* Stat Cards لوکس */
.bc-stat,
.dash-stat {
    border-right: 4px solid var(--bc-gold);
    box-shadow: var(--bc-shadow-sm), 0 0 0 1px rgba(232, 198, 106, 0.1) inset;
    transition: all 0.3s ease;
}

    .bc-stat:hover,
    .dash-stat:hover {
        box-shadow: var(--bc-shadow-md), 0 0 20px rgba(232, 198, 106, 0.2);
        transform: translateY(-2px);
    }

.bc-stat-icon,
.dash-stat-icon {
    background: linear-gradient(135deg, rgba(232, 198, 106, 0.2) 0%, rgba(232, 198, 106, 0.08) 100%);
    color: var(--bc-gold-dark);
    box-shadow: 0 2px 8px rgba(232, 198, 106, 0.2);
}

/* گرادیان روی دکمه‌های Primary */
.bc-btn-primary {
    background: var(--bc-gradient-navy);
    box-shadow: 0 4px 16px var(--bc-navy-glow);
    position: relative;
    overflow: hidden;
}

    .bc-btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(232, 198, 106, 0.3), transparent);
        transition: left 0.6s ease;
    }

    .bc-btn-primary:hover::before {
        left: 100%;
    }

    .bc-btn-primary:hover {
        box-shadow: 0 8px 24px var(--bc-navy-glow);
        transform: translateY(-2px);
    }

/* خط طلایی تزئینی برای Hero */
.bc-hero {
    background: var(--bc-gradient-navy-lux);
    position: relative;
}

    .bc-hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: var(--bc-gradient-gold);
        opacity: 0.8;
    }

/* پس‌زمینه با بافت مخملی */
body {
    background: radial-gradient(ellipse at top right, rgba(232, 198, 106, 0.08) 0%, transparent 50%), radial-gradient(ellipse at bottom left, rgba(30, 77, 123, 0.06) 0%, transparent 50%), var(--bc-cream);
}

/* درخشش متحرک روی Appbar */
@keyframes appbarShine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.panel-appbar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(232, 198, 106, 0.08), transparent);
    background-size: 200% 100%;
    animation: appbarShine 8s linear infinite;
    pointer-events: none;
}

/* ============================================================
   2) Typography
   ============================================================ */

@font-face {
    font-family: "IRANYekan";
    src: url(../iranyekan/IRANYekan.eot?#iefix)format("embeded-opentype"),url(../iranyekan/IRANYekan.ttf)format("truetype"), url(../iranyekan/IRANYekan.woff)format("woff"),url(../iranyekan/IRANYekan.woff2)format("woff2");
    font-weight: 400;
}


body {
    font-family: IRANYekan !important;
    font-size: 15px;
    line-height: 1.7;
    color: var(--bc-text);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--bc-navy);
    line-height: 1.4;
    margin: 0 0 12px;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.3rem;
}

h3 {
    font-size: 1.15rem;
}

h4 {
    font-size: 1.05rem;
}

h5 {
    font-size: 0.95rem;
}

h6 {
    font-size: 0.87rem;
}

p {
    margin: 0 0 12px;
}

.text-muted {
    color: var(--bc-text-muted) !important;
}

.text-navy {
    color: var(--bc-navy) !important;
}

.text-gold {
    color: var(--bc-gold-dark) !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* ============================================================
   3) Buttons — اپ‌مانند با Touch Target بزرگ
   ============================================================ */
.bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none !important;
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap;
}

    .bc-btn:active {
        transform: scale(0.97);
    }

    .bc-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        transform: none;
    }

/* Variants */
.bc-btn-primary {
    background: linear-gradient(135deg, var(--bc-navy) 0%, var(--bc-navy-light) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 58, 82, 0.25);
}

    .bc-btn-primary:active {
        box-shadow: 0 2px 8px rgba(26, 58, 82, 0.3);
    }

.bc-btn-gold {
    background: linear-gradient(135deg, var(--bc-gold) 0%, var(--bc-gold-dark) 100%);
    color: var(--bc-navy);
    box-shadow: var(--bc-shadow-gold);
}

    .bc-btn-gold:active {
        box-shadow: 0 3px 12px rgba(201, 169, 97, 0.5);
    }

.bc-btn-outline {
    background: transparent;
    color: var(--bc-navy);
    border: 2px solid var(--bc-navy);
}

    .bc-btn-outline:active {
        background: var(--bc-navy);
        color: #fff;
    }

.bc-btn-light {
    background: var(--bc-cream);
    color: var(--bc-navy);
}

    .bc-btn-light:active {
        background: var(--bc-cream-dark);
    }

.bc-btn-danger {
    background: linear-gradient(135deg, var(--bc-danger) 0%, #a71e2a 100%);
    color: #fff;
}

.bc-btn-success {
    background: linear-gradient(135deg, var(--bc-success) 0%, #1e7e34 100%);
    color: #fff;
}

/* اندازه‌ها */
.bc-btn-sm {
    min-height: 38px;
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 10px;
}

.bc-btn-lg {
    min-height: 54px;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 14px;
}

.bc-btn-block {
    width: 100%;
}

/* آیکن‌دار */
.bc-btn i {
    font-size: 1.1rem;
}

.bc-btn-sm i {
    font-size: 0.95rem;
}

/* ============================================================
   4) Forms — موبایل-پسند
   ============================================================ */
.bc-form-group {
    margin-bottom: 16px;
}

.bc-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bc-navy);
    margin-bottom: 8px;
}

    .bc-label .bc-required {
        color: var(--bc-danger);
        margin-right: 3px;
    }

.bc-input,
.bc-select,
.bc-textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--bc-border);
    background: #fafbfc;
    color: var(--bc-navy);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.15s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.bc-textarea {
    min-height: 100px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.7;
}

    .bc-input:focus,
    .bc-select:focus,
    .bc-textarea:focus {
        border-color: var(--bc-gold);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.12);
    }

    .bc-input::placeholder,
    .bc-textarea::placeholder {
        color: var(--bc-text-light);
    }

.bc-input.ltr {
    direction: ltr;
    text-align: center;
    letter-spacing: 1px;
    font-family: 'Segoe UI', Tahoma;
}

.bc-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.bc-field-error {
    color: var(--bc-danger);
    font-size: 0.78rem;
    margin-top: 5px;
    display: block;
}

.bc-input.is-invalid,
.bc-select.is-invalid,
.bc-textarea.is-invalid {
    border-color: var(--bc-danger);
    background: #fff5f5;
}

/* Checkbox & Radio */
.bc-checkbox,
.bc-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 44px;
}

    .bc-checkbox input,
    .bc-radio input {
        width: 22px;
        height: 22px;
        accent-color: var(--bc-gold);
        cursor: pointer;
        flex-shrink: 0;
    }

/* Switch */
.bc-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-height: 44px;
}

    .bc-switch input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.bc-switch-track {
    width: 52px;
    height: 30px;
    background: #cfd8dc;
    border-radius: 15px;
    transition: all 0.25s;
    position: relative;
    flex-shrink: 0;
}

    .bc-switch-track::after {
        content: '';
        position: absolute;
        top: 3px;
        right: 3px;
        width: 24px;
        height: 24px;
        background: #fff;
        border-radius: 50%;
        transition: all 0.25s;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

.bc-switch input:checked + .bc-switch-track {
    background: var(--bc-gold);
}

    .bc-switch input:checked + .bc-switch-track::after {
        transform: translateX(-22px);
    }

/* ============================================================
   5) Cards
   ============================================================ */
.bc-card {
    background: #fff;
    border-radius: var(--bc-radius-lg);
    box-shadow: var(--bc-shadow-sm);
    padding: 20px 22px;
    margin-bottom: 16px;
    border: 1px solid rgba(26, 58, 82, 0.04);
}

.bc-card-flush {
    padding: 0;
    overflow: hidden;
}

.bc-card-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--bc-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .bc-card-header h3 {
        margin: 0;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .bc-card-header h3 i {
            color: var(--bc-gold-dark);
        }

.bc-card-body {
    padding: 20px 22px;
}

.bc-card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--bc-border-light);
    background: #fafbfc;
}

/* ============================================================
   6) Stat Cards (آمار)
   ============================================================ */
.bc-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.bc-stat {
    background: #fff;
    border-radius: var(--bc-radius-md);
    padding: 16px 18px;
    box-shadow: var(--bc-shadow-sm);
    border-right: 4px solid var(--bc-navy);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bc-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: rgba(26, 58, 82, 0.08);
    color: var(--bc-navy);
}

.bc-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bc-navy);
    line-height: 1.1;
    font-family: 'Segoe UI', Tahoma;
}

.bc-stat-label {
    font-size: 0.75rem;
    color: var(--bc-text-muted);
    font-weight: 600;
    margin-top: 3px;
}

.bc-stat.gold {
    border-right-color: var(--bc-gold);
}

    .bc-stat.gold .bc-stat-icon {
        background: rgba(201, 169, 97, 0.15);
        color: var(--bc-gold-dark);
    }

.bc-stat.success {
    border-right-color: var(--bc-success);
}

    .bc-stat.success .bc-stat-icon {
        background: rgba(40, 167, 69, 0.1);
        color: var(--bc-success);
    }

.bc-stat.danger {
    border-right-color: var(--bc-danger);
}

    .bc-stat.danger .bc-stat-icon {
        background: rgba(220, 53, 69, 0.1);
        color: var(--bc-danger);
    }

.bc-stat.warning {
    border-right-color: var(--bc-warning);
}

    .bc-stat.warning .bc-stat-icon {
        background: rgba(255, 193, 7, 0.15);
        color: #856404;
    }

.bc-stat.info {
    border-right-color: var(--bc-info);
}

    .bc-stat.info .bc-stat-icon {
        background: rgba(23, 162, 184, 0.1);
        color: var(--bc-info);
    }

@media (min-width: 640px) {
    .bc-stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   7) Badges / Chips
   ============================================================ */
.bc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.5;
}

.bc-badge-primary {
    background: #e3eaf0;
    color: var(--bc-navy);
}

.bc-badge-gold {
    background: rgba(201, 169, 97, 0.18);
    color: var(--bc-gold-dark);
}

.bc-badge-success {
    background: #d4edda;
    color: #155724;
}

.bc-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.bc-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.bc-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.bc-badge-muted {
    background: #e9ecef;
    color: #495057;
}

.bc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bc-cream);
    color: var(--bc-navy);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--bc-border);
}

/* ============================================================
   8) Avatar
   ============================================================ */
.bc-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bc-gold) 0%, var(--bc-gold-dark) 100%);
    color: var(--bc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    overflow: hidden;
    flex-shrink: 0;
}

    .bc-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.bc-avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

.bc-avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
}

.bc-avatar-xl {
    width: 100px;
    height: 100px;
    font-size: 2.4rem;
}

/* ============================================================
   9) Bottom Sheet
   ============================================================ */
.bc-sheet-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

    .bc-sheet-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

.bc-sheet-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: #fff;
    border-radius: var(--bc-radius-xl) var(--bc-radius-xl) 0 0;
    z-index: 1201;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--safe-bottom);
    padding-right: var(--safe-right);
    padding-left: var(--safe-left);
}

    .bc-sheet-panel.open {
        transform: translateY(0);
    }

.bc-sheet-handle {
    width: 42px;
    height: 5px;
    background: #d0d7df;
    border-radius: 3px;
    margin: 10px auto 4px;
    flex-shrink: 0;
}

.bc-sheet-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--bc-navy);
    padding: 8px 22px 14px;
    text-align: center;
    border-bottom: 1px solid var(--bc-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .bc-sheet-title .bc-sheet-close {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: var(--bc-cream);
        color: var(--bc-navy);
        border: none;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.bc-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
    -webkit-overflow-scrolling: touch;
}

.bc-sheet-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--bc-border-light);
    display: flex;
    gap: 10px;
}

    .bc-sheet-footer .bc-btn {
        flex: 1;
    }

/* ============================================================
   10) Toast / Snackbar
   ============================================================ */
.bc-toast-wrap {
    position: fixed;
    bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 16px);
    right: 12px;
    left: 12px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 520px;
    margin: 0 auto;
}

.bc-toast {
    background: var(--bc-navy);
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--bc-radius-md);
    font-size: 0.87rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--bc-shadow-lg);
    animation: bcToastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

    .bc-toast.removing {
        animation: bcToastOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .bc-toast i {
        font-size: 20px;
        flex-shrink: 0;
    }

    .bc-toast.success {
        background: linear-gradient(135deg, var(--bc-success), #1e7e34);
    }

    .bc-toast.danger {
        background: linear-gradient(135deg, var(--bc-danger), #a71e2a);
    }

    .bc-toast.warning {
        background: linear-gradient(135deg, var(--bc-warning), #e0a800);
        color: #212529;
    }

    .bc-toast.info {
        background: linear-gradient(135deg, var(--bc-navy), var(--bc-navy-light));
    }

@keyframes bcToastIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bcToastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* ============================================================
   11) Ripple Effect
   ============================================================ */
.bc-ripple {
    position: relative;
    overflow: hidden;
}

    .bc-ripple .bc-ripple-wave {
        position: absolute;
        border-radius: 50%;
        background: rgba(201, 169, 97, 0.4);
        transform: scale(0);
        animation: bcRippleAnim 0.6s linear;
        pointer-events: none;
    }

@keyframes bcRippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================================
   12) Skeleton Loader
   ============================================================ */
.bc-skeleton {
    background: linear-gradient(90deg, #f0f2f5 0%, #e3e8ee 50%, #f0f2f5 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: bcSkeleton 1.5s ease-in-out infinite;
}

@keyframes bcSkeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.bc-skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.bc-skeleton-title {
    height: 22px;
    width: 60%;
    margin-bottom: 12px;
}

.bc-skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--bc-radius-md);
}

/* ============================================================
   13) Empty State
   ============================================================ */
.bc-empty {
    text-align: center;
    padding: 60px 24px;
}

.bc-empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bc-cream);
    color: var(--bc-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 44px;
}

.bc-empty h4 {
    color: var(--bc-navy);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.bc-empty p {
    color: var(--bc-text-muted);
    font-size: 0.87rem;
    margin-bottom: 20px;
}

/* ============================================================
   14) Loading Overlay
   ============================================================ */
.bc-loading-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(245, 241, 232, 0.92);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

    .bc-loading-overlay.show {
        display: flex;
    }

.bc-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(26, 58, 82, 0.15);
    border-top-color: var(--bc-gold);
    border-radius: 50%;
    animation: bcSpin 0.8s linear infinite;
}

@keyframes bcSpin {
    to {
        transform: rotate(360deg);
    }
}

.bc-loading-text {
    color: var(--bc-navy);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ============================================================
   15) List Group
   ============================================================ */
.bc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bc-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bc-border-light);
    text-decoration: none;
    color: inherit;
    min-height: 60px;
    transition: background 0.15s;
}

    .bc-list-item:last-child {
        border-bottom: none;
    }

    .bc-list-item:active {
        background: var(--bc-cream);
    }

.bc-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(201, 169, 97, 0.15);
    color: var(--bc-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.bc-list-content {
    flex: 1;
    min-width: 0;
}

.bc-list-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bc-navy);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bc-list-subtitle {
    font-size: 0.78rem;
    color: var(--bc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bc-list-arrow {
    color: var(--bc-text-light);
    font-size: 18px;
    flex-shrink: 0;
}

/* ============================================================
   16) Table موبایل-پسند (تبدیل به کارت در موبایل)
   ============================================================ */
.bc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--bc-radius-md);
    background: #fff;
    box-shadow: var(--bc-shadow-sm);
}

.bc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 600px;
}

    .bc-table thead th {
        background: var(--bc-navy);
        color: #fff;
        font-weight: 700;
        padding: 14px 12px;
        text-align: right;
        white-space: nowrap;
        font-size: 0.8rem;
    }

        .bc-table thead th:first-child {
            border-radius: 0 var(--bc-radius-md) 0 0;
        }

        .bc-table thead th:last-child {
            border-radius: var(--bc-radius-md) 0 0 0;
        }

    .bc-table tbody td {
        padding: 12px;
        border-bottom: 1px solid var(--bc-border-light);
        color: var(--bc-text);
        vertical-align: middle;
    }

    .bc-table tbody tr:last-child td {
        border-bottom: none;
    }

    .bc-table tbody tr:active {
        background: var(--bc-cream);
    }

    .bc-table .col-actions {
        text-align: left;
        white-space: nowrap;
    }

        .bc-table .col-actions a {
            display: inline-flex;
            width: 34px;
            height: 34px;
            border-radius: 10px;
            align-items: center;
            justify-content: center;
            color: var(--bc-navy);
            background: var(--bc-cream);
            margin: 0 2px;
            font-size: 15px;
        }

            .bc-table .col-actions a:active {
                transform: scale(0.92);
            }

            .bc-table .col-actions a.danger {
                background: var(--bc-danger-bg);
                color: var(--bc-danger);
            }

            .bc-table .col-actions a.success {
                background: var(--bc-success-bg);
                color: var(--bc-success);
            }

            .bc-table .col-actions a.gold {
                background: rgba(201, 169, 97, 0.18);
                color: var(--bc-gold-dark);
            }

/* در موبایل: کارت */
@media (max-width: 640px) {
    .bc-table,
    .bc-table thead,
    .bc-table tbody,
    .bc-table tr,
    .bc-table td {
        display: block;
        width: 100%;
    }

    .bc-table {
        min-width: 0;
    }

        .bc-table thead {
            display: none;
        }

        .bc-table tbody tr {
            background: #fff;
            border-radius: var(--bc-radius-md);
            box-shadow: var(--bc-shadow-sm);
            margin-bottom: 14px;
            padding: 14px 16px;
            border: 1px solid rgba(26, 58, 82, 0.04);
        }

        .bc-table tbody td {
            padding: 8px 0;
            border-bottom: 1px dashed var(--bc-border-light);
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            text-align: left;
        }

            .bc-table tbody td:last-child {
                border-bottom: none;
            }

            .bc-table tbody td::before {
                content: attr(data-label);
                font-weight: 700;
                color: var(--bc-text-muted);
                font-size: 0.78rem;
                flex-shrink: 0;
            }

            .bc-table tbody td:not([data-label])::before {
                content: '';
            }

        .bc-table .col-actions {
            justify-content: flex-end;
            padding-top: 12px;
            border-top: 1px solid var(--bc-border-light);
            margin-top: 6px;
        }

            .bc-table .col-actions::before {
                content: '';
            }
}

/* ============================================================
   17) Pull to Refresh
   ============================================================ */
.bc-ptr-indicator {
    position: fixed;
    top: calc(var(--appbar-h) + var(--safe-top));
    right: 50%;
    transform: translateX(50%) translateY(-70px);
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--bc-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bc-navy);
    z-index: 999;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0;
    pointer-events: none;
}

    .bc-ptr-indicator.visible {
        transform: translateX(50%) translateY(10px);
        opacity: 1;
    }

    .bc-ptr-indicator.refreshing i {
        animation: bcSpin 0.8s linear infinite;
    }

/* ============================================================
   18) Utility Classes
   ============================================================ */
.bc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bc-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bc-col {
    flex: 1 1 220px;
    min-width: 0;
}

.bc-flex-1 {
    flex: 1;
}

.bc-mt-0 {
    margin-top: 0 !important;
}

.bc-mt-1 {
    margin-top: 4px !important;
}

.bc-mt-2 {
    margin-top: 8px !important;
}

.bc-mt-3 {
    margin-top: 16px !important;
}

.bc-mt-4 {
    margin-top: 24px !important;
}

.bc-mb-0 {
    margin-bottom: 0 !important;
}

.bc-mb-1 {
    margin-bottom: 4px !important;
}

.bc-mb-2 {
    margin-bottom: 8px !important;
}

.bc-mb-3 {
    margin-bottom: 16px !important;
}

.bc-mb-4 {
    margin-bottom: 24px !important;
}

.bc-p-0 {
    padding: 0 !important;
}

.bc-p-1 {
    padding: 4px !important;
}

.bc-p-2 {
    padding: 8px !important;
}

.bc-p-3 {
    padding: 16px !important;
}

.bc-p-4 {
    padding: 24px !important;
}

.bc-gap-1 {
    gap: 4px !important;
}

.bc-gap-2 {
    gap: 8px !important;
}

.bc-gap-3 {
    gap: 16px !important;
}

.bc-rounded {
    border-radius: var(--bc-radius-md) !important;
}

.bc-rounded-lg {
    border-radius: var(--bc-radius-lg) !important;
}

.bc-shadow-sm {
    box-shadow: var(--bc-shadow-sm) !important;
}

.bc-shadow-md {
    box-shadow: var(--bc-shadow-md) !important;
}

.bc-shadow-lg {
    box-shadow: var(--bc-shadow-lg) !important;
}

.bc-d-none {
    display: none !important;
}

.bc-d-block {
    display: block !important;
}

.bc-d-flex {
    display: flex !important;
}

.bc-w-100 {
    width: 100% !important;
}

.bc-h-100 {
    height: 100% !important;
}

.bc-overflow-hidden {
    overflow: hidden !important;
}

.bc-overflow-auto {
    overflow: auto !important;
}

.bc-text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* موبایل: مخفی */
@media (max-width: 767px) {
    .bc-hide-mobile {
        display: none !important;
    }
}

/* دسکتاپ: مخفی */
@media (min-width: 768px) {
    .bc-hide-desktop {
        display: none !important;
    }
}

/* ============================================================
   19) Page Header (مشترک پنل)
   ============================================================ */
.bc-page-header {
    background: linear-gradient(135deg, var(--bc-navy) 0%, var(--bc-navy-light) 100%);
    color: #fff;
    padding: 20px 22px;
    border-radius: var(--bc-radius-lg);
    margin-bottom: 18px;
    box-shadow: 0 6px 20px rgba(26, 58, 82, 0.15);
}

    .bc-page-header h1 {
        font-size: 1.2rem;
        font-weight: 800;
        margin: 0 0 4px 0;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .bc-page-header h1 i {
            color: var(--bc-gold);
            font-size: 1.4rem;
        }

    .bc-page-header p {
        font-size: 0.82rem;
        margin: 0;
        color: var(--bc-gold-light);
    }

/* ============================================================
   20) Hero Section (صفحه اصلی عمومی)
   ============================================================ */
.bc-hero {
    background: linear-gradient(135deg, var(--bc-navy) 0%, var(--bc-navy-light) 100%);
    color: #fff;
    border-radius: var(--bc-radius-xl);
    padding: 36px 24px;
    text-align: center;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 58, 82, 0.2);
}

    .bc-hero::before {
        content: '';
        position: absolute;
        top: -40%;
        right: -10%;
        width: 260px;
        height: 260px;
        background: rgba(201, 169, 97, 0.08);
        border-radius: 50%;
    }

    .bc-hero::after {
        content: '';
        position: absolute;
        bottom: -40%;
        left: -10%;
        width: 220px;
        height: 220px;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 50%;
    }

    .bc-hero h1 {
        font-size: 1.5rem;
        color: #fff;
        margin-bottom: 10px;
        position: relative;
        z-index: 1;
        line-height: 1.5;
    }

    .bc-hero p {
        font-size: 0.92rem;
        color: var(--bc-gold-light);
        margin: 0 0 20px;
        position: relative;
        z-index: 1;
        line-height: 1.9;
    }

    .bc-hero .bc-btn {
        position: relative;
        z-index: 1;
    }

/* ============================================================
   21) Alerts
   ============================================================ */
.bc-alert {
    border-radius: var(--bc-radius-md);
    padding: 14px 18px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.8;
}

    .bc-alert i {
        font-size: 20px;
        flex-shrink: 0;
        margin-top: 2px;
    }

.bc-alert-success {
    background: var(--bc-success-bg);
    color: #1e7e34;
    border-right: 4px solid var(--bc-success);
}

.bc-alert-danger {
    background: var(--bc-danger-bg);
    color: #a71e2a;
    border-right: 4px solid var(--bc-danger);
}

.bc-alert-warning {
    background: var(--bc-warning-bg);
    color: #856404;
    border-right: 4px solid var(--bc-warning);
}

.bc-alert-info {
    background: var(--bc-info-bg);
    color: var(--bc-navy);
    border-right: 4px solid var(--bc-navy);
}

/* ============================================================
   22) Print
   ============================================================ */
@media print {
    .bc-appbar,
    .bc-bottomnav,
    .bc-drawer,
    .bc-drawer-overlay,
    .panel-bottomnav,
    .panel-drawer,
    .panel-drawer-overlay,
    .panel-fab,
    .bc-toast-wrap,
    .panel-toast-container {
        display: none !important;
    }

    body {
        padding: 0 !important;
        background: #fff !important;
    }
}
