/* ==========================================================================
   PHOENIX GLOBAL — LUXURY GOLD & SAPPHIRE CRYPTO DESIGN SYSTEM
   ========================================================================== */

/* Google Fonts: Outfit, Plus Jakarta Sans & Inter */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Backgrounds - Midnight Obsidian & Cosmic Void */
    --bg-primary: #030712;
    --bg-secondary: #060B1E;
    --bg-section: #080F2A;
    --bg-card: #0D1739;
    --bg-card-secondary: #111E48;
    --bg-card-glass: rgba(13, 23, 57, 0.72);
    --bg-footer: #02040B;
    
    /* Typography Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #D7E1FA;
    --text-muted: #8292BA;
    
    /* Phoenix Brand Accents - Imperial Gold & Sapphire */
    --phoenix-gold-100: #FFFBEB;
    --phoenix-gold-300: #FDE68A;
    --phoenix-gold-400: #FBBF24;
    --phoenix-gold-500: #F59E0B;
    --phoenix-gold-600: #D97706;
    --phoenix-gold-700: #B45309;

    --phoenix-sapphire-400: #60A5FA;
    --phoenix-sapphire-500: #3B82F6;
    --phoenix-sapphire-600: #2563EB;
    --phoenix-sapphire-700: #1D4ED8;

    --phoenix-cyan-400: #38BDF8;
    --phoenix-cyan-500: #00F0FF;

    --accent-primary: #F59E0B;
    --accent-gold: #FBBF24;
    --accent-electric: #38BDF8;
    --accent-sapphire: #2563EB;
    --accent-cyan: #00F0FF;
    --accent-purple: #8B5CF6;
    --accent-success: #10B981;
    --accent-warning: #F59E0B;
    --accent-danger: #EF4444;
    
    /* Borders & Outlines */
    --border-color: rgba(245, 158, 11, 0.15);
    --border-blue-color: rgba(56, 189, 248, 0.16);
    --border-gold-glow: rgba(245, 158, 11, 0.45);
    --border-sapphire-glow: rgba(37, 99, 235, 0.45);
    
    /* Shadows & Ambient Glows */
    --card-shadow: 0 16px 45px -8px rgba(0, 0, 0, 0.7);
    --glow-gold: 0 0 35px rgba(245, 158, 11, 0.32);
    --glow-sapphire: 0 0 35px rgba(37, 99, 235, 0.32);
    --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.25);
    --glow-phoenix-btn: 0 6px 28px rgba(245, 158, 11, 0.45);
    --glow-sapphire-btn: 0 6px 28px rgba(37, 99, 235, 0.45);
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
    --grad-gold: linear-gradient(135deg, #FFE27A 0%, #F59E0B 50%, #B45309 100%);
    --grad-sapphire: linear-gradient(135deg, #38BDF8 0%, #2563EB 50%, #1D4ED8 100%);
    --grad-phoenix-dual: linear-gradient(135deg, #FBBF24 0%, #F59E0B 35%, #2563EB 75%, #38BDF8 100%);
    --grad-multi: linear-gradient(135deg, #F59E0B 0%, #D97706 40%, #2563EB 80%, #38BDF8 100%);
    --grad-secondary: linear-gradient(135deg, #00F0FF 0%, #3B82F6 100%);
    --grad-text: linear-gradient(135deg, #FFFFFF 20%, #D7E1FA 100%);
    --grad-text-gold: linear-gradient(135deg, #FFF7D6 0%, #FDE047 30%, #F59E0B 75%, #D97706 100%);
    --grad-text-sapphire: linear-gradient(135deg, #E0F2FE 0%, #38BDF8 40%, #2563EB 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    
    /* Fonts */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-brand: 'Outfit', sans-serif;
    --font-serif: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   RESET & BASELINE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* Custom Gold & Sapphire Futuristic Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #111E48;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--phoenix-gold-500);
}

::selection {
    background-color: rgba(245, 158, 11, 0.4);
    color: #FFFFFF;
}

/* Headings Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    margin-top: 0;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.25rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--phoenix-cyan-400);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--phoenix-gold-400);
}

/* Ambient Backgrounds & Glow Orbs */
.bg-dot-grid {
    background-image: 
        radial-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 32px 32px, 64px 64px;
    background-position: 0 0, 16px 16px;
}

.glow-orb-container {
    position: relative;
    overflow: hidden;
}

.glow-orb-gold {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-blue {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-purple {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-hero-right {
    top: 5%;
    right: -10%;
}

.glow-orb-hero-left {
    top: 25%;
    left: -15%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-premium {
    padding: 0.85rem 1.85rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.btn-premium-primary {
    background: var(--grad-primary);
    color: #030712 !important;
    border: none;
    font-weight: 800;
    box-shadow: var(--glow-phoenix-btn);
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.6);
    color: #030712 !important;
}

.btn-premium-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: all 0.6s ease;
}

.btn-premium-primary:hover::before {
    left: 100%;
}

.btn-premium-secondary {
    background: rgba(13, 23, 57, 0.6);
    color: #FFFFFF !important;
    border: 1px solid rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(10px);
}

.btn-premium-secondary:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
    color: #FFFFFF !important;
    box-shadow: 0 4px 22px rgba(37, 99, 235, 0.3);
}

.btn-premium-violet {
    background: var(--grad-sapphire);
    color: #FFFFFF !important;
    border: none;
    box-shadow: var(--glow-sapphire-btn);
}

.btn-premium-violet:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.6);
    color: #FFFFFF !important;
}

.btn-premium.btn-loading {
    color: transparent !important;
    pointer-events: none;
}

.btn-premium.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid;
    border-color: #030712 #030712 transparent transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
}

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

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.card-aetheris {
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-aetheris-glass {
    background: var(--bg-card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.card-aetheris:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.18);
    border-color: var(--border-gold-glow);
}

.card-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--border-gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--phoenix-gold-400);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.card-icon-wrapper.purple, .card-icon-wrapper.sapphire {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--phoenix-sapphire-400);
}

.card-icon-wrapper.cyan {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.35);
    color: var(--accent-cyan);
}

.card-aetheris:hover .card-icon-wrapper {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.card-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-aetheris:hover .card-arrow {
    transform: translate(6px, 0);
    color: var(--phoenix-gold-400);
}

/* ==========================================================================
   UTILITY & GRADIENTS
   ========================================================================== */
.text-gradient,
.text-gradient-accent,
.text-gradient-gold {
    background: var(--grad-text-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-multi,
.text-gradient-phoenix {
    background: var(--grad-multi);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-sapphire,
.text-gradient-violet {
    background: var(--grad-text-sapphire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted-custom {
    color: var(--text-muted) !important;
}

.bg-glass {
    background: var(--bg-card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

.badge-futuristic,
.badge-phoenix {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--border-gold-glow);
    color: var(--phoenix-gold-400);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.fade-in-up-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   FORMS & INPUT FIELDS (CRYPTO UI)
   ========================================================================== */
.form-group-aetheris {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label-aetheris {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-aetheris {
    background: rgba(8, 15, 42, 0.88) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    font-family: var(--font-body, var(--font-main));
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem !important;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
    display: block;
}

.form-control-aetheris:focus {
    background: rgba(13, 23, 57, 0.98) !important;
    border-color: var(--phoenix-gold-400) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3) !important;
    color: #FFFFFF !important;
}

.form-control-aetheris::placeholder {
    color: var(--text-muted) !important;
}

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

.input-icon-group i.input-icon-left {
    position: absolute;
    left: 1.25rem;
    top: 26px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 4;
}

.input-icon-group i.input-icon-right-btn {
    position: absolute;
    right: 1.25rem;
    top: 26px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 5;
}

.input-icon-group i.input-icon-right-btn:hover { color: var(--phoenix-gold-400); }
.input-icon-group .form-control-aetheris { padding-left: 3rem !important; }

.form-check-input-custom {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 5px;
    background: rgba(13, 23, 57, 0.8);
    cursor: pointer;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.form-check-input-custom:checked {
    background: var(--grad-primary);
    border-color: transparent;
}

.form-check-input-custom[type="checkbox"]:checked::after {
    content: '\F26E';
    font-family: 'bootstrap-icons';
    font-weight: 900;
    font-size: 0.75rem;
    color: #030712;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-check-input-custom[type="radio"] {
    border-radius: 50% !important;
}

.form-check-input-custom[type="radio"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #030712;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-select.form-control-aetheris {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23FBBF24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.25rem center !important;
    background-size: 14px 10px !important;
    cursor: pointer;
}

.form-select.form-control-aetheris option {
    background: #0D1739 !important;
    color: #FFFFFF !important;
    padding: 0.5rem 1rem;
}

.form-group-aetheris.has-error .form-control-aetheris {
    border-color: var(--accent-danger) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25) !important;
}

.form-error-msg {
    color: var(--accent-danger);
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: none;
}

.form-group-aetheris.has-error .form-error-msg { display: block; }

/* ==========================================================================
   AUTHENTICATION SPLIT LAYOUT (CRYPTO UI)
   ========================================================================== */
.auth-split-layout {
    height: 100vh;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    overflow: hidden;
}

.auth-sidebar-panel {
    flex: 1.1;
    min-width: 440px;
    background: linear-gradient(135deg, #030712 0%, #060B1E 100%);
    border-right: 1px solid var(--border-color);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.auth-form-panel {
    flex: 1.2;
    background: var(--bg-primary);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 3rem;
    overflow-y: auto;
    height: 100%;
}

/* Custom Sleek Scrollbar for Auth Form Panel */
.auth-form-panel::-webkit-scrollbar {
    width: 6px;
}
.auth-form-panel::-webkit-scrollbar-track {
    background: rgba(3, 7, 18, 0.6);
}
.auth-form-panel::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.25);
    border-radius: 4px;
}
.auth-form-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.5);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
    margin: auto 0;
}

.auth-form-wrapper-register {
    width: 100%;
    max-width: 580px;
    padding: 1rem 0 3rem 0;
}

/* ==========================================================================
   BRAND LOGO & SIDEBAR ELEMENTS (CRYPTO UI)
   ========================================================================== */
.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: #FFFFFF !important;
    text-decoration: none;
}

.navbar-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.45));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-brand-custom:hover .navbar-logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.7));
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.brand-title-phoenix {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    background: var(--grad-text-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--phoenix-cyan-400);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 2px;
}

.card-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--border-gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--phoenix-gold-400);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}


