.lqd-navbar-link.colored-menu-item:hover {
    color: #fff;
}

.bg-custom-orange {
    background-color: #ff9800;
}

.bg-custom-orange:hover {
    background-color: #d88200 !important;
}

.bg-custom-blue {
    background-color: #9522dd;
}

.bg-custom-blue:hover {
    background-color: rgb(113, 22, 170) !important;
}

.bg-custom-purple {
    background-color: #873ab7;
}

.bg-custom-purple:hover {
    background-color: #792da8 !important;
}

.bg-custom-red {
    background-color: #f44336;
}

.bg-custom-red:hover {
    background-color: #d32f2f !important;
}

.min-w-200 {
    min-width: 200px;
}

.max-w-200 {
    max-width: 200px;
}

.min-h-200 {
    min-height: 200px;
}

.max-h-200 {
    max-height: 200px;
}

.gap-30 {
    gap: 30px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.min-w-280 {
    min-width: 280px;
}

.max-w-280 {
    max-width: 280px;
}

.left-2 {
    left: 0.5rem;
}

.support-boxes {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.support-box {
    flex: 1;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.support-box:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: white;
}

.support-box i {
    font-size: 24px;
}

.support-box h4 {
    margin: 0;
    color: white;
    font-weight: 600;
}

.whatsapp-box {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.telegram-box {
    background: linear-gradient(135deg, #7819b3, #7000B5);
    color: white;
}

.group\/body.navbar-shrinked .group-\[\&\.navbar-shrinked\]\/body\:text-foreground {
    color: black;
}

.group\/body.theme-dark.navbar-shrinked .group-\[\.theme-dark\.navbar-shrinked\]\/body\:text-white {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1))
        /* #ffffff */
    ;
}

.group\/body.navbar-shrinked .group-\[\.navbar-shrinked\]\/body\:text-foreground {
    color: hsl(var(--foreground));
}

@media (min-width: 992px) {
    body.navbar-shrinked .\[body\.navbar-shrinked_\&\]\:lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lqd-chat-v2 .lqd-chat-category-dropdown .lqd-dropdown-dropdown {
        --tw-translate-x: 100%;
    }

    .lqd-chat-v2 .chats-sidebar-wrap {
        --tw-translate-x: 100%;
    }
}

@media (min-width: 576px) {
    .sm\:whitespace-nowrap {
        white-space: nowrap;
    }
}

@media (min-width: 768px) {
    .md\:text-3xl {
        font-size: 2.0625rem !important
            /* 33px */
        ;
        line-height: 2rem !important
            /* 32px */
        ;
    }
}

/* Navbar label styling.
   `.lqd-navbar-label` used to share this glassy pill treatment. Nav group titles
   are plain muted captions in the studio design language, so they are styled with
   Tailwind utilities on the component instead. `.blurry-bg` keeps the pill. */
.blurry-bg {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.03) 50%,
            rgba(0, 0, 0, 0.01) 100%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.03),
        0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.25rem 0.75rem;
    transform: translateY(0);
}

.theme-dark .blurry-bg {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}


.blurry-bg:hover {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.05) 50%,
            rgba(0, 0, 0, 0.02) 100%);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow:
        0 8px 12px -1px rgba(0, 0, 0, 0.05),
        0 4px 6px -1px rgba(0, 0, 0, 0.03);
}


.theme-dark .blurry-bg:hover {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Footer Description Section */
/* .top-footer-description-section {
    background-color: #fff;
    padding: 3rem 0;
}

.dark .top-footer-description-section {
    background-color: #1f1127;
} */

/* .top-footer-description-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
} */

/* .top-footer-description {
    max-width: 56rem;
    margin: 0 auto;
} */

.top-footer-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.top-footer-description strong {
    font-weight: 600;
}

.top-footer-description h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.show-more-btn {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
}

.show-more-btn button {
    background: linear-gradient(135deg, #a846e5 0%, #a643e4 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 150px;
}

.show-more-btn button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #9238ca 0%, #9528d9 100%);
}

.show-more-btn button:active {
    transform: translateY(0);
}

/* Dark mode styles */
.dark .top-footer-description {
    color: #e9e5eb;
}

.dark .top-footer-description strong {
    color: #fff;
}

.dark .top-footer-description h3 {
    color: #fff;
}

.dark .show-more-btn button {
    background: linear-gradient(135deg, #b96aea 0%, #b869e9 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.dark .show-more-btn button:hover {
    background: linear-gradient(135deg, #a846e5 0%, #a643e4 100%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* Line clamp for collapsed state */
.top-footer-description.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 576px) {
    .sm\:max-w-280 {
        max-width: 280px;
    }
}

.bg-slate-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(246 241 249 / var(--tw-bg-opacity, 1))
        /* #f6f1f9 */
    ;
}

@media (min-width: 768px) {
    .md\:whitespace-nowrap {
        white-space: nowrap;
    }
    .md\:bg-white {
        --tw-bg-opacity: 1;
        background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1))
            /* #ffffff */
        ;
    }

    .md\:p-0 {
        padding: 0px !important;
    }

    .md\:text-white {
        --tw-text-opacity: 1;
        color: rgb(255 255 255 / var(--tw-text-opacity, 1)) !important
            /* #ffffff */
        ;
    }

    .md\:py-0 {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }

    .md\:bg-background {
        background-color: hsl(var(--background)) !important;
    }

    .md\:border-transparent {
        border-color: transparent !important;
    }

    .md\:w-14 {
        width: 3.5rem /* 56px */;
    }

    .md\:h-14 {
        height: 3.5rem /* 56px */;
    }

    .md\:p-4 {
        padding: 1rem /* 16px */;
    }

    .md\:max-w-\[70\%\] {
        max-width: 70%;
    }
}

.bg-gray-themes {
    background-color: rgb(246 241 249 / var(--tw-bg-opacity, 1));
}

.theme-dark .bg-gray-themes {
    background-color: #362f3a;
}

/* Aspect Ratio Selector Styles */
.aspect-ratio-option {
    position: relative;
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.aspect-ratio-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.aspect-ratio-option.active {
    border-color: #a846e5;
    background-color: #b06fd9;
}

.aspect-ratio-option svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #6b7280;
    transition: color 0.3s ease;
}

.aspect-ratio-option .text-xs {
    margin-top: 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.aspect-ratio-option.active svg,
.aspect-ratio-option.active .text-xs {
    color: #a846e5;
}

/* Dark mode styles */
.theme-dark .aspect-ratio-option {
    background: #2e1f37;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.theme-dark .aspect-ratio-option:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.theme-dark .aspect-ratio-option.active {
    border-color: #b96aea;
    background-color: #391b4b;
}

.theme-dark .aspect-ratio-option svg {
    color: #a89caf;
}

.theme-dark .aspect-ratio-option.active svg,
.theme-dark .aspect-ratio-option.active .text-xs {
    color: #b96aea;
}

/* Waterfall Video Grid */
.waterfall-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    /* padding: 20px; */
    max-width: 1400px;
    margin: 0 auto;
}

.waterfall-video-item {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.waterfall-video-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}



/* Video Overlay */
.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.waterfall-video-item:hover .video-overlay {
    transform: translateY(0);
}

.video-link {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.video-link:hover {
    background: rgba(255,255,255,0.3);
}

/* Hide video controls */
.waterfall-video-item video::-webkit-media-controls {
    display: none !important;
}

.waterfall-video-item video::-webkit-media-controls-enclosure {
    display: none !important;
}

.waterfall-video-item video::-webkit-media-controls-panel {
    display: none !important;
}

.blog-content, .page-content {
    line-height: 2.5em !important;
}
.blog-content a{
    color: #ad50e6;
}

.form-control, .form-select{
    background-color: #fff;
}

.blog-content h1, .page-content h1 {
    font-size: 40px !important;
    line-height: 5rem !important;
}

.blog-content h2, .page-content h2 {
    font-size: 32px !important;
}

.blog-content h3, .page-content h3 {
    font-size: 28px !important;
}

.blog-content ul, .page-content ul {
    margin-bottom: 1.875em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .waterfall-video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        /* padding: 15px; */
    }
}

#workbook_title{
    font-family: Dana !important;
}

@media (min-width: 640px) {
    .sm\:order-2 {
        order: 2;
    }
}

@media (min-width: 640px) {
    .sm\:order-1 {
        order: 1;
    }
}

@media (min-width: 1024px) {
    .lg\:w-\[85\%\] {
        width: 85%;
    }
}

.end-0-important{
    inset-inline-start: auto !important;
    inset-inline-end: 0px !important;
}

.mt-\[--dropdown-offset\]{margin-top:var(--dropdown-offset)}

.top-full-important{
    top: 100% !important;
}

.group\/dropdown.lqd-is-active .group-\[\&\.lqd-is-active\]\/dropdown\:opacity-100 {
    opacity: 1;
}

/* AI Suite Tools Section Styles */
.text-surface-foreground-0 {
    color: #2e1f37;
}

.text-surface-foreground-4 {
    color: #6b7280;
}

.bg-surface-1 {
    background-color: #ffffff;
    border: 1px solid #e9e5eb;
}

.bg-outline-0 {
    background-color: #ffffff;
}

.bg-outline-1 {
    background-color: #f5f3f6;
}

.bg-secondary-0 {
    background-color: #aa4ce5;
}

.bg-secondary-1 {
    background-color: #9d2fe1;
}

.bg-secondary-2 {
    background-color: #901fd6;
}

.text-outline-foreground-0 {
    color: #473751;
}

.text-secondary-foreground-0 {
    color: #ffffff;
}

.border-outline-border-0 {
    border-color: #d7d1db;
}

.border-outline-border-1 {
    border-color: #a89caf;
}

.border-outline-border-2 {
    border-color: #6b7280;
}

.focus-visible\:outline-surface-border-10:focus-visible {
    outline-color: #d7d1db;
}

.scrollable-container {
    scrollbar-width: thin;
    scrollbar-color: #d7d1db transparent;
}

.scrollable-container::-webkit-scrollbar {
    height: 4px;
}

.scrollable-container::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-container::-webkit-scrollbar-thumb {
    background-color: #d7d1db;
    border-radius: 2px;
}

.scrollable-container::-webkit-scrollbar-thumb:hover {
    background-color: #a89caf;
}

/* Dark mode styles */
.theme-dark .text-surface-foreground-0 {
    color: #f9fafb;
}

.theme-dark .text-surface-foreground-4 {
    color: #a89caf;
}

.theme-dark .bg-surface-1 {
    background-color: #2e1f37;
    border-color: #473751;
}

.theme-dark .bg-outline-0 {
    background-color: #2e1f37;
}

.theme-dark .bg-outline-1 {
    background-color: #473751;
}

.theme-dark .bg-secondary-0 {
    background-color: #aa4ce5;
}

.theme-dark .bg-secondary-1 {
    background-color: #9d2fe1;
}

.theme-dark .bg-secondary-2 {
    background-color: #901fd6;
}

.theme-dark .text-outline-foreground-0 {
    color: #d7d1db;
}

.theme-dark .border-outline-border-0 {
    border-color: #5a4b63;
}

.theme-dark .border-outline-border-1 {
    border-color: #6b7280;
}

.theme-dark .border-outline-border-2 {
    border-color: #a89caf;
}

.theme-dark .focus-visible\:outline-surface-border-10:focus-visible {
    outline-color: #5a4b63;
}

.theme-dark .scrollable-container {
    scrollbar-color: #5a4b63 transparent;
}

.theme-dark .scrollable-container::-webkit-scrollbar-thumb {
    background-color: #5a4b63;
}

.theme-dark .scrollable-container::-webkit-scrollbar-thumb:hover {
    background-color: #6b7280;
}


.bg-surface-foreground-accent-0\/20 {
    background-color: rgba(170, 76, 229, 0.2);
}

.text-surface-foreground-accent-0 {
    color: #aa4ce5;
}

.bg-ghost-0 {
    background-color: rgba(0, 0, 0, 0.05);
}

.bg-ghost-1 {
    background-color: rgba(0, 0, 0, 0.1);
}

.bg-ghost-2 {
    background-color: rgba(0, 0, 0, 0.15);
}

.text-ghost-foreground-0 {
    color: #473751;
}

/* Dark mode for additional styles */
.theme-dark .bg-surface-foreground-accent-0\/20 {
    background-color: rgba(170, 76, 229, 0.3);
}

.theme-dark .text-surface-foreground-accent-0 {
    color: #bc70eb;
}

.theme-dark .bg-ghost-0 {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .bg-ghost-1 {
    background-color: rgba(255, 255, 255, 0.15);
}

.theme-dark .bg-ghost-2 {
    background-color: rgba(255, 255, 255, 0.2);
}

.theme-dark .text-ghost-foreground-0 {
    color: #d7d1db;
}

.border-blue-900 {
    --tw-border-opacity: 1;
    border-color: rgb(97 30 138 / var(--tw-border-opacity, 1)) /* #611e8a */;
}

.text-blue-900 {
    --tw-text-opacity: 1;
    color: rgb(97 30 138 / var(--tw-text-opacity, 1)) /* #611e8a */;
}

.mr-auto {
    margin-right: auto;
}

.details-body h1 {
    font-size: 40px !important;
    margin-bottom: 2rem;
}

.details-body h2 {
    font-size: 32px !important;
    margin-bottom: .5em;
}

.details-body h3 {
    font-size: 28px !important;
}

.details-body ul {
    margin-bottom: 1.875em;
}

.details-body ul li {
    line-height: 2rem;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

@media (min-width: 992px) {
    .lqd-navbar-logo:before {
        position: absolute;
        top: 0;
        bottom: -1rem;
        inset-inline-start: calc(var(--navbar-ps) * -1);
        inset-inline-end: calc(var(--navbar-pe) * -1);
        --tw-backdrop-blur: blur(40px);
        -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
        backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
        content: var(--tw-content);
        -webkit-mask-image: linear-gradient(to bottom, black, black calc(100% - 1rem), transparent calc(100% - 1rem));
        mask-image: linear-gradient(to bottom, black, black calc(100% - 1rem), transparent calc(100% - 1rem));
    }
}

.chat-list-ul {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chat-list-ul::-webkit-scrollbar {
    display: none;
}

/* ============================================ */
/* Credit Display - Complete Styles             */
/* Fixed: No layout breaking in header flex     */
/* ============================================ */

/* Container */
.credit-display-wrapper {
    position: relative;
    margin: 0 4px;
    transition: all 0.3s ease;
    /* در دسکتاپ عرض خودکار */
    width: auto;
    flex-shrink: 0;
}

/* ===== Main Card ===== */
.credit-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    /* عرض خودکار بر اساس محتوا */
    width: auto;
    white-space: nowrap;
}

/* ===== Dark Mode - Main Card ===== */
body.theme-dark .credit-card {
    background: linear-gradient(135deg, 
        rgba(48, 30, 59, 0.8) 0%, 
        rgba(32, 15, 42, 0.9) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hover Effects */
.credit-card:hover {
    /* transform: translateY(-2px); */
    border-color: rgba(182, 99, 233, 0.4);
    box-shadow: 
        0 8px 25px rgba(182, 99, 233, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.theme-dark .credit-card:hover {
    border-color: rgba(182, 99, 233, 0.5);
    box-shadow: 
        0 8px 30px rgba(182, 99, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, 
        rgba(48, 30, 59, 0.9) 0%, 
        rgba(32, 15, 42, 0.95) 100%
    );
}

/* ===== Shine Effect ===== */
.credit-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

body.theme-dark .credit-shine {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
}

.credit-card:hover .credit-shine {
    left: 150%;
}

/* ===== Icon ===== */
.credit-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #f5f3ff 0%, #f6e9fe 100%);
    border: 1px solid #efd6fe;
    border-radius: 12px;
    color: #a643e4;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(182, 99, 233, 0.1);
    transition: all 0.3s ease;
    z-index: 1;
}

body.theme-dark .credit-icon {
    background: linear-gradient(135deg, rgba(182, 99, 233, 0.15) 0%, rgba(185, 106, 234, 0.1) 100%);
    color: #cd95f0;
    box-shadow: none;
    border: none;
}

.credit-icon svg {
    width: 20px;
    height: 20px;
}


.credit-card:hover .credit-icon {
    transform: scale(1.05) rotate(-5deg);
    /* box-shadow: 0 6px 20px rgba(182, 99, 233, 0.4); */
}

body.theme-dark .credit-card:hover .credit-icon {
    /* box-shadow: 0 6px 25px rgba(182, 99, 233, 0.6); */
}

/* ===== Info Section ===== */
.credit-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 90px;
    z-index: 1;
}

/* Label */
.credit-label {
    font-size: 11px;
    font-weight: 500;
    color: #aa94b8;
    letter-spacing: 0.3px;
    line-height: 1;
}

body.theme-dark .credit-label {
    color: #aa94b8;
}

/* Amount Wrapper */
.credit-amount-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* Amount Number */
.credit-amount {
    font-size: 16px;
    font-weight: 800;
    color: #301e3b;
    letter-spacing: -0.5px;
    line-height: 1.2;
    direction: ltr;
    text-align: right;
    background: linear-gradient(135deg, #301e3b 0%, #483355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-dark .credit-amount {
    background: linear-gradient(135deg, #f6f1f9 0%, #ebe2f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Currency */
.credit-currency {
    font-size: 11px;
    font-weight: 600;
    color: #7c648b;
    letter-spacing: 0.3px;
}

body.theme-dark .credit-currency {
    color: #aa94b8;
}

/* ===== Add Credit Button ===== */
.credit-add-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #b663e9 0%, #b96aea 100%);
    color: white;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(182, 99, 233, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
}

.credit-add-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.credit-add-btn span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

body.theme-dark .credit-add-btn {
    box-shadow: 0 4px 15px rgba(182, 99, 233, 0.4);
}

.credit-add-btn:hover {
    /* transform: translateY(-1px); */
    box-shadow: 0 6px 20px rgba(182, 99, 233, 0.5);
    background: linear-gradient(135deg, #a23ae3 0%, #a846e5 100%);
    color: white;
    text-decoration: none;
}

body.theme-dark .credit-add-btn:hover {
    box-shadow: 0 6px 25px rgba(182, 99, 233, 0.6);
    background: linear-gradient(135deg, #a23ae3 0%, #a846e5 100%);
}

.credit-add-btn:hover svg {
    transform: rotate(90deg);
}

.credit-add-btn:active {
    /* transform: translateY(0); */
    box-shadow: 0 2px 8px rgba(182, 99, 233, 0.3);
}

body.theme-dark .credit-add-btn:active {
    box-shadow: 0 2px 10px rgba(182, 99, 233, 0.4);
}

/* Remove underline from link */
.credit-add-btn,
.credit-add-btn:hover,
.credit-add-btn:focus,
.credit-add-btn:active {
    text-decoration: none;
}

/* ===== Animations ===== */
@keyframes btnPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(182, 99, 233, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(182, 99, 233, 0.6);
    }
}

@keyframes btnPulseDark {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(182, 99, 233, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(182, 99, 233, 0.7);
    }
}

.credit-add-btn.pulse-animation {
    animation: btnPulse 2s ease-in-out infinite;
}

body.theme-dark .credit-add-btn.pulse-animation {
    animation: btnPulseDark 2s ease-in-out infinite;
}

/* ============================================ */
/* ===== RESPONSIVE STYLES (FIXED) ===== */
/* ============================================ */

/* 
 * راه‌حل: فقط در صفحه‌های کوچک که flex-wrap میشه، 
 * عرض کامل میدیم. در دسکتاپ به صورت inline میمونه.
 */

/* Large Desktop - Normal inline behavior */
@media (min-width: 1281px) {
    .credit-display-wrapper {
        width: auto;
        flex-shrink: 0;
        margin: 0 4px;
    }
    
    .credit-card {
        width: auto;
    }
}

/* Small Desktop / Laptop - Still inline */
@media (max-width: 1280px) and (min-width: 1025px) {
    .credit-display-wrapper {
        width: auto;
        flex-shrink: 0;
    }
    
    .credit-card {
        padding: 8px 14px;
        gap: 10px;
    }
    
    .credit-icon {
        width: 34px;
        height: 34px;
    }
    
    .credit-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .credit-amount {
        font-size: 14px;
    }
    
    .credit-add-btn {
        padding: 6px 12px;
    }
    
    .credit-add-btn span {
        font-size: 12px;
    }
}

/* 
 * Tablet & Mobile - Full Width 
 * فقط وقتی که صفحه به اندازه‌ای کوچیک میشه 
 * که header قراره wrap بشه
 */
@media (max-width: 1024px) {
    /* 
     * مهم: والد flex رو مجبور به wrap میکنیم 
     * و credit-display-wrapper رو full width
     */
    /* .header-actions-container .flex.items-center.gap-4 {
        flex-wrap: wrap;
        width: 100%;
    } */
    
    .credit-display-wrapper {
        width: 100%;
        margin: 4px 0;
        /* order: 10; میره بعد از بقیه آیتم‌ها */
    }
    
    .credit-card {
        width: 100%;
        padding: 10px 16px;
        gap: 12px;
        border-radius: 14px;
        justify-content: space-between;
    }
    
    .credit-icon {
        width: 36px;
        height: 36px;
    }
    
    .credit-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .credit-info {
        flex: 1;
        min-width: auto;
    }
    
    .credit-label {
        font-size: 11px;
    }
    
    .credit-amount {
        font-size: 15px;
    }
    
    .credit-currency {
        font-size: 10px;
    }
    
    .credit-add-btn {
        padding: 8px 14px;
    }
    
    .credit-add-btn span {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .credit-card {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .credit-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    
    .credit-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .credit-label {
        font-size: 10px;
    }
    
    .credit-amount {
        font-size: 14px;
    }
    
    .credit-add-btn {
        padding: 6px 10px;
        border-radius: 10px;
    }
    
    .credit-add-btn span {
        font-size: 11px;
    }
    
    .credit-add-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .credit-card {
        padding: 8px 10px;
        gap: 6px;
        border-radius: 12px;
    }
    
    .credit-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }
    
    .credit-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .credit-info {
        gap: 1px;
    }
    
    .credit-amount {
        font-size: 13px;
    }
    
    .credit-currency {
        font-size: 9px;
    }
    
    .credit-add-btn {
        padding: 6px 8px;
        gap: 3px;
    }
    
    .credit-add-btn span {
        font-size: 10px;
    }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
    .credit-add-btn span {
        display: none;
    }
    
    .credit-add-btn {
        padding: 6px;
        border-radius: 8px;
    }
    
    .credit-add-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ===== Fix for parent flex container ===== */
/* اطمینان از اینکه header actions container به درستی کار میکنه */
.header-actions-container {
    flex-wrap: nowrap;
}

/* @media (max-width: 1024px) {
    .header-actions-container {
        flex-wrap: wrap;
    }
   
} */

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

    padding: 8px 12px;

    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    background: #fff;

    width: fit-content;
    max-width: 100%;

    flex-wrap: nowrap;
    overflow: hidden;
}

.header-user-actions > * {
    flex: 0 0 auto;
}

.credit-display-wrapper {
    min-width: 0;
    flex: 1 1 auto;
}

.credit-card {
    white-space: nowrap;
}

.theme-switch,
.header-user-dropdown {
    flex-shrink: 0;
}

/* A video played full screen shows whole, whatever its card did with it:
   a card's object-cover otherwise follows it into full screen and crops a
   portrait clip to fill a landscape screen (2026-10-04). */
video:fullscreen,
video:-webkit-full-screen {
    object-fit: contain !important;
    background: #000;
}
