/* ==================== LAYOUT ==================== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: rgba(10, 10, 10, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.dashboard-main {
    margin-right: 260px;
    min-height: 100vh;
    transition: margin 0.35s ease;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(260px);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .dashboard-main {
        margin-right: 0;
    }
    .sidebar-overlay {
        display: block;
    }
}

/* ==================== SIDEBAR OVERLAY ==================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.show {
    display: block;
}

/* ==================== SIDEBAR LOGO ==================== */
.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: #737373;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: none;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1024px) {
    .sidebar-close-btn { display: flex; }
}

/* ==================== SIDEBAR USER ==================== */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0a0a0a;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
}

.sidebar-avatar-status {
    position: absolute;
    bottom: 1px;
    left: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0a0a0a;
}

/* ==================== SIDEBAR NAV ==================== */
.sidebar-nav {
    flex: 1;
    padding: 8px 12px;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.sidebar-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #404040;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 10px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 10px;
    border-radius: 12px;
    color: #737373;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #d4d4d4;
}

.sidebar-link.active {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.sidebar-link-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.sidebar-link.active .sidebar-link-icon {
    background: rgba(245, 158, 11, 0.12);
}

.sidebar-link-active-bar {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 3px 3px 0;
    background: #f59e0b;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-link.active .sidebar-link-active-bar {
    opacity: 1;
}

.sidebar-badge {
    margin-right: auto;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ==================== SIDEBAR FOOTER ==================== */
.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 10px;
    border-radius: 12px;
    color: #737373;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

/* ==================== TOP BAR ==================== */
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-menu-btn {
    background: none;
    border: none;
    color: #737373;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.25s ease;
    display: none;
}

.topbar-menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

@media (max-width: 1024px) {
    .topbar-menu-btn { display: flex; }
}

.topbar-price-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.topbar-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #737373;
    cursor: pointer;
    transition: all 0.25s ease;
}

.topbar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.topbar-notif-dot {
    position: absolute;
    top: 7px;
    left: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    border: 2px solid #0a0a0a;
}

.topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0a0a0a;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ==================== NOTIFICATION DROPDOWN ==================== */
.notif-dropdown {
    position: absolute;
    top: 70px;
    left: 28px;
    width: 320px;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 300;
    overflow: hidden;
    animation: dropDown 0.25s ease;
}

@keyframes dropDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notif-count-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.notif-list {
    max-height: 280px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notif-item.unread {
    background: rgba(245, 158, 11, 0.02);
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
    margin-top: 5px;
}

.notif-dot.read {
    background: #404040;
}

.notif-footer {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 0.8rem;
    color: #f59e0b;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.notif-footer:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ==================== DASH CONTENT ==================== */
.dash-content {
    padding: 28px;
    max-width: 1400px;
}

/* ==================== WELCOME BANNER ==================== */
.welcome-banner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.welcome-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.welcome-banner-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    left: -50px;
    top: -100px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ==================== STAT CARDS ==================== */
.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(245, 158, 11, 0.15);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.gold   { background: rgba(245, 158, 11, 0.1); }
.stat-icon.green  { background: rgba(16, 185, 129, 0.1); }
.stat-icon.blue   { background: rgba(59, 130, 246, 0.1); }
.stat-icon.purple { background: rgba(168, 85, 247, 0.1); }

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
}

.stat-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 4px;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75rem;
    color: #525252;
}

/* ==================== WALLET CARD ==================== */
.wallet-card {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 20, 5, 0.9) 0%, rgba(20, 15, 5, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.07);
    position: relative;
}

.wallet-card-bg {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.wallet-card-content {
    padding: 32px;
    position: relative;
    z-index: 1;
}

.wallet-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
}

.wallet-progress-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #d97706, #f59e0b, #fcd34d);
    transition: width 1.2s ease;
}

.wallet-stat {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px;
}

.wallet-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(245, 158, 11, 0.1);
}

.wallet-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 16px;
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'AzarMehr', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    border-left: 1px solid rgba(245, 158, 11, 0.1);
}

.wallet-action-btn:last-child { border-left: none; }

.wallet-action-btn.buy {
    color: #f59e0b;
}
.wallet-action-btn.buy:hover {
    background: rgba(245, 158, 11, 0.08);
}

.wallet-action-btn.sell {
    color: #ef4444;
}
.wallet-action-btn.sell:hover {
    background: rgba(239, 68, 68, 0.06);
}

.wallet-action-btn.transfer {
    color: #a3a3a3;
}
.wallet-action-btn.transfer:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

/* ==================== PORTFOLIO CHART ==================== */
.mini-portfolio-chart {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
}

.chart-mini-btn {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'AzarMehr', sans-serif;
    color: #525252;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.chart-mini-btn:hover { color: #ffffff; }

.chart-mini-btn.active {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.portfolio-chart-area {
    margin-top: 8px;
}

/* ==================== DASH CARD ==================== */
.dash-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
}

.dash-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #f59e0b;
    font-weight: 600;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dash-card-link:hover { color: #fcd34d; }

.dash-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ==================== LIVE PRICE ROWS ==================== */
.live-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.live-price-row:last-child { border-bottom: none; }

/* ==================== QUICK BUY ==================== */
.quick-buy-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.quick-amount-btn {
    padding: 8px 4px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'AzarMehr', sans-serif;
    color: #737373;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: all 0.25s ease;
}

.quick-amount-btn:hover {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.25);
}

.quick-amount-btn.active {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.quick-buy-calc {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}

/* ==================== TICKET ROWS ==================== */
.ticket-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ticket-row:last-child { border-bottom: none; }

.ticket-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ticket-status.open     { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.ticket-status.answered { background: #10b981; }
.ticket-status.closed   { background: #525252; }

.ticket-label {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
    flex-shrink: 0;
}

.ticket-label.open     { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ticket-label.answered { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.ticket-label.closed   { background: rgba(82, 82, 82, 0.15); color: #737373; }

/* ==================== DASH TABLE ==================== */
.dash-table {
    border-collapse: separate;
    border-spacing: 0;
}

.dash-table thead th {
    text-align: right;
    font-size: 0.75rem;
    color: #525252;
    font-weight: 600;
    padding: 0 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.dash-table thead th:first-child { padding-right: 0; }

.dash-table tbody td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    vertical-align: middle;
    white-space: nowrap;
}

.dash-table tbody td:first-child { padding-right: 0; }

.dash-table tbody tr:last-child td { border-bottom: none; }

.dash-table tbody tr {
    transition: background 0.2s ease;
}

.dash-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.tx-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
}

.tx-type-badge.buy {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.tx-type-badge.sell {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tx-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}

.tx-status-badge.success {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tx-status-badge.pending {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ==================== ACTIVITY BARS ==================== */
.activity-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.activity-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}

.activity-bar {
    width: 100%;
    border-radius: 5px 5px 0 0;
    background: rgba(245, 158, 11, 0.15);
    transition: height 1s ease, background 0.3s ease;
    cursor: pointer;
    min-height: 4px;
}

.activity-bar:hover,
.activity-bar.active {
    background: rgba(245, 158, 11, 0.5);
}

.activity-bar.has-data {
    background: rgba(245, 158, 11, 0.3);
}

.activity-bar-label {
    font-size: 0.62rem;
    color: #404040;
    white-space: nowrap;
}

/* ==================== QUICK LINKS ==================== */
.quick-link-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.quick-link-card:hover {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.03);
    transform: translateY(-3px);
}

.quick-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
    background: rgba(245, 158, 11, 0.14);
    transform: scale(1.08);
}

/* ==================== DASH SELECT ==================== */
.dash-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 12px;
    color: #a3a3a3;
    font-size: 0.78rem;
    font-family: 'AzarMehr', sans-serif;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.dash-select:focus { border-color: rgba(245, 158, 11, 0.3); }
.dash-select option { background: #1a1a1a; }

/* ==================== BUY MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalBgIn 0.3s ease;
}

@keyframes modalBgIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: modalBoxIn 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes modalBoxIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #737373;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.modal-body {
    padding: 24px 26px;
}

.modal-price-display {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-form-group { margin-bottom: 18px; }

.modal-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #d4d4d4;
    margin-bottom: 8px;
}

.modal-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.modal-type-option { cursor: pointer; }

.modal-type-card {
    padding: 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    font-size: 0.82rem;
    font-weight: 600;
    color: #737373;
    text-align: center;
    transition: all 0.25s ease;
}

.modal-type-card.active,
.modal-type-option input:checked + .modal-type-card {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.07);
    color: #f59e0b;
}

.modal-input-wrap { position: relative; }

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    padding-left: 50px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'AzarMehr', sans-serif;
    outline: none;
    direction: ltr;
    text-align: center;
    transition: border-color 0.3s ease;
}

.modal-input:focus { border-color: rgba(245, 158, 11, 0.4); }
.modal-input::-webkit-inner-spin-button,
.modal-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.modal-input-unit {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    color: #525252;
}

.modal-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
}

.modal-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #737373;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-summary-row:last-child { border-bottom: none; }

.modal-summary-row.total {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
    padding-top: 10px;
    margin-top: 4px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
    .dash-content { padding: 16px; }
    .wallet-card-content { padding: 20px; }
    .quick-buy-amounts { grid-template-columns: repeat(2, 1fr); }
    .welcome-banner { padding: 20px; }
    .dash-topbar { padding: 14px 16px; }
}