/* ═══════════════════════════════════════════════════
   FundedXYZ Portal V2 — site-v2.css
   All classes scoped with #fxyz-portal to prevent
   conflicts with admin / legacy CSS.
   ═══════════════════════════════════════════════════ */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');
/* ─── Design Tokens ─── */
:root {
    --fxyz-bg:            #0A0911;
    --fxyz-bg-card:       #12111A;
    --fxyz-bg-card-alt:   #14131E;
    --fxyz-bg-sunk:       #07060C;
    --fxyz-purple:        #8A2BE1;
    --fxyz-purple-dark:   #5a4dd1;
    --fxyz-purple-light:  #A855F0;
    --fxyz-purple-pale:   #D0B4F3;
    --fxyz-purple-bg:     rgba(139,92,246,0.12);
    --fxyz-purple-border: rgba(139,92,246,0.15);
    --fxyz-purple-border-active: rgba(139,92,246,0.25);
    --fxyz-green:         #2BB673;
    --fxyz-green-bg:      rgba(43,182,115,0.10);
    --fxyz-red:           #E05260;
    --fxyz-red-bg:        rgba(224,82,96,0.10);
    --fxyz-yellow:        #D4A656;
    --fxyz-yellow-bg:     rgba(212,166,86,0.10);
    --fxyz-text-primary:   #F7F5FB;
    --fxyz-text-secondary: #D5D1DD;
    --fxyz-text-muted:     #8F8A99;
    --fxyz-text-dim:       #615D6B;
    --fxyz-border:        rgba(255,255,255,0.06);
    --fxyz-border-light:  rgba(255,255,255,0.04);
    --fxyz-border-hover:  rgba(255,255,255,0.10);
    --fxyz-sidebar-width: 260px;
    --fxyz-sidebar-mini: 68px;
    --fxyz-header-height: 70px;
    --fxyz-radius-sm: 4px;
    --fxyz-radius-md: 6px;
    --fxyz-radius-lg: 10px;
    --fxyz-font:  'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;
    --fxyz-mono:  'Geist Mono', monospace;
}

/* ─── Base ─── */
input,
textarea,
select,
button {
    background: initial;
    font-family: 'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: initial;
    line-height: initial;
    color: initial;
    padding: initial;
    margin: initial;
    border-radius: initial;
    padding-left: initial;
    padding-right: initial;
}

input {
    box-sizing: initial;
}

body {
    background: initial;
    font-family: 'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: initial;
    color: initial;
    padding: initial;
    margin: initial;
}

.badge-master {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(138, 43, 225, 0.12);
    color: rgb(168, 85, 240);
}

.badge-sub {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: rgb(107, 107, 123);
}

#fxyz-portal,
#fxyz-portal button,
#fxyz-portal input,
#fxyz-portal select,
#fxyz-portal textarea,
#fxyz-portal h1,
#fxyz-portal h2,
#fxyz-portal h3,
#fxyz-portal h4,
#fxyz-portal h5,
#fxyz-portal h6,
#fxyz-portal p,
#fxyz-portal span:not(.k-icon):not(.k-font-icon),
#fxyz-portal div,
#fxyz-portal a,
#fxyz-portal label,
#fxyz-portal th,
#fxyz-portal td {
    font-family: var(--fxyz-font);
}

div.k-window .k-content {
    background: linear-gradient(180deg, #11111c, #0e0e16);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 22px 22px 20px;
    box-shadow: 0 20px 70px #0009, 0 0 0 1px #8A2BE10f;
    animation: dep-pop .22s cubic-bezier(.22, 1, .36, 1);
}

#fxyz-portal {
    min-height: 100vh;
    background: var(--fxyz-bg);
    color: var(--fxyz-text-secondary);
    display: flex;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#fxyz-portal a {
    text-decoration: none;
}

#fxyz-portal button {
    cursor: pointer;
}

/* ─── Layout ─── */
#fxyz-portal [data-fxyz="sidebar"] {
    width: var(--fxyz-sidebar-width);
    background: linear-gradient(180deg, #110E1C 0%, var(--fxyz-bg) 100%);
    border-right: 1px solid var(--fxyz-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#fxyz-portal[data-sidebar-collapsed="true"] [data-fxyz="sidebar"] {
    width: var(--fxyz-sidebar-mini);
}

#fxyz-portal[data-sidebar-collapsed="true"] [data-fxyz="main"] {
    margin-left: var(--fxyz-sidebar-mini) !important;
}

/* Hide text labels and section headers when collapsed */
#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-nav-section-label,
#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-nav-item span,
#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-nav-item-arrow,
#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-nav-badge,
#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-user-name,
#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-user-rank,
#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-user-logout {
    display: none !important;
}

#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-sidebar-logo img {
    width: 100%;
    padding: 8px;
}

/* Center icons when collapsed */
#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-nav-item {
    justify-content: center;
    padding: 12px;
    position: relative;
}

#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-sidebar-logo {
    justify-content: center;
    padding: 20px 0 16px;
}

#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-user-row {
    justify-content: center;
}

#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-sidebar-nav {
    padding: 12px 8px;
}

#fxyz-portal [data-fxyz="sidebar-backdrop"] {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 49;
}

#fxyz-portal[data-sidebar-open="true"] [data-fxyz="sidebar-backdrop"] {
    display: block;
}

#fxyz-portal [data-fxyz="main"] {
    flex: 1;
    margin-left: var(--fxyz-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#fxyz-portal [data-fxyz="header"] {
    padding: 0 28px;
    height: var(--fxyz-header-height);
    border-bottom: 1px solid var(--fxyz-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 9, 17, 0.85);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 40;
}

#fxyz-portal [data-fxyz="content"] {
    padding: 24px 28px 48px;
    flex: 1;
    background: radial-gradient(ellipse 1200px 600px at 15% 0%, rgba(139, 92, 246, 0.05) 0%, transparent 55%), radial-gradient(ellipse 900px 500px at 95% 30%, rgba(139, 92, 246, 0.035) 0%, transparent 60%), var(--fxyz-bg);
}

#fxyz-portal .fxyz-sidebar-logo {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--fxyz-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#fxyz-portal .fxyz-sidebar-logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

#fxyz-portal .fxyz-sidebar-close {
    background: transparent;
    border: none;
    color: var(--fxyz-text-dim);
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
}

#fxyz-portal .fxyz-sidebar-nav {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
}

#fxyz-portal .fxyz-nav-section-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8a2be173;
    padding: 12px 14px 6px;
}

#fxyz-portal .fxyz-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--fxyz-radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--fxyz-text-muted);
    border: 1px solid transparent;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

#fxyz-portal .fxyz-nav-item:hover,
#fxyz-portal .fxyz-nav-item.fxyz-active:hover {
    background: #8a2be10f;
    color: var(--fxyz-purple-pale);
}

#fxyz-portal .fxyz-nav-item.fxyz-active {
    background: var(--fxyz-purple-bg);
    color: var(--fxyz-text-primary);
    font-weight: 500;
    border-color: var(--fxyz-purple-border);
}

#fxyz-portal .fxyz-nav-item svg,
#fxyz-portal .fxyz-nav-item .fxyz-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

#fxyz-portal .fxyz-nav-item-arrow {
    margin-left: auto;
    opacity: 0;
    width: 12px;
    height: 12px;
}

#fxyz-portal .fxyz-nav-item.fxyz-active .fxyz-nav-item-arrow {
    opacity: 0.40;
}

#fxyz-portal .fxyz-nav-badge {
    font-size: 8px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--fxyz-yellow-bg);
    color: var(--fxyz-yellow);
    letter-spacing: 0;
}

/* ─── Nav Accordion Group (Trading Academy) ─── */
#fxyz-portal .fxyz-nav-group {
    margin-bottom: 2px;
}

#fxyz-portal .fxyz-nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--fxyz-radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--fxyz-text-muted);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    background: none;
    text-align: left;
    position: relative;
}

#fxyz-portal .fxyz-nav-group-toggle:hover {
    background: rgba(139,92,246,0.06);
    color: var(--fxyz-purple-pale);
}

#fxyz-portal .fxyz-nav-group-toggle.fxyz-open {
    background: rgba(139,92,246,0.06);
    color: var(--fxyz-text-secondary);
}

#fxyz-portal .fxyz-nav-group-toggle svg,
#fxyz-portal .fxyz-nav-group-toggle .fxyz-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

#fxyz-portal .fxyz-nav-group-chevron {
    margin-left: auto;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    opacity: 0.5;
}

#fxyz-portal .fxyz-nav-group-toggle.fxyz-open .fxyz-nav-group-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

#fxyz-portal .fxyz-nav-group-children {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding-left: 14px;
}

#fxyz-portal .fxyz-nav-group-children.fxyz-open {
    max-height: 300px;
}

#fxyz-portal .fxyz-nav-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--fxyz-radius-md);
    font-size: 13px;
    color: var(--fxyz-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    border-left: 2px solid transparent;
}

#fxyz-portal .fxyz-nav-sub-item:hover {
    background: rgba(139,92,246,0.06);
    color: var(--fxyz-purple-pale);
    border-left-color: rgba(139,92,246,0.3);
}

#fxyz-portal .fxyz-nav-sub-item.fxyz-active {
    background: var(--fxyz-purple-bg);
    color: var(--fxyz-text-primary);
    font-weight: 500;
    border-left-color: var(--fxyz-purple);
}

#fxyz-portal .fxyz-nav-sub-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

#fxyz-portal .fxyz-nav-sub-caption {
    font-size: 10px;
    color: var(--fxyz-text-dim);
    display: block;
    margin-top: 1px;
}

/* Collapsed sidebar: hide group children & group label text */
#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-nav-group-toggle span,
#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-nav-group-chevron {
    display: none;
}

#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-nav-group-toggle {
    justify-content: center;
    padding: 12px;
}

#fxyz-portal[data-sidebar-collapsed="true"] .fxyz-nav-group-children {
    max-height: 0 !important;
}

#fxyz-portal .fxyz-sidebar-footer {
    padding: 14px 14px 18px;
    border-top: 1px solid var(--fxyz-border-light);
}

#fxyz-portal .fxyz-user-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

#fxyz-portal .fxyz-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--fxyz-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

#fxyz-portal .fxyz-user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--fxyz-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#fxyz-portal .fxyz-user-rank {
    font-size: 10px;
    color: var(--fxyz-text-dim);
}

#fxyz-portal .fxyz-user-logout {
    margin-left: auto;
    color: var(--fxyz-text-dim);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

#fxyz-portal .fxyz-user-logout:hover {
    color: var(--fxyz-red);
}

/* ─── Header ─── */
#fxyz-portal .fxyz-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

#fxyz-portal .fxyz-hamburger {
    display: flex;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--fxyz-border);
    background: var(--fxyz-bg-card);
    align-items: center;
    justify-content: center;
    color: var(--fxyz-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

#fxyz-portal .fxyz-hamburger:hover {
    background: var(--fxyz-purple-bg);
    color: var(--fxyz-purple-light);
    border-color: var(--fxyz-purple-border);
}

#fxyz-portal .fxyz-header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--fxyz-text-primary);
    letter-spacing: -0.01em;
    margin: 0;
}

#fxyz-portal .fxyz-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

#fxyz-portal .fxyz-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 34px;
    border-radius: 8px;
    background: radial-gradient(180px 40px at 50% 0%, rgba(138, 43, 225, 0.08) 0%, transparent 70%), rgba(138, 43, 225, 0.12);
    border: 1px solid rgba(138, 43, 225, 0.15);
    cursor: default;
    flex-shrink: 0;
}

#fxyz-portal .fxyz-countdown.fxyz-warn {
    background: var(--fxyz-yellow-bg);
    border-color: rgba(212, 166, 86, 0.25);
}

#fxyz-portal .fxyz-countdown.fxyz-urgent {
    background: var(--fxyz-red-bg);
    border-color: rgba(224, 82, 96, 0.25);
}

#fxyz-portal .fxyz-countdown-icon {
    flex-shrink: 0;
}

#fxyz-portal .fxyz-countdown-inner {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}

#fxyz-portal .fxyz-countdown-label {
    font-size: 8px;
    font-weight: 600;
    color: var(--fxyz-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#fxyz-portal .header__mobile-bar {
    display: none;
}

#fxyz-portal .fxyz-countdown-time {
    font-size: 12px;
    font-weight: 600;
    color:rgb(168, 85, 240);
    font-family: var(--fxyz-mono);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    display: flex;
}

#fxyz-portal .fxyz-countdown.fxyz-warn .fxyz-countdown-time {
    color: var(--fxyz-yellow);
}

#fxyz-portal .fxyz-countdown.fxyz-urgent .fxyz-countdown-time {
    color: var(--fxyz-red);
}

.k-widget {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.k-dropdown-wrap.k-state-default {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: white;
}

.k-dropdown .k-state-hover .k-input,
.k-dropdown .k-input,
.k-dropdown .k-state-focused .k-input,
.k-menu .k-popup {
    color: rgba(255, 255, 255, 0.6);
}

#fxyz-portal .fxyz-header-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--fxyz-purple-border);
    background: var(--fxyz-purple-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fxyz-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

#fxyz-portal .fxyz-header-icon-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--fxyz-purple-light);
    border-color: var(--fxyz-purple-border-active);
}

#fxyz-portal .btn-outline:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: #8B5CF6;
}

.fxyz-btn:hover,
#fxyz-portal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(139, 92, 246, 0.4);
}

#fxyz-portal .btn-full,
.fyxz-btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
}

.fxyz-btn,
#fxyz-portal .btn-primary {
    background: linear-gradient(135deg, #8A2BE1, #A855F0);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--fxyz-font);
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(108, 92, 231, .4);
}

#fxyz-portal .fxyz-btn-sm {
    padding: 5px 11px;
    font-size: 11px;
    border-radius: 6px;
}

.fxyz-btn-outline:hover {
    background: rgba(108, 92, 231, .12);
    border-color: #8A2BE1;
}

.fxyz-btn-outline {
    background: transparent;
    color: #A855F0;
    border: 1px solid rgba(138,43,225,.3);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--fxyz-font);
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

#fxyz-portal .fxyz-profile-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--fxyz-purple-border);
    background: var(--fxyz-purple-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fxyz-text-muted);
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

#fxyz-portal .fxyz-profile-btn.fxyz-open,
#fxyz-portal .fxyz-profile-btn:hover {
    background: linear-gradient(135deg, var(--fxyz-purple) 0%, var(--fxyz-purple-dark) 100%);
    color: #fff;
    border-color: var(--fxyz-purple-border-active);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
}

#fxyz-portal #fxyz-profile-wrap {
    position: relative;
}

#fxyz-portal .fxyz-profile-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 300px;
    z-index: 100;
    background: linear-gradient(180deg, var(--fxyz-bg-card-alt) 0%, var(--fxyz-bg-card) 100%);
    border: 1px solid var(--fxyz-purple-border);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(139, 92, 246, 0.08);
    overflow: hidden;
}

#fxyz-portal .fxyz-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--fxyz-border-light);
}

#fxyz-portal .fxyz-dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--fxyz-purple) 0%, var(--fxyz-purple-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
    text-transform: uppercase;
}

#fxyz-portal .fxyz-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--fxyz-text-primary);
}

#fxyz-portal .fxyz-dropdown-meta-label {
    font-size: 11px;
    color: var(--fxyz-text-dim);
    width: 60px;
    flex-shrink: 0;
}

#fxyz-portal .fxyz-dropdown-meta-value {
    font-size: 11px;
    color: var(--fxyz-text-secondary);
    font-weight: 500;
    font-family: var(--fxyz-mono);
    flex: 1;
}

#fxyz-portal .fxyz-dropdown-copy-btn {
    background: none;
    border: none;
    color: var(--fxyz-text-dim);
    cursor: pointer;
    padding: 2px;
    display: flex;
    transition: color 0.15s;
}

#fxyz-portal .fxyz-dropdown-copy-btn:hover {
    color: var(--fxyz-purple-light);
}

#fxyz-portal .fxyz-dropdown-copy-btn.copied {
    color: var(--fxyz-green);
}

#fxyz-portal .fxyz-dropdown-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--fxyz-border-light);
}

#fxyz-portal .fxyz-dropdown-section-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--fxyz-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 16px 8px;
}

#fxyz-portal .fxyz-dropdown-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--fxyz-text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--fxyz-font);
    text-align: left;
    text-decoration: none;
    transition: background 0.12s;
}

#fxyz-portal .fxyz-dropdown-link:hover {
    background: var(--fxyz-purple-bg);
}

#fxyz-portal .fxyz-dropdown-logout {
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--fxyz-text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--fxyz-font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.12s, color 0.12s;
}

#fxyz-portal .fxyz-dropdown-logout:hover {
    background: var(--fxyz-red-bg);
    color: var(--fxyz-red);
}

/* ─── Badge ─── */
#fxyz-portal .fxyz-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: var(--fxyz-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0;
}

#fxyz-portal .fxyz-badge-purple {
    background: var(--fxyz-purple-bg);
    color: var(--fxyz-purple-light);
    border: 1px solid var(--fxyz-purple-border);
}

#fxyz-portal .fxyz-badge-green {
    background: var(--fxyz-green-bg);
    color: var(--fxyz-green);
}

#fxyz-portal .fxyz-badge-red {
    background: var(--fxyz-red-bg);
    color: var(--fxyz-red);
}

#fxyz-portal .fxyz-badge-yellow {
    background: var(--fxyz-yellow-bg);
    color: var(--fxyz-yellow);
}

/* ─── Card ─── */
#fxyz-portal .fxyz-card {
    background: var(--fxyz-bg-card);
    border: 1px solid var(--fxyz-border);
    border-radius: var(--fxyz-radius-lg);
    padding: 20px;
}

/* ─── Scrollbar ─── */
#fxyz-portal ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#fxyz-portal ::-webkit-scrollbar-track {
    background: transparent;
}

#fxyz-portal ::-webkit-scrollbar-thumb {
    background: rgba(139,92,246,0.2);
    border-radius: 3px;
}

#fxyz-portal ::-webkit-scrollbar-thumb:hover {
    background: rgba(139,92,246,0.35);
}

/* AUTH LAYOUT APPENDED */
/* ══════════════════════════════════════════════
   AUTH LAYOUT — matches dashboard theme
   Uses tokens from styles/global.css throughout.
   ══════════════════════════════════════════════ */
.auth-root {
    position: relative;
    min-height: 100vh;
    background: #0a0a0f;
    color: #a0a0b0;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'system-ui', sans-serif;
    overflow: hidden;
}

.auth-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-bg__grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg, #0a0a1a, #1a0a2e, #0a1a2e, #0a0a1a);
    background-size: 400% 400%;
    animation: authGrad 15s ease infinite;
}

.auth-bg__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.auth-bg__video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.7) 0%, rgba(10, 10, 15, 0.55) 50%, rgba(10, 10, 15, 0.9) 100%);
}

.auth-bg__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(108, 92, 231, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 92, 231, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 90%);
}

.auth-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.auth-bg__orb--1 {
    width: 700px;
    height: 700px;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(108, 92, 231, 0.22) 0%, transparent 70%);
    animation: authOrb1 8s ease-in-out infinite;
}

.auth-bg__orb--2 {
    width: 500px;
    height: 500px;
    bottom: 5%;
    right: -10%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%);
    animation: authOrb2 10s ease-in-out infinite;
}

.auth-bg__orb--3 {
    width: 300px;
    height: 300px;
    top: 30%;
    left: -5%;
    background: radial-gradient(circle, rgba(162, 155, 254, 0.1) 0%, transparent 70%);
    animation: authOrb2 12s ease-in-out infinite reverse;
}

.auth-bg__fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 240px;
    background: linear-gradient(180deg, transparent, #0a0a0f);
}

@keyframes authGrad {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }

}

@keyframes authOrb1 {
    0%,
100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(30px);
    }

}

@keyframes authOrb2 {
    0%,
100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(-10px);
    }

}

.auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    position: relative;
    z-index: 2;
}

.auth-top__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.auth-top__brand-img {
    height: 28px;
    width: auto;
}

.auth-top__back {
    color: #6b6b7b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.auth-top__back:hover {
    color: #ffffff;
    border-color: rgba(108, 92, 231, 0.3);
}

.auth-main {
    flex: 1;
    display: flex;
    padding: 24px 20px 64px;
    position: relative;
    z-index: 1;
}

.auth-main--center {
    align-items: center;
    justify-content: center;
}

.auth-main--split {
    align-items: stretch;
    padding: 24px;
}

/* ══════════════════════════════════════════════
   CARD — matches .card + .card-glow pattern
   ══════════════════════════════════════════════ */
.auth-card {
    position: relative;
    background: rgba(14, 14, 22, 0.72);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(108, 92, 231, 0.22);
    border-radius: 16px;
    padding: 40px 44px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 0 80px rgba(138, 43, 225, 0.08);
    animation: fadeIn 0.4s ease forwards;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(162, 155, 254, 0.5), transparent);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.auth-card__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #A855F0;
    margin-bottom: 10px;
}

.auth-card__title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    font-size: 13px;
    color: #6b6b7b;
    margin-bottom: 28px;
}

/* ══════════════════════════════════════════════
   FORM FIELDS
   ══════════════════════════════════════════════ */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.auth-field__label {
    font-size: 12px;
    font-weight: 500;
    color: #a0a0b0;
}

.auth-field__label span.req {
    color: #8A2BE1;
    margin-left: 2px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
    color: #6b6b7b;
}

.auth-input:focus {
    border-color: #8A2BE1;
    background: rgba(10, 10, 15, 0.65);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.auth-input--eye {
    padding-right: 40px;
}

.auth-input--action {
    padding-right: 108px;
}

.auth-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b6b7b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    font-family: inherit;
}

.auth-eye:hover {
    color: #ffffff;
}

.auth-inline-action {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 14px;
    background: rgba(138, 43, 225, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 6px;
    color: #A855F0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.auth-inline-action:hover:not(:disabled) {
    background: rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.3);
    color: #D0B4F3;
}

.auth-inline-action:disabled {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.06);
    color: #6b6b7b;
    cursor: not-allowed;
}

.auth-hint {
    font-size: 11px;
    color: #6b6b7b;
    margin-top: 2px;
    line-height: 1.5;
}

.auth-strength {
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-top: 6px;
}

.auth-strength__bar {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #fbb024, #00d4aa);
    transition: width 0.25s ease;
    border-radius: 2px;
}

/* ══════════════════════════════════════════════
   CHECKBOX — matches dashboard's custom checkbox style
   ══════════════════════════════════════════════ */
.auth-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #a0a0b0;
    line-height: 1.5;
}

.auth-check__box {
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: transparent;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.auth-check__box[data-checked="true"] {
    background: #8A2BE1;
    border-color: #8A2BE1;
}

.auth-check a {
    color: #A855F0;
    text-decoration: none;
}

.auth-check a:hover {
    color: #D0B4F3;
}

/* ══════════════════════════════════════════════
   "HUMAN VERIFY" — app-native replacement for reCAPTCHA
   ══════════════════════════════════════════════ */
.auth-verify {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin: 20px 0 18px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease;
}

.auth-verify:hover {
    border-color: rgba(108, 92, 231, 0.15);
}

.auth-verify[data-checked="true"] {
    border-color: rgba(108, 92, 231, 0.3);
}

.auth-verify__box {
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: transparent;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.auth-verify[data-checked="true"] .auth-verify__box {
    background: #8A2BE1;
    border-color: #8A2BE1;
}

.auth-verify__label {
    flex: 1;
    font-size: 13px;
    color: #a0a0b0;
}

.auth-verify__tag {
    font-size: 10px;
    font-weight: 600;
    color: #6b6b7b;
    font-family: 'Geist Mono', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════
   SUBMIT — uses .btn-primary gradient tokens
   ══════════════════════════════════════════════ */
.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #8A2BE1, #A855F0);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
    margin-top: 8px;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.55);
}

.auth-submit:disabled {
    background: rgba(255, 255, 255, 0.06);
    color: #6b6b7b;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-alt {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b6b7b;
}

.auth-alt a {
    color: #A855F0;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
}

.auth-alt a:hover {
    color: #D0B4F3;
}

.auth-forgot {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: #6b6b7b;
    font-weight: 500;
    text-decoration: none;
}

.auth-forgot:hover {
    color: #A855F0;
}

/* ══════════════════════════════════════════════
   REGISTER — split layout,
app-themed hero
   ══════════════════════════════════════════════ */
.auth-split {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(14, 14, 22, 0.72);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(108, 92, 231, 0.22);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 0 80px rgba(138, 43, 225, 0.08);
    animation: fadeIn 0.4s ease forwards;
}

.auth-split::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(162, 155, 254, 0.5), transparent);
    pointer-events: none;
    z-index: 3;
}

.auth-split__hero {
    position: relative;
    padding: 56px 48px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    background: radial-gradient(ellipse 70% 50% at 30% 20%, rgba(108, 92, 231, 0.22), transparent 60%), radial-gradient(ellipse 50% 40% at 80% 80%, rgba(162, 155, 254, 0.12), transparent 65%), linear-gradient(180deg, rgba(14, 14, 22, 0.9), rgba(10, 10, 15, 0.95));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-split__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(138, 43, 225, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%);
    pointer-events: none;
}

.auth-split__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    background: rgba(138, 43, 225, 0.12);
    color: #A855F0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(108, 92, 231, 0.15);
    width: max-content;
}

.auth-split__title {
    position: relative;
    z-index: 1;
    font-size: 44px;
    font-weight: 800;
    margin: 14px 0 14px;
    letter-spacing: -0.03em;
    line-height: 1.05;
    background: linear-gradient(135deg, #fff 0%, #A855F0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-split__tagline {
    position: relative;
    z-index: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #a0a0b0;
    margin: 0;
    max-width: 340px;
}

.auth-split__features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-split__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #a0a0b0;
}

.auth-split__feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(138, 43, 225, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #A855F0;
    flex-shrink: 0;
}

.auth-split__form {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


