/* ============================================ */
/* GOLD WALLET - DARK THEME                     */
/* ============================================ */

body.gw-theme-dark {
    --gw-bg-primary: #1a1a2e;
    --gw-bg-secondary: #12121f;
    --gw-bg-card: rgba(255, 255, 255, 0.03);
    --gw-border-color: rgba(212, 175, 55, 0.15);
    --gw-text-primary: #f5e6a3;
    --gw-text-secondary: #b8a87e;
    --gw-text-muted: #6a5f4a;
    --gw-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    
    background-color: #0a0a16 !important;
    color: #f0e6d3 !important;
}

body.gw-theme-dark .gw-box,
body.gw-theme-dark .gw-form-card,
body.gw-theme-dark .gw-history-modern,
body.gw-theme-dark .gw-card-manager,
body.gw-theme-dark .gw-deposit-box,
body.gw-theme-dark .gw-withdraw-box,
body.gw-theme-dark .gw-balance-card,
body.gw-theme-dark .gw-gift-box,
body.gw-theme-dark .gw-theme-settings-box {
    background: linear-gradient(180deg, #1a1a2e 0%, #12121f 100%) !important;
    border-color: rgba(212, 175, 55, 0.18) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5) !important;
}

body.gw-theme-dark .gw-field input,
body.gw-theme-dark .gw-field select {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(212, 175, 55, 0.12) !important;
    color: #f0e6d3 !important;
}

body.gw-theme-dark .gw-field input:focus,
body.gw-theme-dark .gw-field select:focus {
    border-color: #d4af37 !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.gw-theme-dark .gw-btn {
    background: linear-gradient(135deg, #d4af37, #b8941e) !important;
    color: #1a1a2e !important;
}

body.gw-theme-dark .gw-btn:hover {
    background: linear-gradient(135deg, #e8c84a, #d4af37) !important;
}

/* ===== تغییرات خاص تم شب ===== */
body.gw-theme-dark .gw-summary-row {
    border-color: rgba(212, 175, 55, 0.04) !important;
}

body.gw-theme-dark .gw-form-head {
    border-color: rgba(212, 175, 55, 0.08) !important;
}

body.gw-theme-dark .gw-actions-summary {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(212, 175, 55, 0.06) !important;
}

body.gw-theme-dark .gw-live-price {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(212, 175, 55, 0.06) !important;
}

/* ===== کارت‌ها ===== */
body.gw-theme-dark .gw-card-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(212, 175, 55, 0.06) !important;
}

body.gw-theme-dark .gw-card-item:hover {
    border-color: rgba(212, 175, 55, 0.15) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

body.gw-theme-dark .gw-card-item .gw-card-label {
    color: #9a8b6e !important;
}

body.gw-theme-dark .gw-card-item .gw-card-value {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .gw-card-item .gw-card-header {
    border-color: rgba(212, 175, 55, 0.04) !important;
}

body.gw-theme-dark .gw-delete-card {
    border-color: rgba(239, 68, 68, 0.15) !important;
    background: rgba(239, 68, 68, 0.05) !important;
    color: #f87171 !important;
}

body.gw-theme-dark .gw-delete-card:hover {
    background: rgba(239, 68, 68, 0.10) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

/* ===== تاریخچه ===== */
body.gw-theme-dark .gw-tx-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(212, 175, 55, 0.06) !important;
}

body.gw-theme-dark .gw-tx-card:hover {
    border-color: rgba(212, 175, 55, 0.15) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

body.gw-theme-dark .gw-tx-title {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .gw-tx-sub {
    color: #6a5f4a !important;
}

body.gw-theme-dark .gw-tx-detail-btn {
    border-color: rgba(212, 175, 55, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: #b8a87e !important;
}

body.gw-theme-dark .gw-tx-detail-btn:hover {
    background: rgba(212, 175, 55, 0.05) !important;
    border-color: rgba(212, 175, 55, 0.15) !important;
    color: #f5e6a3 !important;
}

/* ===== موجودی ===== */
body.gw-theme-dark .gw-balance-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(212, 175, 55, 0.06) !important;
}

body.gw-theme-dark .gw-balance-item .label {
    color: #9a8b6e !important;
}

body.gw-theme-dark .gw-balance-item .value {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .gw-balance-item.gold .value {
    color: #d4af37 !important;
}

body.gw-theme-dark .gw-balance-item.rial .value {
    color: #34d399 !important;
}

body.gw-theme-dark .gw-balance-item.soto .value {
    color: #fbbf24 !important;
}

/* ===== مودال‌ها ===== */
body.gw-theme-dark .gw-modal-box {
    background: linear-gradient(180deg, #1a1a2e 0%, #12121f 100%) !important;
    border-color: rgba(212, 175, 55, 0.10) !important;
}

body.gw-theme-dark .gw-modal-header {
    border-color: rgba(212, 175, 55, 0.06) !important;
}

body.gw-theme-dark .gw-modal-header h3 {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .gw-modal-close {
    color: #9a8b6e !important;
    border-color: rgba(212, 175, 55, 0.06) !important;
}

body.gw-theme-dark .gw-modal-close:hover {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .gw-modal-body {
    color: #b8a87e !important;
}

body.gw-theme-dark .gw-detail-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(212, 175, 55, 0.04) !important;
}

body.gw-theme-dark .gw-detail-card .gw-detail-title {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .gw-detail-row .label {
    color: #9a8b6e !important;
}

body.gw-theme-dark .gw-detail-row .value {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .gw-detail-row .value.positive {
    color: #34d399 !important;
}

body.gw-theme-dark .gw-detail-row .value.negative {
    color: #f87171 !important;
}

body.gw-theme-dark .gw-detail-row .value.gold {
    color: #d4af37 !important;
}

body.gw-theme-dark .gw-detail-row .value.fee {
    color: #fbbf24 !important;
}

body.gw-theme-dark .gw-invoice-btn {
    background: linear-gradient(135deg, #d4af37, #c49b2a) !important;
    color: #1a1a2e !important;
}

body.gw-theme-dark .gw-modal-close-bottom {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(212, 175, 55, 0.06) !important;
    color: #9a8b6e !important;
}

body.gw-theme-dark .gw-modal-close-bottom:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #f5e6a3 !important;
}

/* ===== سشن‌ها ===== */
body.gw-theme-dark .gw-sessions-wrap * {
    color: #f0e6d3 !important;
}

body.gw-theme-dark .gw-session-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(212, 175, 55, 0.10) !important;
}

body.gw-theme-dark .gw-session-card .gw-session-device {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .gw-session-card .gw-session-detail {
    color: #9a8b6e !important;
}

body.gw-theme-dark .gw-sessions-header h2 {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .gw-sessions-footer .gw-logout-all {
    border-color: rgba(239, 68, 68, 0.20) !important;
    color: #f87171 !important;
}

body.gw-theme-dark .gw-sessions-footer .gw-logout-all:hover {
    background: rgba(239, 68, 68, 0.08) !important;
}

/* ===== فاکتور ===== */
body.gw-theme-dark .invoice-box,
body.gw-theme-dark .gw-invoice-wrapper {
    background: #1a1a2e !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
    color: #f0e6d3 !important;
}

body.gw-theme-dark .invoice-box .header {
    border-color: rgba(212, 175, 55, 0.2) !important;
}

body.gw-theme-dark .invoice-box .header .title {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .invoice-box .header .company {
    color: #d4af37 !important;
}

body.gw-theme-dark .invoice-box .info-line .lbl {
    color: #9a8b6e !important;
}

body.gw-theme-dark .invoice-box .info-line .val {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .invoice-box .info-box {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(212, 175, 55, 0.1) !important;
}

body.gw-theme-dark .invoice-box .params-table td {
    border-color: rgba(212, 175, 55, 0.1) !important;
}

body.gw-theme-dark .invoice-box .params-table tr td:first-child {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #b8a87e !important;
}

body.gw-theme-dark .invoice-box .params-table tr td:last-child {
    color: #f5e6a3 !important;
}

body.gw-theme-dark .invoice-box .sig-box {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(212, 175, 55, 0.15) !important;
}

body.gw-theme-dark .invoice-box .footer {
    border-color: rgba(212, 175, 55, 0.1) !important;
}

body.gw-theme-dark .invoice-box .footer .tx-code {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #d4af37 !important;
}
/* ============================================================
   ===== فاکتور - همیشه سفید =====
   ============================================================ */

/* ===== مودال فاکتور ===== */
#gwFactModal .invoice-box,
#gwFactModal .gw-invoice-wrapper,
#gwDetailModal .invoice-box,
#gwDetailModal .gw-invoice-wrapper,
.gw-invoice-wrapper .invoice-box {
    background: #ffffff !important;
    color: #1a1a2e !important;
    border-color: #dce1e8 !important;
}

#gwFactModal .invoice-box .header,
#gwDetailModal .invoice-box .header,
.gw-invoice-wrapper .invoice-box .header {
    border-color: #0f172a !important;
}

#gwFactModal .invoice-box .header .title,
#gwDetailModal .invoice-box .header .title,
.gw-invoice-wrapper .invoice-box .header .title {
    color: #0f172a !important;
}

#gwFactModal .invoice-box .header .company,
#gwDetailModal .invoice-box .header .company,
.gw-invoice-wrapper .invoice-box .header .company {
    color: #1e3a8a !important;
}

#gwFactModal .invoice-box .info-line .lbl,
#gwDetailModal .invoice-box .info-line .lbl,
.gw-invoice-wrapper .invoice-box .info-line .lbl {
    color: #7a7f8a !important;
}

#gwFactModal .invoice-box .info-line .val,
#gwDetailModal .invoice-box .info-line .val,
.gw-invoice-wrapper .invoice-box .info-line .val {
    color: #1a1a2e !important;
}

#gwFactModal .invoice-box .info-box,
#gwDetailModal .invoice-box .info-box,
.gw-invoice-wrapper .invoice-box .info-box {
    background: #fafbfc !important;
    border-color: #dce1e8 !important;
}

#gwFactModal .invoice-box .info-box h4,
#gwDetailModal .invoice-box .info-box h4,
.gw-invoice-wrapper .invoice-box .info-box h4 {
    color: #0f172a !important;
    border-color: #e8ecf0 !important;
}

#gwFactModal .invoice-box .info-box .row .lbl,
#gwDetailModal .invoice-box .info-box .row .lbl,
.gw-invoice-wrapper .invoice-box .info-box .row .lbl {
    color: #7a7f8a !important;
}

#gwFactModal .invoice-box .info-box .row .val,
#gwDetailModal .invoice-box .info-box .row .val,
.gw-invoice-wrapper .invoice-box .info-box .row .val {
    color: #1a1a2e !important;
}

#gwFactModal .invoice-box .params-table td,
#gwDetailModal .invoice-box .params-table td,
.gw-invoice-wrapper .invoice-box .params-table td {
    border-color: #dce1e8 !important;
}

#gwFactModal .invoice-box .params-table tr td:first-child,
#gwDetailModal .invoice-box .params-table tr td:first-child,
.gw-invoice-wrapper .invoice-box .params-table tr td:first-child {
    background: #f7f8fa !important;
    color: #444 !important;
}

#gwFactModal .invoice-box .params-table tr td:last-child,
#gwDetailModal .invoice-box .params-table tr td:last-child,
.gw-invoice-wrapper .invoice-box .params-table tr td:last-child {
    color: #1a1a2e !important;
}

#gwFactModal .invoice-box .sig-box,
#gwDetailModal .invoice-box .sig-box,
.gw-invoice-wrapper .invoice-box .sig-box {
    background: #fafbfc !important;
    border-color: #c0c6d0 !important;
}

#gwFactModal .invoice-box .sig-box .sig-text,
#gwDetailModal .invoice-box .sig-box .sig-text,
.gw-invoice-wrapper .invoice-box .sig-box .sig-text {
    color: #7a7f8a !important;
}

#gwFactModal .invoice-box .footer,
#gwDetailModal .invoice-box .footer,
.gw-invoice-wrapper .invoice-box .footer {
    border-color: #e8ecf0 !important;
}

#gwFactModal .invoice-box .footer .tx-code,
#gwDetailModal .invoice-box .footer .tx-code,
.gw-invoice-wrapper .invoice-box .footer .tx-code {
    background: #f5f6fa !important;
    color: #7a7f8a !important;
}

#gwFactModal .invoice-box .footer .note,
#gwDetailModal .invoice-box .footer .note,
.gw-invoice-wrapper .invoice-box .footer .note {
    color: #9a9fa8 !important;
}

/* ===== دکمه‌های فاکتور ===== */
#gwFactModal .gw-invoice-actions .btn-print,
#gwDetailModal .gw-invoice-actions .btn-print {
    background: linear-gradient(135deg, #0f172a, #1e3a8a) !important;
    color: #ffffff !important;
}

#gwFactModal .gw-invoice-actions .btn-back,
#gwDetailModal .gw-invoice-actions .btn-back {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #4b5563 !important;
}

#gwFactModal .gw-invoice-actions .btn-back:hover,
#gwDetailModal .gw-invoice-actions .btn-back:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
}