/* BitMEX - Modern Dashboard CSS */

/* ── Copy / Selection Protection ── */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #71717a;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(18, 91, 255, 0.1);
    color: #50b4f2;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #125bff;
    border-radius: 0 3px 3px 0;
}

.sidebar-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-link.active svg {
    opacity: 1;
}

/* Mobile Navigation */
.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 10px 8px;
    font-size: 10px;
    font-weight: 500;
    color: #52525b;
    transition: color 0.2s ease, transform 0.15s ease;
    flex: 1;
    text-align: center;
    position: relative;
}

.mobile-nav-link svg {
    transition: transform 0.15s ease;
}

.mobile-nav-link:hover {
    color: #A6ADBA;
}

.mobile-nav-link.active {
    color: #50b4f2;
}

.mobile-nav-link.active svg {
    transform: translateY(-1px);
}

.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #50b4f2;
    border-radius: 2px 2px 0 0;
}

/* ========================================
   FORM INPUTS
   ======================================== */

/* Form inputs - Django form widgets need these */
.form-input,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    font-family: inherit;
    color: #f5f5f7;
    background: #0a0f1a;
    border: 1px solid #3B4756;
    border-radius: 4px;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:hover,
.form-select:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
select:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.form-input:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: #125bff;
    box-shadow: 0 0 0 3px rgba(18, 91, 255, 0.12);
    background: #06080d;
}

.form-input::placeholder,
input::placeholder {
    color: #52525b;
}

/* Override browser autofill white background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0a0f1a inset !important;
    -webkit-text-fill-color: #f5f5f7 !important;
    caret-color: #f5f5f7;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #50b4f2;
    border-radius: 4px;
    cursor: pointer;
}

/* Currency toggle buttons need special handling for JS */
.cur-btn {
    cursor: pointer;
}

.cur-btn.active {
    background: #125bff !important;
    color: #fff !important;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 20px;
    background: #22232b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.3s ease-out;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.toast.hiding {
    animation: fadeInUp 0.3s ease-out reverse forwards;
}

.toast-success { border-left: 3px solid #00c076; }
.toast-error { border-left: 3px solid #f6465d; }
.toast-info { border-left: 3px solid #125bff; }

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

/* Copy button success state */
.copy-btn.copied {
    background: #00c076 !important;
}

/* Utility classes that might be used in templates */
.text-green { color: #00c076; }
.text-red { color: #f6465d; }
.text-muted { color: #71717a; }

/* Responsive mobile toast */
@media (max-width: 768px) {
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* Card styles for dashboard pages */
.card {
    background: #0f1623;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.card-head {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
}

/* Page header */
.page-head {
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
    padding: 12px 24px;
}

.btn-primary {
    background: #125bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(18, 91, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(18, 91, 255, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    height: 48px;
    font-size: 16px;
}

.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

/* Wallet icon */
.wallet-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #172035;
    flex-shrink: 0;
}

.wallet-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Deposit page */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #71717a;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #fff;
}

/* Professional Deposit Layout */
.dep-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    max-width: 1000px;
}

@media (max-width: 900px) {
    .dep-container {
        grid-template-columns: 1fr;
    }
}

.dep-main-card {
    background: #1a1b1f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.dep-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 500px) {
    .dep-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .dep-balance-display {
        text-align: left;
    }
}

.dep-crypto-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dep-crypto-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: #172035;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dep-crypto-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dep-crypto-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dep-crypto-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.dep-crypto-symbol {
    font-size: 13px;
    color: #71717a;
    font-weight: 500;
}

.dep-balance-display {
    text-align: right;
}

.dep-balance-label {
    display: block;
    font-size: 12px;
    color: #71717a;
    margin-bottom: 4px;
}

.dep-balance-amount {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.dep-balance-amount small {
    font-size: 13px;
    color: #71717a;
    font-weight: 400;
}

.dep-card-body {
    padding: 24px;
}

.dep-section {
    margin-bottom: 28px;
}

.dep-section:last-child {
    margin-bottom: 0;
}

.dep-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dep-section-number {
    width: 28px;
    height: 28px;
    background: #1d2435;
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.dep-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

/* Network Grid */
.dep-network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.dep-network-option {
    position: relative;
    cursor: pointer;
}

.dep-network-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dep-network-content {
    padding: 14px 16px;
    background: #172035;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dep-network-option:hover .dep-network-content {
    border-color: rgba(255, 255, 255, 0.15);
    background: #1e1f24;
}

.dep-network-option.selected .dep-network-content {
    border-color: #50b4f2;
    background: rgba(18, 91, 255, 0.08);
}

.dep-network-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.dep-network-tag {
    font-size: 11px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dep-network-tag.fast {
    color: #00c076;
}

.dep-network-tag.popular {
    color: #50b4f2;
}

/* Address Container */
.dep-address-container {
    display: flex;
    gap: 24px;
    background: #131b2a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 24px;
}

@media (max-width: 600px) {
    .dep-address-container {
        flex-direction: column;
        align-items: center;
    }
}

.dep-qr-section {
    flex-shrink: 0;
    text-align: center;
}

.dep-qr-box {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dep-qr-placeholder {
    width: 100%;
    height: 100%;
}

.dep-qr-placeholder svg {
    width: 100%;
    height: 100%;
}

.dep-qr-hint {
    display: block;
    font-size: 12px;
    color: #71717a;
    margin-top: 10px;
}

.dep-address-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dep-address-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #71717a;
    margin-bottom: 12px;
}

.dep-address-label svg {
    width: 16px;
    height: 16px;
}

.dep-address-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.dep-address-text {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 13px;
    color: #fff;
    word-break: break-all;
    line-height: 1.5;
    user-select: all;
}

.dep-address-actions {
    display: flex;
    gap: 12px;
}

.dep-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #125bff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dep-copy-btn svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.dep-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(18, 91, 255, 0.3);
}

.dep-copy-btn:active {
    transform: translateY(0);
}

.dep-copy-btn.copied {
    background: #00a965;
    color: #fff;
}

.dep-copy-btn.copied svg {
    color: #fff;
}

/* Warning Box */
.dep-warning {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(18, 91, 255, 0.06);
    border: 1px solid rgba(18, 91, 255, 0.15);
    border-radius: 12px;
}

.dep-warning-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(18, 91, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dep-warning-icon svg {
    width: 22px;
    height: 22px;
    color: #50b4f2;
}

.dep-warning-content {
    flex: 1;
}

.dep-warning-content strong {
    display: block;
    color: #50b4f2;
    font-size: 14px;
    margin-bottom: 8px;
}

.dep-warning-content ul {
    margin: 0;
    padding-left: 18px;
    color: #a1a1aa;
    font-size: 13px;
    line-height: 1.6;
}

.dep-warning-content ul li {
    margin-bottom: 4px;
}

.dep-warning-content ul li:last-child {
    margin-bottom: 0;
}

/* Sidebar */
.dep-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dep-info-card {
    background: #1a1b1f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
}

.dep-info-card.security {
    background: rgba(18, 91, 255, 0.04);
    border-color: rgba(18, 91, 255, 0.12);
}

.dep-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
}

.dep-info-title svg {
    width: 18px;
    height: 18px;
    color: #71717a;
}

.dep-info-card.security .dep-info-title svg {
    color: #50b4f2;
}

.dep-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dep-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dep-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dep-info-item:first-child {
    padding-top: 0;
}

.dep-info-item.highlight {
    background: rgba(18, 91, 255, 0.06);
    margin: 0 -20px;
    padding: 12px 20px;
    border-radius: 8px;
    border-bottom: none;
    margin-top: 8px;
}

.dep-info-label {
    font-size: 13px;
    color: #71717a;
}

.dep-info-value {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.dep-info-value.free {
    color: #00c076;
    font-weight: 600;
}

/* Steps List */
.dep-steps-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: steps;
}

.dep-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.4;
    counter-increment: steps;
}

.dep-steps-list li::before {
    content: counter(steps);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.06);
    color: #71717a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* Security List */
.dep-security-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dep-security-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.4;
}

.dep-security-list li svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #50b4f2;
    margin-top: 2px;
}

/* ========================================
   WITHDRAW PAGE - Professional Layout
   ======================================== */

.withdraw-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    max-width: 1000px;
}

@media (max-width: 900px) {
    .withdraw-container {
        grid-template-columns: 1fr;
    }
}

.withdraw-main-card {
    background: #1a1b1f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.withdraw-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 500px) {
    .withdraw-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .withdraw-balance-display {
        text-align: left;
    }
}

.withdraw-crypto-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.withdraw-crypto-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: #172035;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.withdraw-crypto-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.withdraw-crypto-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.withdraw-crypto-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.withdraw-crypto-symbol {
    font-size: 13px;
    color: #71717a;
    font-weight: 500;
}

.withdraw-balance-display {
    text-align: right;
}

.withdraw-balance-label {
    display: block;
    font-size: 12px;
    color: #71717a;
    margin-bottom: 4px;
}

.withdraw-balance-amount {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.withdraw-balance-amount small {
    font-size: 13px;
    color: #71717a;
    font-weight: 400;
}

.withdraw-card-body {
    padding: 24px;
}

.withdraw-section {
    margin-bottom: 28px;
}

.withdraw-section:last-child {
    margin-bottom: 0;
}

.withdraw-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.withdraw-section-number {
    width: 28px;
    height: 28px;
    background: #1d2435;
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.withdraw-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

/* Withdraw Network Grid */
.withdraw-network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.withdraw-network-option {
    position: relative;
    cursor: pointer;
}

.withdraw-network-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.withdraw-network-content {
    padding: 14px 16px;
    background: #172035;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.withdraw-network-option:hover .withdraw-network-content {
    border-color: rgba(255, 255, 255, 0.15);
    background: #1e1f24;
}

.withdraw-network-option.selected .withdraw-network-content {
    border-color: #50b4f2;
    background: rgba(18, 91, 255, 0.08);
}

.withdraw-network-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.withdraw-network-tag {
    font-size: 11px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.withdraw-network-tag.fast {
    color: #00c076;
}

.withdraw-network-tag.popular {
    color: #50b4f2;
}

/* Withdraw Input Group */
.withdraw-input-group {
    background: #131b2a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}

.withdraw-input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #71717a;
    margin-bottom: 12px;
}

.withdraw-input-label svg {
    width: 16px;
    height: 16px;
}

.withdraw-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    transition: all 0.2s ease;
}

.withdraw-input:focus {
    outline: none;
    border-color: #50b4f2;
    box-shadow: 0 0 0 3px rgba(18, 91, 255, 0.1);
}

.withdraw-input::placeholder {
    color: #52525b;
}

.withdraw-input-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #71717a;
    margin-top: 12px;
}

.withdraw-input-hint svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Withdraw Amount Container */
.withdraw-amount-container {
    background: #131b2a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}

.withdraw-amount-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.withdraw-amount-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px 80px 16px 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    transition: all 0.2s ease;
}

.withdraw-amount-input:focus {
    outline: none;
    border-color: #50b4f2;
    box-shadow: 0 0 0 3px rgba(18, 91, 255, 0.1);
}

.withdraw-amount-input::placeholder {
    color: #52525b;
    font-weight: 400;
}

.withdraw-amount-symbol {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    font-size: 14px;
    font-weight: 500;
}

.withdraw-amount-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.withdraw-amount-available {
    font-size: 13px;
    color: #71717a;
}

.withdraw-amount-available strong {
    color: #fff;
    font-weight: 600;
}

.withdraw-amount-buttons {
    display: flex;
    gap: 8px;
}

.withdraw-pct-btn {
    padding: 8px 14px;
    background: #172035;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #71717a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.withdraw-pct-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.withdraw-pct-btn.active {
    background: rgba(18, 91, 255, 0.15);
    border-color: #50b4f2;
    color: #50b4f2;
}

/* Withdraw AML Box */
.withdraw-aml-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(18, 91, 255, 0.06);
    border: 1px solid rgba(18, 91, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 24px;
}

.withdraw-aml-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(18, 91, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.withdraw-aml-icon svg {
    width: 22px;
    height: 22px;
    color: #50b4f2;
}

.withdraw-aml-content {
    flex: 1;
}

.withdraw-aml-content strong {
    display: block;
    color: #50b4f2;
    font-size: 14px;
    margin-bottom: 8px;
}

.withdraw-aml-content p {
    margin: 0 0 10px 0;
    color: #a1a1aa;
    font-size: 13px;
    line-height: 1.6;
}

.withdraw-aml-link {
    color: #50b4f2;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.withdraw-aml-link:hover {
    color: #fcd34d;
}

/* Withdraw Submit Button */
.withdraw-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #125bff;
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.withdraw-submit-btn svg {
    width: 20px;
    height: 20px;
}

.withdraw-submit-btn:hover {
    background: #2d6fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(18, 91, 255, 0.3);
}

.withdraw-submit-btn:active {
    transform: translateY(0);
}

/* Withdraw Sidebar */
.withdraw-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.withdraw-info-card {
    background: #1a1b1f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
}

.withdraw-info-card.security {
    background: rgba(246, 70, 93, 0.03);
    border-color: rgba(246, 70, 93, 0.12);
}

.withdraw-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
}

.withdraw-info-title svg {
    width: 18px;
    height: 18px;
    color: #71717a;
}

.withdraw-info-card.security .withdraw-info-title svg {
    color: #f6465d;
}

.withdraw-info-list {
    display: flex;
    flex-direction: column;
}

.withdraw-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.withdraw-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.withdraw-info-item:first-child {
    padding-top: 0;
}

.withdraw-info-label {
    font-size: 13px;
    color: #71717a;
}

.withdraw-info-value {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

/* Withdraw Steps List */
.withdraw-steps-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: steps;
}

.withdraw-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.4;
    counter-increment: steps;
}

.withdraw-steps-list li::before {
    content: counter(steps);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.06);
    color: #71717a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* Withdraw Security List */
.withdraw-security-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.withdraw-security-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.4;
}

.withdraw-security-list li svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #f6465d;
    margin-top: 2px;
}

/* Legacy styles for compatibility */
.wallet-icon-lg {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    background: #172035;
    flex-shrink: 0;
}

.wallet-icon-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Network selector */
.form-select {
    width: 100%;
    background: #172035;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2371717a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    transition: all 0.2s ease;
}

.form-select:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.form-select:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.form-select option {
    background: #172035;
    color: #fff;
    padding: 10px;
}

/* QR Code placeholder */
.qr-box {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 16px;
}

.qr-box img {
    width: 160px;
    height: 160px;
    display: block;
}

/* AML box */
.aml-box {
    background: rgba(18, 91, 255, 0.08);
    border: 1px solid rgba(18, 91, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
}

.aml-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: #50b4f2;
    margin: 0 0 8px 0;
}

.aml-box p {
    font-size: 13px;
    color: #a1a1aa;
    margin: 0;
    line-height: 1.6;
}

/* Info box */
.info-box {
    background: #131b2a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.info-box h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
    color: #a1a1aa;
    font-size: 13px;
}

.info-box li {
    padding: 4px 0;
}

/* Error page */
.err-wrap {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.err-icon {
    width: 64px;
    height: 64px;
    background: rgba(246, 70, 93, 0.12);
    color: #f6465d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.err-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.err-msg {
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* Utility spacing */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 12px; }

/* CSS Variables for legacy templates */
:root {
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --text-secondary: #71717a;
    --accent-green: #00c076;
    --accent-yellow: #125bff;
    --accent-red: #f6465d;
    --border-color: rgba(255, 255, 255, 0.05);
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* Dashboard header */
.dashboard-header {
    margin-bottom: 24px;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

/* Card header (alternate naming) */
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

/* Text utilities */
.text-secondary {
    color: #71717a;
}

/* Button secondary */
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Flex utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* Transaction status badges */
.transaction-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
}

.status-pending {
    background: rgba(18, 91, 255, 0.12);
    color: #50b4f2;
}

.status-completed, .status-approved {
    background: rgba(0, 192, 118, 0.12);
    color: #00c076;
}

.status-rejected, .status-failed {
    background: rgba(246, 70, 93, 0.12);
    color: #f6465d;
}

/* ========================================
   PAGE HEADER STYLES
   ======================================== */

.page-sub {
    color: #71717a;
    font-size: 14px;
    margin-top: 4px;
}

/* ========================================
   TABLE STYLES
   ======================================== */

.tbl {
    width: 100%;
    border-collapse: collapse;
}

.tbl thead {
    background: rgba(255, 255, 255, 0.02);
}

.tbl th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tbl td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.tbl tbody tr {
    transition: background 0.2s ease;
}

.tbl tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

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

/* ========================================
   TRANSACTION ICONS
   ======================================== */

.tx-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.tx-icon.in {
    background: rgba(0, 192, 118, 0.12);
    color: #00c076;
}

.tx-icon.out {
    background: rgba(246, 70, 93, 0.12);
    color: #f6465d;
}

/* ========================================
   TRANSACTION STATUS BADGES
   ======================================== */

.tx-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
}

.tx-status.done {
    background: rgba(0, 192, 118, 0.12);
    color: #00c076;
}

.tx-status.wait {
    background: rgba(18, 91, 255, 0.12);
    color: #50b4f2;
}

.tx-status.fail {
    background: rgba(246, 70, 93, 0.12);
    color: #f6465d;
}

/* ========================================
   SETTINGS LIST ITEM
   ======================================== */

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

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

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

.settings-item-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
}

.settings-item-info p {
    font-size: 13px;
    color: #71717a;
    margin: 0;
}

/* ========================================
   CHECK LIST STYLES
   ======================================== */

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #a1a1aa;
}

.check-list li svg,
.check-list li .check-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #00c076;
    margin-top: 2px;
}

/* ========================================
   VERIFICATION STEPS
   ======================================== */

.verify-step {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.verify-step:last-child {
    border-bottom: none;
}

.verify-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(18, 91, 255, 0.12);
    color: #50b4f2;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    margin-right: 12px;
}

.verify-step h4 {
    display: inline;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.verify-step p {
    font-size: 13px;
    color: #71717a;
    margin: 8px 0 0 40px;
}

/* ========================================
   ALERT / NOTICE BOXES
   ======================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
}

.alert-warning {
    background: rgba(18, 91, 255, 0.1);
    border: 1px solid rgba(18, 91, 255, 0.2);
    color: #50b4f2;
}

.alert-success {
    background: rgba(0, 192, 118, 0.1);
    border: 1px solid rgba(0, 192, 118, 0.2);
    color: #00c076;
}

.alert-danger {
    background: rgba(246, 70, 93, 0.1);
    border: 1px solid rgba(246, 70, 93, 0.2);
    color: #f6465d;
}

.alert svg,
.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

/* ========================================
   VERIFIED BADGE
   ======================================== */

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 192, 118, 0.12);
    color: #00c076;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.verified-badge svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   SECURITY TIP CARD
   ======================================== */

.security-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.security-tip svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #00c076;
    margin-top: 2px;
}

.security-tip span {
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.5;
}

/* ========================================
   SUCCESS STATE STYLES
   ======================================== */

.success-icon-lg {
    width: 80px;
    height: 80px;
    background: rgba(0, 192, 118, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon-lg svg {
    width: 40px;
    height: 40px;
    color: #00c076;
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-page {
    min-height: calc(100vh - 72px);
    padding: 60px 20px 80px;
    background: linear-gradient(180deg, #06080d 0%, #000000 100%);
}

.legal-page .container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content {
    background: #0f1623;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 40px 16px 60px;
    }

    .legal-content {
        padding: 32px 24px;
        border-radius: 16px;
    }
}

.legal-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #f5f5f7;
}

.legal-date {
    font-size: 14px;
    color: #71717a;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #f5f5f7;
    margin: 40px 0 16px 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 32px;
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e4e4e7;
    margin: 24px 0 12px 0;
}

.legal-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #a1a1aa;
    margin: 0 0 16px 0;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.legal-content li {
    font-size: 15px;
    line-height: 1.7;
    color: #a1a1aa;
    margin-bottom: 8px;
    position: relative;
}

.legal-content ul li::marker {
    color: #50b4f2;
}

.legal-content ol li::marker {
    color: #50b4f2;
    font-weight: 600;
}

.legal-content strong {
    color: #f5f5f7;
    font-weight: 600;
}

/* Legal page callout boxes */
.legal-content > div[style*="background"] {
    border-radius: 12px !important;
    padding: 24px !important;
    margin: 24px 0 !important;
}

.legal-content > div[style*="background"] h3 {
    margin: 0 0 12px 0 !important;
    font-size: 16px !important;
}

.legal-content > div[style*="background"] p {
    margin: 0 !important;
}

/* Warning box for risk page */
.legal-warning {
    background: rgba(246, 70, 93, 0.1);
    border: 1px solid rgba(246, 70, 93, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.legal-warning h3 {
    color: #f6465d;
    margin: 0 0 12px 0;
}

.legal-warning p {
    margin: 0;
}

/* Important notice box */
.legal-notice {
    background: rgba(18, 91, 255, 0.1);
    border: 1px solid rgba(18, 91, 255, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.legal-notice h3 {
    color: #50b4f2;
    margin: 0 0 12px 0;
}

.legal-notice p {
    margin: 0;
}

/* Links in legal content */
.legal-content a {
    color: #50b4f2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: #fcd34d;
    text-decoration: underline;
}

/* Contact section styling */
.legal-content p:last-of-type {
    margin-bottom: 0;
}

/* ========================================
   MARKETS PAGE
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Currency Toggle Buttons */
.cur-toggle {
    display: flex;
    background: #06080d;
    border: 1px solid #3B4756;
    border-radius: 6px;
    padding: 4px;
    gap: 4px;
}

.cur-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #71717a;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cur-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.cur-btn.active {
    background: #125bff !important;
    color: #fff !important;
}

/* Card Header with Currency Toggle */
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* Coin Display */
.coin {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: #172035;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coin-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coin-name {
    font-size: 14px;
    font-weight: 600;
    color: #f5f5f7;
}

.coin-sym {
    font-size: 12px;
    color: #71717a;
    text-transform: uppercase;
}

/* Price Display */
.price {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 500;
    color: #f5f5f7;
}

/* Price Change Percentage */
.pct {
    display: inline-flex;
    align-items: center;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.pct.up {
    background: rgba(0, 192, 118, 0.12);
    color: #00c076;
}

.pct.down {
    background: rgba(246, 70, 93, 0.12);
    color: #f6465d;
}

/* Markets Page Header */
.page-head.text-center {
    text-align: center;
}

.page-head.text-center .page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f5f5f7;
}

.page-head.text-center .page-sub {
    font-size: 16px;
    color: #71717a;
}

/* Mobile Responsive Markets */
@media (max-width: 768px) {
    .tbl {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cur-toggle {
        width: 100%;
        justify-content: center;
    }

    .card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .page-head.text-center .page-title {
        font-size: 28px;
    }
}

/* ========================================
   SETTINGS PAGES (Profile, Security, Verification)
   Two-Column Professional Layout
   ======================================== */

.settings-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    max-width: 1200px;
}

@media (max-width: 1024px) {
    .settings-container {
        grid-template-columns: 1fr;
    }
}

.settings-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Settings Card */
.settings-card {
    background: #0f1623;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.settings-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(18, 91, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-card-icon svg {
    width: 24px;
    height: 24px;
    color: #50b4f2;
}

.settings-card-icon.success {
    background: rgba(0, 192, 118, 0.1);
}

.settings-card-icon.success svg {
    color: #00c076;
}

.settings-card-icon.danger {
    background: rgba(246, 70, 93, 0.1);
}

.settings-card-icon.danger svg {
    color: #f6465d;
}

.settings-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #f5f5f7;
}

.settings-card-subtitle {
    font-size: 13px;
    color: #71717a;
    margin: 4px 0 0 0;
}

.settings-card-body {
    padding: 24px;
}

/* Settings Form Grid */
.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .settings-form-grid {
        grid-template-columns: 1fr;
    }
}

.settings-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-form-group.full {
    grid-column: 1 / -1;
}

.settings-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
}

.settings-label svg {
    width: 16px;
    height: 16px;
    color: #71717a;
}

.settings-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    font-family: inherit;
    color: #f5f5f7;
    background: #0a0f1a;
    border: 1px solid #3B4756;
    border-radius: 4px;
    transition: all 0.2s ease;
    outline: none;
}

.settings-input:hover {
    border-color: #4d5f70;
}

.settings-input:focus {
    border-color: #125bff;
    box-shadow: 0 0 0 3px rgba(18, 91, 255, 0.1);
}

.settings-input.disabled,
.settings-input:disabled {
    background: rgba(11, 12, 15, 0.5);
    color: #71717a;
    cursor: not-allowed;
}

.settings-hint {
    font-size: 12px;
    color: #71717a;
    margin-top: 4px;
}

.settings-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 32px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #125bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 24px;
}

.settings-submit-btn:hover {
    background: #2d6fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(18, 91, 255, 0.3);
}

.settings-submit-btn svg {
    width: 18px;
    height: 18px;
}

/* Settings Info Card (Sidebar) */
.settings-info-card {
    background: #0f1623;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 20px;
}

.settings-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #f5f5f7;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-info-title svg {
    width: 18px;
    height: 18px;
    color: #50b4f2;
}

/* Settings Status List */
.settings-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.settings-status-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-status-label {
    font-size: 12px;
    color: #71717a;
}

.settings-status-value {
    font-size: 13px;
    color: #f5f5f7;
    font-weight: 500;
}

/* Settings Badge */
.settings-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.settings-badge svg {
    width: 12px;
    height: 12px;
}

.settings-badge.success {
    background: rgba(0, 192, 118, 0.12);
    color: #00c076;
}

.settings-badge.pending {
    background: rgba(18, 91, 255, 0.12);
    color: #50b4f2;
}

.settings-badge.pending:hover {
    background: rgba(18, 91, 255, 0.2);
}

.settings-badge.warning {
    background: rgba(246, 70, 93, 0.12);
    color: #f6465d;
}

.settings-badge.warning:hover {
    background: rgba(246, 70, 93, 0.2);
}

/* Settings Info List */
.settings-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.settings-info-label {
    font-size: 13px;
    color: #71717a;
}

.settings-info-value {
    font-size: 13px;
    color: #f5f5f7;
    font-weight: 500;
}

/* Settings Quick Links */
.settings-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.settings-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f5f5f7;
}

.settings-link svg {
    width: 18px;
    height: 18px;
    color: #71717a;
    transition: color 0.2s ease;
}

.settings-link:hover svg {
    color: #50b4f2;
}

/* Security Settings Items */
.settings-security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

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

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

.settings-security-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #f5f5f7;
}

.settings-security-info p {
    font-size: 13px;
    color: #71717a;
    margin: 0;
}

/* Security Button */
.settings-security-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #f5f5f7;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-security-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.settings-security-btn svg {
    width: 14px;
    height: 14px;
}

/* Verification Steps (Settings Style) */
.settings-verify-step {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-verify-step:last-child {
    border-bottom: none;
}

.settings-verify-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(18, 91, 255, 0.12);
    color: #50b4f2;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.settings-verify-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #f5f5f7;
    margin: 0 0 6px 0;
}

.settings-verify-content p {
    font-size: 13px;
    color: #71717a;
    margin: 0;
    line-height: 1.5;
}

/* Settings Success State */
.settings-success-card {
    text-align: center;
    padding: 48px 24px;
}

.settings-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 192, 118, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.settings-success-icon svg {
    width: 40px;
    height: 40px;
    color: #00c076;
}

.settings-success-title {
    font-size: 20px;
    font-weight: 600;
    color: #00c076;
    margin: 0 0 8px 0;
}

.settings-success-text {
    font-size: 14px;
    color: #71717a;
    margin: 0;
}

/* Settings Alert Box */
.settings-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.settings-alert svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.settings-alert.warning {
    background: rgba(18, 91, 255, 0.1);
    border: 1px solid rgba(18, 91, 255, 0.2);
}

.settings-alert.warning svg {
    color: #50b4f2;
}

.settings-alert span {
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.5;
}

.settings-alert strong {
    color: #f5f5f7;
}

/* Settings Check List */
.settings-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.settings-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #a1a1aa;
}

.settings-check-list li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #00c076;
    margin-top: 2px;
}

/* Settings Primary Button (Full Width) */
.settings-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #125bff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-top: 8px;
}

.settings-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(18, 91, 255, 0.3);
}

.settings-btn-primary svg {
    width: 20px;
    height: 20px;
}

/* Settings Outline Button */
.settings-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    color: #f5f5f7;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.settings-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.settings-btn-outline svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   SIDEBAR STATUS CARD
   ======================================== */

.sidebar-status-card {
    background: #0f1623;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-status-icon {
    width: 18px;
    height: 18px;
    color: #50b4f2;
}

.sidebar-status-title {
    font-size: 12px;
    font-weight: 600;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-status-content {
    padding: 16px;
}

.sidebar-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 8px;
}

.sidebar-status-badge svg {
    width: 14px;
    height: 14px;
}

.sidebar-status-badge.success {
    background: rgba(0, 192, 118, 0.12);
    color: #00c076;
}

.sidebar-status-badge.warning {
    background: rgba(18, 91, 255, 0.12);
    color: #50b4f2;
}

.sidebar-status-text {
    font-size: 12px;
    color: #71717a;
    margin: 0;
    line-height: 1.5;
}

.sidebar-status-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 36px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #125bff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-status-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 91, 255, 0.3);
}

.sidebar-status-btn svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   WALLET DETAIL PAGE
   ======================================== */

.wd-hero {
    background: #0F1723;
    border: 1px solid #3B4756;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.wd-hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 32px;
    background: transparent;
    border-bottom: 1px solid rgba(59,71,86,0.4);
}

.wd-asset {
    display: flex;
    align-items: center;
    gap: 18px;
}

.wd-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    overflow: hidden;
    background: #172035;
    flex-shrink: 0;
}

.wd-logo img { width: 100%; height: 100%; object-fit: cover; }

.wd-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.wd-sym {
    font-size: 13px;
    color: #A6ADBA;
    font-weight: 500;
}

.wd-balance {
    text-align: right;
}

.wd-balance-num {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: -0.5px;
}

.wd-balance-usd {
    font-size: 14px;
    color: #A6ADBA;
    margin-top: 4px;
}

.wd-actions {
    display: flex;
    gap: 12px;
    padding: 20px 32px;
}

.wd-btn-deposit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0,192,118,0.12);
    color: #00c076;
    border: 1px solid rgba(0,192,118,0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.wd-btn-deposit:hover {
    background: rgba(0,192,118,0.2);
    border-color: rgba(0,192,118,0.4);
}

.wd-btn-withdraw {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: #A6ADBA;
    border: 1px solid #3B4756;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.wd-btn-withdraw:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

/* Market stats row */
.wd-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .wd-stats { grid-template-columns: 1fr; }
}

.wd-stat-card {
    background: #0F1723;
    border: 1px solid #3B4756;
    border-radius: 14px;
    padding: 20px 24px;
    transition: border-color 0.15s ease;
}

.wd-stat-card:hover {
    border-color: rgba(59,71,86,0.8);
}

.wd-stat-label {
    font-size: 12px;
    color: #A6ADBA;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 10px;
}

.wd-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Address section */
.wd-address-card {
    background: #0F1723;
    border: 1px solid #3B4756;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.wd-address-label {
    font-size: 13px;
    font-weight: 600;
    color: #A6ADBA;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.wd-address-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(59,71,86,0.4);
    border-radius: 10px;
    padding: 14px 16px;
}

.wd-address-text {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: #fff;
    word-break: break-all;
    line-height: 1.5;
    user-select: all;
}

.wd-copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(18,91,255,0.1);
    color: #50b4f2;
    border: 1px solid rgba(18,91,255,0.2);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.wd-copy-btn:hover {
    background: rgba(18,91,255,0.18);
}

.wd-copy-btn.copied {
    background: rgba(0,192,118,0.12);
    color: #00c076;
    border-color: rgba(0,192,118,0.2);
}

/* ========================================
   DASHBOARD PAGE IMPROVEMENTS
   ======================================== */

/* Wallet row hover accent */
.wallet-row {
    position: relative;
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.wallet-row:hover {
    background: rgba(255,255,255,0.02);
}

/* Shimmer animation for loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #1a1b1f 25%, #22232b 50%, #1a1b1f 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* ========================================
   SIDEBAR USER INFO
   ======================================== */

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 0 8px 0;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(59,71,86,0.2);
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.sidebar-user-info {
    min-width: 0;
    flex: 1;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #f5f5f7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 11px;
    color: #71717a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   MOBILE RESPONSIVE — WALLET DETAIL
   ======================================== */

@media (max-width: 640px) {
    .wd-hero-head {
        padding: 18px 16px !important;
        gap: 12px !important;
    }
    .wd-logo {
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
    }
    .wd-name { font-size: 17px !important; }
    .wd-balance-num { font-size: 19px !important; }
    .wd-actions {
        padding: 14px 16px !important;
        gap: 8px !important;
    }
    .wd-btn-deposit, .wd-btn-withdraw {
        flex: 1;
        justify-content: center;
        padding: 9px 12px !important;
        font-size: 13px !important;
    }
    .wd-address-card { padding: 16px !important; }
    .wd-address-box {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .wd-address-text {
        font-size: 11px !important;
        word-break: break-all !important;
    }
    .wd-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   MOBILE RESPONSIVE — DEPOSIT PAGE
   ======================================== */

@media (max-width: 640px) {
    .dep-card-body { padding: 16px !important; }
    .dep-section { margin-bottom: 20px !important; }
    .dep-section-header { margin-bottom: 10px !important; }
    .dep-network-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .dep-network-option { padding: 10px 8px !important; }
    .dep-network-name { font-size: 12px !important; }
    .dep-network-tag { font-size: 10px !important; padding: 2px 6px !important; }
    .dep-qr-box { width: 100px !important; height: 100px !important; }
    .dep-address-text { font-size: 11px !important; word-break: break-all !important; }
    .dep-copy-btn { width: 100% !important; justify-content: center !important; }
    .dep-warning { padding: 12px !important; gap: 10px !important; }
    .dep-warning-content ul { padding-left: 16px !important; }
    .dep-warning-content li { font-size: 12px !important; }
}

/* ========================================
   MOBILE RESPONSIVE — WITHDRAW PAGE
   ======================================== */

@media (max-width: 640px) {
    .withdraw-card-body { padding: 16px !important; }
    .withdraw-section { margin-bottom: 20px !important; }
    .withdraw-section-header { margin-bottom: 10px !important; }
    .withdraw-network-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .withdraw-network-option { padding: 10px 8px !important; }
    .withdraw-network-name { font-size: 12px !important; }
    .withdraw-network-tag { font-size: 10px !important; padding: 2px 6px !important; }
    .withdraw-input { font-size: 14px !important; padding: 10px 12px !important; }
    .withdraw-amount-input { font-size: 18px !important; }
    .withdraw-amount-buttons { gap: 6px !important; }
    .withdraw-pct-btn { padding: 6px 10px !important; font-size: 11px !important; }
    .withdraw-submit-btn { padding: 13px 20px !important; font-size: 14px !important; }
}

/* ========================================
   MOBILE RESPONSIVE — TRANSACTIONS PAGE
   ======================================== */

@media (max-width: 640px) {
    #filter-type, #filter-status {
        min-width: 0 !important;
        flex: 1 !important;
        width: 100% !important;
        font-size: 12px !important;
    }
}

/* ========================================
   MOBILE RESPONSIVE — PAGE HEADERS
   ======================================== */

@media (max-width: 640px) {
    .page-head { margin-bottom: 16px !important; }
    .page-title { font-size: 20px !important; }
    .page-sub { font-size: 12px !important; }
}
