/* ====================================
   OPVEL CORE DESIGN SYSTEM
==================================== */

:root {
    --opvel-blue: #030a16;
    --opvel-depth: radial-gradient(circle at 50% 0%, #0d254c 0%, #030a16 100%);
    --opvel-amber: #f59e0b;
    --glass-card: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: #8da2c4;
    --opvel-green: #2ecc71;
}

/* ====================================
   GLOBAL RESET
==================================== */

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background: var(--opvel-depth);
    color: var(--text-primary);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* ====================================
   VIEW SYSTEM
==================================== */

.view {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.view.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ====================================
   LOCK SCREEN & LOGO GEOMETRY
==================================== */

#biometric-lock {
    justify-content: center;
    align-items: center;
    background: var(--opvel-depth);
    z-index: 9999;
}

.opvel-logo-mark {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swirl-blade {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--opvel-amber);
    transform: rotate(calc(var(--i) * 60deg));
    opacity: 0.85;
}

.logo-core-node {
    width: 20px;
    height: 20px;
    background: var(--opvel-blue);
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
}

/* ====================================
   LAYOUT CONTAINER
==================================== */

.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    overflow-y: auto;
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

/* ====================================
   TYPOGRAPHY
==================================== */

.main-title {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
}

/* ====================================
   GRID SYSTEM
==================================== */

.workspace-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

@media (min-width: 768px) {
    .workspace-layout-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ====================================
   MARQUEE SEARCH TICKER WINDOW
==================================== */

.search-bar-wrapper {
    position: relative;
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.search-bar-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 16px;
    font-size: 14px;
    opacity: 0.6;
    z-index: 5;
}

.ticker-window {
    height: 100%;
    width: 100%;
    padding-left: 44px;
    padding-right: 16px;
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.ticker-item {
    display: flex;
    align-items: center;
    height: 100%;
    width: calc(100% - 60px);
    font-size: 13px;
    font-weight: 500;
    color: var(--opvel-amber);
    line-height: 1.4;
    white-space: normal;
    position: absolute;
    left: 44px;
    top: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 3;
}

.ticker-item.active {
    opacity: 1;
    transform: translateY(0);
}

.ticker-item.exit {
    opacity: 0;
    transform: translateY(-15px);
}

/* ====================================
   SECTION HEADERS & OPERATOR TOKENS
==================================== */

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.operator-token-row {
    display: flex;
    gap: 16px;
}

.operator-avatar-card {
    width: 84px;
    text-align: center;
    cursor: pointer;
}

.avatar-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #112544;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.operator-avatar-card.selected .avatar-circle {
    border-color: var(--opvel-amber);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
    transform: scale(1.03);
}

.avatar-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 8px;
    text-transform: uppercase;
}

/* ====================================
   CLASSIFICATION CARDS (GRID VIEWS)
==================================== */

.classification-grid {
    width: 100%;
}

.asset-class-card {
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.asset-icon-box {
    width: 54px;
    height: 54px;
    background: #09172e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.asset-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px 0;
}

.asset-count {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ====================================
   GESTURE HINT
==================================== */

.gesture-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 11px;
    padding: 16px;
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* ====================================
   REGISTRATION FORM
==================================== */

.onboarding-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
}

.form-input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-input-field:focus {
    border-color: var(--opvel-amber);
    outline: none;
}

/* ====================================
   SCANNER UI
==================================== */

.gender-scanner-shield {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(0,0,0,0.2);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.scanner-binary-icon {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.scanner-binary-icon.cycling {
    color: var(--opvel-amber);
    transform: scale(1.1);
}

.scanner-binary-icon.locked-male {
    color: #3498db;
    text-shadow: 0 0 10px rgba(52,152,219,0.5);
}

.scanner-binary-icon.locked-female {
    color: #e91e63;
    text-shadow: 0 0 10px rgba(233,30,99,0.5);
}

.scanner-status-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* ====================================
   LOCK MENU FLOATING PANEL
==================================== */

.floating-lock-menu {
    position: fixed;
    bottom: -140px;
    left: 5%;
    width: 90%;
    max-width: 432px;
    height: 76px;
    background: rgba(3, 10, 22, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
    z-index: 9000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-lock-menu.active {
    bottom: calc(24px + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    .floating-lock-menu {
        left: calc(50% - 216px);
    }
}

/* ====================================
   LOCK SWITCH LAYER
==================================== */

.lock-brand-text {
    font-weight: 900;
    font-size: 18px;
    color: #fff;
}

.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.switch-track {
    width: 50px;
    height: 26px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    position: relative;
    cursor: pointer;
}

.switch-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.switch-track.active-amber {
    background: var(--opvel-amber);
}

.switch-track.active-amber .switch-thumb {
    transform: translateX(24px);
}