/* ========================================
   تم شیشه‌ای بلوری (Glassmorphism) - امتیاز ۳۳
   رنگ اصلی: #7B68EE (بنفش ملایم)
   رنگ دکمه‌ها: #B026FF (بنفش پررنگ)
   پس‌زمینه سفید با افکت شیشه
   انیمیشن برق زدن دکمه‌ها
   لودینگ حرفه‌ای
   نوار پایین شیشه‌ای با رنگ ثابت #7B68EE (هماهنگ با هدر)
   متن دکمه‌ها مشکی و لبه نوار نیز مشکی
   حذف آیکون‌ها از نوار پایین (فقط متن)
   ======================================== */

/* ========== فونت‌ها ========== */
@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DigitalCustom';
    src: url('../fonts/font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* فونت Vazir برای نوار پایین و آیتم‌ها */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Sahel-FD.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ========== تنظیمات پایه ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'IRANSansWeb', 'Vazir', 'Tahoma', 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #1a1a2e;
    direction: rtl;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 85px;
}

/* ========== اعمال فونت روی همه دکمه‌ها ========== */
button,
.btn,
.cvam-btn,
.btn-login,
.btn-register,
.btn-verify,
.btn-approve,
.btn-cancel,
.request-btn,
.cvam-action-btn,
.pwa-install-button,
.navbar-item,
input[type="submit"],
.wp-block-button__link {
    font-family: 'IRANSansWeb', 'Vazir', 'Tahoma', sans-serif !important;
}

/* ========== اسکرول بار سفارشی ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #B026FF, #7B68EE);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7B68EE;
}

/* ========== حالت شیشه‌ای بلوری (Glassmorphism) ========== */
.glass-card,
.cvam-auth-card,
.cvam-profile-card,
.cvam-offer-card,
.cvam-stat-card,
.bank-price-card,
.widget-card,
.request-card,
.offer-card,
.cvam-notification-dropdown,
.cvam-dashboard-widget,
.price-preview,
.info-card,
.status-box {
    background: rgba(230, 230, 250, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 28px;
    border: 1px solid rgba(123, 104, 238, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.glass-card:hover,
.offer-card:hover,
.request-card:hover,
.bank-price-card:hover,
.widget-card:hover {
    border-color: rgba(176, 38, 255, 0.5);
    box-shadow: 0 12px 40px rgba(176, 38, 255, 0.12);
    transform: translateY(-3px);
}

/* انعکاس نوری هنگام هاور (شیشه‌ای) */
.glass-card::before,
.bank-price-card::before,
.widget-card::before,
.offer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(176, 38, 255, 0.08) 0%, transparent 70%);
    transform: rotate(25deg);
    transition: 0.5s;
    opacity: 0;
    pointer-events: none;
}

.glass-card:hover::before,
.bank-price-card:hover::before,
.widget-card:hover::before {
    opacity: 0.6;
    transform: rotate(25deg) translate(10%, 10%);
}

/* ========== دکمه‌ها با حالت شیشه‌ای و انیمیشن برق ========== */
.cvam-btn,
.btn-login,
.btn-register,
.btn-verify,
.request-btn,
button[type="submit"],
.wp-block-button__link,
.cvam-action-btn {
    background: linear-gradient(135deg, #B026FF, #7B68EE);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(176, 38, 255, 0.3);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

/* انیمیشن برق زدن شیشه‌ای */
.cvam-btn::before,
.btn-login::before,
.btn-register::before,
.btn-verify::before,
.request-btn::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 40%,
        rgba(255,255,255,0.7) 50%,
        rgba(255,255,255,0.3) 60%,
        rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    animation: glassShine 3.5s infinite;
    pointer-events: none;
}

@keyframes glassShine {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    20%, 100% {
        transform: translateX(100%) rotate(25deg);
    }
}

.cvam-btn:hover,
.btn-login:hover,
.btn-register:hover,
.btn-verify:hover,
.request-btn:hover,
button[type="submit"]:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(176, 38, 255, 0.5);
}

.cvam-btn:active,
.btn-login:active {
    transform: scale(0.98);
}

/* دکمه تایید سبز */
.btn-approve {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-approve::before {
    background: linear-gradient(115deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 40%,
        rgba(255,255,255,0.7) 50%,
        rgba(255,255,255,0.3) 60%,
        rgba(255,255,255,0) 100%);
}

/* دکمه لغو */
.btn-cancel {
    background: transparent;
    border: 1.5px solid #dc3545;
    color: #dc3545;
    box-shadow: none;
}

.btn-cancel:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.02);
}

.btn-cancel::before {
    display: none;
}

/* دکمه غیرفعال */
.cvam-btn:disabled,
.btn-login:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

/* ========== لودینگ پیشرفته شیشه‌ای ========== */
.cvam-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cvam-loader .spinner {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(176, 38, 255, 0.15);
    border-top: 3px solid #B026FF;
    border-right: 3px solid #7B68EE;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.3);
}

.cvam-loader .spinner-text {
    margin-top: 20px;
    font-family: 'IRANSansWeb', monospace;
    font-size: 0.9rem;
    color: #7B68EE;
    letter-spacing: 1px;
    animation: pulseText 1.5s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* لودینگ بین صفحات */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loader .spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(123, 104, 238, 0.15);
    border-top: 3px solid #7B68EE;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* لودینگ روی دکمه */
.btn-loading {
    opacity: 0.7;
    cursor: wait;
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    right: 15px;
    margin-top: -9px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ========== نوار پایین شیشه‌ای با رنگ #7B68EE (مشابه هدر) ========== */
/* متن دکمه‌ها مشکی و لبه نوار نیز مشکی */

/* متغیرهای CSS برای نوار پایین */
:root {
    --navbar-primary: #1a2a4a;
    --navbar-bg-color: rgba(230, 230, 250, 0.85); /* #7B68EE با شفافیت ۰.۸۵ - مشابه هدر */
    --navbar-text: #000000;  /* متن مشکی */
    --navbar-glass-blur: 20px;
    --navbar-border-color: rgba(0, 0, 0, 0.25); /* لبه مشکی مایل به شفاف */
    --navbar-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    
    /* مقادیر استاندارد (دسکتاپ) */
    --navbar-height: 80px;
    --navbar-padding: 12px 30px;
    --navbar-border-radius: 55px;
    --navbar-item-padding: 8px 18px;
    --navbar-item-border-radius: 16px;  /* مربعی آیفونی */
    --navbar-font-size: 13px;
    --navbar-item-gap: 30px;
}

/* نوار پایین اصلی - اکنون با رنگ ثابت #7B68EE (همانند هدر که رنگ ثابت #E6E6FA دارد) */
.bottom-navbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navbar-bg-color);  /* رنگ ثابت بنفش ملایم با شیشه */
    backdrop-filter: blur(var(--navbar-glass-blur));
    -webkit-backdrop-filter: blur(var(--navbar-glass-blur));
    border: 1px solid var(--navbar-border-color);
    box-shadow: 
        var(--navbar-shadow),
        inset 0 0 25px rgba(255, 255, 255, 0.15),
        0 0 30px rgba(123, 104, 238, 0.3);
    padding: var(--navbar-padding);
    z-index: 1000;
    border-radius: var(--navbar-border-radius);
    width: auto;
    min-width: 580px;
    max-width: 90%;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--navbar-item-gap);
    font-family: 'Vazir', 'IRANSansWeb', Tahoma, sans-serif;
    direction: rtl;
    transition: all 0.3s ease;
    animation: fadeInUpNav 0.6s ease-out, glassPulse 5s infinite ease-in-out;
    overflow: hidden;
}

/* انیمیشن ورود نوار */
@keyframes fadeInUpNav {
    from {
        opacity: 0;
        transform: translateY(30px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

/* افکت نور متحرک در پس‌زمینه نوار (هماهنگ با هدر) */
.bottom-navbar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(176, 38, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
    animation: shimmerFlowNav 12s infinite linear;
    pointer-events: none;
}

@keyframes shimmerFlowNav {
    0% { transform: translateX(-25%) translateY(-25%) rotate(0deg); }
    100% { transform: translateX(-25%) translateY(-25%) rotate(360deg); }
}

/* تپش ملایم سایه و درخشش نوار مثل هدر */
@keyframes glassPulse {
    0%, 100% {
        box-shadow: 
            var(--navbar-shadow),
            inset 0 0 25px rgba(255, 255, 255, 0.12),
            0 0 30px rgba(123, 104, 238, 0.3);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.2),
            inset 0 0 30px rgba(255, 255, 255, 0.2),
            0 0 40px rgba(176, 38, 255, 0.4);
    }
}

/* ========== آیتم‌های نوار پایین (مربعی آیفونی - فقط متن، بدون آیکون) ========== */
.navbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.2); /* لبه مشکی روشن */
    border-radius: var(--navbar-item-border-radius);
    padding: var(--navbar-item-padding);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    min-width: 70px;
}

/* حذف هرگونه آیکون (در صورت وجود در HTML) */
.navbar-item img,
.navbar-item svg,
.navbar-item i,
.navbar-item .icon {
    display: none;
}

/* افکت نور لغزنده روی آیتم هنگام هاور (مثل برق زدن دکمه‌ها) */
.navbar-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 40%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0.2) 60%,
        rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    animation: navbarShine 4s infinite;
    pointer-events: none;
}

@keyframes navbarShine {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    20%, 100% {
        transform: translateX(100%) rotate(25deg);
    }
}

/* رنگ متن دکمه‌ها مشکی */
.navbar-item span {
    font-size: var(--navbar-font-size);
    color: #000000;  /* مشکی ثابت */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-family: 'Vazir', 'IRANSansWeb', Tahoma, sans-serif;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

/* حالت فعال یا هاور آیتم */
.navbar-item.active,
.navbar-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(176, 38, 255, 0.2);
}

.navbar-item.active span,
.navbar-item:hover span {
    color: #000000;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

/* ========== ریسپانسیو برای تبلت ========== */
@media (max-width: 1024px) {
    :root {
        --navbar-height: 75px;
        --navbar-padding: 10px 25px;
        --navbar-border-radius: 50px;
        --navbar-item-padding: 6px 15px;
        --navbar-font-size: 12px;
        --navbar-item-gap: 20px;
        --navbar-item-border-radius: 14px;
    }
    .bottom-navbar {
        min-width: 520px;
    }
}

/* ========== ریسپانسیو برای موبایل ========== */
@media (max-width: 768px) {
    :root {
        --navbar-height: auto;
        --navbar-padding: 12px 20px;
        --navbar-border-radius: 45px;
        --navbar-item-padding: 6px 12px;
        --navbar-font-size: 11px;
        --navbar-item-gap: 12px;
        --navbar-item-border-radius: 12px;
    }
    .bottom-navbar {
        position: fixed;
        bottom: 15px;
        left: 15px;
        right: 15px;
        transform: none;
        width: auto;
        min-width: auto;
        max-width: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 12px 15px;
        border-radius: 45px;
    }
    .navbar-item {
        padding: 6px 12px;
        min-width: 60px;
    }
    .navbar-item span {
        font-size: 10px;
        white-space: nowrap;
    }
}

/* ========== موبایل‌های بسیار کوچک ========== */
@media (max-width: 550px) {
    :root {
        --navbar-item-padding: 5px 8px;
        --navbar-font-size: 9px;
        --navbar-item-gap: 8px;
        --navbar-item-border-radius: 10px;
    }
    .bottom-navbar {
        bottom: 10px;
        padding: 10px 12px;
        gap: 8px;
        border-radius: 40px;
    }
    .navbar-item {
        padding: 5px 8px;
        min-width: 55px;
    }
    .navbar-item span {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .navbar-item {
        padding: 4px 6px;
        min-width: 50px;
    }
    .navbar-item span {
        font-size: 8px;
    }
}

/* ========== تیکر تبلیغاتی ========== */
.cvam-ticker {
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(123, 104, 238, 0.3);
    border-bottom: 1px solid rgba(123, 104, 238, 0.3);
    padding: 10px 0;
    overflow: hidden;
    width: 100%;
    direction: ltr;
    margin-bottom: 30px;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: tickerScrollLeftToRight 25s linear infinite;
    font-family: 'DigitalCustom', monospace;
    font-size: 0.9rem;
    color: #7B68EE;
}

.ticker-content span {
    margin: 0 40px;
    display: inline-block;
}

@keyframes tickerScrollLeftToRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}

@media (max-width: 768px) {
    .ticker-content {
        font-size: 0.75rem;
        animation-duration: 20s;
    }
    .ticker-content span {
        margin: 0 20px;
    }
}

/* ========== فرم‌ها و اینپوت‌ها ========== */
.cvam-input-group {
    margin-bottom: 20px;
}

.cvam-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #7B68EE;
    font-size: 0.85rem;
}

.cvam-input,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(123, 104, 238, 0.3);
    border-radius: 16px;
    color: #1a1a2e;
    font-family: 'IRANSansWeb', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cvam-input:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #B026FF;
    box-shadow: 0 0 0 3px rgba(176, 38, 255, 0.15);
}

.cvam-input::placeholder,
input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* فیلد غیرفعال */
.field-disabled,
input:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: #888;
    cursor: not-allowed;
}

/* ========== کانتینر استاندارد (ریسپانسیو) ========== */
.container,
.cvam-dashboard-container,
.my-requests-container,
.my-offers-container,
.profile-container,
.verification-container,
.form-container,
.login-wrapper,
.register-wrapper {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .container,
    .cvam-dashboard-container,
    .my-requests-container,
    .my-offers-container,
    .profile-container,
    .verification-container,
    .form-container,
    .login-wrapper,
    .register-wrapper {
        width: 98%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container,
    .cvam-dashboard-container,
    .my-requests-container,
    .my-offers-container,
    .profile-container,
    .verification-container,
    .form-container,
    .login-wrapper,
    .register-wrapper {
        width: 100%;
        padding: 10px;
    }
}

/* ========== اعداد دیجیتال ========== */
.digital-number,
.price-value,
.amount-value,
.cvam-stat-number,
.cvam-offer-price,
.total-price,
.per-million-price,
.stat-number,
.cvam-price-value {
    font-family: 'DigitalCustom', monospace !important;
    direction: ltr;
    display: inline-block;
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(135deg, #B026FF, #7B68EE);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== عنوان‌ها ========== */
h1, h2, h3, h4,
.page-title,
.widget-header h3,
.bank-name,
.cvam-profile-card h2 {
    color: #7B68EE;
}

/* ========== وضعیت‌ها ========== */
.status-badge,
.verification-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-waiting_buyer,
.status-waiting_seller {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.status-seller_approved {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    border: 1px solid #2196f3;
}

.status-completed {
    background: rgba(76, 175, 80, 0.15);
    color: #28a745;
    border: 1px solid #28a745;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.15);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.status-active {
    background: rgba(76, 175, 80, 0.15);
    color: #28a745;
    border: 1px solid #28a745;
}

.status-pending {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.status-sold {
    background: rgba(244, 67, 54, 0.15);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* وضعیت احراز هویت */
.verif-approved {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.verif-pending {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.verif-rejected {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.verif-none {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

/* ========== آمارها در داشبورد ========== */
.stats-grid,
.cvam-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cvam-stat-card {
    text-align: center;
    padding: 20px 15px;
}

.cvam-stat-number {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cvam-stat-label {
    color: #666;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .stats-grid,
    .cvam-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .stats-grid,
    .cvam-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== پیش‌نمایش قیمت ========== */
.price-preview {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
}

.price-preview .label {
    color: #7B68EE;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.price-preview .value {
    font-family: 'DigitalCustom', monospace;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #B026FF, #7B68EE);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== وضعیت خالی ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    border: 1px solid rgba(123, 104, 238, 0.25);
}

.empty-state-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ========== پیام توست ========== */
.toast-msg {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid #7B68EE;
    color: #7B68EE;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 10000;
    display: none;
    text-align: center;
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
    max-width: 90%;
    word-break: break-word;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.toast-msg.success {
    border-color: #28a745;
    color: #28a745;
}

.toast-msg.error {
    border-color: #dc3545;
    color: #dc3545;
}

@media (max-width: 550px) {
    .toast-msg {
        top: 20px;
        width: 90%;
        font-size: 0.8rem;
        padding: 10px 16px;
    }
}

/* ========== دکمه نصب PWA ========== */
.pwa-install-button {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #B026FF, #7B68EE);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    z-index: 10001;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(176, 38, 255, 0.3);
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
    text-align: center;
    white-space: nowrap;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.9; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.02); }
}

@media (max-width: 550px) {
    .pwa-install-button {
        white-space: normal;
        width: 90%;
        font-size: 0.8rem;
        bottom: 90px;
        padding: 10px 20px;
    }
}

/* ========== جدول‌ها ========== */
.cvam-table-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow-x: auto;
    padding: 20px;
    margin-top: 20px;
}

.cvam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cvam-table th {
    text-align: right;
    padding: 12px 10px;
    background: rgba(123, 104, 238, 0.08);
    border-bottom: 2px solid #7B68EE;
    font-weight: 600;
    color: #7B68EE;
}

.cvam-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: middle;
    color: #1a1a2e;
}

.cvam-table tr:hover {
    background: rgba(176, 38, 255, 0.05);
}

@media (max-width: 768px) {
    .cvam-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ========== ویجت اعلان‌ها ========== */
.cvam-notification-widget {
    position: fixed;
    top: 70px;
    left: 20px;
    z-index: 9999;
    direction: rtl;
}

.cvam-notification-bell {
    position: relative;
    display: inline-block;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(123, 104, 238, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cvam-notification-bell .bell-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.cvam-notification-bell:hover {
    border-color: #B026FF;
    transform: scale(1.05);
    background: rgba(176, 38, 255, 0.1);
}

.cvam-notification-bell .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #B026FF, #7B68EE);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvam-notification-dropdown {
    position: absolute;
    top: 55px;
    left: 0;
    right: auto;
    width: 380px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(123, 104, 238, 0.3);
    z-index: 1000;
    display: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.cvam-notification-dropdown.active {
    display: block;
}

.dropdown-header {
    padding: 14px 18px;
    background: rgba(123, 104, 238, 0.05);
    border-bottom: 1px solid #7B68EE;
    font-weight: bold;
    color: #7B68EE;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header .mark-all-read {
    font-size: 0.7rem;
    cursor: pointer;
    color: #888;
    transition: 0.2s;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.03);
}

.dropdown-header .mark-all-read:hover {
    color: #B026FF;
    background: rgba(176, 38, 255, 0.1);
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: rgba(176, 38, 255, 0.05);
}

.notification-item.unread {
    background: rgba(123, 104, 238, 0.05);
    border-right: 3px solid #7B68EE;
}

.notification-item .title {
    font-weight: bold;
    color: #B026FF;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.notification-item .message {
    font-size: 0.75rem;
    color: #1a1a2e;
    line-height: 1.45;
    margin-bottom: 6px;
}

.notification-item .time {
    font-size: 0.65rem;
    color: #888;
    display: block;
    margin-top: 6px;
}

/* ========== دکمه‌های ریسپانسیو ========== */
@media (max-width: 550px) {
    .offer-actions,
    .request-actions {
        flex-direction: column;
        gap: 8px;
    }
    .offer-actions button,
    .request-actions button,
    .btn-cancel,
    .btn-approve,
    .cvam-btn {
        width: 100%;
    }
    .row-2col {
        flex-direction: column;
        gap: 0;
    }
    .cvam-notification-widget {
        top: 10px;
        left: 10px;
    }
    .cvam-notification-bell {
        width: 40px;
        height: 40px;
    }
    .cvam-notification-dropdown {
        width: 300px;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* ========== ویجت آگهی‌ها ========== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.offers-table {
    width: 100%;
    border-collapse: collapse;
}

.offers-table th,
.offers-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.offers-table th {
    color: #7B68EE;
    font-weight: bold;
    background: rgba(123, 104, 238, 0.05);
}

@media (max-width: 768px) {
    .offers-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ========== بنک‌ها و قیمت‌ها ========== */
.banks-prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.bank-price-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
}

.bank-name {
    font-weight: bold;
    color: #7B68EE;
    font-size: 1rem;
}

.bank-prices {
    display: flex;
    gap: 20px;
}

.price-label {
    font-size: 0.65rem;
    color: #888;
}

/* ========== اطلاعات کاربری ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.cvam-info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.cvam-info-label {
    width: 140px;
    font-weight: 600;
    color: #7B68EE;
    font-size: 0.85rem;
}

.cvam-info-value {
    flex: 1;
    color: #1a1a2e;
    font-size: 0.85rem;
    word-break: break-word;
}

@media (max-width: 550px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .cvam-info-label {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* ========== استپ ایندیکیتور ========== */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(123, 104, 238, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
}

.step.active {
    background: #B026FF;
    color: white;
    border-color: #B026FF;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.4);
}

.step.completed {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* ========== ریسپانسیو نهایی ========== */
@media (max-width: 480px) {
    .step {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .step-indicator {
        gap: 10px;
    }
    .cvam-stat-number {
        font-size: 1.5rem;
    }
    .digital-number {
        font-size: 1rem;
    }
}