/* ==========================================================================
   AETHERPRO - COMPLETE EXPANDED UNBOUNDX & BYBIT DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Palette */
    --blue-primary: #2563eb;       /* Bright Electric Royal Blue */
    --blue-hover: #1d4ed8;
    --blue-light: #eff6ff;
    --blue-glow: rgba(37, 99, 235, 0.12);

    --navy-dark: #1e2532;         /* Dark UnboundX / Bybit Navy */
    --navy-card: #111723;
    --navy-hover: #111723;
    --slate-body: #334155;
    --slate-muted: #64748b;

    /* Surfaces */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-capsule: #f4f4f0;        /* UnboundX Light Capsule */

    /* Borders & Shadows */
    --border-subtle: #e2e8f0;
    --shadow-nav: 0 6px 24px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 16px 40px -10px rgba(15, 23, 42, 0.06);
    --shadow-btn: 0 10px 28px -4px rgba(30, 37, 50, 0.25);

    /* Radii */
    --radius-phone-card: 36px;
    --radius-card: 32px;
    --radius-pill: 9999px;
    --radius-input: 16px;

    --max-width: 1100px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #f8fafc;
    color: var(--slate-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Outer Frame Wrapper for UnboundX Aesthetic */
.page-outer-frame {
    max-width: var(--max-width);
    margin: 20px auto;
    background: var(--bg-card);
    border-radius: var(--radius-phone-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

/* 1. UNBOUNDX FLOATING CAPSULE NAVBAR */
.nav-wrapper {
    padding: 24px 32px 0;
}

.nav-capsule-bar {
    background: var(--bg-capsule);
    border-radius: var(--radius-pill);
    padding: 10px 14px 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}

.brand-text {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.nav-center-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-body);
    white-space: nowrap;
}

.nav-link-item:hover {
    color: var(--blue-primary);
}

/* Pill Buttons */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.btn-navy-unboundx {
    background-color: var(--navy-dark);
    color: #ffffff;
    letter-spacing: 0.04em;
    font-size: 12px;
    font-weight: 800;
    padding: 14px 32px;
    box-shadow: var(--shadow-btn);
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-navy-unboundx:hover {
    background-color: var(--navy-hover);
    transform: translateY(-2px);
}

.btn-blue {
    background-color: var(--blue-primary);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn-blue:hover {
    background-color: var(--blue-hover);
    transform: translateY(-2px);
}

/* AUTH & PAGE FULL WATERMARK LOGO BACKGROUNDS */
.auth-page-wrapper, .app-page-wrapper {
    position: relative;
    min-height: 100vh;
    background-color: var(--bg-body);
    overflow: hidden;
}

.auth-watermark-bg, .page-watermark-bg {
    position: fixed;
    top: 45%;
    right: -6%;
    transform: translateY(-50%) rotate(-25deg) scale(1.6);
    width: 750px;
    height: 750px;
    opacity: 0.14;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 30px 80px rgba(37, 99, 235, 0.35));
}

.auth-watermark-bg-left, .page-watermark-bg-left {
    position: fixed;
    bottom: -15%;
    left: -10%;
    transform: rotate(20deg) scale(1.4);
    width: 600px;
    height: 600px;
    opacity: 0.09;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    object-fit: cover;
}

.auth-card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-card);
    padding: 44px 36px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 24px 60px -10px rgba(15, 23, 42, 0.12);
}

/* INTL-TEL-INPUT CUSTOM STYLING */
.iti { width: 100%; }
.iti__country-list {
    color: var(--navy-dark) !important;
    font-size: 13px !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15) !important;
    z-index: 1000 !important;
}

/* ==========================================================================
   BYBIT-INSPIRED DASHBOARD & MOBILE RESPONSIVE COMPONENTS
   ========================================================================== */

.bybit-app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Sidebar Desktop */
.bybit-sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-subtle);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 990;
    transition: var(--transition);
}

.bybit-main-content {
    flex: 1;
    margin-left: 260px;
    padding: 36px 40px 100px;
    max-width: 1200px;
    position: relative;
    z-index: 5;
}

/* Bybit Top Mobile / Responsive Bar */
.bybit-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.bybit-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bybit-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--navy-dark) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.bybit-user-meta {
    display: flex;
    flex-direction: column;
}

.bybit-username {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bybit-vip-tag {
    font-size: 10px;
    font-weight: 800;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.bybit-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bybit-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--navy-dark);
    cursor: pointer;
    transition: var(--transition);
}

.bybit-icon-btn:hover {
    background: #ffffff;
    border-color: var(--blue-primary);
    color: var(--blue-primary);
}

/* Bybit Asset Equity Card */
.bybit-asset-card {
    background: linear-gradient(135deg, #111723 0%, #1e2532 60%, #1e3a8a 100%);
    border-radius: var(--radius-card);
    padding: 32px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.35);
    margin-bottom: 28px;
}

.bybit-asset-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.bybit-asset-label {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bybit-eye-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
}

.bybit-asset-val {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

/* Bybit 4 Quick Action Buttons Grid */
.bybit-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.bybit-action-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.bybit-action-item:hover {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    transform: translateY(-3px);
}

.bybit-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* FIXED MOBILE BOTTOM NAVIGATION BAR (< 768px) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    z-index: 1000;
    padding: 0 12px;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
}

.mobile-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--slate-muted);
    font-size: 11px;
    font-weight: 700;
    flex: 1;
    padding: 6px 0;
    transition: var(--transition);
}

.mobile-nav-item.active, .mobile-nav-item:hover {
    color: var(--blue-primary);
}

.mobile-nav-icon {
    font-size: 20px;
}

/* Responsive Rules for Mobile */
@media (max-width: 992px) {
    .bybit-sidebar {
        display: none;
    }
    .bybit-main-content {
        margin-left: 0;
        padding: 20px 16px 90px;
    }
    .mobile-bottom-nav {
        display: block;
    }
    .bybit-asset-val {
        font-size: 30px;
    }
    .bybit-action-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .bybit-action-item {
        padding: 12px 6px;
        font-size: 11px;
    }
}
