@import "/assets/fonts/font.css";

    /* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold-primary: #D4A853;
    --gold-light: #F2D68A;
    --gold-dark: #B8912A;
    --gold-gradient: linear-gradient(135deg, #D4A853 0%, #F2D68A 50%, #D4A853 100%);
    --dark-bg: #0A0E17;
    --dark-card: #111827;
    --dark-card-2: #1A2332;
    --dark-border: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --green: #10B981;
    --green-light: #D1FAE5;
    --red: #EF4444;
    --red-light: #FEE2E2;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --shadow-gold: 0 0 30px rgba(212, 168, 83, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'dana', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-animation .circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.bg-animation .circle:nth-child(1) {
    width: 600px; height: 600px;
    top: -200px; right: -100px;
    animation-delay: 0s;
}

.bg-animation .circle:nth-child(2) {
    width: 400px; height: 400px;
    bottom: -100px; left: -100px;
    animation-delay: -7s;
}

.bg-animation .circle:nth-child(3) {
    width: 300px; height: 300px;
    top: 50%; left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(50px, 30px) scale(1.05); }
}

/* ===== HEADER / NAVBAR ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: var(--gold-gradient);
    border-radius: 50%; /* تغییر به دایره کامل */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-size: 20px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-text span:last-child {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold-primary);
    background: rgba(212, 168, 83, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: 'dana', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 83, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--dark-border);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--dark-card-2);
    border: 2px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    border-color: var(--gold-primary);
}

.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--dark-card-2);
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.notification-bell:hover {
    border-color: var(--gold-primary);
}

.notification-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    background: var(--red);
    border-radius: 50%;
    font-size: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px;
}

/* ===== LIVE PRICE TICKER ===== */
.ticker-bar {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 14px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    overflow: hidden;
    position: relative;
}

.ticker-bar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-label .dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ticker-items {
    display: flex;
    align-items: center;
    gap: 36px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ticker-items::-webkit-scrollbar { display: none; }

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-item-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.ticker-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    direction: ltr;
}

.ticker-item-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    direction: ltr;
}

.ticker-item-change.up {
    color: var(--green);
    background: rgba(16, 185, 129, 0.1);
}

.ticker-item-change.down {
    color: var(--red);
    background: rgba(239, 68, 68, 0.1);
}

.ticker-divider {
    width: 1px;
    height: 24px;
    background: var(--dark-border);
    flex-shrink: 0;
}

/* ===== HERO / WELCOME ===== */
.hero-section {
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-card-2) 100%);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.06) 0%, transparent 50%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-right {
    flex: 1;
}

.hero-greeting {
    font-size: 15px;
    color: var(--gold-primary);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.5;
}

.hero-title .gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
}

.hero-left {
    display: flex;
    gap: 16px;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 24px;
    min-width: 180px;
    text-align: center;
    transition: var(--transition);
}

.hero-stat-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.hero-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.hero-stat-icon.gold-bg {
    background: rgba(212, 168, 83, 0.12);
}

.hero-stat-icon.green-bg {
    background: rgba(16, 185, 129, 0.12);
}

.hero-stat-icon.blue-bg {
    background: rgba(59, 130, 246, 0.12);
}

.hero-stat-value {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    direction: ltr;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.hero-stat-value .unit {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== GRID LAYOUT ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    margin-bottom: 24px;
}

/* ===== GOLD PRICE MAIN CARD ===== */
.price-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.price-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

.price-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-card-title h2 {
    font-size: 17px;
    font-weight: 700;
}

.price-card-title .badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
}

.badge-live {
    background: rgba(16, 185, 129, 0.12);
    color: var(--green);
}

.price-card-tabs {
    display: flex;
    gap: 4px;
    background: var(--dark-card-2);
    padding: 4px;
    border-radius: 10px;
}

.price-tab {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
    font-family: 'dana', sans-serif;
}

.price-tab.active {
    background: var(--dark-card);
    color: var(--gold-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.price-display {
    padding: 28px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.price-main {
    font-size: 42px;
    font-weight: 900;
    direction: ltr;
    letter-spacing: -1px;
    line-height: 1;
}

.price-main .currency {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 4px;
}

.price-change-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    direction: ltr;
}

.price-change-badge.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}

.price-change-badge.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

/* ===== CHART AREA ===== */
.chart-container {
    padding: 0 28px 28px;
    height: 220px;
    position: relative;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-grid-line {
    stroke: var(--dark-border);
    stroke-width: 0.5;
    stroke-dasharray: 4, 4;
}

.chart-line {
    fill: none;
    stroke: var(--gold-primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-area {
    fill: url(#goldGradient);
    opacity: 0.3;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 28px 20px;
}

.chart-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== BUY/SELL PANEL ===== */
.trade-panel {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.trade-panel-header {
    padding: 24px 24px 0;
}

.trade-panel-header h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trade-tabs {
    display: flex;
    background: var(--dark-card-2);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.trade-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'dana', sans-serif;
    background: transparent;
    color: var(--text-muted);
}

.trade-tab.active-buy {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.trade-tab.active-sell {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.trade-body {
    padding: 24px;
}

.trade-input-group {
    margin-bottom: 18px;
}

.trade-input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.trade-input-label span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.trade-input-label .available {
    font-size: 12px;
    color: var(--text-muted);
}

.trade-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.trade-input {
    width: 100%;
    padding: 14px 18px;
    padding-left: 80px;
    background: var(--dark-card-2);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    font-family: 'dana', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    direction: ltr;
    text-align: right;
    outline: none;
    transition: var(--transition);
}

.trade-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.trade-input-suffix {
    position: absolute;
    left: 14px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--dark-bg);
    padding: 4px 10px;
    border-radius: 6px;
}

.quick-amounts {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.quick-amount-btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--dark-card-2);
    border: 1px solid var(--dark-border);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'dana', sans-serif;
}

.quick-amount-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.trade-summary {
    background: var(--dark-card-2);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.trade-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}

.trade-summary-row:not(:last-child) {
    border-bottom: 1px solid var(--dark-border);
}

.trade-summary-row .label {
    color: var(--text-muted);
}

.trade-summary-row .value {
    font-weight: 700;
    direction: ltr;
}

.btn-buy {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-family: 'dana', sans-serif;
    transition: var(--transition);
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-sell {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-family: 'dana', sans-serif;
    transition: var(--transition);
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    display: none;
}

/* ===== BOTTOM GRID ===== */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* ===== WALLET CARD ===== */
.wallet-card {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1629 100%);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 80% 30%, rgba(212, 168, 83, 0.05) 0%, transparent 50%);
}

.wallet-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.wallet-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-actions {
    display: flex;
    gap: 8px;
}

.wallet-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.wallet-action-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 168, 83, 0.1);
}

.wallet-balance {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.wallet-balance-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.wallet-balance-value {
    font-size: 32px;
    font-weight: 900;
    direction: ltr;
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.wallet-balance-value .unit {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.wallet-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.wallet-details {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.wallet-detail-item {
    text-align: center;
}

.wallet-detail-value {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
    direction: ltr;
}

.wallet-detail-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== TRANSACTIONS ===== */
.transactions-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--dark-border);
}

.card-header h3 {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header .view-all {
    font-size: 12px;
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.card-header .view-all:hover {
    color: var(--gold-light);
}

.transaction-list {
    padding: 8px 0;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    transition: var(--transition);
    cursor: pointer;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.transaction-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-left: 14px;
    flex-shrink: 0;
}

.transaction-icon.buy {
    background: rgba(16, 185, 129, 0.1);
}

.transaction-icon.sell {
    background: rgba(239, 68, 68, 0.1);
}

.transaction-icon.deposit {
    background: rgba(59, 130, 246, 0.1);
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-muted);
}

.transaction-amount {
    text-align: left;
    direction: ltr;
}

.transaction-amount-value {
    font-size: 14px;
    font-weight: 700;
}

.transaction-amount-value.positive {
    color: var(--green);
}

.transaction-amount-value.negative {
    color: var(--red);
}

.transaction-amount-sub {
    font-size: 11px;
    color: var(--text-muted);
    text-align: left;
}

/* ===== GOLD HOLDINGS ===== */
.holdings-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.holding-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--dark-border);
}

.holding-item:last-child {
    border-bottom: none;
}

.holding-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-left: 14px;
    flex-shrink: 0;
    background: rgba(212, 168, 83, 0.1);
}

.holding-info {
    flex: 1;
}

.holding-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.holding-weight {
    font-size: 12px;
    color: var(--text-muted);
    direction: ltr;
    text-align: right;
}

.holding-value {
    text-align: left;
    direction: ltr;
}

.holding-price {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.holding-change {
    font-size: 11px;
    font-weight: 600;
}

.holding-change.up { color: var(--green); }
.holding-change.down { color: var(--red); }

/* ===== PRICE TABLE ===== */
.price-table-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
}

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

.price-table thead {
    background: var(--dark-card-2);
}

.price-table th {
    padding: 14px 24px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: none;
}

.price-table td {
    padding: 16px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--dark-border);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table tbody tr {
    transition: var(--transition);
}

.price-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-item-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(212, 168, 83, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.table-item-info {
    display: flex;
    flex-direction: column;
}

.table-item-info .name {
    font-weight: 700;
    font-size: 14px;
}

.table-item-info .code {
    font-size: 11px;
    color: var(--text-muted);
}

.table-price {
    font-weight: 800;
    direction: ltr;
    text-align: right;
    font-size: 15px;
}

.table-change {
    direction: ltr;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
}

.table-change.up { color: var(--green); }
.table-change.down { color: var(--red); }

.table-action-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: 'dana', sans-serif;
    transition: var(--transition);
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold-primary);
}

.table-action-btn:hover {
    background: var(--gold-primary);
    color: #1a1a1a;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    padding: 48px 24px 24px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 2;
    margin-top: 16px;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--dark-card-2);
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 168, 83, 0.1);
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--dark-border);
    padding: 8px 16px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.mobile-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    transition: var(--transition);
}

.mobile-nav-item.active {
    color: var(--gold-primary);
}

.mobile-nav-item .icon {
    font-size: 22px;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--dark-card-2);
    border: 1px solid var(--dark-border);
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .bottom-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .hero-left {
        width: 100%;
    }

    .hero-stat-card {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px; /* دقیقا هم‌ارتفاع با هدر شما */
        left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--dark-border);
        padding: 0;
        /* استفاده از max-height برای ایجاد انیمیشن نرم باز شدن */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }


    .nav-links.show {
        max-height: 400px; /* باید از ارتفاع کل منو بیشتر باشد */
        padding: 16px 24px;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 15px;
        border-radius: 0;
    }

    .nav-links a:hover, .nav-links a.active {
        background: transparent;
        padding-right: 10px; /* یک افکت جذاب هنگام هاور در موبایل */
    }

    .hamburger {
        display: flex;
        user-select: none;
        transition: var(--transition);
    }

    .header-actions .btn {
        padding: 8px 14px;
        font-size: 12px;
    }


    .header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .main-content {
        padding: 16px;
        padding-bottom: 100px;
    }

    .hero-section {
        padding: 24px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-left {
        flex-direction: column;
    }

    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .ticker-bar {
        padding: 12px 16px;
        gap: 20px;
    }

    .price-main {
        font-size: 32px;
    }

    .wallet-balance-value {
        font-size: 26px;
    }

    .mobile-nav {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .price-table {
        font-size: 12px;
    }

    .price-table th, .price-table td {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .hero-stat-card {
        min-width: auto;
        padding: 18px 14px;
    }

    .hero-stat-value {
        font-size: 18px;
    }

    .quick-amounts {
        flex-wrap: wrap;
    }

    .quick-amount-btn {
        flex: 0 0 calc(25% - 6px);
    }
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }


    .auth-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 20px;
        position: relative;
        z-index: 1;
    }

    .auth-card {
        background: var(--dark-card);
        border: 1px solid var(--dark-border);
        border-radius: var(--radius);
        width: 100%;
        max-width: 480px;
        padding: 40px;
        box-shadow: var(--shadow-card);
        position: relative;
        overflow: hidden;
    }

    /* خط طلایی بالای کارت */
    .auth-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--gold-gradient);
    }

    .auth-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .auth-logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        background: var(--gold-gradient);
        border-radius: 16px;
        font-size: 30px;
        margin-bottom: 15px;
        box-shadow: var(--shadow-gold);
    }

    .auth-title {
        font-size: 24px;
        font-weight: 800;
        color: var(--text-primary);
        margin-bottom: 8px;
    }

    .auth-subtitle {
        font-size: 14px;
        color: var(--text-muted);
    }

    .auth-tabs {
        display: flex;
        background: var(--dark-card-2);
        border-radius: 12px;
        padding: 6px;
        margin-bottom: 30px;
    }

    .auth-tab {
        flex: 1;
        padding: 12px;
        text-align: center;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: var(--transition);
        border: none;
        background: transparent;
        color: var(--text-muted);
        font-family: 'dana', sans-serif;
    }

    .auth-tab.active {
        background: var(--dark-bg);
        color: var(--gold-primary);
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .auth-form {
        display: none;
        animation: fadeIn 0.4s ease forwards;
    }

    .auth-form.active {
        display: block;
    }

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

    .input-group {
        margin-bottom: 20px;
    }

    .input-label {
        display: block;
        margin-bottom: 8px;
        font-size: 13px;
        color: var(--text-secondary);
        font-weight: 600;
    }

    .input-field {
        width: 100%;
        padding: 14px 18px;
        background: var(--dark-card-2);
        border: 1px solid var(--dark-border);
        border-radius: var(--radius-sm);
        font-family: 'dana', sans-serif;
        font-size: 15px;
        color: var(--text-primary);
        transition: var(--transition);
        outline: none;
    }

    .input-field:focus {
        border-color: var(--gold-primary);
        box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
    }

    .input-row {
        display: flex;
        gap: 15px;
    }

    .input-row .input-group {
        flex: 1;
    }

    .btn-submit {
        width: 100%;
        padding: 16px;
        border-radius: var(--radius-sm);
        font-size: 16px;
        font-weight: 800;
        border: none;
        cursor: pointer;
        font-family: 'dana', sans-serif;
        transition: var(--transition);
        background: var(--gold-gradient);
        color: #0A0E17;
        box-shadow: var(--shadow-gold);
        margin-top: 10px;
    }

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(212, 168, 83, 0.4);
    }

    .alert {
        padding: 14px 18px;
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .alert-error {
        background: rgba(239, 68, 68, 0.1);
        color: var(--red);
        border: 1px solid rgba(239, 68, 68, 0.2);
    }

    .alert-success {
        background: rgba(16, 185, 129, 0.1);
        color: var(--green);
        border: 1px solid rgba(16, 185, 129, 0.2);
    }


/* ===== 403 ERROR PAGE STYLES ===== */
.error-container {
    text-align: center;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-code {
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: -10px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -4px;
    text-shadow: 0 10px 30px rgba(212, 168, 83, 0.2);
    font-family: system-ui, -apple-system, sans-serif; /* برای نمایش بهتر اعداد لاتین */
}

.error-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: rgba(239, 68, 68, 0.08); /* پس‌زمینه محو قرمز */
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red); /* استفاده از متغیر قرمز استایل شما */
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.1);
}

.error-icon svg {
    width: 34px;
    height: 34px;
}

.error-container .auth-title {
    font-size: 26px;
    margin-bottom: 12px;
}

.error-container .auth-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.8;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

/* تنظیم دکمه بازگشت برای حالت لینک (a tag) */
.btn-back {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.btn-back svg {
    width: 18px;
    height: 18px;
    transform: rotate(180deg); /* چرخش فلش برای زبان فارسی (راست‌چین) */
}


/* ===== INFO BANNER ===== */
.info-banner {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.08) 0%, rgba(10, 14, 23, 0) 100%);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-gold);
}

.info-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.info-banner-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 168, 83, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: var(--gold-primary);
}

.info-banner-content {
    flex: 1;
}

.info-banner-title {
    color: var(--gold-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-banner-text {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
    margin: 0;
}


.password-wrapper {
    position: relative;
}

.password-wrapper .input-field {
    padding-left: 50px !important;
}

.password-toggle-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle-icon:hover {
    color: var(--gold-primary);
}