@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Eye-Friendly Dark Gold Palette */
    --gold-dark: #1a1608;    /* Deep Bronze/Black */
    --gold-deep: #3d3311;    /* Dark Gold */
    --gold-mid: #8A6E2F;
    --gold-primary: #D4AF37;
    --gold-light: #F9E27E;
    --card-bg: rgba(30, 26, 10, 0.9);
    --text-main: #F9E27E;
    --text-white: #ffffff;
    --text-muted: rgba(249, 226, 126, 0.6);
    --border-gold: rgba(212, 175, 55, 0.15);
    
    /* Dark Metallic Gradient - Comfort for eyes */
    --dark-gold-gradient: linear-gradient(180deg, #1a1608 0%, #2a220c 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--dark-gold-gradient);
    background-attachment: fixed;
    color: var(--text-white);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 450px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 100px;
    position: relative;
}

/* Left-Aligned Brand Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-right-side, .header-left-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Unified Header Branding - Reversed */
.brand-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.vip-tag {
    background: linear-gradient(135deg, #1e1a0a, #3d3311);
    color: var(--gold-primary);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    margin-left: 8px; /* Closer to ID */
}

.id-tag {
    font-size: 11px; /* Smaller ID */
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 20px;
}

.app-name {
    font-size: 18px;
    font-weight: 900;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.logo-box-merged {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box-merged img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: contrast(1.4) brightness(1.1) saturate(1.2);
}

/* Balance Section */
.balance-section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 25px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.balance-amount {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Marquee */
.marquee-container {
    background: rgba(0,0,0,0.3);
    padding: 10px 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-gold);
}

.marquee-icon {
    color: var(--gold-primary);
}

marquee {
    font-size: 12px;
    color: var(--text-muted);
}

/* Horizontal Scroll */
.horizontal-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 0 15px;
}

.horizontal-scroll::-webkit-scrollbar { display: none; }

.coin-card {
    min-width: 175px;
    background: rgba(212, 175, 55, 0.05); /* Transparent card */
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.coin-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.coin-logo {
    width: 36px;
    height: 36px;
    background: rgba(212, 175, 55, 0.15); /* Transparent Gold Logo */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-weight: 800;
}

.coin-name {
    font-size: 12px;
    font-weight: 700;
}

.coin-price {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

/* Market List */
.market-table {
    margin-top: 5px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    padding: 0 10px 10px;
}

.market-item {
    background: rgba(13, 13, 10, 0.5); /* Transparent glass row */
    backdrop-filter: blur(10px);
    margin-bottom: 12px;
    padding: 18px;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.coin-logo-s {
    width: 34px;
    height: 34px;
    background: rgba(212, 175, 55, 0.08); /* Transparent golden tint */
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gold-primary);
}

.item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
}

.change.pos {
    color: #00ff88; /* Vibrant Green for gain */
    font-size: 12px;
    font-weight: 600;
}

.change.neg {
    color: #ff4d4d; /* Vibrant Red for loss */
    font-size: 12px;
    font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    background: rgba(13, 13, 10, 0.7); /* Transparent background */
    backdrop-filter: blur(15px); /* Glass effect */
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 28px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(249, 226, 126, 0.25);
    font-size: 10px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    padding: 5px 0;
    -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
    transition: transform 0.3s ease, filter 0.3s ease;
}

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

.nav-item.active svg {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 4px;
    height: 4px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-primary);
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--gold-light);
}

/* Language Globe Icon Styling */
.action-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary); /* Gold color for the globe */
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--gold-primary));
}

.action-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Assets Page - New Layout */
.assets-page-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.assets-main-card {
    background: linear-gradient(135deg, #1e1a0a 0%, #3d3311 100%);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.card-left, .card-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-value {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.card-value.small {
    font-size: 20px;
    color: var(--gold-light);
}

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

.asset-btn {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

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

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

.assets-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.tabs-group {
    display: flex;
    gap: 20px;
}

.asset-tab-new {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding-bottom: 8px;
    position: relative;
    cursor: pointer;
}

.asset-tab-new.active {
    color: var(--gold-primary);
}

.asset-tab-new.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
}

.history-btn-small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
}

.accounts-list-new {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-row-new {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-name-new {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.acc-val-new {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

/* Withdrawal Form Styles */
.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
}

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

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-light);
}

.input-container {
    position: relative;
    width: 100%;
}

.premium-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    padding: 15px;
    color: #fff;
    font-size: 14px;
    font-family: 'Outfit', 'Roboto', 'Arial', sans-serif;
    font-variant-numeric: tabular-nums;
    outline: none;
    transition: 0.3s;
    -moz-appearance: textfield; /* Hide spinners in Firefox */
}

.premium-input::-webkit-outer-spin-button,
.premium-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; /* Hide spinners in Chrome/Safari */
}

.premium-input:focus {
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.05);
}

.input-icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    cursor: pointer;
}

.balance-info-new {
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
    padding-left: 5px;
}

.bal-label-small {
    font-size: 10px;
    color: var(--text-muted);
}

.bal-amount-small {
    font-size: 10px;
    color: var(--gold-primary);
    font-weight: 600;
}

.btn-all-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--gold-primary);
    font-weight: 700;
    cursor: pointer;
}

.withdraw-confirm-btn {
    width: 100%;
    max-width: 280px;
    margin: 10px auto 0;
    background: var(--gold-primary);
    color: #000;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.security-note {
    background: rgba(212, 175, 55, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 15px;
}

.note-title {
    font-size: 13px;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.note-text {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

.network-switcher-container {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 5px;
    border-radius: 12px;
    gap: 5px;
}

.network-opt {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.network-opt.active {
    background: var(--gold-primary);
    color: #000;
}

/* Deposit Page Styles */
.deposit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
}

.app-container {
    background-color: var(--bg-dark);
    color: #fff;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 70px;
    overflow-x: hidden;
}

.qr-container {
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    width: 180px;
    height: 180px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-container img {
    width: 100%;
    height: 100%;
}

.address-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.address-text {
    font-size: 11px;
    color: #fff;
    word-break: break-all;
    font-family: 'Outfit', sans-serif;
    flex: 1;
    text-align: left;
}

.upload-box {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(212, 175, 55, 0.15);
    border-radius: 15px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    min-height: 140px;
    overflow: hidden;
}

.upload-box:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.upload-icon {
    color: var(--gold-primary);
    opacity: 0.7;
}

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

/* Trading Page Styles */
.trading-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 80px;
}

.trading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
}

.pair-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pair-name {
    font-size: 18px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.pair-change {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    font-weight: 700;
}

.trading-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
}

@media (max-width: 480px) {
    .trading-main {
        grid-template-columns: 1fr;
    }
    .trading-header {
        padding: 5px;
    }
    .pair-name {
        font-size: 16px;
    }
    .mid-p-val {
        font-size: 14px;
    }
    .t-input-box {
        padding: 10px;
    }
    .p-btn {
        padding: 5px;
        font-size: 9px;
    }
}

/* Sync Page Styles */
.sync-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sync-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 25px;
    border: 1px solid var(--border-gold);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sync-animation-box {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.sync-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--gold-primary);
    opacity: 0.3;
}

@keyframes syncPulse {
    0% { transform: rotate(0deg) scale(1); opacity: 0.3; }
    50% { transform: rotate(180deg) scale(1.1); opacity: 0.6; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.3; }
}

.sync-title {
    font-size: 20px;
    color: var(--gold-light);
    font-weight: 800;
}

.sync-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.sync-stats {
    display: flex;
    width: 100%;
    gap: 10px;
    margin: 10px 0;
}

.stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.main-sync-btn {
    width: 100%;
    background: var(--gold-primary);
    color: #000;
    padding: 15px;
    border-radius: 15px;
    border: none;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.main-sync-btn.active {
    background: #ff4d4d;
    color: #fff;
}

.main-sync-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.main-trade-btn:disabled {
    background: rgba(212, 175, 55, 0.3);
    cursor: not-allowed;
}

/* Custom Toast Notification */
.custom-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(13, 13, 10, 0.95);
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--border-gold);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    width: max-content;
    max-width: 85%;
    font-family: 'Outfit', 'Cairo', sans-serif;
}

.custom-toast.show {
    opacity: 1;
}

.sync-nodes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.node-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.05);
}

.node-info {
    display: flex;
    flex-direction: column;
    gap: 20px; /* wait, gap 20px? no, should be small */
    gap: 4px;
}

.node-name {
    font-size: 13px;
    font-weight: 600;
}

.node-status {
    font-size: 10px;
    color: #00ff88;
}

.node-ping {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

/* Verification Page Styles */
.ver-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.v-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
}

.v-step.active {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    font-weight: bold;
}

.v-line {
    width: 50px;
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
}

.ver-upload-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    min-height: 120px;
}

.ver-upload-box span {
    font-size: 11px;
    color: var(--text-muted);
}

.ver-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: none;
}

.ver-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.ver-upload-box:has(img) .ver-preview {
    display: block;
}

/* Binance KYC Premium Styles */
.kyc-progress-wrapper {
    position: relative;
    padding: 0 10px;
}

.kyc-steps-header {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.kyc-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.kyc-step-item span {
    width: 24px;
    height: 24px;
    background: #2a220c;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    transition: 0.3s;
}

.kyc-step-item label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.kyc-step-item.active span {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.kyc-step-item.active label {
    color: var(--gold-primary);
}

.kyc-progress-line {
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.kyc-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--gold-primary);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-type-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 18px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.doc-type-item.active {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold-primary);
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    position: relative;
}

.radio-circle.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--gold-primary);
    border-radius: 50%;
}

.doc-icon-circle {
    width: 36px;
    height: 36px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

.ver-upload-box.binance-style {
    min-height: 160px;
    border-radius: 18px;
    background: rgba(212, 175, 55, 0.02);
}

/* Image-Style KYC Design */
.kyc-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kyc-field {
    position: relative;
    width: 100%;
}

.kyc-input-styled {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 18px 50px 18px 15px;
    color: #fff;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: 0.3s;
    outline: none;
}

.kyc-input-styled:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.field-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
}

.country-select-styled {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.kyc-photo-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.photo-box-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.photo-box-inner {
    width: 100%;
    aspect-ratio: 3/2;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.corners span {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--gold-primary);
}

.corners span:nth-child(1) { top: 5px; right: 5px; border-bottom: 0; border-left: 0; }
.corners span:nth-child(2) { top: 5px; left: 5px; border-bottom: 0; border-right: 0; }
.corners span:nth-child(3) { bottom: 5px; right: 5px; border-top: 0; border-left: 0; }
.corners span:nth-child(4) { bottom: 5px; left: 5px; border-top: 0; border-right: 0; }

.photo-label {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
}

.kyc-submit-btn {
    width: 100%;
    margin-top: 30px;
    background: linear-gradient(135deg, #1a1a00 0%, #0a0a00 100%);
    border: 1.5px solid var(--gold-primary);
    border-radius: 15px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    transition: 0.3s;
}

.kyc-submit-btn:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.btn-icon {
    display: flex;
    align-items: center;
}

/* Custom Select Premium Styles */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #0a0a0a;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.custom-select-trigger:hover {
    border-color: var(--gold-primary);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    margin-top: 5px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    overflow: hidden;
}

.custom-select-wrapper.open .custom-options {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

.custom-option {
    display: block;
    padding: 12px 15px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    text-align: right;
}

.custom-option:hover, .custom-option.selected {
    background: var(--gold-primary);
    color: #000;
}

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

.upload-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    margin-bottom: 5px;
}

.face-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-primary);
    animation: scanFace 2s infinite ease-in-out;
    z-index: 5;
}

@keyframes scanFace {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.success-check-anim svg {
    animation: checkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Trade Form */
.trade-side-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 15px;
}

.side-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* Custom Modal for Pair Selection */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content-new {
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    width: 90%;
    max-width: 350px;
    padding: 20px;
    animation: slideUp 0.3s ease-out;
}

.modal-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header-new h3 {
    font-size: 16px;
    color: var(--gold-primary);
}

.pair-list-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for the list */
.pair-list-new::-webkit-scrollbar {
    width: 4px;
}

.pair-list-new::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
}

.pair-item-new {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.pair-item-new:hover {
    background: rgba(212, 175, 55, 0.1);
}

.pair-item-new .p-price {
    font-size: 13px;
    transition: color 0.3s;
}

.pair-item-new .p-price.pos { color: #00ff88; }
.pair-item-new .p-price.neg { color: #ff4d4d; }

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

.side-btn.buy.active {
    background: var(--gold-primary);
    color: #000;
}

.side-btn.sell.active {
    background: #ff4d4d;
    color: #fff;
}

.side-btn.buy { color: var(--gold-primary); border: 1px solid rgba(212, 175, 55, 0.2); margin-left: 2px; }
.side-btn.sell { color: #ff4d4d; border: 1px solid rgba(255, 77, 77, 0.2); margin-right: 2px; }

.trade-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t-input-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.t-input-val {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    background: transparent;
    border: none;
    text-align: right;
    width: 60%;
    outline: none;
    -webkit-appearance: none;
}

.t-input-val:focus {
    background: transparent;
    outline: none;
    box-shadow: none;
}

.t-input-val:-webkit-autofill,
.t-input-val:-webkit-autofill:hover, 
.t-input-val:-webkit-autofill:focus, 
.t-input-val:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.percent-row {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.p-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
    border: 1px solid rgba(212, 175, 55, 0.05);
    cursor: pointer;
    transition: 0.3s;
}

.p-btn.active {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

.trade-info-row {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 11px;
}

.t-info-label { color: var(--text-muted); }
.t-info-val { color: #fff; font-weight: 600; }

.main-trade-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.main-trade-btn.buy { background: var(--gold-primary); color: #000; }
.main-trade-btn.sell { background: #ff4d4d; color: #fff; }

/* Order Book */
.order-book {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ob-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ob-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 4px 0;
}

.ob-price { font-family: 'Outfit', sans-serif; font-weight: 600; }
.ob-price.sell { color: #ff4d4d; }
.ob-price.buy { color: #00ff88; }
.ob-amt { color: var(--text-muted); font-family: 'Outfit', sans-serif; }

.ob-mid-price {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 5px 0;
}

.mid-p-val { font-size: 16px; font-weight: 800; color: #00ff88; display: block; }
.mid-p-sub { font-size: 10px; color: var(--text-muted); }

/* Orders History */
.orders-section {
    margin-top: 10px;
}

.orders-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.o-tab {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 8px;
    position: relative;
}

.o-tab.active {
    color: var(--gold-primary);
}

.o-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
}

.preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 5;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* New Sync Page Styles */
.sync-top-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
}

.history-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.sync-hero-section {
    width: 100%;
    height: 380px;
    background: url('gold_ai_sync_core_1776812443084.png') center top no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -16px;
    margin-right: -16px;
    margin-left: -16px;
    width: calc(100% + 32px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    overflow: hidden;
    animation: floatingHero 6s ease-in-out infinite;
}

/* Scanning Line Effect */
.sync-hero-section::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.2), transparent);
    animation: scanningLine 4s linear infinite;
    z-index: 1;
}

/* Neural Pulse Effect */
.sync-hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: neuralPulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatingHero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scanningLine {
    0% { top: -50%; }
    100% { top: 150%; }
}

@keyframes neuralPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

/* Full Page Scan Animation */
.sync-page-scan-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.scanning-laser-line {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--gold-primary) 50%, 
        transparent 100%
    );
    box-shadow: 
        0 0 15px var(--gold-primary),
        0 0 30px var(--gold-primary);
    animation: fullScanMove 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0;
    transition: opacity 0.5s;
}

.scanning-laser-line::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.5;
}

@keyframes fullScanMove {
    0% { top: -10%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

.sync-hero-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
}


.sync-hero-overlay {
    text-align: center;
    padding-top: 60px;
}

.hero-title-large {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(0,0,0,0.8), 0 0 40px rgba(212, 175, 55, 0.3);
    line-height: 1.2;
}

.hero-title-mid {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-light);
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.hero-subtitle-small {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.9;
}

.sync-content-bottom {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sync-input-wrapper {
    width: 100%;
}

.sync-code-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 14px;
    padding: 16px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(10px);
    user-select: text !important;
    -webkit-user-select: text !important;
    -webkit-touch-callout: default !important;
}

.sync-code-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.sync-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #8A6E2F 0%, #D4AF37 100%);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    transition: 0.3s;
}

.sync-action-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Fix Eye Icon Highlight */
.eye-toggle-btn { -webkit-tap-highlight-color: transparent; outline: none; user-select: none; }
.eye-icon { pointer-events: none; }
svg { flex-shrink: 0 !important; }
