/* ---------------------------------------------
   1. تنظیمات سراسری و ریست
   --------------------------------------------- */
body {
    background-color: #f5f5f5;
}

.page-container {
    width: 100%;
    max-width: 568px;
    margin: 0 auto;
    position: relative;
    background-color: #ffffff;
min-height: 93vh;
    display: flex;
    flex-direction: column;
}

/* ---------------------------------------------
   2. هدر و منوی پایین
   --------------------------------------------- */
.sub-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 10px;
}

.root {
    flex: 1;
    width: 100%;
    padding: 1rem;

}

.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 568px;
    height: 70px;
    background-color: white;
    border-top: 1px solid #ccc;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 0 0.5rem;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    flex: 1;
    max-width: 80px;
    min-width: 60px;
}

.menu-icon {
    font-size: 24px;
}

.menu-text {
    font-size: 12px;
}

@media (max-width: 640px) {
    .bottom-menu {
        max-width: 100%;
    }

    .menu-text {
        font-size: 10px;
    }

    .menu-icon {
        font-size: 20px;
    }
}

/* ---------------------------------------------
   3. کامپوننت‌های پایه
   --------------------------------------------- */
.content-box {
    background-color: #f1f3f5;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 1rem;
    text-align: center;
    color: #7f8c8d;
    min-height: 300px;
}

/* دکمه پایین ثابت */
.bottom-button-container {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    padding: 16px;
    background-color: white;
    z-index: 100;
}

.bottom-button-container-login {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    padding: 16px;
    background-color: white;
    z-index: 100;
}

.btn-confirm {
    background-color: #12565d;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-confirm:hover {
    background-color: #12565d;
    opacity: 0.9;
}

/* ---------------------------------------------
   4. صفحه اصلی (HOME)
   --------------------------------------------- */
.info-wallets {
    background: linear-gradient(145deg, #12565d, #0a4248);
    border-radius: 25px;
    padding: 1.8rem;
    box-shadow: 0 25px 40px -12px rgba(18, 86, 93, 0.17);
    position: relative;
    overflow: hidden;
}

.info-wallets::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(236, 189, 37, 0.27), transparent);
    pointer-events: none;
}

.info-wallets .color-secondary {
    color: #ecbf25 !important;
    font-size: 1rem !important;
}

.info-wallets .color-white {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem !important;
}

.toggle-balance,
.copy-balance {
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem !important;
}

.toggle-balance:hover,
.copy-balance:hover {
    color: #ecbf25 !important;
    transform: scale(1.1);
}

.gold-balance-number,
.rial-balance-number {
    font-size: 1.9rem !important;
    letter-spacing: 1px;
}

.rial-balance-number {
    color: white !important;
}

/* گرید میانبرها */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin: 2rem 0;
}

.grid-item {
    background: white;
    border-radius: 15px;
    padding: 1rem 0.3rem;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(236, 189, 37, 0.32);
    transition: all 0.2s ease-in-out;
}

.grid-item:active {
    transform: scale(0.96);
}

.grid-item img {
    width: 50px !important;
    height: 50px;
    object-fit: contain;
}

.grid-title {
    font-size: 0.9rem !important;
    font-weight: 700;
    color: #12565d;
    margin-top: 0.7rem !important;
}

@media (max-width: 480px) {
    .grid-container {
        gap: 0.7rem;
    }

    .grid-item img {
        width: 40px !important;
    }

    .grid-title {
        font-size: 0.7rem !important;
    }

    .info-wallets {
        padding: 1.2rem !important;
    }

    .gold-balance-number,
    .rial-balance-number {
        font-size: 1.4rem !important;
    }
}

/* اسلایدر */
.swiper-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.swiper-slide {
    background: #e0e0e0;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    transition: transform 0.4s;
}

.swiper-pagination-bullet-active {
    background: #ecbf25 !important;
}

/* نمودار قیمت */
.chart-area {
    position: relative;
    height: auto;
}

#priceChart {
    width: 100%;
    border-radius: 8px;
}

.chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.chart-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.4rem 1.2rem;
}

.live-badge {
    width: 10px;
    height: 10px;
    background: #ecbf25;
    border-radius: 50%;
    display: inline-block;
    animation: live-pulse 1.4s infinite;
}

@keyframes live-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    70% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(236, 191, 37, 0);
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.chart-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #12565d;
    margin: 0;
}

.gold-highlight {
    background: linear-gradient(120deg, #ecbf25, #c9a320);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.price-glance {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.price-value {
    font-size: 1rem;
    font-weight: 600;
    color: #12565d;
    direction: ltr;
}

.price-unit {
    font-size: 0.7rem;
    color: #6c7a8a;
    font-weight: 500;
}

.trend-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trend-badge.positive {
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
}

.price-chart-canvas {
    width: 100%;
    max-height: 240px;
}

.chart-period-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.2rem;
}

.period-pill {
    background: #eff3f8;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #12565d;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
    text-align: center;
}

.period-pill.active {
    background: #12565d;
    color: white;
    box-shadow: 0 8px 18px rgba(18, 86, 93, 0.25);
    transform: scale(1.02);
}

.period-pill:active {
    transform: scale(0.96);
}

@media (max-width: 560px) {
    .time-btn {
        padding: 0.5rem 0;
        font-size: 0.7rem;
    }

    #currentGoldPrice {
        font-size: 0.9rem !important;
    }
}

/* ---------------------------------------------
   5. کامپوننت ورودی (Input)
   --------------------------------------------- */
.input-container {
    position: relative;
    margin: 1.8rem auto;
}

.input-label {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ffffff;
    padding: 0 12px;
    color: #12565d;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    border-radius: 40px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #12565d;
    border-radius: 56px;
    background: white;
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: #ecbf25;
    box-shadow: 0 0 0 4px rgba(236, 191, 37, 0.12);
}

.input-field {
    flex: 1;
    border: none;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
    text-align: center;
    color: #1e2a32;
    font-weight: 500;
}

.input-field::placeholder {
    color: #a0aec0;
    font-size: 0.8rem;
}

.dotted-divider {
    width: 1px;
    height: 20px;
    border-right: 2px dotted #12565d;
    margin: 0 10px;
}

.input-suffix {
    padding: 0 15px;
    color: #12565d;
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 600;
}

@media (max-width: 560px) {
    .input-label {
        font-size: 0.6rem;
        top: -10px;
        right: 16px;
        padding: 0 8px;
    }

    .input-field {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
}

/* ---------------------------------------------
   6. کامپوننت OTP
   --------------------------------------------- */

.login-hero {
    text-align: center;
    margin: 1.5rem 0 2rem;
    position: relative;
}

.login-hero__icon {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.login-hero__icon img {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
    position: relative;
    z-index: 2;
}

.login-hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(236, 189, 37, 0.1), transparent);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 1;
}

.login-hero__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #12565d;
    margin: 0.5rem 0 0.3rem;
}

.gold-text {
    background: linear-gradient(120deg, #ecbf25, #c9a320);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.login-hero__desc {
    font-size: 0.8rem;
    color: #8a99aa;
    margin: 0;
}

@media (max-width: 560px) {

    .login-hero__glow {
        width: 120px;
        height: 120px;
    }

    .login-hero__title {
        font-size: 1.2rem;
    }
}

#box-verifyOtp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.otp-field {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.form__input__otp {
    width: 40px;
    height: 40px;
    margin: 10px;
    text-align: center;
    font-size: 13px;
    border: none;
    outline: none;
    background-color: #ecf0f3;
    transition: 0.25s ease;
    border-radius: 8px;
    box-shadow: inset 2px 2px 4px #d1d9e6, inset -2px -2px 4px #f9f9f9;
}

.form__input__otp:focus {
    box-shadow: inset 4px 4px 4px #d1d9e6, inset -4px -4px 4px #f9f9f9;
    border: solid 0.3px #d1d9e6;
}

.form__button {
    width: 150px;
    height: 40px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    background-color: #4b70e2;
    color: #f9f9f9;
    border: none;
    outline: none;
}

.box-input-register {
    position: relative;
}

.title-input-register {
    position: absolute;
    display: inline-block;
    bottom: 17px;
    right: 10px;
}

/* ---------------------------------------------
   7. هدر ویژه (glass-panel)
   --------------------------------------------- */
.glass-panel {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 0 0 0.5px rgba(238, 192, 43, 0.82);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.57);
}

.glass-panel__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00565c;
}

.unit {
    font-size: 0.6rem;
    color: #6c7a8a;
}

.glass-panel__right {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #00565c;
}

@media (max-width: 560px) {

    .glass-panel__left,
    .glass-panel__right {
        justify-content: center;
    }

    .price {
        font-size: 1rem;
    }
}

/* ---------------------------------------------
   8. هدر داشبورد (dashboard-header-luxury)
   --------------------------------------------- */
.dashboard-header-luxury {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.platinum-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #12565d, #0f4a52);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.gold-shine {
    background: linear-gradient(150deg, #ecbf25, #c9a320, #ecbf25);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
}

.dashboard-header-luxury__actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.support-btn-glass {
    text-decoration: none;
}

.support-btn-glass__inner {
    background: rgba(18, 86, 93, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 60px;
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(236, 191, 37, 0.2);
    transition: all 0.2s;
}

.support-btn-glass__inner:hover {
    background: rgba(18, 86, 93, 0.15);
    transform: translateY(-2px);
    border-color: rgba(236, 191, 37, 0.5);
}

.support-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #12565d;
}

.support-icon {
    font-size: 1.3rem;
    color: #12565d;
}

.notif-btn-glass {
    background: rgba(236, 191, 37, 0.15);
    backdrop-filter: blur(8px);
    width: 44px;
    height: 44px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(236, 191, 37, 0.3);
    transition: all 0.2s;
}

.notif-btn-glass:hover {
    background: rgba(236, 191, 37, 0.25);
    transform: translateY(-2px);
}

.notif-icon {
    font-size: 1.3rem;
    color: #ecbf25;
}

@media (max-width: 480px) {
    .support-text {
        font-size: 0.7rem;
    }

    .support-btn-glass__inner {
        padding: 0.3rem 1rem;
    }

    .notif-btn-glass {
        width: 38px;
        height: 38px;
    }
}

/* ---------------------------------------------
   9. صفحه پروفایل (profile)
   --------------------------------------------- */
.invite-card {
    background: linear-gradient(120deg, #fef9e6, #fff3cf);
    border-radius: 28px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(236, 191, 37, 0.4);
}

.invite-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(236, 191, 37, 0.2);
}

.invite-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invite-icon img {
    width: 44px;
}

.invite-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #12565d;
    margin: 0 0 4px;
}

.invite-desc {
    font-size: 0.7rem;
    color: #5b6e7c;
    margin: 0;
}

.invite-arrow {
    font-size: 1.4rem;
    color: #ecbf25;
}

.verification-card {
    background: white;
    border-radius: 28px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(18, 86, 93, 0.08);
    cursor: pointer;
    transition: 0.2s;
}

.verification-card:hover {
    border-color: #ecbf25;
    transform: translateY(-2px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ecbf25;
}

.user-name {
    font-size: 1rem;
    font-weight: 700;
    color: #12565d;
    margin: 0 0 4px;
}

.user-phone {
    font-size: 0.7rem;
    color: #8a99aa;
}

.verification-badge {
    background: rgba(18, 86, 93, 0.08);
    border-radius: 60px;
    padding: 0.3rem 1rem;
}

.verification-badge span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #12565d;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.shortcut-item {
    background: white;
    border-radius: 28px;
    padding: 1rem 0.2rem;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid rgba(18, 86, 93, 0.06);
}

.shortcut-item:hover {
    transform: translateY(-4px);
    border-color: #ecbf25;
}

.shortcut-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.shortcut-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.shortcut-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #12565d;
    display: block;
}

.logout-btn {
    background: rgba(220, 53, 69, 0.08);
    border-radius: 60px;
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid rgba(220, 53, 69, 0.2);
    margin-top: 0.5rem;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
}

.logout-btn i {
    font-size: 1.3rem;
    color: #dc3545;
}

.logout-btn span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #dc3545;
}

@media (max-width: 560px) {
    .invite-title {
        font-size: 0.85rem;
    }

    .invite-icon img {
        width: 36px;
    }

    .user-avatar {
        width: 46px;
        height: 46px;
    }

    .shortcut-icon img {
        width: 38px;
    }

    .shortcut-label {
        font-size: 0.65rem;
    }
}

/* ---------------------------------------------
   10. هدر صفحات (page-header)
   --------------------------------------------- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.page-header__icon,
.page-header__action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 50%;
    color: #12565d;
    font-size: 1.3rem;
}

.page-header__icon:hover,
.page-header__action:hover {
    background: rgba(18, 86, 93, 0.08);
    transform: scale(1.05);
}

.page-header__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #12565d;
    margin: 0;
}

@media (max-width: 560px) {
    .page-header__title {
        font-size: 1.1rem;
    }

    .page-header__icon,
    .page-header__action {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}

/* ---------------------------------------------
   11. صفحه هدیه (gift page)
   --------------------------------------------- */
.referral-section {
    direction: rtl;
    margin: 1.5rem 0;
}

.referral-box {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(145deg, #ffffff, #fefcf5);
    border-radius: 48px;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(236, 191, 37, 0.2);
    margin-bottom: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.referral-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 35px -12px rgba(236, 191, 37, 0.15);
}

.referral-gift-img {
    max-width: 140px;
    height: auto;
    margin-bottom: 0.5rem;
}

.referral-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #12565d;
    margin: 0.5rem 0 0.3rem;
}

.gold-highlight {
    background: linear-gradient(120deg, #ecbf25, #c9a320);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.referral-subtitle {
    font-size: 0.75rem;
    color: #5b6e7c;
    margin-bottom: 1rem;
}

.referral-progress {
    margin-top: 1rem;
    padding: 0 1rem;
}

.progress-bar-bg {
    background: rgba(18, 86, 93, 0.1);
    border-radius: 60px;
    height: 6px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #ecbf25, #c9a320);
    width: 0%;
    height: 100%;
    border-radius: 60px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.7rem;
    color: #12565d;
    margin-top: 0.5rem;
    font-weight: 600;
}

.invite-count {
    font-weight: 800;
    color: #ecbf25;
}

.referral-code-card {
    background: linear-gradient(105deg, #12565d, #0f4a52);
    border-radius: 60px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.2s;
}

.referral-code-card:hover {
    transform: translateY(-2px);
}

.referral-code-text {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.code-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.referral-code-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ecbf25;
    direction: ltr;
}

.copy-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.copy-btn i {
    font-size: 1.3rem;
    color: #ecbf25;
}

.copy-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #12565d;
    color: white;
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.copy-btn:hover .copy-tooltip {
    opacity: 1;
}

.referral-guide {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.2rem;
}

.guide-item {
    flex: 1;
    background: rgba(18, 86, 93, 0.04);
    border-radius: 28px;
    padding: 0.8rem 0.2rem;
    text-align: center;
    transition: 0.2s;
}

.guide-item:hover {
    background: rgba(236, 191, 37, 0.1);
    transform: translateY(-3px);
}

.guide-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #12565d, #0f4a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin: 0 auto 0.5rem;
}

.guide-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: #12565d;
}

@media (max-width: 560px) {
    .referral-gift-img {
        max-width: 100px;
    }

    .referral-title {
        font-size: 1rem;
    }

    .referral-code-value {
        font-size: 0.9rem;
    }

    .copy-btn {
        width: 38px;
        height: 38px;
    }
}

/* ---------------------------------------------
   12. خدمات (services)
   --------------------------------------------- */
.service-card-modern {
    background: #ffffff;
    border-radius: 24px;
    padding: 0.8rem 0.3rem;
    margin: 0.5rem;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #eef2f8;
    cursor: pointer;
}

.service-card-modern:hover {
    transform: translateY(-4px);
    border-color: #ecbf25;
    box-shadow: 0 12px 20px -8px rgba(236, 191, 37, 0.2);
}

.service-card-modern__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
}

.service-card-modern__icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.service-card-modern__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #12565d;
}

@media (max-width: 560px) {
    .service-card-modern__icon img {
        width: 36px;
        height: 36px;
    }

    .service-card-modern__label {
        font-size: 0.6rem;
    }
}

/* ---------------------------------------------
   13. پشتیبانی (support)
   --------------------------------------------- */
.ticket-container {
    direction: rtl;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.ticket-messages-list {
    flex: 1;
    height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0.5rem 0.5rem 0;
    margin-bottom: 0.5rem;
}

.message-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.message-avatar {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #12565d, #0f4a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar i {
    font-size: 1.3rem;
    color: #ecbf25;
}

.message-body {
    flex: 1;
}

.message-bubble {
    background: #f8fafc;
    border-radius: 20px;
    padding: 10px 14px;
    margin-bottom: 4px;
    border: 1px solid rgba(236, 191, 37, 0.15);
}

.message-bubble p {
    margin: 0;
    font-size: 0.85rem;
    color: #2c3e4e;
}

.message-time {
    font-size: 0.65rem;
    color: #8a99aa;
    display: block;
}

.ticket-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-select,
.ticket-input,
.ticket-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    font-size: 0.85rem;
    background: #ffffff;
}

.ticket-select:focus,
.ticket-input:focus,
.ticket-textarea:focus {
    outline: none;
    border-color: #ecbf25;
    box-shadow: 0 0 0 3px rgba(236, 191, 37, 0.1);
}

.ticket-textarea {
    resize: vertical;
}

.ticket-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.departments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    direction: rtl;
}

.department-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 28px;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #eef2f6;
}

.department-card:hover {
    transform: translateX(-5px);
    border-color: #ecbf25;
}

.department-card__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #12565d, #0f4a52);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.department-card__icon i {
    font-size: 1.6rem;
    color: #ecbf25;
}

.department-card__content {
    flex: 1;
    padding: 0 16px;
}

.department-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #12565d;
    margin: 0 0 4px;
}

.department-card__desc {
    font-size: 0.7rem;
    color: #8a99aa;
    margin: 0;
}

.department-card__arrow {
    font-size: 1.3rem;
    color: #12565d;
    opacity: 0.5;
    transition: 0.2s;
}

.department-card:hover .department-card__arrow {
    opacity: 1;
    color: #ecbf25;
    transform: translateX(-4px);
}

@media (max-width: 560px) {
    .message-avatar {
        width: 38px;
        height: 38px;
    }

    .ticket-select,
    .ticket-input,
    .ticket-textarea {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .department-card__icon {
        width: 44px;
        height: 44px;
    }

    .department-card__icon i {
        font-size: 1.3rem;
    }

    .department-card__title {
        font-size: 0.8rem;
    }
}

/* ---------------------------------------------
   14. صفحه‌بندی (pagination)
   --------------------------------------------- */
.pagination-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.pagination-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #12565d;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-nav:hover {
    background: #12565d;
    border-color: #12565d;
    color: white;
}

.pagination-indicator {
    background: rgba(18, 86, 93, 0.08);
    border-radius: 60px;
    padding: 0.4rem 1.2rem;
    min-width: 70px;
    text-align: center;
}

.page-number-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #12565d;
}

@media (max-width: 560px) {
    .pagination-nav {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }

    .pagination-nav span {
        display: none;
    }
}

/* ---------------------------------------------
   15. جزئیات تراکنش (transaction)
   --------------------------------------------- */
.transaction-details {
    background: #ffffff;
    border-radius: 28px;
    padding: 0.5rem 0;
    margin: 1rem 0;
    direction: rtl;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #12565d;
}

.detail-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e4e;
}

.detail-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 191, 37, 0.2), transparent);
    margin: 0.2rem 0;
}

@media (max-width: 560px) {

    .detail-label,
    .detail-value {
        font-size: 0.75rem;
    }
}

/* ---------------------------------------------
   16. کیف پول (wallet actions)
   --------------------------------------------- */
.wallet-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    margin: 1rem 0;
    direction: rtl;
}

.wallet-action-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 28px;
}

.wallet-action-item:hover {
    transform: translateY(-4px);
}

.wallet-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 60px;
    padding: 0.8rem;
    width: 70px;
    height: 70px;
}

.wallet-action-item:hover .wallet-action-icon {
    background: rgba(236, 191, 37, 0.15);
}

.wallet-action-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.wallet-action-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #12565d;
    margin: 0.5rem 0 0;
    text-align: center;
}

@media (max-width: 560px) {
    .wallet-action-icon {
        width: 55px;
        height: 55px;
    }

    .wallet-action-icon img {
        width: 30px;
    }
}

/* ---------------------------------------------
   17. درباره ما / لینک‌های پشتیبانی (about)
   --------------------------------------------- */
.support-links {
    margin: 1.5rem 0;
    direction: rtl;
}

.support-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #eef2f6;
}

.support-item:hover {
    border-color: #ecbf25;
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(236, 191, 37, 0.12);
}

.support-item__content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.support-item__icon {
    width: 48px;
    height: 48px;
    background: rgba(18, 86, 93, 0.08);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-item__icon i {
    font-size: 1.4rem;
    color: #12565d;
}

.support-item__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #12565d;
    margin: 0 0 4px;
}

.support-item__desc {
    font-size: 0.7rem;
    color: #8a99aa;
    margin: 0;
}

.support-item__arrow i {
    font-size: 1.3rem;
    color: #cbd5e1;
    transition: 0.2s;
}

.support-item:hover .support-item__arrow i {
    color: #ecbf25;
    transform: translateX(-4px);
}

.support-item__call {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-item__phone {
    font-size: 0.85rem;
    font-weight: 600;
    color: #12565d;
    direction: ltr;
}

.support-item__call i {
    font-size: 1.3rem;
    color: #12565d;
    transition: 0.2s;
}

.support-item:hover .support-item__call i {
    color: #ecbf25;
}

@media (max-width: 560px) {
    .support-item {
        padding: 0.8rem 1rem;
    }

    .support-item__icon {
        width: 40px;
        height: 40px;
    }

    .support-item__icon i {
        font-size: 1.1rem;
    }

    .support-item__title {
        font-size: 0.8rem;
    }

    .support-item__phone {
        font-size: 0.7rem;
    }
}