/* ==========================================
   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;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6B7B8D;
    letter-spacing: 0.5px;
}

.rates-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rate-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(19, 26, 46, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

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

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

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

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

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

.rate-name {
    font-size: 0.65rem;
    color: #4A5568;
    margin-top: 1px;
}

.rate-price {
    text-align: right;
    flex-shrink: 0;
}

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

.rate-price-unit {
    font-size: 0.6rem;
    color: #4A5568;
    display: block;
    text-align: right;
}


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

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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;
}

#app {
    position: relative;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 90px;
    background: #0A0E1A;
}

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

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

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

.screen {
    display: none;
    padding: 16px 16px 120px;
    min-height: calc(100vh - 90px);
}

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

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

@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: 12px;
    margin-bottom: 20px;
    min-height: 40px;
}

.screen-title {
    font-size: 1.35rem;
    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 {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    background: rgba(19, 26, 46, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00D4FF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.back-btn:active {
    transform: scale(0.88);
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* ==================== HOME SCREEN ==================== */

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-top: 4px;
}

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

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

.logo-sub {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: #00D4FF;
    opacity: 0.5;
    margin-top: 2px;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(19, 26, 46, 0.6);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 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;
}

/* 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: 16px;
    padding: 10px 12px;
    background: rgba(19, 26, 46, 0.5);
    border-radius: 14px;
    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: 26px;
    height: 26px;
    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.7rem;
    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 6px;
    margin-bottom: 16px;
    min-width: 16px;
    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.25;
    pointer-events: none;
}

.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: 8px;
}

.input-card {
    background: rgba(19, 26, 46, 0.7);
    border-radius: 16px;
    padding: 14px 18px;
    border: 1.5px solid rgba(0, 212, 255, 0.08);
    margin-bottom: 4px;
    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 24px rgba(0, 212, 255, 0.08),
        inset 0 0 20px rgba(0, 212, 255, 0.02);
}

.input-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #6B7B8D;
    display: block;
    margin-bottom: 6px;
}

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

.amount-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFFF;
    outline: none;
    min-width: 0;
}

.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: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    background: rgba(0, 212, 255, 0.06);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.88rem;
    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: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFFFFF;
}

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

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

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

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

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

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

/* Form Elements */
.form-select {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #FFFFFF;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-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: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #FFFFFF;
    outline: none;
}

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

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

/* ==================== 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: calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 14, 26, 0.9);
    border-top: 1px solid rgba(0, 212, 255, 0.08);
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.nav-center {
    position: relative;
    margin-top: -20px;
}

.nav-center-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 24px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.15);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-center.active .nav-center-icon {
    box-shadow:
        0 4px 30px rgba(0, 212, 255, 0.5),
        0 0 60px rgba(0, 212, 255, 0.2);
}

.nav-center:active .nav-center-icon {
    transform: scale(0.88);
    box-shadow:
        0 2px 16px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.3);
}

/* ==================== 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: 70vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

@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(0, 212, 255, 0.08);
}

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

.modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    background: rgba(0, 212, 255, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6B7B8D;
    transition: all 0.3s ease;
}

.modal-close:active {
    background: rgba(0, 212, 255, 0.15);
    color: #00D4FF;
    transform: scale(0.9);
}

.modal-body {
    padding: 12px 16px 24px;
}

.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(-100px);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.9) 0%, rgba(0, 153, 204, 0.9) 100%);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 300;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 4px 24px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.1);
    max-width: calc(100% - 32px);
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ==================== 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;
    }
}

/* ==================== 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 ==================== */

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