/* ==========================================
   RapTM Exchange — MIDNIGHT CYAN Theme
   Premium animations & micro-interactions
   ========================================== */

/* ==================== SPLASH SCREEN ==================== */

#splash-screen {
    position: fixed;
    inset: 0;
    background: #0A0E1A;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#splash-screen.hiding {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

#splash-screen.hidden {
    display: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: splashAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.splash-logo-wrap {
    position: relative;
    margin-bottom: 16px;
}

.splash-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 212, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: splashGlow 2s ease-in-out infinite;
}

@keyframes splashGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.splash-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(0, 212, 255, 0.08);
    border: 1.5px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    animation: splashIconSpin 3s ease-in-out infinite;
}

@keyframes splashIconSpin {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.splash-text {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-sub {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 10px;
    color: #00D4FF;
    opacity: 0.4;
    margin-left: 6px;
}

.splash-loader {
    width: 120px;
    height: 3px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 2px;
    margin-top: 32px;
    overflow: hidden;
}

.splash-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00D4FF, #0099CC);
    border-radius: 2px;
    animation: splashLoad 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

@keyframes splashLoad {
    0% { width: 0%; }
    30% { width: 40%; }
    60% { width: 70%; }
    100% { width: 100%; }
}

/* ==================== RATES SECTION ==================== */

.rates-section {
    margin-top: 12px;
    margin-bottom: 10px;
}

.rates-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rates-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.rates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.rate-card {
    display: flex;
    flex-direction: column;
    padding: 6px 10px;
    background: rgba(19, 26, 46, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.rate-card:active {
    border-color: rgba(0, 212, 255, 0.08);
}

.rate-card-top {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.rate-flag {
    font-size: 0.85rem;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.06);
    border-radius: 5px;
}

.rate-pair {
    font-size: 0.72rem;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 3px;
}

.rate-pair-arrow {
    color: #00D4FF;
    font-size: 0.6rem;
}

.rate-price {
    text-align: left;
}

.rate-price-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #00D4FF;
    display: block;
    line-height: 1.1;
}

.rate-price-unit {
    font-size: 0.62rem;
    color: #6B7B8D;
    font-weight: 500;
}


/* ==================== RESET & BASE ==================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    border: 0 solid;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-feature-settings: normal;
    font-variation-settings: normal;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0A0E1A;
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-x: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
    display: none;
}

/* Crypton-style input reset — prevents cursor misplacement on iOS */
input, optgroup, select, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    background-color: transparent;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input::-webkit-search-decoration {
    -webkit-appearance: none;
}

::placeholder {
    opacity: 1;
    color: rgba(255, 255, 255, 0.18);
}

textarea {
    resize: vertical;
}

#app {
    position: relative;
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    padding-bottom: max(96px, calc(76px + env(safe-area-inset-bottom, 0px)));
    background: #0A0E1A;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ==================== TYPOGRAPHY ==================== */

h1, h2, h3 {
    font-weight: 700;
    color: #FFFFFF;
}

/* ==================== SCREENS ==================== */

.screen {
    display: none;
    padding: 12px 16px max(96px, calc(76px + env(safe-area-inset-bottom, 0px)));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.screen.active {
    display: flex;
    flex-direction: column;
    animation: screenEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Step 2 fullpage — simple flow, no fixed height */
.screen-fullpage {
    padding-bottom: max(24px, calc(16px + env(safe-area-inset-bottom, 0px))) !important;
}

.screen-scroll-content {
    /* no special styles — normal flow */
}

.screen-cta {
    padding: 12px 0 0;
}

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

/* Crypton fadeUp — smooth element entrance */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== SCREEN HEADER ==================== */

.screen-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    min-height: 40px;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
}

.screen-title {
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0D4F5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.back-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 22, 34, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00D4FF;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.back-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
}

.back-btn:active {
    transform: scale(0.90);
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

/* ==================== HOME & WALLET HEADER ==================== */

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-top: max(6px, env(safe-area-inset-top, 6px));
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.home-logo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.25rem !important;
    font-weight: 900;
    letter-spacing: 0.6px;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.05;
    white-space: nowrap;
}

.logo-sub {
    font-size: 0.58rem !important;
    font-weight: 700;
    letter-spacing: 2px;
    color: #00D4FF;
    opacity: 0.75;
    margin-top: 1px;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 !important;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    background: rgba(19, 26, 46, 0.85);
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.74rem !important;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.profile-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.profile-btn-text {
    display: none;
}

.profile-btn:active {
    transform: scale(0.93);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.2);
}

/* Compact Micro Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(19, 26, 46, 0.85);
    border-radius: 9px;
    padding: 2px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 30px;
    box-sizing: border-box;
    width: fit-content;
    flex-shrink: 0;
}

.lang-pill {
    position: relative;
    padding: 2px 7px;
    min-height: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #7E8B9E;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lang-pill::before {
    content: '';
    position: absolute;
    inset: -3px;
}

.lang-pill:active {
    transform: scale(0.92);
}

.lang-pill.active {
    background: rgba(0, 212, 255, 0.2);
    color: #00D4FF;
    font-weight: 800;
    box-shadow: 0 1px 4px rgba(0, 212, 255, 0.15);
}

.lang-pill .lang-flag {
    font-size: 0.74rem;
    line-height: 1;
}

/* Info Card */
.info-card {
    background: linear-gradient(145deg, rgba(19, 26, 46, 0.9) 0%, rgba(15, 20, 38, 0.9) 100%);
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 10px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.08);
    transition: all 0.3s ease;
}

.info-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    stroke: #00D4FF !important;
}

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

.info-label {
    font-size: 0.65rem;
    color: #6B7B8D;
    font-weight: 500;
}

.info-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
}

.info-sub {
    font-size: 0.65rem;
    color: #6B7B8D;
    font-weight: 500;
}

/* Home Services Action Cards */
.home-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.service-action-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 12px;
    padding: 8px 8px;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
    min-width: 0;
}

.service-action-card:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(0, 212, 255, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 212, 255, 0.18);
}

.service-action-card:active {
    transform: scale(0.97);
    border-color: #00D4FF;
}

.service-action-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.service-action-card:hover .service-action-icon-wrap {
    transform: scale(1.08);
}

.service-action-icon-wrap.receive {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    color: #00FF9D;
    border: 1px solid rgba(0, 255, 157, 0.35);
}

.service-action-icon-wrap.send {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 97, 255, 0.15) 100%);
    color: #00D4FF;
    border: 1px solid rgba(0, 212, 255, 0.35);
}

.service-action-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.service-action-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-action-sub {
    font-size: 0.65rem;
    color: #8E9BAE;
    margin-top: 2px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-action-arrow {
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.2s, color 0.2s;
}

.service-action-card:hover .service-action-arrow {
    color: #00D4FF;
    transform: translateX(2px);
}

/* Light Theme Support */
body.theme-light .service-action-card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.theme-light .service-action-card:hover {
    background: #F8FAFC;
    border-color: #0088CC;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.15);
}

body.theme-light .service-action-title {
    color: #1A1A1A;
}

body.theme-light .service-action-sub {
    color: #64748B;
}

body.theme-light .service-action-arrow {
    color: #94A3B8;
}

/* Tab Switch */
.tab-switch {
    display: flex;
    gap: 4px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    position: relative;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6B7B8D;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.tab-btn.active {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: #FFFFFF;
    box-shadow:
        0 4px 16px rgba(0, 212, 255, 0.35),
        0 0 0 1px rgba(0, 212, 255, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Home Actions */
.home-spacer {
    flex: 1;
    min-height: 40px;
}

.home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

/* ==================== BUTTONS ==================== */

.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ripple effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn:active::after {
    opacity: 1;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: #FFFFFF;
    box-shadow:
        0 4px 20px rgba(0, 212, 255, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    background: linear-gradient(135deg, #00BFEE 0%, #0088BB 100%);
    box-shadow:
        0 2px 12px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.15);
    transform: scale(0.96);
}

.btn-secondary {
    background: rgba(19, 26, 46, 0.8);
    color: #FFFFFF;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:active {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.1);
    transform: scale(0.96);
}

.btn-full {
    width: 100%;
    margin-top: 16px;
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

#btn-step2-next {
    position: relative;
    z-index: 200;
    margin-top: 16px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 18px;
}

#btn-step2-next:not(:disabled) {
    animation: btnPulseGlow 2s ease-in-out infinite;
}

@keyframes btnPulseGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(0, 212, 255, 0.7), 0 0 50px rgba(0, 212, 255, 0.3); }
}

/* ==================== STEPPER ==================== */

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(19, 26, 46, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.06);
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.step-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(0, 212, 255, 0.12);
    color: #4A5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.active .step-circle {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    border-color: #00D4FF;
    color: #FFFFFF;
    box-shadow:
        0 0 14px rgba(0, 212, 255, 0.5),
        0 0 28px rgba(0, 212, 255, 0.15);
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    border-color: #00D4FF;
    color: #FFFFFF;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.step-label {
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #3A4558;
    text-align: center;
    max-width: 60px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.step.active .step-label {
    color: #00D4FF;
}

.step.completed .step-label {
    color: #00D4FF;
    opacity: 0.6;
}

.step-line {
    flex: 1;
    height: 1.5px;
    background: rgba(0, 212, 255, 0.08);
    margin: 0 4px;
    margin-bottom: 14px;
    min-width: 12px;
    border-radius: 1px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.step-line.filled {
    background: rgba(0, 212, 255, 0.2);
}

.step-line.filled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #00D4FF, #0099CC);
    animation: lineFill 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lineFill {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

/* ==================== DIRECTION SELECTION ==================== */

.section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #6B7B8D;
    margin-bottom: 6px;
    margin-top: 10px;
    display: block;
}

.direction-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.direction-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: rgba(19, 26, 46, 0.6);
    border: 1.5px solid rgba(0, 212, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    text-align: left;
    font-family: inherit;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.direction-card:active {
    transform: scale(0.97);
}

.direction-card.selected {
    border-color: #00D4FF;
    background: rgba(0, 212, 255, 0.08);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.08),
        inset 0 0 16px rgba(0, 212, 255, 0.03);
}

.direction-card.disabled {
    opacity: 0.45;
}

.direction-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6B7B8D;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.direction-card.selected .direction-icon {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: #FFFFFF;
    box-shadow: 0 3px 12px rgba(0, 212, 255, 0.3);
}

.direction-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.direction-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #FFFFFF;
}

.direction-desc {
    font-size: 0.72rem;
    color: #6B7B8D;
    margin-top: 1px;
}

.direction-check {
    color: transparent;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.direction-card.selected .direction-check {
    color: #00D4FF;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
}

.direction-arrow {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

.direction-note {
    font-size: 0.72rem;
    color: #4A5568;
    margin-top: 6px;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* ==================== EXCHANGE FORM (STEP 2) ==================== */

.exchange-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sticky-bottom-btn {
    display: none;
}

.input-card {
    background: rgba(19, 26, 46, 0.7);
    border-radius: 12px;
    padding: 8px 12px;
    border: 1.5px solid rgba(0, 212, 255, 0.08);
    margin-bottom: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.input-card:focus-within {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.06),
        inset 0 0 16px rgba(0, 212, 255, 0.02);
}

.input-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #6B7B8D;
    display: block;
    margin-bottom: 4px;
}

.amount-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amount-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    outline: none;
    min-width: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    caret-color: #00D4FF;
}

.amount-input::placeholder {
    color: #2A3548;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    background: rgba(0, 212, 255, 0.06);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.currency-selector:active {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    transform: scale(0.95);
}

.currency-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFFFFF;
}

.min-amount {
    font-size: 0.65rem;
    color: #4A5568;
    margin-bottom: 0;
    padding-left: 4px;
}

.commission-info {
    margin: 4px 0 0;
    animation: fadeInUp 0.3s ease;
}

.commission-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.2);
    font-size: 0.75rem;
    color: #FFB800;
    font-weight: 600;
    letter-spacing: 0.01em;
}

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

.swap-icon {
    display: flex;
    justify-content: center;
    padding: 0;
}

.swap-icon svg {
    stroke: #00D4FF !important;
    opacity: 0.5;
}

/* Rate Badge */
.rate-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    align-self: flex-start;
    margin-bottom: 0;
}

.rate-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #00D4FF;
}

.rate-text {
    font-size: 0.72rem;
    color: #6B7B8D;
}

/* Form Elements */
.form-select {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 24px;
}

.form-select option {
    background: #131A2E;
    color: #FFFFFF;
}

.form-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    caret-color: #00D4FF;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.18);
}

.input-hint {
    font-size: 0.7rem;
    color: #4A5568;
    margin-top: 4px;
    line-height: 1.3;
}

/* ==================== REVIEW (STEP 3) ==================== */

.review-card {
    background: rgba(19, 26, 46, 0.7);
    border-radius: 20px;
    padding: 4px 0;
    border: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.review-label {
    font-size: 0.88rem;
    color: #6B7B8D;
    font-weight: 500;
}

.review-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.review-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

.review-mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #00D4FF;
}

.review-divider {
    height: 1px;
    background: rgba(0, 212, 255, 0.06);
    margin: 0 20px;
}

.review-notice {
    background: rgba(19, 26, 46, 0.5);
    border-radius: 16px;
    padding: 16px 18px;
    margin-top: 12px;
    border: 1px solid rgba(0, 212, 255, 0.08);
}

.review-notice p {
    font-size: 0.82rem;
    color: #6B7B8D;
    line-height: 1.5;
}

/* ==================== DONE (STEP 4) ==================== */

.done-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    justify-content: center;
    padding: 20px 0;
}

.done-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: glowPulse 2.5s ease-in-out infinite;
}

.done-icon svg {
    stroke: #00D4FF !important;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 30px rgba(0, 212, 255, 0.15),
            0 0 60px rgba(0, 212, 255, 0.05);
    }
}

.done-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.done-text {
    font-size: 0.92rem;
    color: #6B7B8D;
    line-height: 1.5;
    margin-bottom: 28px;
}

.order-number-card {
    background: rgba(0, 212, 255, 0.06);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 18px;
    padding: 20px 32px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.08);
}

.order-number-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #6B7B8D;
}

.order-number-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.order-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00D4FF 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copy-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00D4FF;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-btn:active {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(0.9);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.done-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

/* ==================== ORDERS ==================== */

.orders-count {
    font-size: 0.82rem;
    color: #6B7B8D;
    font-weight: 500;
    background: rgba(0, 212, 255, 0.06);
    padding: 4px 12px;
    border-radius: 8px;
}

.orders-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.orders-tab {
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: #6B7B8D;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.orders-tab.active {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.orders-tab:active {
    transform: scale(0.95);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-card {
    background: rgba(19, 26, 46, 0.6);
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 212, 255, 0.06);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.order-card:active {
    transform: scale(0.97);
    border-color: rgba(0, 212, 255, 0.2);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-card-id {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFFFFF;
}

.order-card-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.order-card-status.pending {
    background: rgba(255, 152, 0, 0.15);
    color: #FFB74D;
}

.order-card-status.processing {
    background: rgba(0, 212, 255, 0.12);
    color: #00D4FF;
}

.order-card-status.completed {
    background: rgba(0, 230, 118, 0.12);
    color: #00E676;
}

.order-card-status.cancelled {
    background: rgba(255, 82, 82, 0.12);
    color: #FF5252;
}

.order-card-exchange {
    font-size: 0.88rem;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.order-card-date {
    font-size: 0.75rem;
    color: #4A5568;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.empty-state p {
    font-size: 0.95rem;
    color: #4A5568;
    margin-bottom: 16px;
}

/* ==================== PROFILE ==================== */

.profile-header-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(19, 26, 46, 0.7);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.08);
    border: 2px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar svg {
    stroke: #6B7B8D !important;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.profile-email-display {
    font-size: 0.82rem;
    color: #6B7B8D;
    margin-top: 2px;
}

.section-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
}

.section-count {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6B7B8D;
    background: rgba(0, 212, 255, 0.06);
    padding: 2px 10px;
    border-radius: 8px;
}

/* ==================== MORE MENU ==================== */

.menu-group {
    background: rgba(19, 26, 46, 0.6);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 212, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item:active {
    background: rgba(0, 212, 255, 0.06);
    transform: scale(0.98);
}

.menu-item + .menu-item {
    border-top: 1px solid rgba(0, 212, 255, 0.04);
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #00D4FF;
    transition: all 0.3s ease;
}

.menu-item:active .menu-icon {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
}

.menu-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #FFFFFF;
}

.menu-desc {
    font-size: 0.75rem;
    color: #4A5568;
    margin-top: 2px;
}

.menu-arrow {
    flex-shrink: 0;
    opacity: 0.3;
}

/* ==================== SUPPORT ==================== */

.support-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    justify-content: center;
    padding: 20px 0;
}

.support-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.support-icon svg {
    stroke: #00D4FF !important;
}

.support-content h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.support-content p {
    font-size: 0.92rem;
    color: #6B7B8D;
    line-height: 1.5;
    margin-bottom: 24px;
}

.support-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 280px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 0.85rem;
    color: #FFFFFF;
    font-weight: 500;
}

.support-item svg {
    stroke: #00D4FF !important;
}

/* ==================== BOTTOM NAVIGATION ==================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 8px 16px;
    padding-bottom: max(16px, calc(8px + env(safe-area-inset-bottom, 0px)));
    background: rgba(10, 14, 26, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748B;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 6px 0;
}

.nav-item svg {
    stroke: #64748B;
    transition: all 0.25s ease;
    width: 24px;
    height: 24px;
}

.nav-item.active {
    color: #00D4FF;
}

.nav-item.active svg {
    stroke: #00D4FF;
    transform: translateY(-2px);
}

.nav-item.active span {
    font-weight: 700;
}

.nav-item:active {
    transform: scale(0.92);
}

/* ==================== CRYPTON-STYLE STEP 2 FORM (cx-) ==================== */

.cx-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 4px;
    animation: fadeUp 0.5s 0.1s ease both;
}

.cx-card {
    background: rgba(19, 26, 46, 0.7);
    padding: 10px 14px;
    border-radius: 14px;
    border: 1.5px solid rgba(0, 212, 255, 0.08);
    transition: border-color 0.2s;
}

.cx-card:focus-within {
    border-color: rgba(0, 212, 255, 0.3);
}

.cx-label {
    display: block;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.35);
}

.cx-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cx-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    -webkit-appearance: none;
    caret-color: #00D4FF;
}

.cx-input::placeholder { color: rgba(255,255,255,0.18); }

.cx-cur {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 10px;
    border: 1.5px solid rgba(0, 212, 255, 0.35);
    background: transparent;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #00D4FF;
    cursor: pointer;
    transition: all 0.2s;
}

.cx-cur:active { transform: scale(0.95); }

.cx-text {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    -webkit-appearance: none;
    caret-color: #00D4FF;
}

.cx-text::placeholder { color: rgba(255,255,255,0.18); }

.cx-select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 24px;
}

.cx-select option {
    background: #131A2E;
    color: #FFFFFF;
}

.cx-hint {
    padding: 0 4px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.cx-sep {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.cx-sep-line {
    flex: 1;
    height: 1px;
    background: rgba(0, 212, 255, 0.08);
}

.cx-sep-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(19, 26, 46, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cx-rate-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.cx-rate {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    flex-shrink: 0;
}

.cx-rate-val {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #00D4FF;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cx-note {
    margin-top: 6px;
    padding: 0 2px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.35);
}

/* ==================== CURRENCY MODAL ==================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 13, 0.7);
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    width: 100%;
    max-width: 430px;
    background: #0F1424;
    border-radius: 24px 24px 0 0;
    padding: 8px 0 0;
    max-height: 85dvh;
    overflow-y: auto;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.modal-close {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 22, 34, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8E9BAE;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.modal-close::before {
    content: '';
    position: absolute;
    inset: -5px;
}

.modal-close:active {
    background: rgba(255, 74, 74, 0.12);
    border-color: rgba(255, 74, 74, 0.3);
    color: #FF4A4A;
    transform: scale(0.90);
}

.modal-body {
    padding: 12px 16px max(24px, calc(16px + env(safe-area-inset-bottom, 0px)));
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid transparent;
    background: rgba(19, 26, 46, 0.5);
    border-radius: 14px;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 8px;
}

.currency-option:active {
    transform: scale(0.97);
}

.currency-option.selected {
    border-color: #00D4FF;
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.currency-option-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

.currency-option-info {
    flex: 1;
}

.currency-option-code {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
}

.currency-option-name {
    font-size: 0.78rem;
    color: #6B7B8D;
    margin-top: 2px;
}

.currency-option-check {
    color: transparent;
    transition: all 0.3s ease;
}

.currency-option.selected .currency-option-check {
    color: #00D4FF;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
}

/* ==================== TOAST ==================== */

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.95) 0%, rgba(0, 153, 204, 0.95) 100%);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 300;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    box-shadow:
        0 8px 32px rgba(0, 212, 255, 0.35),
        0 0 20px rgba(0, 212, 255, 0.15);
    max-width: calc(100% - 32px);
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: none !important;
}

.toast.error {
    background: linear-gradient(135deg, rgba(240, 68, 82, 0.95) 0%, rgba(200, 40, 55, 0.95) 100%);
    box-shadow:
        0 8px 32px rgba(240, 68, 82, 0.35),
        0 0 20px rgba(240, 68, 82, 0.15);
}

/* ==================== ADMIN PERMISSION TOGGLES ==================== */

.admin-perm-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #8E9BAE;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-perm-item:active {
    transform: scale(0.97);
}

.admin-perm-item.active {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.4);
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.admin-perm-item .perm-check {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}

.admin-perm-item.active .perm-check {
    background: #00D4FF;
    border-color: #00D4FF;
    color: #0A0E1A;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.admin-perm-item input[type="checkbox"] {
    display: none;
}

/* ==================== ADMIN PANEL MOBILE SIZING ==================== */

#screen-admin {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.admin-tabs-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 12px;
    scrollbar-width: none;
}

.admin-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.admin-order-card, .admin-form-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* ==================== LOADING ==================== */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 250;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.15);
    border-top-color: #00D4FF;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 380px) {
    .info-row {
        grid-template-columns: 1fr;
    }

    .home-actions {
        grid-template-columns: 1fr;
    }

    .stepper {
        padding: 0;
    }

    .step-label {
        font-size: 0.55rem;
    }
}

@media (min-width: 640px) {
    .profile-btn {
        width: auto !important;
        padding: 0 10px !important;
    }
    .profile-btn-text {
        display: inline !important;
    }
    .admin-btn {
        width: auto !important;
        padding: 0 8px !important;
    }
    .admin-btn-text {
        display: inline !important;
    }
}

/* ==================== SAFE AREA ==================== */

@supports (padding: max(0px)) {
    #app {
        padding-bottom: max(90px, calc(70px + env(safe-area-inset-bottom)));
    }
}

/* ==================== SCROLLBAR ==================== */

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.2);
    border-radius: 2px;
}

/* ==================== SELECTION & DEPOSIT ADDR ==================== */

::selection {
    background: rgba(0, 212, 255, 0.3);
}

#system-deposit-addr-text,
#review-deposit-addr,
.deposit-addr-text {
    color: #FFFFFF !important;
    font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    word-break: break-all !important;
    letter-spacing: 0.3px !important;
}

body.theme-light #system-deposit-addr-text,
body.theme-light #review-deposit-addr,
body.theme-light .deposit-addr-text {
    color: #111827 !important;
}

/* ==================== ADMIN PANEL ==================== */

.admin-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 !important;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 1px solid rgba(255, 184, 0, 0.4);
    background: rgba(255, 184, 0, 0.15);
    border-radius: 9px;
    color: #FFB800;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.admin-btn-text {
    display: none;
}

.admin-btn:active {
    transform: scale(0.93);
    background: rgba(255, 184, 0, 0.25);
}

/* Admin visibility control */
body.is-admin .admin-btn,
body.is-admin .admin-only-element,
body.is-admin #admin-btn,
body.is-admin #admin-btn-wallet,
body.is-admin #admin-menu-item {
    display: inline-flex !important;
}

body:not(.is-admin) .admin-btn,
body:not(.is-admin) .admin-only-element,
body:not(.is-admin) #admin-btn,
body:not(.is-admin) #admin-btn-wallet,
body:not(.is-admin) #admin-menu-item {
    display: none !important;
}

.admin-tabs {
    display: flex !important;
    gap: 8px;
    margin-bottom: 16px;
    background: #111726;
    padding: 6px 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto !important;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    flex: 0 0 auto !important;
    display: inline-block !important;
    padding: 9px 15px !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px !important;
    color: #8E9BAE !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-tab.active {
    background: rgba(255, 184, 0, 0.18) !important;
    color: #FFB800 !important;
    border-color: rgba(255, 184, 0, 0.4) !important;
    box-shadow: 0 2px 10px rgba(255, 184, 0, 0.15);
}

.admin-filter-row {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-pill {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(19, 26, 46, 0.6);
    border-radius: 20px;
    color: #6B7280;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-pill.active {
    background: rgba(0, 212, 255, 0.12);
    color: #00D4FF;
    border-color: rgba(0, 212, 255, 0.3);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

.admin-order-card, .admin-wallet-card {
    background: rgba(19, 26, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
    backdrop-filter: blur(10px);
}

.admin-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.admin-order-id {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.admin-status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
}

.admin-status-badge.pending { background: rgba(255, 184, 0, 0.15); color: #FFB800; }
.admin-status-badge.processing { background: rgba(0, 212, 255, 0.15); color: #00D4FF; }
.admin-status-badge.completed { background: rgba(0, 200, 83, 0.15); color: #00C853; }
.admin-status-badge.cancelled { background: rgba(255, 68, 68, 0.15); color: #FF4444; }

.admin-order-details {
    font-size: 0.75rem;
    color: #8892b0;
    line-height: 1.6;
}

.admin-order-details strong {
    color: #ccd6f6;
}

.admin-order-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.admin-action-btn {
    flex: 1;
    padding: 7px;
    border: none;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-action-btn.accept { background: rgba(0, 200, 83, 0.15); color: #00C853; }
.admin-action-btn.reject { background: rgba(255, 68, 68, 0.15); color: #FF4444; }
.admin-action-btn.process { background: rgba(0, 212, 255, 0.15); color: #00D4FF; }
.admin-action-btn:active { transform: scale(0.95); }

/* Wallet cards */
.admin-wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.admin-wallet-addr {
    font-family: 'Inter', monospace;
    font-size: 0.75rem;
    color: #ccd6f6;
    word-break: break-all;
    margin-bottom: 6px;
}

.admin-wallet-meta {
    font-size: 0.7rem;
    color: #6B7280;
    margin-bottom: 8px;
}

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

.admin-wallet-actions .admin-action-btn {
    padding: 5px 8px;
    font-size: 0.65rem;
}

.admin-action-btn.verify { background: rgba(0, 200, 83, 0.15); color: #00C853; }
.admin-action-btn.ban { background: rgba(255, 68, 68, 0.15); color: #FF4444; }
.admin-action-btn.sus { background: rgba(255, 184, 0, 0.15); color: #FFB800; }
.admin-action-btn.del { background: rgba(128, 128, 128, 0.15); color: #888; }

/* Admin form */
.admin-form-card {
    background: rgba(19, 26, 46, 0.7);
    border: 1px solid rgba(255, 184, 0, 0.15);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.admin-form-card h3 {
    font-size: 0.85rem;
    color: #FFB800;
    margin-bottom: 12px;
}

.admin-form-card .form-input,
.admin-form-card .form-select {
    margin-bottom: 8px;
}

.admin-form-row {
    display: flex;
    gap: 8px;
}

.admin-form-row .form-select {
    flex: 1;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-card {
    background: rgba(19, 26, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #00D4FF;
}

.stat-label {
    font-size: 0.72rem;
    color: #6B7280;
    font-weight: 600;
}

.admin-empty {
    text-align: center;
    padding: 40px 20px;
    color: #4A5568;
    font-size: 0.85rem;
}

.admin-empty-card {
    padding: 30px 16px;
    text-align: center;
    color: #8E9BAE;
    background: #161F2E;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.admin-user-card {
    background: #161F2E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-user-card.is-blocked {
    border-color: rgba(255, 74, 74, 0.3);
}

.admin-user-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.admin-user-avatar.level-partner {
    background: rgba(139, 92, 246, 0.15);
    border: 1.5px solid #A78BFA;
    color: #A78BFA;
}

.admin-user-avatar.level-pro {
    background: rgba(0, 212, 255, 0.15);
    border: 1.5px solid #00D4FF;
    color: #00D4FF;
}

.admin-user-avatar.level-standard {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid #94A3B8;
    color: #94A3B8;
}

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

.admin-user-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.admin-user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #F1F5F9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-badges {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.admin-level-badge {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.admin-level-badge.level-partner {
    background: rgba(139, 92, 246, 0.15);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.admin-level-badge.level-pro {
    background: rgba(0, 212, 255, 0.15);
    color: #00D4FF;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.admin-level-badge.level-standard {
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-blocked-badge {
    background: rgba(255, 74, 74, 0.15);
    color: #FF4A4A;
    border: 1px solid rgba(255, 74, 74, 0.3);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.admin-user-sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 0.78rem;
}

.admin-user-uname {
    color: #00D4FF;
    font-weight: 600;
    cursor: pointer;
}

.admin-user-dot {
    color: #475569;
}

.admin-user-id {
    color: #94A3B8;
    cursor: pointer;
}

.admin-user-details-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-user-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-user-info-text {
    color: #CBD5E1;
}

.admin-user-muted {
    color: #64748B;
}

.admin-kyc-badge {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.admin-kyc-badge.none {
    background: rgba(255, 255, 255, 0.05);
    color: #64748B;
}

.admin-kyc-badge.verified {
    background: rgba(0, 255, 157, 0.12);
    color: #00FF9D;
    border: 1px solid rgba(0, 255, 157, 0.25);
}

.admin-kyc-badge.pending {
    background: rgba(255, 184, 0, 0.12);
    color: #FFB800;
    border: 1px solid rgba(255, 184, 0, 0.25);
}

.admin-user-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 2px;
}

.admin-user-balance-val {
    color: #00FF9D;
}

.admin-user-bonus-val {
    color: #00D4FF;
}

.admin-user-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.admin-user-btn {
    padding: 7px 0;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    transition: all 0.2s ease;
}

.admin-user-btn.chat {
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00D4FF;
}

.admin-user-btn.edit {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E2E8F0;
}

.admin-user-btn.block {
    border: 1px solid rgba(255, 74, 74, 0.3);
    color: #FF4A4A;
}

.admin-user-btn.unblock {
    border: 1px solid rgba(0, 255, 157, 0.3);
    color: #00FF9D;
}

/* ==================== P2P RAPIRA STYLE ==================== */

.p2p-nav-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.p2p-header-action-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #CBD5E1;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.p2p-header-action-btn:active {
    transform: scale(0.96);
}

.p2p-header-action-btn.primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 150, 255, 0.25));
    border-color: rgba(0, 212, 255, 0.5);
    color: #00D4FF;
}

.p2p-tabs {
    display: flex;
    background: rgba(13, 20, 32, 0.9);
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.p2p-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #5A6577;
    cursor: pointer;
    transition: all 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p2p-tab-buy.active {
    background: rgba(0, 255, 157, 0.15);
    color: #00FF9D;
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.15);
}

.p2p-tab-sell.active {
    background: rgba(255, 74, 74, 0.15);
    color: #FF4A4A;
    box-shadow: 0 0 12px rgba(255, 74, 74, 0.15);
}

/* P2P Currency Pair Pills */
.p2p-pair-pills-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 10px 0;
    scrollbar-width: none;
}
.p2p-pair-pills-bar::-webkit-scrollbar { display: none; }

.p2p-pair-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8E9BAE;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.p2p-pair-pill.active {
    background: rgba(0, 212, 255, 0.18);
    border-color: rgba(0, 212, 255, 0.6);
    color: #00D4FF;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

/* P2P Ad Type Badges (Биржевая плашка Купить/Продать USDT) */
.p2p-type-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.p2p-type-badge.buy {
    color: #00FF9D;
    background: rgba(0, 255, 157, 0.12);
    border: 1px solid rgba(0, 255, 157, 0.3);
}

.p2p-type-badge.sell {
    color: #FF4A4A;
    background: rgba(255, 74, 74, 0.12);
    border: 1px solid rgba(255, 74, 74, 0.3);
}

.p2p-my-pill {
    background: rgba(0, 212, 255, 0.12);
    color: #00D4FF;
    border: 1px solid rgba(0, 212, 255, 0.28);
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* P2P Publish Toggle for My Ads (Compact Bybit Style) */
.p2p-status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.p2p-status-toggle .p2p-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.p2p-status-toggle .p2p-status-dot.active {
    background: #00FF9D;
    box-shadow: 0 0 6px rgba(0, 255, 157, 0.6);
}

.p2p-status-toggle .p2p-status-dot.inactive {
    background: #8E9BAE;
}

.p2p-status-toggle.active {
    background: rgba(0, 255, 157, 0.1);
    color: #00FF9D;
    border: 1px solid rgba(0, 255, 157, 0.25);
}

.p2p-status-toggle.inactive {
    background: rgba(255, 255, 255, 0.05);
    color: #8E9BAE;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* P2P Create Ad Type Segmented Toggle */
.p2p-create-type-toggle {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.p2p-create-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #8E9BAE;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.p2p-create-type-btn.sell.active {
    background: rgba(0, 255, 157, 0.12);
    border-color: #00FF9D;
    color: #00FF9D;
    box-shadow: 0 0 16px rgba(0, 255, 157, 0.2);
}

.p2p-create-type-btn.buy.active {
    background: rgba(255, 74, 74, 0.12);
    border-color: #FF4A4A;
    color: #FF4A4A;
    box-shadow: 0 0 16px rgba(255, 74, 74, 0.2);
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 8px rgba(0, 255, 157, 0.15); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 157, 0.35); }
}

@keyframes livePulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.live-dot {
    animation: livePulse 2s infinite ease-in-out;
}

.p2p-deal-alert-banner {
    transition: all 0.3s ease;
}

.p2p-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.p2p-filter-select {
    flex: 1;
    background: rgba(19, 26, 46, 0.8) url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238E9BAE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 10px center;
    background-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #d1d5db;
    padding: 8px 30px 8px 12px;
    font-size: 0.78rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

/* P2P Ad Cards */
.p2p-ads-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 80px;
}

.p2p-ad-card {
    background: rgba(16, 25, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.p2p-ad-card.p2p-card-vip {
    background: linear-gradient(135deg, rgba(22, 31, 46, 0.95) 0%, rgba(35, 28, 14, 0.9) 100%);
    border: 1px solid rgba(255, 184, 0, 0.45);
    box-shadow: 0 4px 20px rgba(255, 184, 0, 0.12);
}

.p2p-vip-badge {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.25) 0%, rgba(255, 140, 0, 0.2) 100%);
    border: 1px solid rgba(255, 184, 0, 0.6);
    color: #FFB800;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.p2p-ad-card:active {
    transform: scale(0.99);
}

.p2p-ad-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.p2p-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.p2p-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4FF, #7B2CBF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.p2p-user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.p2p-user-stats {
    font-size: 0.7rem;
    color: #8E9BAE;
}

.p2p-badge-merchant {
    background: rgba(0, 212, 255, 0.15);
    color: #00D4FF;
    border: 1px solid rgba(0, 212, 255, 0.3);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.p2p-ad-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.p2p-ad-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p2p-ad-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.p2p-ad-price span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #8E9BAE;
}

.p2p-ad-limit {
    font-size: 0.72rem;
    color: #8E9BAE;
}

.p2p-ad-bank {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #00D4FF;
    background: rgba(0, 212, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
}

.btn-p2p-action {
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-p2p-buy {
    background: linear-gradient(135deg, #00FF9D, #00B871);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.25);
}

.btn-p2p-sell {
    background: linear-gradient(135deg, #FF4A4A, #CC2B2B);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 74, 74, 0.25);
}

/* P2P Deal Chat Screen */
.p2p-deal-header {
    background: rgba(14, 20, 32, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
}

.p2p-deal-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.p2p-status-pill {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p2p-status-pending { background: rgba(255, 184, 0, 0.15); color: #FFB800; border: 1px solid rgba(255, 184, 0, 0.3); }
.p2p-status-paid { background: rgba(0, 212, 255, 0.15); color: #00D4FF; border: 1px solid rgba(0, 212, 255, 0.3); }
.p2p-status-completed { background: rgba(0, 255, 157, 0.15); color: #00FF9D; border: 1px solid rgba(0, 255, 157, 0.3); }
.p2p-status-cancelled { background: rgba(255, 74, 74, 0.15); color: #FF4A4A; border: 1px solid rgba(255, 74, 74, 0.3); }
.p2p-status-dispute { background: rgba(255, 74, 74, 0.22); color: #FF4A4A; border: 1px solid rgba(255, 74, 74, 0.45); font-weight: 800; }

.p2p-deal-timer {
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFB800;
}

.p2p-chat-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
    max-height: 380px;
    overflow-y: auto;
    background: rgba(10, 16, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
}

.chat-msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 150, 255, 0.25));
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-msg.other {
    align-self: flex-start;
    background: rgba(26, 36, 52, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    border-bottom-left-radius: 2px;
}

.chat-msg.system {
    align-self: center;
    max-width: 95%;
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.25);
    color: #FFB800;
    text-align: center;
    font-size: 0.72rem;
}

.chat-msg.admin {
    align-self: flex-start;
    max-width: 88%;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.14), rgba(255, 140, 0, 0.10));
    border: 1.5px solid rgba(255, 184, 0, 0.5);
    box-shadow: 0 4px 18px rgba(255, 184, 0, 0.12);
    color: #FFFFFF;
    border-bottom-left-radius: 2px;
}

.chat-msg.admin.mine {
    align-self: flex-end;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 2px;
}

.chat-msg-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #FFB800;
    margin-bottom: 5px;
    padding: 2px 6px;
    background: rgba(255, 184, 0, 0.18);
    border: 1px solid rgba(255, 184, 0, 0.35);
    border-radius: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.chat-msg-time {
    font-size: 0.62rem;
    opacity: 0.6;
    margin-top: 3px;
    text-align: right;
}

.p2p-chat-input-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.p2p-chat-input {
    flex: 1;
    background: rgba(19, 26, 46, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 10px 12px;
    font-size: 0.82rem;
    outline: none;
}

.p2p-chat-send {
    padding: 0 16px;
    background: #00D4FF;
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* P2P Deal Attachments */
.p2p-chat-attach-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0 10px;
    color: #8E9BAE;
    cursor: pointer;
}
.chat-msg img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 4px;
    display: block;
}
.p2p-my-deal-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
}

/* Profile Level Badge */
.level-badge {
    background: linear-gradient(135deg, #00D4FF 0%, #00FF9D 100%);
    color: #0F172A;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

/* FAQ Accordion */
.faq-section {
    margin-bottom: 20px;
}
.faq-section-title {
    font-size: 1.1rem;
    color: #00D4FF;
    margin-bottom: 10px;
    font-weight: 700;
}
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-question {
    padding: 12px 15px;
    font-weight: 600;
    color: #E2E8F0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}
.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: #8E9BAE;
    font-size: 0.9rem;
    line-height: 1.4;
}
.faq-item.active .faq-answer {
    padding: 10px 15px 15px;
    max-height: 500px;
}
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}
.faq-question svg {
    transition: transform 0.3s ease;
}

/* Bonus Wallet Widget */
.bonus-wallet-widget {
    background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(109,40,217,0.05) 100%);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.bww-icon {
    width: 44px;
    height: 44px;
    background: rgba(139,92,246,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B5CF6;
    flex-shrink: 0;
}
.bww-info {
    flex: 1;
}
.bww-label {
    font-size: 12px;
    color: #8E9BAE;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bww-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.bww-value span {
    color: #00D4FF;
}
.bww-level-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,184,0,0.1);
    color: #FFB800;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Levels in Profile */
.level-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.level-card {
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}
.lc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.lc-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.lc-fee {
    font-size: 14px;
    font-weight: 700;
    background: rgba(0,212,255,0.1);
    color: #00D4FF;
    padding: 4px 8px;
    border-radius: 8px;
}
.lc-desc {
    font-size: 13px;
    color: #8E9BAE;
    line-height: 1.5;
}

/* ==================== WALLET SCREEN ==================== */
#screen-wallet {
    padding: 0 16px 88px 16px;
    padding-top: max(6px, env(safe-area-inset-top, 6px));
}

.wallet-balance-card {
    background: linear-gradient(145deg, rgba(24, 35, 60, 0.88) 0%, rgba(13, 20, 36, 0.95) 100%);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 18px;
    padding: 16px 18px 15px 18px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.wbc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94A3B8;
    margin-bottom: 6px;
}

.wbc-eye {
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wbc-eye::before {
    content: '';
    position: absolute;
    inset: -6px;
}

.wbc-eye:active {
    transform: scale(0.90);
    color: #00D4FF;
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.wbc-amount {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 3px;
}

.wbc-value {
    font-size: 2.15rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.wbc-currency {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00D4FF;
}

.wbc-equiv {
    font-size: 0.84rem;
    color: #94A3B8;
    font-weight: 500;
}

.wallet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    padding: 0;
}

.w-action-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    width: auto;
}

.w-action-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, rgba(24, 35, 60, 0.85) 0%, rgba(14, 21, 38, 0.95) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D4FF;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.w-action-icon svg {
    width: 22px;
    height: 22px;
}

.w-action-btn:active .w-action-icon {
    transform: scale(0.92);
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.25);
}

.w-action-btn span {
    font-size: 0.74rem;
    color: #CBD5E1;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.wallet-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 7px;
}

.wallet-history-btn {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(19, 26, 46, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.wallet-history-btn:active {
    transform: scale(0.98);
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.25);
}

.whb-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #FFFFFF;
}

.whb-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: #00D4FF;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whb-icon svg {
    width: 17px;
    height: 17px;
}

.wallet-assets-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.wallet-asset-card {
    display: flex;
    flex-direction: column;
    padding: 10px 11px;
    background: rgba(19, 26, 46, 0.65);
    border: 1px solid rgba(0, 212, 255, 0.09);
    border-radius: 13px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.wallet-asset-card:active {
    transform: scale(0.97);
    border-color: rgba(0, 212, 255, 0.3);
}

.wac-top {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.wac-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
}

.wac-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #FFFFFF;
}

.wac-balance {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 2px;
    line-height: 1.15;
}

.wac-sub {
    font-size: 0.66rem;
    color: #8E9BAE;
    font-weight: 500;
}

/* Rapira Quick Filters */
.p2p-qf-pill {
    background: #1E293B;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    color: #8E9BAE;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.p2p-qf-pill.active {
    background: #3B82F6;
    color: #FFFFFF;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ==================== FINANCIAL LEVELS STYLES ==================== */
.levels-hero-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.levels-hero-card::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.tier-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-standard {
    background: rgba(142, 155, 174, 0.15);
    color: #8E9BAE;
    border: 1px solid rgba(142, 155, 174, 0.3);
}

.tier-pro {
    background: rgba(0, 212, 255, 0.15);
    color: #00D4FF;
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.tier-partner {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.levels-pro-section {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
}

.levels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.criteria-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.criteria-card.completed {
    border-color: rgba(0, 255, 157, 0.3);
    background: rgba(0, 255, 157, 0.04);
}

.crit-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.crit-title {
    font-size: 0.68rem;
    color: #8E9BAE;
    font-weight: 600;
}

.crit-val {
    font-size: 0.7rem;
    font-weight: 700;
    color: #FFFFFF;
}

.progress-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #00D4FF 0%, #00FF9D 100%);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.level-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.level-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 7px 4px;
    color: #8E9BAE;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.level-tab-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    color: #00D4FF;
    font-weight: 700;
}

.level-compare-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
}

.compare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.73rem;
}

.compare-row .c-label {
    color: #8E9BAE;
}

.compare-row .c-val {
    color: #FFFFFF;
    font-weight: 600;
}

.compare-row .c-val.highlight {
    font-size: 0.85rem;
    font-weight: 800;
    color: #00FF9D;
}

/* ==================== THEME TOGGLE BUTTON ==================== */
.theme-toggle-btn {
    position: relative;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 22, 34, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #F8FAFC;
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
}

.theme-toggle-btn:active {
    transform: scale(0.90);
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
}

/* ==================== LUXURY WHITE & ORANGE LIGHT THEME ==================== */

/* --- Core --- */
body.theme-light {
    background: #F5F5F7 !important;
    color: #1D1D1F !important;
}
body.theme-light #app {
    background: #F5F5F7 !important;
}
body.theme-light .screen {
    color: #1D1D1F !important;
}

/* --- Theme Toggle Button (Light Mode) --- */
body.theme-light .theme-toggle-btn {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #0066CC !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

/* --- Logo --- */
body.theme-light .home-logo .logo-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1D1D1F !important;
    background-clip: unset !important;
}
body.theme-light .home-logo .logo-sub {
    color: #0066CC !important;
    opacity: 0.7 !important;
}

/* --- Profile & Admin Buttons --- */
body.theme-light .profile-btn {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #1D1D1F !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
body.theme-light .profile-btn svg {
    stroke: #1D1D1F !important;
}
body.theme-light .admin-btn {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #0066CC !important;
}

/* --- Language Switcher (Light Mode) --- */
body.theme-light .lang-switcher {
    background: #F0F0F2 !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .lang-pill {
    background: transparent !important;
    border: none !important;
    color: #6E6E73 !important;
}
body.theme-light .lang-pill.active {
    background: #FFFFFF !important;
    color: #0066CC !important;
    border-color: transparent !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

/* --- Wallet Balance Card --- */
body.theme-light .wallet-balance-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}
body.theme-light .wallet-balance-card::before {
    display: none !important;
}
body.theme-light .wbc-header {
    color: #6E6E73 !important;
}
body.theme-light .wbc-eye {
    color: #6E6E73 !important;
}
body.theme-light .wbc-eye svg {
    stroke: #6E6E73 !important;
}
body.theme-light .wbc-value {
    color: #1D1D1F !important;
}
body.theme-light .wbc-currency {
    color: #0066CC !important;
}
body.theme-light .wbc-equiv {
    color: #6E6E73 !important;
}
body.theme-light .wbc-amount {
    color: #1D1D1F !important;
}

/* --- Quick Actions (Пополнить / Вывести / P2P / RapCode) --- */
body.theme-light .w-action-icon {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #1D1D1F !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}
body.theme-light .w-action-icon svg {
    stroke: #1D1D1F !important;
}
body.theme-light .w-action-btn span {
    color: #6E6E73 !important;
}
body.theme-light .w-action-btn:active .w-action-icon {
    background: #F0F0F2 !important;
}

/* --- Wallet Section Title --- */
body.theme-light .wallet-section-title {
    color: #1D1D1F !important;
}

/* --- Asset Cards (USDT / TMT / Бонус) --- */
body.theme-light .wallet-asset-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
body.theme-light .wac-name {
    color: #1D1D1F !important;
}
body.theme-light .wac-balance {
    color: #1D1D1F !important;
}
body.theme-light .wac-sub {
    color: #8E8E93 !important;
}

/* --- History Button --- */
body.theme-light .wallet-history-btn {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
body.theme-light .whb-left {
    color: #1D1D1F !important;
}
body.theme-light .whb-icon {
    background: rgba(0,102,204,0.1) !important;
    color: #0066CC !important;
}
body.theme-light .whb-icon svg {
    stroke: #0066CC !important;
}

/* --- Rate Cards (Home Screen) --- */
body.theme-light .rate-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
body.theme-light .rate-pair {
    color: #1D1D1F !important;
}
body.theme-light .rate-pair-arrow {
    color: #6E6E73 !important;
}
body.theme-light .rate-price-value {
    color: #1D1D1F !important;
}
body.theme-light .rate-price-unit {
    color: #8E8E93 !important;
}
body.theme-light .rate-badge {
    background: rgba(0,102,204,0.1) !important;
    color: #0066CC !important;
    border-color: rgba(0,102,204,0.2) !important;
}
body.theme-light .rate-value {
    color: #1D1D1F !important;
}
body.theme-light .rate-text {
    color: #8E8E93 !important;
}
body.theme-light .rate-label {
    color: #6E6E73 !important;
}
body.theme-light .rate-flag {
    border-color: #E5E5EA !important;
}

/* --- Cards (generic) --- */
body.theme-light .card,
body.theme-light .p2p-ad-card,
body.theme-light .admin-order-card,
body.theme-light .admin-form-card,
body.theme-light .p2p-filter-card,
body.theme-light .order-card,
body.theme-light .profile-card,
body.theme-light .levels-card,
body.theme-light .calc-box {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    color: #1D1D1F !important;
}

/* --- Card Subtitles & Secondary Text --- */
body.theme-light .card-subtitle,
body.theme-light .asset-name {
    color: #6E6E73 !important;
}
body.theme-light .asset-value {
    color: #1D1D1F !important;
}

/* --- Primary Button --- */
body.theme-light .btn-primary {
    background: #0066CC !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(0,102,204,0.3) !important;
    border: none !important;
}
body.theme-light .btn-primary:active {
    background: #0055AA !important;
}

/* --- Secondary Button --- */
body.theme-light .btn-secondary {
    background: #FFFFFF !important;
    border: 1px solid #D1D1D6 !important;
    color: #1D1D1F !important;
}

/* --- Bottom Nav --- */
body.theme-light .bottom-nav {
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid #E5E5EA !important;
    box-shadow: 0 -1px 10px rgba(0,0,0,0.04) !important;
}
body.theme-light .nav-item {
    color: #8E8E93 !important;
}
body.theme-light .nav-item svg {
    stroke: #8E8E93 !important;
}
body.theme-light .nav-item.active {
    color: #0066CC !important;
}
body.theme-light .nav-item.active svg {
    stroke: #0066CC !important;
}
body.theme-light .nav-center-btn {
    background: #0066CC !important;
    box-shadow: 0 4px 16px rgba(0,102,204,0.4) !important;
}

/* --- Screen Headers & Back Button --- */
body.theme-light .screen-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1D1D1F !important;
    background-clip: unset !important;
    color: #1D1D1F !important;
}
body.theme-light .back-btn {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #1D1D1F !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
body.theme-light .back-btn svg {
    stroke: #1D1D1F !important;
}

/* --- Exchange Form (cx-*) --- */
body.theme-light .cx-card {
    background: #FFFFFF !important;
    border-color: #E5E5EA !important;
}
body.theme-light .cx-card:focus-within {
    border-color: #0066CC !important;
}
body.theme-light .cx-label {
    color: #8E8E93 !important;
}
body.theme-light .cx-input {
    color: #1D1D1F !important;
    caret-color: #0066CC !important;
}
body.theme-light .cx-input::placeholder {
    color: #C7C7CC !important;
}
body.theme-light .cx-cur {
    border-color: #D1D1D6 !important;
    color: #0066CC !important;
}
body.theme-light .cx-text {
    color: #1D1D1F !important;
    caret-color: #0066CC !important;
    background: transparent !important;
}
body.theme-light .cx-text::placeholder {
    color: #C7C7CC !important;
}
body.theme-light .cx-select {
    color: #1D1D1F !important;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF6B00' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-color: transparent !important;
}
body.theme-light .cx-select option {
    background: #FFFFFF !important;
    color: #1D1D1F !important;
}
body.theme-light .cx-hint {
    color: #8E8E93 !important;
}
body.theme-light .cx-sep-line {
    background: #E5E5EA !important;
}
body.theme-light .cx-sep-dot {
    background: #FFFFFF !important;
    border-color: #E5E5EA !important;
    color: #0066CC !important;
}
body.theme-light .cx-sep-dot svg {
    stroke: #0066CC !important;
}

/* --- Form Inputs (generic) --- */
body.theme-light .form-input,
body.theme-light .form-select,
body.theme-light input,
body.theme-light select,
body.theme-light textarea {
    background: #FFFFFF !important;
    border-color: #D1D1D6 !important;
    color: #1D1D1F !important;
}
body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
    color: #C7C7CC !important;
}

/* --- More Screen Menu --- */
body.theme-light .menu-group {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
body.theme-light .menu-item {
    color: #1D1D1F !important;
}
body.theme-light .menu-item:active {
    background: #F5F5F7 !important;
}
body.theme-light .menu-item + .menu-item {
    border-top: 1px solid #F2F2F7 !important;
}
body.theme-light .menu-icon {
    background: rgba(0,102,204,0.08) !important;
    color: #0066CC !important;
}
body.theme-light .menu-icon svg {
    stroke: #0066CC !important;
}
body.theme-light .menu-title {
    color: #1D1D1F !important;
}
body.theme-light .menu-desc {
    color: #8E8E93 !important;
}
body.theme-light .menu-item svg[stroke="#8E9BAE"],
body.theme-light .menu-item svg:last-child {
    stroke: #C7C7CC !important;
}

/* --- Profile Screen --- */
body.theme-light .profile-header-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
body.theme-light .profile-avatar {
    background: rgba(0,102,204,0.06) !important;
    border-color: rgba(0,102,204,0.2) !important;
}
body.theme-light .profile-name {
    color: #1D1D1F !important;
}
body.theme-light .profile-email-display {
    color: #8E8E93 !important;
}
body.theme-light .section-heading {
    color: #1D1D1F !important;
}
body.theme-light .section-count {
    color: #8E8E93 !important;
    background: #F2F2F7 !important;
}

/* --- Order Cards --- */
body.theme-light .order-card-id {
    color: #8E8E93 !important;
}
body.theme-light .order-card-exchange {
    color: #1D1D1F !important;
}
body.theme-light .order-card-date {
    color: #8E8E93 !important;
}
body.theme-light .order-number-card {
    background: #FFFFFF !important;
    border-color: #E5E5EA !important;
}
body.theme-light .order-number-label {
    color: #8E8E93 !important;
}
body.theme-light .order-number {
    color: #1D1D1F !important;
}

/* --- Modal --- */
body.theme-light .modal-content {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.12) !important;
    color: #1D1D1F !important;
}
body.theme-light .modal-header {
    border-bottom-color: #F2F2F7 !important;
}
body.theme-light .modal-header h3 {
    color: #1D1D1F !important;
}
body.theme-light .modal-close {
    background: #F2F2F7 !important;
    color: #1D1D1F !important;
    border: none !important;
}
body.theme-light .modal-body {
    color: #1D1D1F !important;
}

/* --- Filter Pills / Tabs --- */
body.theme-light .filter-pill,
body.theme-light .p2p-tab {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #6E6E73 !important;
}
body.theme-light .filter-pill.active,
body.theme-light .p2p-tab.active {
    background: #0066CC !important;
    color: #FFFFFF !important;
    border-color: #0066CC !important;
}

/* --- Admin Tabs --- */
body.theme-light .admin-tab {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #6E6E73 !important;
}
body.theme-light .admin-tab.active {
    background: #0066CC !important;
    color: #FFFFFF !important;
    border-color: #0066CC !important;
}

/* --- P2P Quick Filters --- */
body.theme-light .p2p-qf-pill {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #6E6E73 !important;
}
body.theme-light .p2p-qf-pill.active {
    background: #0066CC !important;
    color: #FFFFFF !important;
    border-color: #0066CC !important;
}

/* --- Chat --- */
body.theme-light .chat-container {
    background: #F5F5F7 !important;
}
body.theme-light .chat-msg.other {
    background: #FFFFFF !important;
    color: #1D1D1F !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .chat-msg.me {
    background: #0066CC !important;
    color: #FFFFFF !important;
}
body.theme-light .chat-input-area {
    background: #FFFFFF !important;
    border-top: 1px solid #E5E5EA !important;
}
body.theme-light .chat-input {
    background: #F2F2F7 !important;
    color: #1D1D1F !important;
    border-color: #E5E5EA !important;
}

/* --- Levels Card --- */
body.theme-light .lc-title {
    color: #1D1D1F !important;
}
body.theme-light .lc-desc {
    color: #8E8E93 !important;
}

/* --- Empty State --- */
body.theme-light .empty-state p {
    color: #8E8E93 !important;
}

/* --- Toast --- */
body.theme-light .toast {
    background: #1D1D1F !important;
    color: #FFFFFF !important;
}

/* --- Loading --- */
body.theme-light .loading-overlay {
    background: rgba(245,245,247,0.85) !important;
}
body.theme-light #loading-text {
    color: #0066CC !important;
}
body.theme-light #loading-text small {
    color: #8E8E93 !important;
}

/* --- Compare Block (inline styles override) --- */
body.theme-light .compare-block {
    background: #FFFFFF !important;
    border-color: #E5E5EA !important;
}
body.theme-light .compare-row {
    border-bottom-color: #F2F2F7 !important;
}
body.theme-light .compare-row .c-label {
    color: #8E8E93 !important;
}
body.theme-light .compare-row .c-val {
    color: #1D1D1F !important;
}

/* --- KPI Stats Grid (Admin) --- */
body.theme-light .kpi-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #1D1D1F !important;
}
body.theme-light .kpi-value {
    color: #1D1D1F !important;
}
body.theme-light .kpi-label {
    color: #8E8E93 !important;
}

/* --- Referral Badge on Wallet --- */
body.theme-light [onclick="openReferralScreen()"] {
    background: rgba(0,102,204,0.06) !important;
    border-color: rgba(0,102,204,0.2) !important;
}

/* --- Global SVG strokes (inside cards/screens) --- */
body.theme-light .screen svg:not(.nav-item svg):not(.rate-flag svg) {
    /* Let most icons inherit from parent color */
}

/* --- Scrollbar (webkit) --- */
body.theme-light ::-webkit-scrollbar-track {
    background: #F5F5F7 !important;
}
body.theme-light ::-webkit-scrollbar-thumb {
    background: #D1D1D6 !important;
}

/* --- History Modal --- */
body.theme-light #history-modal {
    background: rgba(0,0,0,0.3) !important;
}

/* --- FAQs --- */
body.theme-light .faq-item {
    background: #FFFFFF !important;
    border-color: #E5E5EA !important;
}
body.theme-light .faq-q {
    color: #1D1D1F !important;
}
body.theme-light .faq-a {
    color: #6E6E73 !important;
}

/* --- Stub screens (policy, agreement) --- */
body.theme-light .stub-content {
    color: #1D1D1F !important;
}
body.theme-light .stub-content h1,
body.theme-light .stub-content h2,
body.theme-light .stub-content h3 {
    color: #1D1D1F !important;
}
body.theme-light .stub-content p,
body.theme-light .stub-content li {
    color: #3A3A3C !important;
}

/* --- Admin User Cards --- */
body.theme-light .admin-user-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #1D1D1F !important;
}

/* --- Dispute cards --- */
body.theme-light .dispute-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #1D1D1F !important;
}

/* --- Inline style overrides for common patterns --- */
body.theme-light [style*="color:#FFFFFF"],
body.theme-light [style*="color: #FFFFFF"],
body.theme-light [style*="color:#fff"],
body.theme-light [style*="color: #fff"] {
    color: #1D1D1F !important;
}
body.theme-light [style*="color:#8E9BAE"],
body.theme-light [style*="color: #8E9BAE"] {
    color: #8E8E93 !important;
}
body.theme-light [style*="color:#00D4FF"],
body.theme-light [style*="color: #00D4FF"] {
    color: #0066CC !important;
}
body.theme-light [style*="color:#00FF9D"],
body.theme-light [style*="color: #00FF9D"] {
    color: #34C759 !important;
}

/* --- Exchange Steps Indicator --- */
body.theme-light .step-circle {
    background: #F2F2F7 !important;
    border-color: #D1D1D6 !important;
    color: #8E8E93 !important;
}
body.theme-light .step.active .step-circle {
    background: #0066CC !important;
    border-color: #0066CC !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0,102,204,0.35) !important;
}
body.theme-light .step.completed .step-circle {
    background: #34C759 !important;
    border-color: #34C759 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(52,199,89,0.3) !important;
}
body.theme-light .step-label {
    color: #8E8E93 !important;
}
body.theme-light .step.active .step-label {
    color: #0066CC !important;
}
body.theme-light .step.completed .step-label {
    color: #34C759 !important;
    opacity: 0.8 !important;
}
body.theme-light .step-line {
    background: #E5E5EA !important;
}
body.theme-light .step-line.filled {
    background: #D1D1D6 !important;
}
body.theme-light .step-line.filled::after {
    background: linear-gradient(90deg, #34C759, #30B350) !important;
}

/* --- Direction Cards (Step 1) --- */
body.theme-light .section-label {
    color: #6E6E73 !important;
}
body.theme-light .direction-card {
    background: #FFFFFF !important;
    border: 1.5px solid #E5E5EA !important;
}
body.theme-light .direction-card.selected {
    border-color: #0066CC !important;
    background: rgba(0,102,204,0.04) !important;
    box-shadow: 0 2px 12px rgba(0,102,204,0.08) !important;
}
body.theme-light .direction-icon {
    background: #F2F2F7 !important;
    color: #6E6E73 !important;
}
body.theme-light .direction-icon svg {
    stroke: #6E6E73 !important;
}
body.theme-light .direction-card.selected .direction-icon {
    background: #0066CC !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0,102,204,0.3) !important;
}
body.theme-light .direction-card.selected .direction-icon svg {
    stroke: #FFFFFF !important;
}
body.theme-light .direction-title {
    color: #1D1D1F !important;
}
body.theme-light .direction-desc {
    color: #8E8E93 !important;
}
body.theme-light .direction-check {
    color: transparent !important;
}
body.theme-light .direction-card.selected .direction-check {
    color: #0066CC !important;
    filter: none !important;
}
body.theme-light .direction-card.selected .direction-check svg {
    stroke: #0066CC !important;
}
body.theme-light .direction-arrow {
    color: #8E8E93 !important;
}
body.theme-light .direction-arrow svg {
    stroke: #8E8E93 !important;
}
body.theme-light .direction-note {
    color: #8E8E93 !important;
}

/* --- Exchange Form (Step 2) extras --- */
body.theme-light .cx-sep-dot {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .cx-sep-dot svg {
    stroke: #0066CC !important;
}
body.theme-light .cx-rate {
    background: rgba(0,102,204,0.06) !important;
    border-color: rgba(0,102,204,0.15) !important;
}
body.theme-light .cx-rate-val {
    color: #0066CC !important;
}
body.theme-light .cx-note {
    color: #8E8E93 !important;
}
body.theme-light .cx-cur {
    border-color: #D1D1D6 !important;
    color: #0066CC !important;
    background: #FFFFFF !important;
}

/* --- FAQ Screen --- */
body.theme-light .faq-section-title {
    color: #0066CC !important;
}
body.theme-light .faq-item {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .faq-question {
    color: #1D1D1F !important;
}
body.theme-light .faq-question:hover {
    background: #F5F5F7 !important;
}
body.theme-light .faq-question svg {
    stroke: #8E8E93 !important;
}
body.theme-light .faq-answer {
    color: #6E6E73 !important;
}

/* --- P2P Rapira --- */
body.theme-light .p2p-nav-btn {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #1D1D1F !important;
}
body.theme-light .p2p-nav-btn.primary {
    background: #0066CC !important;
    border-color: #0066CC !important;
    color: #FFFFFF !important;
}
body.theme-light .p2p-tabs {
    background: #F2F2F7 !important;
    border-color: #E5E5EA !important;
}
body.theme-light .p2p-tab {
    color: #8E8E93 !important;
    background: transparent !important;
}
body.theme-light .p2p-tab-buy.active {
    background: #34C759 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(52,199,89,0.3) !important;
}
body.theme-light .p2p-tab-sell.active {
    background: #FF3B30 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(255,59,48,0.3) !important;
}
body.theme-light .p2p-filter-select {
    background-color: #FFFFFF !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 14px !important;
    border: 1px solid #E5E5EA !important;
    color: #1D1D1F !important;
}
body.theme-light .p2p-ad-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .p2p-user-name {
    color: #1D1D1F !important;
}
body.theme-light .p2p-user-stats {
    color: #8E8E93 !important;
}
body.theme-light .p2p-badge-merchant {
    background: rgba(0,102,204,0.1) !important;
    color: #0066CC !important;
    border-color: rgba(0,102,204,0.25) !important;
}
body.theme-light .p2p-ad-price {
    color: #1D1D1F !important;
}
body.theme-light .p2p-ad-price span {
    color: #8E8E93 !important;
}
body.theme-light .p2p-ad-limit {
    color: #8E8E93 !important;
}
body.theme-light .p2p-ad-bank {
    color: #0066CC !important;
    background: rgba(0,102,204,0.06) !important;
}
body.theme-light .p2p-deal-header {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
}

/* --- Bonus Wallet Widget --- */
body.theme-light .bonus-wallet-widget {
    background: rgba(0,102,204,0.04) !important;
    border-color: rgba(0,102,204,0.15) !important;
}

/* --- Admin Panel --- */
body.theme-light .admin-tabs {
    background: #F2F2F7 !important;
    border-color: #E5E5EA !important;
}
body.theme-light .admin-tab {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #6E6E73 !important;
}
body.theme-light .admin-tab.active {
    background: #0066CC !important;
    color: #FFFFFF !important;
    border-color: #0066CC !important;
}
body.theme-light .admin-empty {
    color: #8E8E93 !important;
}
body.theme-light .admin-empty-card {
    background: #FFFFFF !important;
    border: 1px dashed #D1D1D6 !important;
    color: #8E8E93 !important;
}
body.theme-light .admin-stat-val {
    color: #1D1D1F !important;
}
body.theme-light .admin-stat-label {
    color: #8E8E93 !important;
}
body.theme-light .admin-user-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
body.theme-light .admin-user-card.is-blocked {
    border-color: rgba(255,59,48,0.3) !important;
}
body.theme-light .admin-user-name {
    color: #1D1D1F !important;
}
body.theme-light .admin-user-uname {
    color: #0066CC !important;
}
body.theme-light .admin-user-muted {
    color: #8E8E93 !important;
}
body.theme-light .admin-user-info-text {
    color: #1D1D1F !important;
}
body.theme-light .admin-user-dot {
    color: #C7C7CC !important;
}
body.theme-light .admin-user-id {
    color: #6E6E73 !important;
}
body.theme-light .admin-user-details-box {
    background: #F8FAFC !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .admin-user-balance-val {
    color: #34C759 !important;
}
body.theme-light .admin-user-bonus-val {
    color: #0066CC !important;
}
body.theme-light .admin-user-btn {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #1D1D1F !important;
}
body.theme-light .admin-user-btn.chat {
    color: #0066CC !important;
    border-color: rgba(0,102,204,0.3) !important;
}
body.theme-light .admin-user-btn.edit {
    color: #1D1D1F !important;
    border-color: #D1D1D6 !important;
}
body.theme-light .admin-user-btn.block {
    color: #FF3B30 !important;
    border-color: rgba(255,59,48,0.3) !important;
}
body.theme-light .admin-user-btn.unblock {
    color: #34C759 !important;
    border-color: rgba(52,199,89,0.3) !important;
}
body.theme-light .admin-kyc-badge.none {
    background: #F2F2F7 !important;
    color: #8E8E93 !important;
}
body.theme-light .admin-kyc-badge.verified {
    background: rgba(52,199,89,0.1) !important;
    color: #34C759 !important;
    border: 1px solid rgba(52,199,89,0.25) !important;
}
body.theme-light .admin-kyc-badge.pending {
    background: rgba(255,149,0,0.1) !important;
    color: #FF9500 !important;
    border: 1px solid rgba(255,149,0,0.25) !important;
}
body.theme-light .admin-blocked-badge {
    background: rgba(255,59,48,0.1) !important;
    color: #FF3B30 !important;
    border: 1px solid rgba(255,59,48,0.25) !important;
}

/* --- Admin Orders & Wallets in Light Theme --- */
body.theme-light .admin-order-card,
body.theme-light .admin-wallet-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
body.theme-light .admin-order-id {
    color: #1D1D1F !important;
}
body.theme-light .admin-order-details {
    color: #3A3A3C !important;
}
body.theme-light .admin-order-details strong {
    color: #1D1D1F !important;
}
body.theme-light .admin-status-badge.pending {
    background: rgba(255, 149, 0, 0.1) !important;
    color: #FF9500 !important;
    border: 1px solid rgba(255, 149, 0, 0.25) !important;
}
body.theme-light .admin-status-badge.processing {
    background: rgba(0, 102, 204, 0.1) !important;
    color: #0066CC !important;
    border: 1px solid rgba(0, 102, 204, 0.25) !important;
}
body.theme-light .admin-status-badge.completed {
    background: rgba(52, 199, 89, 0.1) !important;
    color: #34C759 !important;
    border: 1px solid rgba(52, 199, 89, 0.25) !important;
}
body.theme-light .admin-status-badge.cancelled {
    background: rgba(255, 59, 48, 0.1) !important;
    color: #FF3B30 !important;
    border: 1px solid rgba(255, 59, 48, 0.25) !important;
}
body.theme-light .admin-action-btn {
    border: 1px solid #E5E5EA !important;
    font-weight: 700 !important;
}
body.theme-light .admin-action-btn.process {
    background: rgba(0, 102, 204, 0.08) !important;
    color: #0066CC !important;
    border-color: rgba(0, 102, 204, 0.25) !important;
}
body.theme-light .admin-action-btn.accept {
    background: rgba(52, 199, 89, 0.08) !important;
    color: #34C759 !important;
    border-color: rgba(52, 199, 89, 0.25) !important;
}
body.theme-light .admin-action-btn.reject {
    background: rgba(255, 59, 48, 0.08) !important;
    color: #FF3B30 !important;
    border-color: rgba(255, 59, 48, 0.25) !important;
}
body.theme-light .admin-wallet-addr {
    color: #1D1D1F !important;
}
body.theme-light .admin-sub-filters .filter-pill {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #6E6E73 !important;
}
body.theme-light .admin-sub-filters .filter-pill.active {
    background: #0066CC !important;
    border-color: #0066CC !important;
    color: #FFFFFF !important;
}

/* --- RapCode Component Styles --- */
.rapcode-tabs-nav {
    display: flex;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 14px;
    gap: 4px;
}
.rapcode-tabs-nav .tab-btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    border: none;
    background: transparent;
    color: #8E9BAE;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rapcode-tabs-nav .tab-btn.active {
    background: rgba(0,212,255,0.15);
    color: #00D4FF;
    font-weight: 700;
}
.rapcode-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}
.rapcode-label {
    font-size: 0.75rem;
    color: #8E9BAE;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.rapcode-sub-label {
    font-size: 0.75rem;
    color: #8E9BAE;
}
.rapcode-input-wrap {
    background: #0A0E1A;
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.rapcode-input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    width: 100%;
    outline: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.rapcode-curr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.rapcode-curr-btn {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: #8E9BAE;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rapcode-curr-btn.active {
    border-color: #00D4FF;
    background: rgba(0,212,255,0.12);
    color: #00D4FF;
}
.rapcode-summary-box {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 14px;
}

/* --- RapCode Light Theme Styles --- */
body.theme-light .rapcode-tabs-nav {
    background: #F2F2F7 !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .rapcode-tabs-nav .tab-btn {
    color: #8E8E93 !important;
    background: transparent !important;
}
body.theme-light .rapcode-tabs-nav .tab-btn.active {
    background: #0066CC !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0,102,204,0.3) !important;
}
body.theme-light .rapcode-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
body.theme-light .rapcode-label {
    color: #6E6E73 !important;
}
body.theme-light .rapcode-sub-label {
    color: #8E8E93 !important;
}
body.theme-light .rapcode-input-wrap {
    background: #FFFFFF !important;
    border: 1.5px solid #D1D1D6 !important;
}
body.theme-light .rapcode-input-wrap:focus-within {
    border-color: #0066CC !important;
}
body.theme-light .rapcode-input {
    color: #1D1D1F !important;
    caret-color: #0066CC !important;
}
body.theme-light .rapcode-input::placeholder {
    color: #C7C7CC !important;
}
body.theme-light .rapcode-curr-btn {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #6E6E73 !important;
}
body.theme-light .rapcode-curr-btn.active {
    background: rgba(0,102,204,0.08) !important;
    border-color: #0066CC !important;
    color: #0066CC !important;
}
body.theme-light .rapcode-summary-box {
    background: #F8FAFC !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .rapcode-total-row {
    border-top: 1px solid #E5E5EA !important;
    color: #1D1D1F !important;
}

/* --- Legal Documents Screen & Modal Styles --- */
.doc-container {
    padding: 20px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #E2E8F0;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}
body.theme-light .doc-container,
body.theme-light #doc-container,
body.theme-light #doc-container * {
    color: #1D1D1F !important;
}

/* --- History Modal Light Styles --- */
.modal-drag-handle {
    width: 40px;
    height: 4px;
    background: #334155;
    border-radius: 2px;
    margin: 0 auto 16px auto;
}
body.theme-light .modal-drag-handle {
    background: #D1D1D6 !important;
}
body.theme-light .history-modal-content {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .modal-heading {
    color: #1D1D1F !important;
}
body.theme-light .modal-close-icon {
    color: #8E8E93 !important;
    background: transparent !important;
}

/* ==================== P2P DEAL REQUISITES CARD ==================== */
.p2p-deal-requisites-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(10, 15, 26, 0.98) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    margin-bottom: 8px;
}
.p2p-requisite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.p2p-requisite-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: #8E9BAE;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.p2p-requisite-title.is-buyer {
    color: #00D4FF;
}
.p2p-requisite-bank-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 7px;
    border-radius: 5px;
}
.p2p-requisite-amount-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    background: rgba(0, 255, 157, 0.06);
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
}
.p2p-amount-label {
    font-size: 0.65rem;
    color: #8E9BAE;
    font-weight: 600;
}
.p2p-amount-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #00FF9D;
}
.p2p-amount-sub {
    font-size: 0.65rem;
    color: #8E9BAE;
}
.p2p-copy-btn {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    border: none;
}
.p2p-copy-amount {
    background: rgba(0, 255, 157, 0.15);
    border: 1px solid rgba(0, 255, 157, 0.35);
    color: #00FF9D;
}
.p2p-copy-card {
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.28);
    color: #00D4FF;
}
.p2p-requisite-row {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 6px;
}
.p2p-row-label {
    font-size: 0.6rem;
    color: #8E9BAE;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.p2p-card-number-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.98rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.8px;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
}
.p2p-recipient-name-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: #00D4FF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.p2p-requisite-empty-hint {
    font-size: 0.7rem;
    color: #FFB800;
    padding: 4px 0;
}
.p2p-requisite-wallet-row {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.68rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.p2p-wallet-label {
    color: #8E9BAE;
}
.p2p-copy-wallet-btn {
    background: none;
    border: none;
    color: #00D4FF;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

/* --- P2P Deal Chat Light Styles --- */
body.theme-light #screen-p2p-deal {
    background: #F5F5F7 !important;
}
body.theme-light #screen-p2p-deal .p2p-deal-header {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light #screen-p2p-deal .p2p-chat-container,
body.theme-light #screen-p2p-deal [style*="min-height:220px"],
body.theme-light #screen-p2p-deal [id*="chat"] {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .p2p-deal-requisites-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}
body.theme-light .p2p-requisite-header {
    border-bottom: 1px solid #E5E5EA !important;
}
body.theme-light .p2p-requisite-title {
    color: #6E6E73 !important;
}
body.theme-light .p2p-requisite-title.is-buyer {
    color: #0066CC !important;
}
body.theme-light .p2p-requisite-bank-badge {
    background: #E5E5EA !important;
    color: #1D1D1F !important;
}
body.theme-light .p2p-requisite-amount-box {
    background: rgba(0, 180, 100, 0.08) !important;
    border: 1px solid rgba(0, 180, 100, 0.25) !important;
}
body.theme-light .p2p-amount-label {
    color: #6E6E73 !important;
}
body.theme-light .p2p-amount-val {
    color: #00A35C !important;
}
body.theme-light .p2p-amount-sub {
    color: #8E8E93 !important;
}
body.theme-light .p2p-copy-amount {
    background: rgba(0, 163, 92, 0.12) !important;
    border: 1px solid rgba(0, 163, 92, 0.3) !important;
    color: #00874A !important;
}
body.theme-light .p2p-copy-card {
    background: rgba(0, 102, 204, 0.1) !important;
    border: 1px solid rgba(0, 102, 204, 0.25) !important;
    color: #0066CC !important;
}
body.theme-light .p2p-requisite-row {
    background: #F2F2F7 !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .p2p-row-label {
    color: #6E6E73 !important;
}
body.theme-light .p2p-card-number-val {
    color: #1D1D1F !important;
}
body.theme-light .p2p-recipient-name-val {
    color: #0066CC !important;
}
body.theme-light .p2p-requisite-wallet-row {
    border-top: 1px dashed #E5E5EA !important;
}
body.theme-light .p2p-wallet-label {
    color: #6E6E73 !important;
}
body.theme-light .p2p-copy-wallet-btn {
    color: #0066CC !important;
}
body.theme-light #p2p-deal-amount-info {
    color: #1D1D1F !important;
}
body.theme-light #p2p-deal-bank-info {
    color: #8E8E93 !important;
}
body.theme-light #p2p-deal-cp-name {
    color: #1D1D1F !important;
}
body.theme-light #p2p-deal-counterparty-info {
    border-top: 1px solid #E5E5EA !important;
}

/* --- P2P My Deals Light Styles --- */
body.theme-light #screen-p2p-my-deals {
    background: #F5F5F7 !important;
}
body.theme-light #p2p-my-deals-list .p2p-ad-card,
body.theme-light #p2p-my-deals-list [style*="background:rgba(16, 25, 38"],
body.theme-light #p2p-my-deals-list [style*="background:#161F2E"] {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light #p2p-my-deals-list [style*="color:#8E9BAE"],
body.theme-light #p2p-my-deals-list [style*="color: #8E9BAE"] {
    color: #6E6E73 !important;
}
body.theme-light #p2p-my-deals-list [style*="color:#fff"],
body.theme-light #p2p-my-deals-list [style*="color:#FFFFFF"] {
    color: #1D1D1F !important;
}

/* --- Universal Select arrow fix (no repeating arrows anywhere) --- */
select,
.cx-select,
.form-select,
.p2p-filter-select {
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 14px !important;
}

body.theme-light select,
body.theme-light .cx-select,
body.theme-light .form-select,
body.theme-light .p2p-filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 14px !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #1D1D1F !important;
}

/* --- Background overrides for dark rgba backgrounds --- */
body.theme-light [style*="background:rgba(19, 26, 46"],
body.theme-light [style*="background: rgba(19, 26, 46"],
body.theme-light [style*="background:rgba(17, 24, 39"],
body.theme-light [style*="background: rgba(17, 24, 39"],
body.theme-light [style*="background:rgba(16, 25, 38"],
body.theme-light [style*="background: rgba(16, 25, 38"],
body.theme-light [style*="background:rgba(13, 20, 32"],
body.theme-light [style*="background: rgba(13, 20, 32"],
body.theme-light [style*="background:#161F2E"],
body.theme-light [style*="background: #161F2E"],
body.theme-light [style*="background:#0A0E1A"],
body.theme-light [style*="background: #0A0E1A"],
body.theme-light [style*="background:#1E293B"],
body.theme-light [style*="background: #1E293B"] {
    background: #FFFFFF !important;
    border-color: #E5E5EA !important;
}

/* --- Inline border overrides --- */
body.theme-light [style*="border-color:rgba(0, 212, 255"],
body.theme-light [style*="border: 1px solid rgba(0, 212, 255"],
body.theme-light [style*="border:1px solid rgba(0, 212, 255"],
body.theme-light [style*="border: 1.5px solid rgba(0, 212, 255"],
body.theme-light [style*="border:1.5px solid rgba(0, 212, 255"] {
    border-color: #E5E5EA !important;
}

/* --- P2P Search Input --- */
body.theme-light .p2p-search-input,
body.theme-light [id*="p2p-search"] {
    background: #FFFFFF !important;
    border-color: #E5E5EA !important;
    color: #1D1D1F !important;
}

/* --- Home Info Card (Top Response Time / Working Hours / Tab Switch) --- */
body.theme-light .info-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
body.theme-light .info-item {
    background: #F8FAFC !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .info-icon {
    background: rgba(0,102,204,0.08) !important;
}
body.theme-light .info-icon svg {
    stroke: #0066CC !important;
}
body.theme-light .info-label {
    color: #8E8E93 !important;
}
body.theme-light .info-value {
    color: #1D1D1F !important;
}
body.theme-light .info-sub {
    color: #8E8E93 !important;
}
body.theme-light .tab-switch {
    background: #F2F2F7 !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .tab-switch .tab-btn {
    color: #8E8E93 !important;
    background: transparent !important;
}
body.theme-light .tab-switch .tab-btn.active {
    background: #0066CC !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0,102,204,0.3) !important;
}
body.theme-light .rates-header {
    color: #1D1D1F !important;
}
body.theme-light .rates-header svg {
    stroke: #0066CC !important;
}

/* --- Review Card (Step 3: Проверьте данные) --- */
body.theme-light .review-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
body.theme-light .review-row {
    color: #1D1D1F !important;
}
body.theme-light .review-label {
    color: #6E6E73 !important;
}
body.theme-light .review-value {
    color: #1D1D1F !important;
}
body.theme-light .review-divider {
    background: #F2F2F7 !important;
}
body.theme-light .review-mono {
    color: #0066CC !important;
}
body.theme-light .review-notice {
    background: #F8FAFC !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .review-notice p {
    color: #8E8E93 !important;
}

/* --- Done (Step 4: Заявка принята) --- */
body.theme-light .done-icon {
    background: rgba(52, 199, 89, 0.1) !important;
    border: 2px solid #34C759 !important;
}
body.theme-light .done-icon svg {
    stroke: #34C759 !important;
}
body.theme-light .done-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1D1D1F !important;
    background-clip: unset !important;
    color: #1D1D1F !important;
}
body.theme-light .done-text {
    color: #6E6E73 !important;
}
body.theme-light .order-number-card {
    background: #FFFFFF !important;
    border: 2px solid #E5E5EA !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04) !important;
}
body.theme-light .order-number-label {
    color: #8E8E93 !important;
}
body.theme-light .order-number {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #0066CC !important;
    background-clip: unset !important;
    color: #0066CC !important;
}
body.theme-light .copy-btn {
    background: #F2F2F7 !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light .copy-btn svg {
    stroke: #0066CC !important;
}

/* --- Profile Screen Enhancements --- */
body.theme-light #screen-profile {
    background: #F5F5F7 !important;
}
body.theme-light #screen-profile .profile-header-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
}
body.theme-light #screen-profile .profile-avatar {
    background: rgba(0,102,204,0.08) !important;
    border: 1.5px solid rgba(0,102,204,0.2) !important;
}
body.theme-light #screen-profile .profile-name {
    color: #1D1D1F !important;
}
body.theme-light #screen-profile .profile-email-display {
    color: #8E8E93 !important;
}
body.theme-light #kyc-header-btn {
    background: #0066CC !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(0,102,204,0.3) !important;
}
body.theme-light .profile-stats-box .stat-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light #profile-stat-deals,
body.theme-light #profile-stat-vol {
    color: #1D1D1F !important;
}
body.theme-light #profile-stat-rate {
    color: #34C759 !important;
}
body.theme-light .profile-levels-banner {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
}
body.theme-light .profile-levels-banner span[data-i18n="levels_banner_title"] {
    color: #1D1D1F !important;
}
body.theme-light #profile-banner-sub {
    color: #8E8E93 !important;
}
body.theme-light .profile-levels-banner span[data-i18n="btn_progress"] {
    color: #0066CC !important;
}
body.theme-light #screen-profile .cx-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02) !important;
}
body.theme-light #screen-profile .cx-label {
    color: #8E8E93 !important;
}
body.theme-light #screen-profile .cx-text,
body.theme-light #screen-profile input.cx-text,
body.theme-light .cx-card input.cx-text,
body.theme-light .cx-card .cx-text {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #1D1D1F !important;
    padding: 0 !important;
}
body.theme-light #profile-phone-input {
    color: #1D1D1F !important;
}

/* --- P2P My Deals (Мои сделки) --- */
.p2p-my-deal-card {
    background: #161F2E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.p2p-my-deal-card:active {
    transform: scale(0.98);
}
.p2p-my-deal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.p2p-my-deal-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
}
.p2p-my-deal-status {
    font-size: 0.78rem;
    font-weight: 600;
}
.p2p-my-deal-status.status-pending { color: #FFB800; }
.p2p-my-deal-status.status-paid { color: #00D4FF; }
.p2p-my-deal-status.status-completed { color: #00FF9D; }
.p2p-my-deal-status.status-cancelled { color: #FF4A4A; }
.p2p-my-deal-status.status-dispute { color: #FF4A4A; font-weight: 700; }

.p2p-my-deal-amount {
    font-size: 0.9rem;
    color: #CBD5E1;
}
.p2p-my-deal-amt-label {
    color: #8E9BAE;
}
.p2p-my-deal-amt-val {
    color: #FFFFFF;
}
.p2p-my-deal-date {
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 8px;
}

body.theme-light .p2p-my-deal-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
body.theme-light .p2p-my-deal-title {
    color: #1D1D1F !important;
}
body.theme-light .p2p-my-deal-amt-label {
    color: #8E8E93 !important;
}
body.theme-light .p2p-my-deal-amt-val {
    color: #1D1D1F !important;
}
body.theme-light .p2p-my-deal-date {
    color: #8E8E93 !important;
}
body.theme-light .p2p-my-deal-status.status-pending { color: #FF9500 !important; }
body.theme-light .p2p-my-deal-status.status-paid { color: #0066CC !important; }
body.theme-light .p2p-my-deal-status.status-completed { color: #34C759 !important; }
body.theme-light .p2p-my-deal-status.status-cancelled { color: #FF3B30 !important; }
body.theme-light .p2p-my-deal-status.status-dispute { color: #FF3B30 !important; font-weight: 700; }

/* --- Financial Levels Screen (Финансовые уровни) --- */
body.theme-light #screen-levels {
    background: #F5F5F7 !important;
}
body.theme-light .levels-hero-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    color: #1D1D1F !important;
}
body.theme-light .levels-hero-card h2,
body.theme-light #levels-current-title {
    color: #1D1D1F !important;
}
body.theme-light #levels-current-fee {
    color: #34C759 !important;
}
body.theme-light #levels-hero-card [style*="background:rgba(255,255,255,0.04)"] {
    background: #F8FAFC !important;
    border: 1px solid #E5E5EA !important;
}
body.theme-light #levels-daily-text {
    color: #1D1D1F !important;
}
body.theme-light #levels-progress-box {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
body.theme-light #levels-progress-box [data-i18n="levels_req_title"] {
    color: #1D1D1F !important;
}
body.theme-light .prog-label-row {
    color: #6E6E73 !important;
}
body.theme-light .prog-val {
    color: #1D1D1F !important;
}
body.theme-light .progress-bar-bg {
    background: #E5E5EA !important;
}
body.theme-light .progress-bar-fill {
    background: linear-gradient(90deg, #0066CC, #34C759) !important;
}

/* Level Comparison Tabs (Dark theme default) */
.compare-tab {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.78rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #8E9BAE;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-tab.active {
    background: rgba(0, 212, 255, 0.15) !important;
    color: #00D4FF !important;
    border: 1px solid rgba(0, 212, 255, 0.35) !important;
}

.compare-tab:hover:not(.active) {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

body.theme-light .compare-tab {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    color: #8E8E93 !important;
}
body.theme-light .compare-tab.active {
    background: #0066CC !important;
    border-color: #0066CC !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0,102,204,0.3) !important;
}
body.theme-light .level-compare-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
body.theme-light .compare-row {
    border-bottom: 1px solid #F2F2F7 !important;
    color: #1D1D1F !important;
}
body.theme-light .compare-row .c-label {
    color: #6E6E73 !important;
}
body.theme-light .compare-row .c-val {
    color: #1D1D1F !important;
}
body.theme-light .compare-row .c-val.highlight {
    color: #0066CC !important;
}

/* --- International Transfers Styles --- */
.transfer-country-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #FFFFFF;
}
.transfer-country-btn:active {
    transform: scale(0.98);
}
.transfer-country-btn.active {
    border-color: #00D4FF;
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 2px 14px rgba(0, 212, 255, 0.18);
}
.transfer-country-btn .country-title {
    font-weight: 700;
    font-size: 0.84rem;
    color: #FFFFFF;
}
.transfer-country-btn.active .country-title {
    color: #00D4FF;
}
.transfer-country-btn .country-sub {
    font-size: 0.68rem;
    color: #8E9BAE;
}

body.theme-light .transfer-country-btn {
    background: #F8FAFC;
    border: 1.5px solid #E5E5EA;
    color: #1D1D1F;
}
body.theme-light .transfer-country-btn.active {
    border-color: #0066CC;
    background: rgba(0, 102, 204, 0.08);
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.12);
}
body.theme-light .transfer-country-btn .country-title {
    color: #1D1D1F;
}
body.theme-light .transfer-country-btn.active .country-title {
    color: #0066CC;
}
body.theme-light .transfer-country-btn .country-sub {
    color: #8E8E93;
}

/* --- Sleek Compact Transaction History --- */
.tx-history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s ease;
}
.tx-history-item:active {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(0.99);
}
.tx-history-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.tx-history-title {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 0.8rem;
    letter-spacing: -0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tx-history-sub {
    font-size: 0.67rem;
    color: #8E9BAE;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tx-history-amount {
    font-weight: 800;
    font-size: 0.84rem;
    letter-spacing: -0.2px;
}
.tx-history-badge {
    font-size: 0.62rem;
    padding: 1.5px 6px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.2px;
}

body.theme-light .tx-history-item {
    background: #F8FAFC;
    border: 1px solid #EAECEF;
}
body.theme-light .tx-history-item:active {
    background: #EEF2F6;
}
body.theme-light .tx-history-icon-box {
    background: #EDF2F7;
}
body.theme-light .tx-history-title {
    color: #1A1D20;
}
body.theme-light .tx-history-sub {
    color: #8C939E;
}
body.theme-light .tx-history-amount.text-dark {
    color: #1A1D20;
}

/* --- AI Assistant Floating Button & Chat Modal --- */
.ai-floating-btn {
    position: fixed;
    bottom: 74px;
    right: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    z-index: 1050;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-floating-btn:active {
    transform: scale(0.92);
}
/* Automatically hide floating AI bot when any modal or sheet is open */
body.modal-open .ai-floating-btn,
body:has(.modal-overlay.active) .ai-floating-btn,
body:has(.modal-overlay[style*="display: flex"]) .ai-floating-btn,
body:has(#balance-breakdown-modal.active) .ai-floating-btn,
body:has(#balance-breakdown-modal[style*="display: flex"]) .ai-floating-btn,
body:has(#history-modal.active) .ai-floating-btn,
body:has(#history-modal[style*="display: flex"]) .ai-floating-btn,
body:has(#tx-details-modal.active) .ai-floating-btn,
body:has(#tx-details-modal[style*="display: flex"]) .ai-floating-btn,
body:has(#prompt-modal.active) .ai-floating-btn,
body:has(#prompt-modal[style*="display: flex"]) .ai-floating-btn,
body:has(#withdraw-modal.active) .ai-floating-btn,
body:has(#withdraw-modal[style*="display: flex"]) .ai-floating-btn,
body:has(#deposit-modal.active) .ai-floating-btn,
body:has(#deposit-modal[style*="display: flex"]) .ai-floating-btn,
.ai-floating-btn.hidden-by-modal {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.5) !important;
    visibility: hidden !important;
}
.ai-btn-glow {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.6) 0%, rgba(0, 102, 204, 0) 70%);
    animation: aiGlowPulse 2.5s ease-in-out infinite;
}
@keyframes aiGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
}
.ai-btn-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF 0%, #0055B3 100%);
    box-shadow: 0 4px 18px rgba(0, 102, 204, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

#ai-assistant-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 7, 13, 0.8);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    touch-action: none;
    overscroll-behavior: none;
}

#ai-assistant-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.ai-modal-content {
    width: 100%;
    max-width: 480px;
    height: 70vh;
    height: 70dvh;
    max-height: 560px;
    background: #111A2E !important;
    border: 1px solid rgba(0, 212, 255, 0.25) !important;
    border-bottom: none !important;
    border-radius: 24px 24px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7) !important;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.ai-modal-header {
    background: #162238 !important;
    padding: 14px 18px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0;
}

.ai-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.ai-chat-box {
    flex: 1 1 auto;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px 16px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0A0F1D !important;
    min-height: 0;
}

.ai-msg {
    max-width: 85%;
    padding: 12px 15px;
    font-size: 0.88rem;
    line-height: 1.45;
    animation: fadeInMsg 0.25s ease-out;
}

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

.ai-msg-bot {
    align-self: flex-start;
    background: #182236 !important;
    color: #F1F5F9 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px 16px 16px 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ai-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #00D4FF 0%, #0066CC 100%) !important;
    color: #FFFFFF !important;
    border-radius: 16px 16px 4px 16px !important;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.35);
}

.ai-chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    background: #162238 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0;
    align-items: center;
}

.ai-chat-input {
    flex: 1;
    height: 42px;
    border-radius: 21px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 0 16px;
    font-size: 0.88rem;
    color: #FFFFFF !important;
    background: #0A0F1D !important;
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-chat-input::placeholder {
    color: #8E9BAE;
}

.ai-chat-input:focus {
    border-color: #00D4FF !important;
}

.ai-chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4FF 0%, #0066CC 100%) !important;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.ai-chat-send:active {
    transform: scale(0.92);
}

/* Light Theme Overrides */
body.theme-light #ai-assistant-modal {
    background: rgba(0, 0, 0, 0.4);
}
body.theme-light .ai-modal-content {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12) !important;
}
body.theme-light .ai-modal-header {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
}
body.theme-light .ai-chat-box {
    background: #F1F5F9 !important;
}
body.theme-light .ai-msg-bot {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid #E2E8F0 !important;
}
body.theme-light .ai-chat-input-bar {
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
}
body.theme-light .ai-chat-input {
    color: #0F172A !important;
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
}
body.theme-light .ai-chat-input::placeholder {
    color: #94A3B8;
}

/* ==================== BALANCE BREAKDOWN & HOLDS STYLING ==================== */

.wallet-hold-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(112, 166, 255, 0.08) 100%);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 20px;
    color: #E0F7FF;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.12);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pulseIce 3s infinite ease-in-out;
}

@keyframes pulseIce {
    0%, 100% {
        box-shadow: 0 0 8px rgba(0, 212, 255, 0.15);
        border-color: rgba(0, 212, 255, 0.35);
    }
    50% {
        box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
        border-color: rgba(0, 212, 255, 0.6);
    }
}

.wallet-hold-pill:active {
    transform: scale(0.96);
}

.whp-icon {
    font-size: 0.8rem;
    line-height: 1;
}

.whp-text b {
    color: #00D4FF;
    font-weight: 700;
}

.whp-arrow {
    color: #8E9BAE;
    font-size: 0.85rem;
    margin-left: 2px;
}

.asset-hold-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 6px;
    color: #00D4FF;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 6px;
}

.wallet-breakdown-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(24, 35, 60, 0.75) 0%, rgba(13, 20, 36, 0.85) 100%);
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: 14px;
    padding: 11px 14px;
    margin-bottom: 9px;
    cursor: pointer;
    color: #FFFFFF;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.wallet-breakdown-btn:active {
    transform: scale(0.98);
    border-color: rgba(0, 212, 255, 0.35);
}

.wbb-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wbb-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: #00D4FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wbb-icon svg {
    width: 17px;
    height: 17px;
}

.wbb-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1px;
}

.wbb-sub {
    font-size: 0.72rem;
    color: #94A3B8;
}

.wbb-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.wbb-badge {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00D4FF;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 7px;
}

/* Modal Breakdown Styles */
.bb-total-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    text-align: center;
}

.bb-total-label {
    font-size: 0.75rem;
    color: #8E9BAE;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.bb-total-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFFFFF;
}

.bb-total-unit {
    font-size: 1rem;
    color: #00D4FF;
}

.bb-total-equiv {
    font-size: 0.8rem;
    color: #8E9BAE;
    margin-bottom: 12px;
}

.bb-alloc-bar-wrap {
    margin-top: 10px;
}

.bb-alloc-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    overflow: hidden;
}

.bb-bar-seg {
    height: 100%;
    transition: width 0.4s ease;
}

.bb-seg-free { background: #00FF9D; }
.bb-seg-deals { background: #00D4FF; }
.bb-seg-ads { background: #A78BFA; }

.bb-alloc-legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 10px;
    margin-top: 12px;
}

.bb-legend-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.75rem;
    transition: all 0.15s ease;
}

.bb-legend-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.bb-legend-name {
    color: #94A3B8;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem;
}

.bb-legend-pct {
    color: #FFFFFF;
    font-weight: 800;
    font-family: monospace, 'Inter', sans-serif;
    font-size: 0.78rem;
    padding-left: 6px;
}

.bb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bb-dot-free { background: #00FF9D; box-shadow: 0 0 6px rgba(0, 255, 157, 0.6); }
.bb-dot-deals { background: #00D4FF; box-shadow: 0 0 6px rgba(0, 212, 255, 0.6); }
.bb-dot-withdrawals { background: #FF9F0A; box-shadow: 0 0 6px rgba(255, 159, 10, 0.6); }
.bb-dot-ads { background: #A78BFA; box-shadow: 0 0 6px rgba(167, 139, 250, 0.6); }

.bb-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.bb-item-free {
    border-left: 3px solid #00FF9D;
}

.bb-item-deals {
    border-left: 3px solid #00D4FF;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.bb-item-ads {
    border-left: 3px solid #A78BFA;
}

.bb-item-bonus {
    border-left: 3px solid #F59E0B;
}

.bb-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bb-item-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bb-item-icon {
    font-size: 1.1rem;
}

.bb-item-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
}

.bb-item-desc {
    font-size: 0.68rem;
    color: #8E9BAE;
    margin-top: 1px;
}

.bb-item-amount {
    font-size: 0.95rem;
    font-weight: 800;
    color: #00FF9D;
    text-align: right;
}

.bb-val-ice { color: #00D4FF; }
.bb-val-ads { color: #A78BFA; }
.bb-val-bonus { color: #F59E0B; }

.bb-item-footer {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

.bb-action-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #CBD5E1;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bb-action-chip:active {
    background: rgba(0, 212, 255, 0.15);
    color: #00D4FF;
    border-color: rgba(0, 212, 255, 0.3);
}

.bb-list-container {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bb-empty-hint {
    font-size: 0.72rem;
    color: #64748B;
    font-style: italic;
    padding: 4px 0;
}

.bb-deal-row, .bb-ad-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px 10px;
}

.bb-deal-info, .bb-ad-info {
    font-size: 0.74rem;
}

.bb-deal-id {
    font-weight: 700;
    color: #00D4FF;
}

.bb-deal-meta {
    font-size: 0.65rem;
    color: #8E9BAE;
}

.bb-seg-withdrawals {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.bb-dot-withdrawals {
    background: #F59E0B;
}

.bb-item-withdrawals {
    border-left: 3px solid #F59E0B;
}

.bb-val-warn {
    color: #F59E0B;
}

.bb-deal-btn {
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00D4FF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bb-deal-btn:active {
    background: #00D4FF;
    color: #0A0E1A;
}

/* ==================== TRANSACTION HISTORY & DETAILS MODAL ==================== */

.tx-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.tx-history-item:hover, .tx-history-item:active {
    background: rgba(0, 212, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.25);
    transform: translateY(-1px);
}

.tx-history-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.tx-icon-deposit {
    background: rgba(0, 209, 157, 0.15);
    border: 1px solid rgba(0, 209, 157, 0.3);
}

.tx-icon-withdraw {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tx-icon-p2p {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.tx-icon-exchange {
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.tx-icon-rapcode {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.tx-icon-cancelled {
    background: rgba(255, 74, 74, 0.12);
    border: 1px solid rgba(255, 74, 74, 0.25);
    opacity: 0.75;
}

.tx-history-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-history-sub {
    font-size: 0.72rem;
    color: #8E9BAE;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.tx-history-amount {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.tx-amount-plus {
    color: #00D19D;
}

.tx-amount-minus {
    color: #FFFFFF;
}

.tx-amount-cancelled {
    color: #8E9BAE;
    text-decoration: line-through;
    opacity: 0.7;
}

.tx-history-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

/* Modal Receipt Details */
.txd-hero {
    text-align: center;
    padding: 4px 0 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.txd-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 102, 204, 0.25) 100%);
    border: 1px solid rgba(0, 212, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 6px;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.12);
}

.txd-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.txd-amount {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.txd-date {
    font-size: 0.7rem;
    color: #8E9BAE;
}

.txd-status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.txd-status-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}

.txd-status-desc {
    font-size: 0.72rem;
    color: #B2C0D4;
    line-height: 1.3;
    margin-top: 3px;
}

.txd-receipt-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.txd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    gap: 8px;
}

.txd-row-total {
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    padding-top: 6px;
    margin-top: 2px;
}

.txd-label {
    color: #8E9BAE;
    font-weight: 500;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.txd-val {
    color: #FFFFFF;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
    font-size: 0.76rem;
}

.txd-val-bold {
    font-size: 0.88rem;
    font-weight: 800;
    color: #00D4FF;
}

.txd-val-mono {
    font-family: monospace;
    font-size: 0.72rem;
    color: #A5B4FC;
}

.txd-val-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}

.txd-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #00D4FF;
    border-radius: 5px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
}

.txd-copy-btn:active {
    background: #00D4FF;
    color: #0A0E1A;
    transform: scale(0.92);
}

/* Light Theme Overrides */
body.theme-light .wallet-hold-pill {
    background: linear-gradient(135deg, rgba(0, 160, 220, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-color: rgba(0, 160, 220, 0.3);
    color: #0284C7;
}

body.theme-light .wallet-hold-pill .whp-text b {
    color: #0369A1;
}

body.theme-light .wallet-breakdown-btn {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

body.theme-light .wbb-title {
    color: #0F172A;
}

body.theme-light .bb-total-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
}

body.theme-light .bb-total-value {
    color: #0F172A;
}

body.theme-light .bb-legend-chip {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

body.theme-light .bb-legend-name {
    color: #64748B;
}

body.theme-light .bb-legend-pct {
    color: #0F172A;
}

body.theme-light .bb-item-card {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

body.theme-light .bb-item-name {
    color: #0F172A;
}

body.theme-light .bb-deal-row, body.theme-light .bb-ad-row {
    background: #FFFFFF;
    border-color: #E2E8F0;
}

body.theme-light .tx-history-item {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.theme-light .tx-history-title {
    color: #0F172A;
}

body.theme-light .tx-history-sub {
    color: #64748B;
}

body.theme-light .tx-amount-minus {
    color: #0F172A;
}

body.theme-light .tx-details-content {
    background: #FFFFFF !important;
}

body.theme-light .txd-title {
    color: #0F172A;
}

body.theme-light .txd-status-card {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

body.theme-light .txd-status-desc {
    color: #475569;
}

body.theme-light .txd-receipt-card {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

body.theme-light .txd-val {
    color: #0F172A;
}

/* ==================== P2P DEAL CREATION / PROMPT MODAL ==================== */
.modal-overlay#prompt-modal.active {
    display: flex !important;
}

.p2p-prompt-content {
    background: #161F2E;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.p2p-prompt-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.p2p-prompt-badge.buy {
    background: rgba(0, 255, 157, 0.12);
    color: #00FF9D;
    border: 1px solid rgba(0, 255, 157, 0.3);
}

.p2p-prompt-badge.sell {
    background: rgba(255, 59, 48, 0.12);
    color: #FF453A;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.p2p-prompt-rate-pill {
    background: rgba(255, 255, 255, 0.05);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.p2p-prompt-info-card {
    background: rgba(10, 14, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 14px;
    backdrop-filter: blur(10px);
    margin-bottom: 6px;
}

.p2p-prompt-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.p2p-prompt-info-lbl {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #8E9BAE;
    font-weight: 600;
}

.p2p-prompt-info-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: right;
}

.p2p-prompt-info-val .p2p-bal-main {
    color: #00D4FF;
    font-weight: 800;
    font-family: monospace, 'Inter', sans-serif;
}

.p2p-prompt-info-val .p2p-bal-equiv {
    color: #94A3B8;
    font-size: 0.75rem;
    margin-left: 4px;
    font-weight: 600;
}

.p2p-prompt-info-val.highlight {
    color: #F8FAFC;
    font-weight: 800;
    font-family: monospace, 'Inter', sans-serif;
}

.p2p-prompt-info-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 9px 0;
}

.p2p-prompt-chips {
    display: flex;
    gap: 4px;
}

.p2p-chip-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #94A3B8;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.p2p-chip-btn:hover, .p2p-chip-btn:active {
    background: rgba(0, 212, 255, 0.2);
    color: #00D4FF;
    border-color: rgba(0, 212, 255, 0.4);
    transform: scale(0.96);
}

.p2p-chip-btn.max {
    background: rgba(0, 212, 255, 0.15);
    color: #00D4FF;
    border-color: rgba(0, 212, 255, 0.3);
    font-weight: 800;
}

.p2p-prompt-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.p2p-prompt-input-wrapper input {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(0, 212, 255, 0.25);
    border-radius: 14px;
    padding: 0 136px 0 16px;
    font-family: 'Inter', monospace, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    outline: none;
    caret-color: #00D4FF;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.p2p-prompt-input-wrapper input::-webkit-outer-spin-button,
.p2p-prompt-input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.p2p-prompt-input-wrapper input:focus {
    border-color: #00D4FF;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.p2p-prompt-input-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.p2p-input-curr-badge {
    position: static;
    font-size: 0.82rem;
    font-weight: 800;
    color: #8E9BAE;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.p2p-prompt-input-wrapper #prompt-modal-max-btn {
    position: static;
    background: linear-gradient(135deg, #00D4FF, #00B4D8);
    border: none;
    border-radius: 9px;
    padding: 6px 12px;
    font-weight: 800;
    font-size: 0.75rem;
    color: #0A0E1A;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.25);
    transition: transform 0.1s ease, filter 0.15s ease;
}

.p2p-prompt-input-wrapper #prompt-modal-max-btn:active {
    transform: scale(0.94);
}

.p2p-prompt-warn {
    font-size: 0.72rem;
    color: #FF453A;
    font-weight: 700;
    margin-top: 6px;
    padding: 4px 6px;
    background: rgba(255, 59, 48, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.p2p-prompt-calc-box {
    background: rgba(0, 212, 255, 0.03);
    border: 1px dashed rgba(0, 212, 255, 0.25);
    border-radius: 14px;
    padding: 12px 14px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.p2p-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.p2p-calc-row .p2p-calc-lbl {
    color: #8E9BAE;
    font-weight: 600;
}

.p2p-calc-row .p2p-calc-val {
    color: #FFFFFF;
    font-weight: 700;
    font-family: monospace, 'Inter', sans-serif;
}

.p2p-calc-row .p2p-calc-val.highlight {
    color: #00FF9D;
    font-weight: 800;
    font-size: 0.88rem;
}

.p2p-calc-row.fee-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 6px;
    margin-top: 2px;
}

.p2p-calc-row .p2p-calc-val.free {
    color: #00D4FF;
    font-weight: 700;
}

.p2p-prompt-escrow-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.72rem;
    color: #8E9BAE;
    line-height: 1.35;
    margin-top: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.p2p-prompt-escrow-note b {
    color: #E2E8F0;
}

.p2p-prompt-submit-btn {
    width: 100%;
    height: 50px;
    margin-top: 16px;
    background: linear-gradient(135deg, #00D4FF 0%, #00B4D8 100%);
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0A0E1A;
    cursor: pointer;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transition: transform 0.1s, opacity 0.2s, box-shadow 0.2s;
}

.p2p-prompt-submit-btn:active {
    transform: scale(0.98);
}

.p2p-prompt-submit-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.6);
    box-shadow: none;
}

/* Light theme overrides for P2P prompt */
body.theme-light .p2p-prompt-content {
    background: #FFFFFF !important;
}

body.theme-light .p2p-prompt-info-card {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

body.theme-light .p2p-prompt-info-val.highlight {
    color: #0F172A;
}

body.theme-light .p2p-prompt-rate-pill {
    background: #F1F5F9;
    border-color: #E2E8F0;
    color: #334155;
}

body.theme-light #p2p-prompt-merchant-bar {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

body.theme-light #p2p-prompt-merchant-name {
    color: #0F172A !important;
}

body.theme-light .p2p-prompt-input-wrapper input {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #0F172A;
}

body.theme-light .p2p-prompt-calc-box {
    background: #F0FDF4;
    border-color: #86EFAC;
}

body.theme-light .p2p-calc-row .p2p-calc-val {
    color: #0F172A;
}

body.theme-light .p2p-chip-btn {
    background: #F1F5F9;
    border-color: #E2E8F0;
    color: #475569;
}

body.theme-light .p2p-prompt-escrow-note {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

body.theme-light .p2p-prompt-escrow-note b {
    color: #0F172A;
}

/* ==================== BLACKLIST & TRADER PROFILE STYLES ==================== */
.blacklist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 38, 57, 0.6) 0%, rgba(18, 27, 44, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.blacklist-item:hover {
    border-color: rgba(255, 59, 48, 0.25);
    background: linear-gradient(135deg, rgba(30, 44, 66, 0.7) 0%, rgba(20, 30, 48, 0.8) 100%);
}

.blacklist-user-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blacklist-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF453A 0%, #FF9F0A 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 69, 58, 0.25);
    flex-shrink: 0;
}

.blacklist-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blacklist-sub {
    font-size: 0.7rem;
    color: #8E9BAE;
    margin-top: 2px;
}

.blacklist-unblock-btn {
    background: rgba(255, 69, 58, 0.12);
    border: 1px solid rgba(255, 69, 58, 0.3);
    color: #FF453A;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blacklist-unblock-btn:hover, .blacklist-unblock-btn:active {
    background: rgba(255, 69, 58, 0.25);
    border-color: #FF453A;
    transform: scale(0.97);
}

.blacklist-empty-state {
    text-align: center;
    padding: 36px 16px;
    color: #8E9BAE;
}

.blacklist-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #00D4FF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

/* Trader Profile */
.trader-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 14px 0;
}

.trader-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.trader-stat-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #00FF9D;
}

.trader-stat-label {
    font-size: 0.68rem;
    color: #8E9BAE;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Light Theme overrides */
body.theme-light .blacklist-item {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body.theme-light .blacklist-name {
    color: #0F172A;
}

body.theme-light .blacklist-info-banner {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

body.theme-light .trader-stat-card {
    background: #F8FAFC;
    border-color: #E2E8F0;
}



