/* متغیرهای پایه و تم پیش‌فرض (تم اختصاصی آژمان) */
:root {
    --bg-main: #0a0a0a;
    --panel-bg: #171717;
}

/* ۱. اصلاح ارتفاع و فعال‌سازی اسکرول ماوس در Iframe تلگرام وب */
html,
body {
    margin: 0;
    /* min-height: 100vh;
    /* جلوگیری از قفل شدن اسکرول ماوس در دسکتاپ */
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: 0;
}

/* استایل‌های پایه کارت */
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Vazirmatn', sans-serif;
    padding: 4px;
    flex-direction: column;
    height: 100vh;
    touch-action: pan-y !important;
}

/* بهینه‌سازی اختصاصی برای زبان روسی */
[lang="ru"] .tab-btn {
    font-size: 11px;
    padding: 6px 7px;
    letter-spacing: -0.2px;
    /* فشرده‌سازی بسیار ملایم فاصله حروف */
}

[lang="uk"] .tab-btn {
    font-size: 11px;
    padding: 6px 7px;
    letter-spacing: -0.2px;
    /* فشرده‌سازی بسیار ملایم فاصله حروف */
}

.view-count-badge {
    position: absolute fixed;
    top: 15px;
    right: 15px;
    width: fit-content;
    background: var(--link-bg);
    color: var(--accent);
    backdrop-filter: blur(6px);
    border: 1px solid var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    z-index: 10;
}

.view-count-badge .icon {
    font-size: 14px;
    color: var(--accent);
}

.avatar-image {
    width: 128px;
    height: 128px;
    object-fit: contain;
    margin-top: 8px;
    filter: drop-shadow(0 0 4px var(--accent));
}

.tg-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* جلوگیری از کشیدگی عکس */
    border-radius: 50%;
    /* شعاع گوشه هماهنگ با انحنای داخلی فریم نئونی شما */
    padding: 3px;
    /* ایجاد فاصله تنفس ظریف بین عکس و مرز نئونی */
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    /* پس‌زمینه ملایم برای زوایای شفاف احتمالی */
}

.avatar-container {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    margin: 8px auto 0 auto;
}

.business-card {
    background: var(--card-bg);
    background-repeat: repeat;
    background-size: auto;
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.business-card-div {
    background: var(--card-bg);
    background-repeat: repeat;
    background-size: auto;
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* کانتینر اصلی کارت لینک */
.tb-link-card {
    position: relative;
    /* الزامی برای جای‌گیری Absolute نشانگر */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    margin-left: 10%;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.2s ease;
}

.tb-link-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

/* نشانگر مینیاتوری گوشه پایین سمت راست */
.mini-click-badge {
    position: absolute fixed;
    width: fit-content;
    height: 12px;
    display: flex;
    align-items: center;
    left: 0px;
    bottom: 0px;
    gap: 2px;
    padding: 4px 4px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 10px;
    color: #a0a5b5;
    line-height: 1;
    pointer-events: none;
    text-align: center;
    justify-content: center;
    /* جلوگیری از تداخل کلیک با تگ والد */
    user-select: none;
}

.mini-click-badge .badge-icon {
    font-size: 9px;
    opacity: 0.8;
    left: 0px;
    width: fit-content;
}

.mini-click-badge .badge-count {
    font-weight: 600;
    font-family: sans-serif;
    /* نمایش منظم اعداد */
    color: #00e699;
    width: fit-content;
    /* رنگ سبزی نئونی برای خوانایی بالا */
}

/* =========================================
   تب‌های اصلی و فرعی بخش تنظیمات
========================================= */
.settings-main-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.settings-main-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border-bottom: 3px solid transparent;
}

.settings-main-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* گروه فرم‌های ورودی تنظیمات عمومی */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.form-group label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-input,
.form-select {
    background: #141419;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d3d1d1ee;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-slug-input {
    background: #141419;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffffc5;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    text-align: left;
    transition: border-color 0.2s ease;
    font-family: inherit;
    font-size: 14px;
}

.form-slug-input b {
    color: white;
    font-size: 15px;
    font-weight: 700;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--accent);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 10px;
}

.setting-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #fff;
}

.setting-info p {
    margin: 16px;
    font-size: 11px;
    width: 75%;
    color: #8a8d9b;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 15%;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
    margin: 2px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #a0a5b5;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #00e699;
}

input:checked+.slider:before {
    transform: translateX(20px);
    background-color: #111;
}

/* شبکه انتخاب آواتار از بین دارایی‌ها */
.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.avatar-option {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-option.selected {
    border-color: #00ffaa;
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.4);
    transform: scale(1.05);
}

/* دکمه ذخیره‌سازی عمومی */
.save-settings-btn {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.save-settings-btn:hover {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

a {
    color: var(--accent);
}

/* استایل لینک‌ها */
.link-item {
    display: block;
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    color: var(--text-primary);
    margin: 10px 0;
    border-radius: 10px;
    text-decoration: none;
    -webkit-text-stroke-width: 900;
    transition: all 0.2s ease;
}

.coin-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-top: 8px;
    padding-top: 8px;
    filter: drop-shadow(0 0 2px #ffd20b);
}

.coin-badge {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-top: 16px;
    padding-top: 16px;
    filter: drop-shadow(0 0 4px #ffd20b);
}

.avatar-prew {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.add-link-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.add-link-form input {
    background: #222;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.add-link-form input:focus {
    border-color: var(--accent);
    outline: none;
}

.manager-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.manager-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 70%;
}

.link-title-text {
    font-size: 14px;
    color: var(--text-primary);
}

.link-url-text {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delete-btn {
    background: rgba(255, 255, 255, 0.849);
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 6px 12px;
    margin-left: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #ef4444;
    color: #fff;
}

.token-status {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
    margin-bottom: 20px;
}

/* =========================================
   تب‌های چهارگانه فروشگاه
========================================= */
.shop-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-overflow-scrolling: touch;
}

.shop-categories::-webkit-scrollbar {
    height: 3px;
}

.shop-categories::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.3);
    border-radius: 10px;
}

.shop-cat-btn {
    background: #17171c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    appearance: none;
}

.shop-cat-btn.active {
    background: rgba(0, 210, 255, 0.12);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
}

/* =========================================
   شبکه کارت‌های محصولات (Shop Grid Matrix)
========================================= */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.shop-card {
    background: #141419;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
}

.shop-card:hover {
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.shop-card.owned {
    border-color: rgba(0, 255, 170, 0.25);
    background: rgba(0, 255, 170, 0.03);
}

.shop-card-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.shop-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-card-footer {
    width: 100%;
}

.buy-btn {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 7px 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
}

.buy-btn:hover {
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.owned-badge {
    display: block;
    font-size: 11px;
    color: #00ffaa;
    font-weight: 600;
    padding: 4px 0;
}

/* کانتینر پیش‌نمایش زنده در هر کارت فروشگاه */
.shop-card-preview {
    width: 100%;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ۱. پیش‌نمایش تم اختصاصی */
.mini-theme-box {
    background-color: var(--card-bg);
    width: 80%;
    height: 72px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid var(--link-bg);
    box-shadow: 0 2px 8px var(--link-border);
}

.mini-theme-box span {
    color: var(--accent);
    font-size: 9px;
    display: block;
    margin-bottom: 0px;
}

.mini-theme-box p {
    color: var(--text-primary);
    font-size: 7px;
    display: block;
    margin-top: 0px;
    margin-bottom: 0px;
}

.mini-theme-box h6 {
    color: var(--text-secondary);
    font-size: 4px;
    display: block;
    margin-top: 0px;
}

/* ۲. پیش‌نمایش آواتار (قاب و عکس) */
.mini-avatar-preview {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.mini-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ۳. پیش‌نمایش لینک */
.mini-link-preview {
    width: 85%;
    padding: 6px 0;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.form-select {
    background: #222;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 10px;
    width: 100%;
}

.link-effect-badge {
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(0, 210, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
    width: fit-content;
}

/* ۱. حالت پایه (Default State) */
.custom-link {
    position: relative;
    color: var(--accent);
    /* رنگ اولیه (Indigo) */
    text-decoration: none;
    font-weight: 600;
    padding: 2px 4px;
    transition: color 0.3s ease, transform 0.15s ease;
    display: inline-block;
}

/* ساخت خط زیرین با عنصر مجازی (Animated Underline) */
.custom-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    right: 0;
    /* شروع انیمیشن از سمت راست (مناسب برای زبان‌های RTL مثل فارسی) */
    background: linear-gradient(90deg, var(--text-secondary), var(--text-primary));
    /* گرادینت جذاب */
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ۲. حالت Hover (وقتی موس روی لینک قرار می‌گیرد) */
.custom-link:hover {
    color: var(--text-secondary);
    /* تغییر رنگ متن به بنفش روشن‌تر */
}

.custom-link:hover::after {
    width: 100%;
    left: 0;
    right: auto;
    /* کشیده شدن خط تا انتهای سمت چپ */
}

/* ۳. حالت Focus (وقتی کاربر با کلید Tab روی لینک می‌آید - دسترسی‌پذیری) */
.custom-link:focus-visible {
    outline: 2px dashed var(--text-secondary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ۴. حالت Active (لحظه فشردن کلید موس روی لینک) */
.custom-link:active {
    transform: scale(0.96);
    /* یک افکت فرو رفتن کوتاه */
    opacity: 0.9;
}

/* ۵. حالت Visited (لینک‌هایی که قبلاً بازدید شده‌اند) */
.custom-link:visited {
    color: var(--text-primary);
    /* رنگ بنفش تیره‌تر برای تشخیص لینک‌های دیده شده */
}

.lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lang-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lang-modal-card {
    background: #18222d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 350px;
    max-height: 85vh;
    /* جلوگیری از بزرگتر شدن از صفحه گوشی */
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.lang-modal-header h3 {
    color: #fff;
    font-size: 1rem;
    margin: 10px 0 18px 0;
    font-weight: 600;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow-y: auto;
    /* اسکرول نرم برای لیست طولانی */
    padding-right: 4px;
}

/* استایل اسکرول‌بار ظریف */
.lang-grid::-webkit-scrollbar {
    width: 4px;
}

.lang-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.lang-btn:active {
    transform: scale(0.96);
    background: #0088cc;
    border-color: #0088cc;
}

/* =========================================
   اصلاح و زیباسازی دکمه‌های تب (Tabs)
========================================= */

.tabs {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    /* فعال‌سازی اسکرول افقی در صورت کمبود فضا */
    white-space: nowrap;
    gap: 6px;
    padding: 4px 2px;
    -webkit-overflow-scrolling: touch;
    /* اسکرول بسیار روان در تلگرام و موبایل */
    scrollbar-width: none;
    /* مخفی کردن نوار اسکرول در فایرفاکس */
    -ms-overflow-style: none;
    /* مخفی کردن نوار اسکرول در Edge */
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 2;
    /* جلوگیری از مچاله شدن بیش از حد دکمه‌ها */
    background: #121214;
    color: var(--text-secondary);
    max-width: 18%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    appearance: none;
}

/* حالت هوور و لمس دکمه‌های تب */
.tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* وضعیت تب فعال (انتخاب شده) */
.tab-btn.active {
    background: rgba(0, 210, 255, 0.08);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
    text-shadow: 0 0 5px rgba(0, 210, 255, 0.5);
}

/* =========================================
   اصلاح دکمه‌های انتخاب گزینه‌ها (Grid Options)
========================================= */
.grid-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 25px 0;
}

.opt-btn {
    background: #17171c;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
}

/* حالت هوور گزینه‌ها */
.opt-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* وضعیت گزینه فعال و انتخاب‌شده در تنظیمات */
.opt-btn.active-opt {
    background: rgba(0, 210, 255, 0.12);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
    font-weight: 700;
}

/* بک‌گراند شیشه‌ای و تیره کل صفحه موقع باز شدن مودال */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #131316;
    border: 1px solid var(--accent);
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    padding: 20px;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

/* منوی اسکرول افقی دسته‌بندی‌ها */
.modal-categories {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-categories::-webkit-scrollbar {
    height: 3px;
}

.modal-categories::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.cat-btn {
    background: #1c1c22;
    border: 1px solid #2c2c35;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    appearance: none;
}

.cat-btn.active {
    background: var(--accent);
    color: #000;
    font-weight: bold;
    border-color: var(--accent);
}

/* گرید کارت‌های آواتار */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
    padding: 5px;
}

.avatar-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}

/* باکس اصلی کارت ویزیت مینیاتوری آواتار: ۴۸ در ۴۸ پیکسل */
.avatar-img-card {
    width: 48px;
    height: 48px;
    background: #1c1c22;
    border: 1px solid #2c2c35;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

/* عکس درون کارت: ۳۲ در ۳۲ پیکسل */
.avatar-img-card img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

/* متمایز کردن آواتار فعال یا هاور شده */
.avatar-item-wrapper:hover .avatar-img-card,
.avatar-item-wrapper.active-avatar .avatar-img-card {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.avatar-name {
    font-size: 10px;
    margin-top: 4px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 55px;
}

.avatar-price {
    font-size: 9px;
    color: #ffd700;
    margin-top: 1px;
}

/* استایل متن بیوگرافی روی کارت */
.user-bio-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    /* اندازه بزرگ و خوانا */
    font-weight: 800;
    /* ضخامت بالا برای جلوه بیشتر گرادیان */
    /* text-transform: uppercase;
        /* تبدیل حروف به بزرگ (برای متون انگلیسی) */
    /* ۱. افکت گرادیان رنگی روی متن (از آبی کهکشانی به بنفش و صورتی نئون) */
    background: linear-gradient(45deg, var(--text-primary), var(--text-secondary), var(--card-bg), var(--accent));
    background: linear-gradient(135deg, var(--link-border) 0%, var(--link-bg) 50%, var(--accent) 100%);
    background-clip: text;
    /* برش گرادیان فقط روی بدنه متن */
    -webkit-text-fill-color: var(--text-primary);
    /* بی‌رنگ کردن متن اصلی برای نمایش گرادیان زیر آن */
    /* ۲. سایه چندلایه برای ایجاد درخشش نئونی و جدا شدن کامل از بک‌گراند تیره */
    filter: drop-shadow(0px 4px 8px var(--link-bg)) drop-shadow(0px 0px 20px var(--link-border));
    /* انیمیشن زنده برای تغییر زاویه نور (اختیاری) */
    transition: all 0.4s ease;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 16px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s;
    display: inline-block;
    max-width: 90%;
    word-wrap: break-word;
}

.user-bio-text:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* باکس متن داخل مودال */
#bio-textarea {
    width: 100%;
    height: 110px;
    background: #1c1c22;
    border: 1px solid #2c2c35;
    border-radius: 10px;
    color: #fff;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    box-sizing: border-box;
}

#bio-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

#slug-input {
    width: 100%;
    height: 110px;
    background: #1c1c22;
    border: 1px solid #2c2c35;
    border-radius: 10px;
    color: #fff;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    box-sizing: border-box;
}

#slug-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

/* شمارنده کاراکتر */
.bio-counter-wrapper {
    text-align: left;
    font-size: 11px;
    color: var(--text-secondary);
    margin: 4px 0 15px 0;
}

/* فوتر ظریف انتهای صفحه */
.platform-footer {
    margin-top: auto;
    bottom: 16px;
    padding-top: 40px;
    font-size: 0.75rem;
    letter-spacing: 0.75px;
    direction: ltr;
    text-align: center;
}

/* =========================================
   مودال پرداخت و خرید توکن (Payment & Shop Modals)
========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.checkout-modal {
    background: #181820;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .checkout-modal {
    transform: translateY(0);
}

.checkout-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

/* کارت گزینه‌های پرداخت */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.payment-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.payment-btn.telegbit-btn {
    border-color: #00ffaa;
    background: rgba(0, 255, 170, 0.05);
}

.payment-btn.telegbit-btn:hover {
    background: rgba(0, 255, 170, 0.12);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
}

.discount-tag {
    background: #00ffaa;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
}

/* شبکه بسته‌های خرید TelegBit */
.telegbit-packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.package-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.package-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: rgba(0, 210, 255, 0.08);
}

.package-amount {
    font-size: 15px;
    font-weight: 800;
    color: #00ffaa;
}

.package-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 12px;
    cursor: pointer;
}

/* تنظیمات هدر تب عمومی و دکمه ℹ️ */
.settings-general-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 20px 0;
}

.btn-info-icon {
    position: absolute;
    left: 10px;
    /* جایگیری دقیق بالا سمت چپ */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.btn-info-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.08);
}

/* استایل عمومی مودال‌ها (Overlay) */
.tb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tb-modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* کارت مودال */
.tb-modal-card {
    position: relative;
    width: 88%;
    max-width: 380px;
    background: #16181e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    direction: rtl;
    transform: scale(1);
    transition: transform 0.25s ease;
}

.tb-modal-overlay.hidden .tb-modal-card {
    transform: scale(0.92);
}

.tb-modal-card.modal-lg {
    max-width: 440px;
}

/* دکمه بستن ✖ */
.tb-modal-close {
    position: absolute;
    top: 12px;
    left: 14px;
    background: transparent;
    border: none;
    color: #8a8d9b;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.tb-modal-close:hover {
    color: #fff;
}

/* محتوای مودال اطلاعات */
.tb-modal-header {
    text-align: center;
    margin-bottom: 15px;
}

.app-badge-icon {
    font-size: 36px;
    margin-bottom: 5px;
}

.app-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.app-version-tag {
    display: inline-block;
    font-size: 11px;
    background: rgba(0, 230, 153, 0.15);
    color: #00e699;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    font-weight: 600;
}

.app-desc {
    font-size: 13px;
    color: #a0a5b5;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 18px;
}

.info-details-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 6px 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
    color: #8a8d9b;
}

.info-val.highlight {
    color: #ffb703;
    font-weight: 600;
}

.info-link {
    color: #38ef7d;
    text-decoration: none;
    font-weight: 600;
}

/* دکمه مشاهده قوانین */
.btn-terms-trigger {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-terms-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* باکس اسکرول قوانین */
.terms-scrollable {
    max-height: 360px;
    overflow-y: auto;
    padding-left: 5px;
    margin-bottom: 15px;
}

.terms-scrollable::-webkit-scrollbar {
    width: 4px;
}

.terms-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.terms-section {
    margin-bottom: 14px;
}

.terms-section h4 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #00e699;
}

.terms-section p {
    margin: 0;
    font-size: 12px;
    color: #b0b5c5;
    line-height: 1.6;
}

.tb-modal-footer {
    text-align: center;
}

.btn-primary-sm {
    background: #00e699;
    color: #111;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}


/* وضعیت‌های خاص */
.status-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.status-screen.hidden {
    display: none !important;
}

.status-card {
    background: #16181e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.status-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.status-card h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 18px;
}

.status-card p {
    color: #a0a5b5;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.banned-card {
    border-color: rgba(255, 75, 75, 0.3);
    box-shadow: 0 10px 30px rgba(255, 75, 75, 0.1);
}

.banned-card h3 {
    color: #ff4b4b;
}

.btn-support {
    display: inline-block;
    background: rgba(255, 75, 75, 0.1);
    color: #ff4b4b;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(255, 75, 75, 0.2);
}

/* ==========================================
   استایل‌های بخش حذف اکانت (Danger Zone & Modal)
   ========================================== */

/* منطقه خطر در انتهای تب تنظیمات */
.settings-danger-zone {
    margin: 16px;
    right: 16px;
    left: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 77, 77, 0.616);
}

.btn-danger-outline {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.527);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger-outline:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: #ff4d4d;
}

.btn-danger-outline:active {
    transform: scale(0.98);
}

/* مودال اخطار و حذف */
.danger-modal {
    background: #18181c;
    border: 1px solid rgba(255, 77, 77, 0.3);
    box-shadow: 0 12px 32px rgba(255, 77, 77, 0.15);
    border-radius: 16px;
    padding: 22px;
    max-width: 360px;
    width: 90%;
    box-sizing: border-box;
}

.danger-modal h3 {
    font-size: 17px;
    font-weight: 700;
    color: #ff4d4d;
    margin-top: 0;
    margin-bottom: 12px;
}

.warning-text {
    background: rgba(255, 77, 77, 0.08);
    border-right: 3px solid #ff4d4d;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #e1e1e6;
    margin-bottom: 16px;
}

/* اینپوت تایید اسلاگ */
#input-confirm-slug {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 1px solid #33333d;
    background: #0f0f12;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    letter-spacing: 0.5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

#input-confirm-slug:focus {
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
}

/* دکمه‌های مودال */
.modal-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #33333d;
    background: #23232a;
    color: #cccccc;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #2d2d36;
    color: #ffffff;
}

.btn-danger {
    flex: 1;
    margin: 12px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #ff4d4d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:not(:disabled):hover {
    background: #ff3333;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}

.btn-danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(40%);
}

/* ==========================================
   استایل‌های تب پرمیوم و پکیج‌ها
   ========================================== */

.premium-subtab-nav {
    display: flex;
    background: #18181c;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #2a2a32;
}

.subtab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subtab-btn.active {
    background: #282832;
    color: #ffb700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* کارت ویژگی‌ها */
.premium-features-card {
    background: linear-gradient(180deg, rgba(255, 183, 0, 0.08) 0%, rgba(24, 24, 28, 0.95) 100%);
    border: 1px solid rgba(255, 183, 0, 0.25);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 24px;
}

.premium-badge-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.crown-badge {
    font-size: 24px;
}

.premium-badge-header h3 {
    margin: 0;
    color: #ffb700;
    font-size: 16px;
}

.premium-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.premium-features-list li:last-child {
    margin-bottom: 0;
}

.feat-icon {
    font-size: 18px;
    margin-top: 2px;
}

.premium-features-list strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.premium-features-list p {
    margin: 2px 0 0 0;
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
}

/* کارت‌های پکیج */
.packages-title {
    color: #fff;
    font-size: 15px;
    margin-bottom: 14px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.package-card {
    position: relative;
    background: #141418;
    border: 1px solid #2a2a32;
    border-radius: 14px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.package-card.popular {
    border-color: #ffb700;
    background: linear-gradient(180deg, rgba(255, 183, 0, 0.05), #141418);
}

.package-card.recommended {
    border-color: #e100ff;
    background: linear-gradient(180deg, rgba(255, 183, 0, 0.05), #141418);
}

.package-card.best-value {
    border-color: #55dff7;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.05), #12123b);
}

.popular-tag,
.best-value-tag,
.recommended-tag {
    position: absolute;
    top: -10px;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    color: #000;
}

.popular-tag {
    background: #ffb700;
}

.recommended-tag {
    background: #e100ff;
}

.best-value-tag {
    background: #55dff7;
}

.package-duration {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.package-price-stars {
    font-size: 18px;
    font-weight: 800;
    color: #ffb700;
}

.package-price-stars span {
    font-size: 11px;
    font-weight: normal;
}

.package-price-telegbit {
    font-size: 12px;
    color: #00d26a;
    margin-top: 4px;
    margin-bottom: 14px;
}

.package-price-telegbit small {
    font-size: 9px;
    color: #888;
    display: block;
}

.package-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-buy-stars,
.btn-buy-telegbit {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: none;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.btn-buy-stars {
    background: #ffb700;
    color: #000;
}

.btn-buy-telegbit {
    background: #00d26a;
    color: #000;
}

.btn-buy-stars:active,
.btn-buy-telegbit:active {
    transform: scale(0.96);
}

/* نوار دسته‌بندی‌های گالری پرمیوم */
.gallery-category-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: none;
}

.gallery-cat-btn {
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    background: #22222a;
    border: 1px solid #333340;
    color: #ccc;
    font-size: 12px;
    cursor: pointer;
}

.gallery-cat-btn.active {
    background: #a855f7;
    color: #fff;
    border-color: #a855f7;
}

.premium-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

/* ==========================================
   کلاس‌های عمومی مدیریت نمایش و وضعیت (Utility Classes)
   ========================================== */

/* کلاس عمومی مخفی‌سازی کامل (با بالاترین اولویت) */
.hidden {
    display: none !important;
}

/* انیمیشن و ظهور نرم برای بخش‌ها و تب‌های فعال */
.tab-view:not(.hidden),
.premium-subtab-content:not(.hidden) {
    display: block;
    animation: tabFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* حالت فعال برای دکمه‌های ساب‌تب پرمیوم */
.subtab-btn.active {
    background: #282832 !important;
    color: #ffb700 !important;
    border-color: rgba(255, 183, 0, 0.4) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* حالت فعال برای دسته‌بندی‌های گالری پرمیوم */
.gallery-cat-btn.active {
    background: linear-gradient(135deg, #a855f7, #7e22ce) !important;
    color: #ffffff !important;
    border-color: #a855f7 !important;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

/* انیمیشن نرم برای تغییر تب‌ها */
@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* دکمه اختصاصی پرمیوم در TabBar */
.btn-premium-special {
    position: relative;
    background: linear-gradient(135deg, #ffb700, #ff7700, #a855f7) !important;
    background-size: 200% 200% !important;
    animation: shinyGradient 4s ease infinite;
    border: 1px solid rgba(255, 215, 0, 0.6) !important;
    border-radius: 12px;
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 0 12px rgba(255, 183, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-premium-special:active {
    transform: scale(0.95);
}

.btn-premium-special .star-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

@keyframes shinyGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================
   استایل گرید و کارت‌های گالری پرمیوم
   ========================================== */

.premium-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.premium-item-card {
    background: #141418;
    border: 1px solid #282832;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.premium-item-card:hover {
    border-color: #a855f7;
    transform: translateY(-2px);
}

.item-preview-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1c1c24;
    border: 2px solid #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.item-icon {
    font-size: 22px;
}

.item-info h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.btn-item-action {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    border: none;
    background: #a855f7;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-item-action.equipped {
    background: #00d26a;
    color: #000;
}

.btn-item-action:active {
    transform: scale(0.95);
}

/* ==========================================
                  تب پروفایل
   ========================================== */

/* --- ناوبری زیربخش‌ها --- */
.sub-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 12px;
}

.sub-tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.sub-tab-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

/* --- بخش نشان پرمیوم --- */
.profile-badge-section {
    text-align: center;
    margin-bottom: 25px;
}

.badge-icon {
    width: 128px;
    height: 128px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    /* درخشش برای پرمیوم */
}

.premium-text-1 {
    margin-top: 10px;
    font-size: 0.9em;
    color: #ffd700;
    font-weight: bold;
}

.premium-text-2 {
    margin-top: 10px;
    font-size: 1.4em;
    color: #ffd700;
    font-weight: bold;
}

/* --- گرید اطلاعات (Stats) --- */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
}

.stat-title {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-primary);
}

/* --- کارت‌های NFT --- */
.nft-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.nft-card:active {
    transform: scale(0.98);
    border-color: rgba(0, 136, 204, 0.4);
}

/* بخش تصویر سمت چپ */
.nft-image-container {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nft-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* بخش محتوای سمت راست */
.nft-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    /* جلوگیری از بهم ریختگی متن‌های طولانی */
}

.nft-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ویژگی‌ها (Attributes) */
.nft-attributes {
    display: inline-block;
    flex-wrap: wrap;
    gap: 6px;
}

.nft-badge {
    background: rgba(0, 136, 204, 0.15);
    border: 1px solid rgba(0, 136, 204, 0.3);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.nft-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nft-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nft-modal-card {
    background: #121922;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 16px;
    width: 90%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.nft-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0.7;
}

.nft-modal-img-container {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 25px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nft-modal-img-container img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

.nft-modal-footer {
    width: 100%;
    margin-top: 16px;
}

.nft-download-btn {
    width: 100%;
    padding: 12px;
    background: var(--link-bg);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.nft-download-btn:active {
    background: #006699;
}

/* --- سیستم رفرال --- */
.referral-input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.referral-input-group input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.btn-copy {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 8px;
    cursor: pointer;
}

.referral-stats {
    margin-top: 10px;
    font-size: 0.85em;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.541);
    border: 1px solid rgba(0, 0, 0, 0.849);
    padding: 12px 15px;
    border-radius: 24px;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.referrals-count {
    font-size: 0.95em;
    font-weight: 900;
}

/* --- کارت‌های تسک --- */
.task-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.task-icon {
    font-size: 1.8em;
    margin-right: 15px;
}

.task-info {
    flex: 1;
}

.task-title {
    margin: 0 0 5px 0;
    font-size: 0.95em;
    color: var(--text-primary);
}

.task-reward {
    font-size: 0.8em;
    color: #00f3ff;
}

.btn-task {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* حالت‌های مختلف کارت تسک */
.status-active .btn-task {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.status-completed {
    opacity: 0.6;
}

.status-completed .btn-task {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-claim {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.status-claim .btn-task {
    background: #ffd700;
    color: #000;
}

.claim-anim {
    animation: pulse-claim 1.5s infinite;
}

/* دریافت جایزه استایل‌های اصلی مودال */
.reward-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.reward-modal-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

#reward-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.reward-card {
    position: relative;
    z-index: 10001;
    background: #1c242d;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 28px 24px;
    width: 85%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.15);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalPop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.reward-icon-wrapper {
    font-size: 48px;
    margin-bottom: 12px;
    animation: floatIcon 2s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.reward-title {
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 6px 0;
    font-weight: bold;
}

.reward-subtitle {
    color: #9ab0c4;
    font-size: 13px;
    margin: 0 0 18px 0;
}

.reward-badge {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 22px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.currency-label {
    font-size: 14px;
    color: #fff;
    font-weight: normal;
}

.btn-reward-ok {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, #ffd700, #ff9900);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: transform 0.1s ease, filter 0.2s ease;
}

.btn-reward-ok:active {
    transform: scale(0.96);
}

.genesis-founder-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 140, 0, 0.18));
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
    animation: founderGlow 3s infinite alternate ease-in-out;
}

.genesis-founder-badge .badge-icon {
    font-size: 1.2rem;
}

@keyframes founderGlow {
    0% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.3);
    }

    100% {
        box-shadow: 0 0 18px rgba(255, 215, 0, 0.5);
        border-color: rgba(255, 215, 0, 0.7);
    }
}

@keyframes pulse-claim {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* دکمه اختصاصی فروشگاه در هدر */
.nft-store-trigger-btn {
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(255, 0, 234, 0.418) !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
    background: #0b0f19 !important;
    background-size: 200% 200% !important;
    border: 1px solid rgba(0, 255, 204, 0.6) !important;
    color: #8d0d99 !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    text-shadow: 2px #663297;
    padding: 12px 16px !important;
    margin: 8px 0 !important;
    cursor: pointer !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* افکت گلوله آتشین و نور دور کادر */
.nft-store-trigger-btn::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 300% !important;
    background: conic-gradient(transparent,
            transparent 70%,
            rgba(162, 0, 255, 0.4) 85%,
            #ff00b3 95%,
            #00f7ff 100%) !important;
    animation: rotateFireball 2s linear infinite !important;
    z-index: -2 !important;
}

/* حفظ رنگ پس‌زمینه داخلی دکمه */
.nft-store-trigger-btn::after {
    content: '' !important;
    position: absolute !important;
    inset: 2px !important;
    background: #0b0f19 !important;
    border-radius: 12px !important;
    z-index: -1 !important;
}

/* انیمیشن چرخش جهت عقربه‌های ساعت */
@keyframes rotateFireball {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(360deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.nft-store-trigger-btn:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 0 25px rgba(255, 100, 0, 0.5) !important;
}

/* لایه پس‌زمینه مودال (Overlay) */
.nft-store-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 17, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    /* به طور پیش‌فرض مخفی */
    align-items: center;
    justify-content: center;
}

/* پنجره مودال شناور با فاصله ۲ درصدی از اطراف */
.nft-store-modal-container {
    width: 96vw;
    height: 96vh;
    background: #111827;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 255, 204, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalScaleUp 0.3s ease forwards;
}

@keyframes modalScaleUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* هدر مودال و دکمه بستن */
.nft-store-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nft-store-close-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.nft-store-close-btn:hover {
    color: #00ffcc;
}

/* ۱. غیرفعال کردن گرید روی والد برای جلوگیری از تداخل */
.nft-store-modal-body {
    padding: 16px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    display: block !important;
    min-height: 0 !important;
}

/* نوار تب‌های کالکشن */
.nft-store-tabs {
    display: flex;
    gap: 10px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    overflow-x: auto;
}

.nft-tab-btn {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
}

.nft-tab-btn.active {
    background: rgba(0, 255, 204, 0.15);
    color: #00ffcc;
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

/* دکمه شناور گوشه کارت */
.nft-corner-store-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 204, 0.4);
    color: #00ffcc;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    z-index: 2;
    transition: all 0.2s;
}

.nft-corner-store-btn:hover {
    background: #00ffcc;
    color: #0b0f19;
}

.store-item-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 204, 0.6) !important;
}

.store-nft-title {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* باکس مشخصات */
.store-attributes-box {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 10px !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.store-attr-row {
    font-size: 10px !important;
    color: #9ca3af !important;
    display: flex !important;
    justify-content: space-between !important;
}

.store-attr-row b {
    color: #f3f4f6 !important;
    font-weight: 600 !important;
}

/* پاورقی کارت (قیمت) */
.store-footer-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 10px !important;
}

.store-price-label {
    color: #9ca3af !important;
    font-size: 12px !important;
}

.store-price-value {
    color: #00ffcc !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

/* کانتینر اصلی کارت‌ها */
#nftStoreContent {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px !important;
}

/* کارت مستقل فروشگاه - حتماً باید position: relative باشد تا دکمه مطلق از آن خارج نشود */
#nftStoreContent .store-item-card {
    flex: 0 0 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    background: #1f2937 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 255, 204, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    position: relative !important;
    /* حیاتی برای مهار کردن دکمه مطلق گوشه کارت */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    margin: 0 !important;
}

/* دکمه گوشه کارت که اکنون دقیقاً داخل خودِ کارت محبوس می‌شود */
#nftStoreContent .store-corner-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: rgba(11, 15, 25, 0.9) !important;
    backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(0, 255, 204, 0.5) !important;
    color: #00ffcc !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 10px !important;
    z-index: 5 !important;
}

#nftStoreContent .store-corner-btn:hover {
    background: #00ffcc !important;
    color: #0b0f19 !important;
}

/* کادر تصویر امن و با ارتفاع ثابت */
#nftStoreContent .store-img-box {
    width: 100% !important;
    height: 130px !important;
    background: #0b0f19 !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

#nftStoreContent .store-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* بخش جزئیات و متن‌ها داخل کارت */
#nftStoreContent .store-details-box {
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex: 1 !important;
}

/* =========================================
   موتور افکت‌ها (Effects Engine)
========================================= */

/* افکت 1: Glow (برق زدن) */
.effect-glow {
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
}

/* افکت 3: Glitch (نویز) - مخصوص متن یا لینک */
.effect-glitch {
    position: relative;
    text-shadow: 2px 0 var(--accent), -2px 0 red;
}