/* =============================================================================
   Eustress Web - Main Stylesheet
   =============================================================================
   Table of Contents:
   1. CSS Variables / Theme
   2. Reset & Base
   3. Typography
   4. Layout
   5. Components
   6. Pages
   7. Editor
   8. Utilities
   9. Animations
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. CSS Variables / Theme
   ----------------------------------------------------------------------------- */

:root {
    /* Colors - Dark Theme */
    --color-bg-primary: #0d1117;
    --color-bg-secondary: #161b22;
    --color-bg-tertiary: #21262d;
    --color-bg-hover: #30363d;
    
    --color-border: #30363d;
    --color-border-light: #21262d;
    
    --color-text-primary: #f0f6fc;
    --color-text-secondary: #8b949e;
    --color-text-muted: #6e7681;
    
    --color-accent: #a0a8b0;
    --color-accent-hover: #c0c8d0;
    --color-steel: #8090a0;
    --color-steel-light: #b0bcc8;
    --color-steel-dark: #505860;
    --color-success: #3fb950;
    --color-warning: #d29922;
    --color-danger: #f85149;
    
    /* Bliss Gold - Official currency color */
    --color-bliss-gold: #ffd700;
    --color-bliss-gold-light: #ffec8b;
    --color-bliss-gold-dark: #daa520;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    
    /* Layout */
    --header-height: 56px;
    --sidebar-width: 240px;
    --panel-width: 280px;
}

/* -----------------------------------------------------------------------------
   2. Reset & Base
   ----------------------------------------------------------------------------- */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    min-height: 100vh;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* -----------------------------------------------------------------------------
   3. Typography
   ----------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text-primary);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
    color: var(--color-text-secondary);
}

/* -----------------------------------------------------------------------------
   4. Layout
   ----------------------------------------------------------------------------- */

.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-body {
    display: flex;
    flex: 1;
    padding-top: var(--header-height);
}

.layout-content {
    flex: 1;
    padding: var(--space-lg);
    margin-left: var(--sidebar-width);
    overflow-y: auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.logo-icon {
    font-size: 24px;
}

.header-nav {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 18px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: var(--color-bg-hover);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.user-name {
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
    padding: var(--space-md);
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.sidebar-link:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-hover);
}

.sidebar-icon {
    font-size: 18px;
}

/* -----------------------------------------------------------------------------
   5. Components
   ----------------------------------------------------------------------------- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-hover);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-ghost {
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-hover);
}

.btn-lg {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cards */
.card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
}

.card-body {
    padding: var(--space-md);
}

/* Forms */
.form-field {
    margin-bottom: var(--space-md);
}

.form-field.hidden {
    display: none;
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-label .required {
    color: var(--color-danger);
    margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-error {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--color-danger);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}

/* Loading */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    gap: var(--space-md);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-message {
    color: var(--color-text-secondary);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn 0.2s;
}

.modal {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.2s;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.modal-title {
    font-size: var(--text-lg);
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

.modal-body {
    padding: var(--space-md);
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* Error */
.error-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-md);
    color: var(--color-danger);
}

.error-banner,
.form-error-banner {
    padding: var(--space-sm) var(--space-md);
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-md);
    color: var(--color-danger);
    margin-bottom: var(--space-md);
}

/* -----------------------------------------------------------------------------
   6. Pages
   ----------------------------------------------------------------------------- */

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.page.epic-landing {
    max-width: none;
    margin: 0;
    padding: 0;
}

.page-header {
    margin-bottom: var(--space-lg);
}

.page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-subtitle {
    margin-top: var(--space-xs);
    color: var(--color-text-secondary);
}

/* Home Page */
.page-home {
    max-width: none;
    margin: 0;
    padding: 0;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.hero-content {
    text-align: center;
    max-width: 600px;
}

.hero-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.hero-icon {
    font-size: 48px;
}

.hero-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.features {
    padding: var(--space-2xl);
    background: var(--color-bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    padding: var(--space-lg);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: var(--space-md);
    display: block;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

/* Login Page - see main definition at line ~2814 */

.login-toggle {
    text-align: center;
    margin-top: var(--space-md);
    color: var(--color-text-secondary);
}

.link-button {
    color: var(--color-accent);
    font-weight: 500;
    margin-left: var(--space-xs);
}

.link-button:hover {
    text-decoration: underline;
}

/* Dashboard Page */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.dashboard-card {
    min-height: 200px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all 0.2s;
}

.action-button:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

.action-icon {
    font-size: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.getting-started {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
}

.step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-size: var(--text-sm);
    font-weight: 600;
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-thumbnail {
    height: 160px;
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    font-size: 48px;
    opacity: 0.5;
}

.project-info {
    flex: 1;
    padding: var(--space-md);
}

.project-name {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
}

.project-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.project-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.project-badge {
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.project-badge.public {
    background: rgba(63, 185, 80, 0.2);
    color: var(--color-success);
}

.project-actions {
    padding: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.empty-state-large {
    text-align: center;
    padding: var(--space-2xl);
}

.empty-icon {
    font-size: 64px;
    opacity: 0.5;
    margin-bottom: var(--space-md);
    display: block;
}

/* 404 Page */
.page-not-found {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - var(--space-lg) * 2);
    text-align: center;
}

.not-found-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--color-bg-hover);
    line-height: 1;
}

/* -----------------------------------------------------------------------------
   7. Editor
   ----------------------------------------------------------------------------- */

.page-editor {
    position: fixed;
    top: var(--header-height);
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-primary);
    padding: 0;
    max-width: none;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toolbar-center {
    display: flex;
    gap: var(--space-xs);
}

.project-id {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.editor-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.editor-panel {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.panel-left,
.panel-right {
    width: var(--panel-width);
    flex-shrink: 0;
}

.panel-bottom {
    height: 150px;
    border-top: 1px solid var(--color-border);
}

.panel-header {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    font-weight: 600;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.panel-content {
    flex: 1;
    padding: var(--space-sm);
    overflow-y: auto;
}

.editor-viewport {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}

.viewport-canvas {
    width: 100%;
    height: 100%;
}

.viewport-overlay {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    gap: var(--space-sm);
}

.viewport-info {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

/* Tree items */
.tree-item {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-sm);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.tree-item:hover {
    background: var(--color-bg-hover);
}

.tree-item.indent {
    padding-left: var(--space-lg);
}

/* Properties */
.property-group {
    margin-bottom: var(--space-md);
}

.property-group-header {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.property-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: var(--text-sm);
}

.property-label {
    color: var(--color-text-secondary);
}

.property-value {
    color: var(--color-text-primary);
    font-family: var(--font-mono);
}

/* Output log */
.output-log {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}

.log-entry {
    padding: 2px var(--space-sm);
}

.log-entry.info {
    color: var(--color-text-secondary);
}

.log-entry.warn {
    color: var(--color-warning);
}

.log-entry.error {
    color: var(--color-danger);
}

/* -----------------------------------------------------------------------------
   8. Utilities
   ----------------------------------------------------------------------------- */

.empty-state {
    text-align: center;
    padding: var(--space-lg);
    color: var(--color-text-muted);
}

/* -----------------------------------------------------------------------------
   9. Animations
   ----------------------------------------------------------------------------- */

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Noscript warning */
.noscript-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-lg);
    text-align: center;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

/* -----------------------------------------------------------------------------
   10. Gallery Page
   ----------------------------------------------------------------------------- */

.page-gallery {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-hero {
    text-align: center;
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-lg);
}

.gallery-hero h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

.gallery-hero .hero-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.search-input {
    flex: 1;
    padding: var(--space-md);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--color-text-primary);
    font-size: var(--text-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-btn {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-accent);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: white;
    font-size: var(--text-lg);
    cursor: pointer;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.category-filters {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.sort-select {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
}

/* Featured Section */
.featured-section {
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.featured-card {
    display: flex;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.featured-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.featured-thumbnail {
    width: 200px;
    min-height: 180px;
    background: var(--color-bg-tertiary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-placeholder {
    font-size: 48px;
}

.featured-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 2px 8px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    color: #000;
}

.featured-info {
    flex: 1;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
}

.featured-name {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.featured-description {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
    flex: 1;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.creator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.creator-avatar {
    font-size: 16px;
}

.stats {
    display: flex;
    gap: var(--space-md);
}

.stats .stat {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.tag {
    padding: 2px 8px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

/* Experiences Grid */
.experiences-section {
    margin-bottom: var(--space-xl);
}

.experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.experience-card {
    overflow: hidden;
}

.experience-link {
    display: block;
    text-decoration: none;
}

.experience-thumbnail {
    height: 150px;
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.experience-thumbnail .thumbnail-placeholder {
    font-size: 40px;
    opacity: 0.5;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.experience-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 40px;
    color: white;
}

.experience-info {
    padding: var(--space-md);
}

.experience-name {
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-xs);
}

.experience-name:hover {
    color: var(--color-accent);
}

.experience-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.experience-creator {
    margin-bottom: var(--space-sm);
}

.creator-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
}

.creator-link:hover {
    color: var(--color-accent);
}

.creator-avatar-small {
    font-size: 14px;
}

.experience-stats {
    display: flex;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.no-results {
    text-align: center;
    padding: var(--space-2xl);
}

.no-results-icon {
    font-size: 48px;
    opacity: 0.5;
    display: block;
    margin-bottom: var(--space-md);
}

/* -----------------------------------------------------------------------------
   11. Profile Page
   ----------------------------------------------------------------------------- */

.page-profile {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    margin-bottom: var(--space-xl);
}

.profile-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--color-bg-tertiary), var(--color-bg-secondary));
    border-radius: var(--radius-lg);
    margin-bottom: -60px;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: var(--radius-lg);
}

.profile-header-content {
    display: flex;
    gap: var(--space-xl);
    padding: 0 var(--space-lg);
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
}

.avatar-3d {
    width: 150px;
    height: 180px;
    background: var(--color-bg-secondary);
    border: 4px solid var(--color-bg-primary);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.avatar-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 64px;
}

.avatar-platform {
    width: 80%;
    height: 20px;
    background: linear-gradient(to top, var(--color-bg-tertiary), transparent);
    border-radius: 50%;
}

.customize-avatar-btn {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    flex: 1;
    padding-top: 70px;
}

.profile-name-row {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.display-name {
    font-size: var(--text-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    border-radius: 50%;
    font-size: 14px;
    color: white;
}

.username {
    color: var(--color-text-muted);
}

.bio {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    max-width: 600px;
}

.profile-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-md);
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.stat-item .stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.profile-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.follow-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-btn:hover {
    background: var(--color-accent-hover);
}

.follow-btn.following {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.message-btn,
.share-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.message-btn:hover,
.share-btn:hover {
    background: var(--color-bg-hover);
}

.join-date {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Badges Section */
.badges-section {
    margin-bottom: var(--space-xl);
}

.badges-grid {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: help;
}

.badge-icon {
    font-size: 20px;
}

.badge-name {
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.tab-btn {
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--color-text-primary);
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.tab-content {
    min-height: 300px;
}

.empty-tab {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-text-muted);
}

.empty-tab .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

/* Profile Experience Cards */
.profile-experience-card {
    overflow: hidden;
}

.profile-experience-card .experience-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.profile-experience-card .experience-thumbnail {
    height: 120px;
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-experience-card .experience-info {
    padding: var(--space-sm);
}

.profile-experience-card .experience-name {
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
}

.profile-experience-card .play-count {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Friends Grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.friend-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.friend-card:hover {
    border-color: var(--color-accent);
}

.friend-avatar {
    position: relative;
    font-size: 32px;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-bg-secondary);
}

.status-dot.status-online {
    background: var(--color-success);
}

.status-dot.status-ingame {
    background: var(--color-accent);
}

.status-dot.status-offline {
    background: var(--color-text-muted);
}

.friend-info {
    display: flex;
    flex-direction: column;
}

.friend-name {
    font-weight: 500;
}

.friend-status {
    font-size: var(--text-xs);
}

.friend-status.status-online {
    color: var(--color-success);
}

.friend-status.status-ingame {
    color: var(--color-accent);
}

.friend-status.status-offline {
    color: var(--color-text-muted);
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
}

.inventory-item {
    padding: var(--space-md);
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
}

.inventory-item.rarity-legendary {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), var(--color-bg-secondary));
}

.inventory-item.rarity-epic {
    border-color: #9b59b6;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), var(--color-bg-secondary));
}

.inventory-item.rarity-rare {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), var(--color-bg-secondary));
}

.item-icon {
    font-size: 32px;
    margin-bottom: var(--space-sm);
}

.item-name {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.item-rarity {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: capitalize;
}

/* =============================================================================
   12. EPIC LANDING PAGE
   ============================================================================= */

.epic-landing {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CENTRAL NAVIGATION
   ───────────────────────────────────────────────────────────────────────────── */

.central-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-xl);
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(128, 144, 160, 0.2);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    justify-self: start;
}

/* Primary logo SVG - centered with gear */
.nav-logo-svg {
    height: 24px;
    width: auto;
}

/* Gear icon next to logo - perfectly centered */
.nav-logo-gear {
    height: 20px;
    width: 20px;
    margin-left: -2px;
}

/* Legacy icon class */
.nav-logo-icon {
    height: 28px;
    width: 28px;
}

.nav-logo-text {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    justify-self: center;
}

.central-nav-link {
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.central-nav-link:hover {
    color: var(--color-text-primary);
    background: rgba(128, 144, 160, 0.1);
}

.central-nav-link.active {
    color: var(--color-text-primary);
    background: rgba(128, 144, 160, 0.15);
}

.central-nav-link.nav-cta {
    background: linear-gradient(135deg, #707880 0%, #505860 100%);
    color: white;
    justify-self: end;
}

.central-nav-link.nav-cta:hover {
    background: linear-gradient(135deg, #808890 0%, #606870 100%);
}

/* ─────────────────────────────────────────────────────────────────────────────
   INDUSTRIAL HERO SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.hero-industrial {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0a12 0%, #12141a 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 110, 130, 0.15) 0%, transparent 70%);
    top: -100px;
    right: 10%;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(80, 90, 110, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
}

.hero-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

.hero-text {
    z-index: 1;
}

.beta-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: rgba(100, 110, 130, 0.15);
    border: 1px solid rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-steel-light);
    margin-bottom: var(--space-lg);
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
}

.headline-accent {
    background: linear-gradient(135deg, #a0a8b0 0%, #e0e4e8 50%, #a0a8b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.hero-description strong {
    color: var(--color-text-primary);
}

.stats-bar {
    display: inline-flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #4ade80;
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(128, 144, 160, 0.2);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
}

.btn-primary-steel {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary-steel:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    transition: transform 0.2s ease;
}

.btn-primary-steel:hover .btn-icon {
    transform: translateX(4px);
}

.btn-secondary-steel {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary-steel:hover {
    border-color: rgba(128, 144, 160, 0.6);
    color: var(--color-text-primary);
    background: rgba(128, 144, 160, 0.1);
}

/* Hero Visual - Studio Preview */
.hero-visual-new {
    display: flex;
    justify-content: center;
    align-items: center;
}

.studio-preview {
    width: 100%;
    max-width: 500px;
    background: #1a1d24;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(128, 144, 160, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 16px;
    background: #14161c;
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.header-dots {
    display: flex;
    gap: 6px;
}

.header-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.header-dots .dot.red { background: #ff5f57; }
.header-dots .dot.yellow { background: #febc2e; }
.header-dots .dot.green { background: #28c840; }

.header-title {
    flex: 1;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-right: 50px;
}

.preview-body {
    height: 300px;
    background: linear-gradient(180deg, #1a1d24 0%, #12141a 100%);
    position: relative;
}

.preview-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-floor {
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    height: 80px;
    background: 
        linear-gradient(90deg, rgba(128, 144, 160, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(128, 144, 160, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    transform: perspective(400px) rotateX(60deg);
    transform-origin: bottom;
}

.scene-gear {
    width: 100px;
    height: 100px;
    animation: float-gear 4s ease-in-out infinite, spin-gear 20s linear infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

@keyframes float-gear {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin-gear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Platform Bar */
.platform-bar {
    padding: var(--space-lg) var(--space-2xl);
    background: rgba(20, 22, 28, 0.9);
    border-top: 1px solid rgba(128, 144, 160, 0.1);
}

.platform-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.bar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.bar-divider {
    width: 1px;
    height: 24px;
    background: rgba(128, 144, 160, 0.2);
}

.platform-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.plat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.plat:hover {
    color: var(--color-text-primary);
}

.plat img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.plat:hover img {
    opacity: 1;
}

/* Keep old epic-hero for backwards compat but hide */
.epic-hero {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   EPIC HERO SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.epic-hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-2xl);
    padding-top: 80px; /* Account for fixed nav */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2f 100%);
}

/* Hero Logo */
.hero-logo {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg) 0;
    z-index: 10;
}

.logo-svg {
    max-width: 520px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.3), transparent);
    background-size: 200px 200px;
    animation: particles 20s linear infinite;
    opacity: 0.5;
}

@keyframes particles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(128, 144, 160, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.epic-hero-content {
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 0, 128, 0.2));
    border: 1px solid rgba(255, 107, 0, 0.5);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: #ff6b00;
    margin-bottom: var(--space-lg);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 0, 0.5); }
}

.epic-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
    color: var(--color-text-secondary);
    font-weight: 400;
    font-size: 0.5em;
    margin-bottom: 0.2em;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #c0c8d0 50%, #8090a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lightning {
    display: inline-block;
    animation: lightning-flash 3s ease-in-out infinite;
    -webkit-text-fill-color: initial;
    color: #fbbf24;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
}

@keyframes lightning-flash {
    0%, 90%, 100% { opacity: 1; transform: scale(1); }
    95% { opacity: 0.5; transform: scale(1.2); }
}

.epic-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.epic-subtitle .highlight {
    color: var(--color-accent);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, #22c55e, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats .stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Epic Buttons */
.btn-epic {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 32px;
    font-size: var(--text-lg);
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-epic-primary {
    background: linear-gradient(135deg, #707880 0%, #505860 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(80, 88, 96, 0.4);
}

.btn-epic-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(128, 144, 160, 0.6);
}

.btn-epic-primary .btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-epic-primary:hover .btn-glow {
    transform: translateX(100%);
}

.btn-epic-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-epic-secondary:hover {
    border-color: var(--color-accent);
    background: rgba(128, 144, 160, 0.1);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-epic:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-huge {
    padding: 20px 48px;
    font-size: var(--text-xl);
}

/* Deploy Everywhere Section - Industrial Style */
.deploy-section {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(20, 25, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.deploy-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.deploy-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.deploy-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(128, 144, 160, 0.4) 0%, transparent 100%);
}

.deploy-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.deploy-category {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.category-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 80px;
}

.platform-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.platform-chip {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 12px;
    background: rgba(40, 45, 55, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.platform-chip:hover {
    background: rgba(60, 65, 75, 0.9);
    border-color: rgba(128, 144, 160, 0.4);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.platform-chip.vr {
    background: linear-gradient(135deg, rgba(70, 75, 85, 0.7) 0%, rgba(50, 55, 65, 0.8) 100%);
    border-color: rgba(160, 170, 180, 0.25);
}

.platform-chip.vr:hover {
    border-color: rgba(180, 190, 200, 0.5);
}

.chip-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

/* Hero Visual - Engine Preview */
.hero-visual {
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.engine-preview {
    perspective: 1000px;
}

.preview-window {
    width: 500px;
    background: #1a1a2e;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(128, 144, 160, 0.2);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.preview-window:hover {
    transform: rotateY(0) rotateX(0);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #0f0f1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dot.red { background: #ff5f57; }
.window-dot.yellow { background: #febc2e; }
.window-dot.green { background: #28c840; }

.window-title {
    flex: 1;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.preview-content {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    height: 300px;
}

.preview-sidebar,
.preview-inspector {
    background: #0f0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0.5;
}

.preview-viewport {
    background: linear-gradient(180deg, #1a1a3a 0%, #0f0f2f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.viewport-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.scene-grid {
    position: absolute;
    bottom: 30%;
    left: 0;
    right: 0;
    height: 100px;
    background: 
        linear-gradient(90deg, rgba(128, 144, 160, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(128, 144, 160, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
}

.scene-cube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a0a8b0, #707880);
    transform: translate(-50%, -50%) rotateX(-20deg) rotateY(45deg);
    animation: cube-rotate 10s linear infinite;
    box-shadow: 0 20px 40px rgba(128, 144, 160, 0.4);
}

@keyframes cube-rotate {
    0% { transform: translate(-50%, -50%) rotateX(-20deg) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(-20deg) rotateY(360deg); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   POWER FEATURES SECTION
   ───────────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────────
   SYSTEMS THAT MATTER - Real-world simulation platform
   ───────────────────────────────────────────────────────────────────────────── */

.systems-section {
    position: relative;
    padding: var(--space-2xl) var(--space-xl);
    background: linear-gradient(180deg, #0a0d12 0%, #111820 50%, #0a0d12 100%);
    overflow: hidden;
}

.systems-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.systems-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: var(--space-xl) auto 0;
}

.systems-card {
    position: relative;
    padding: var(--space-xl);
    background: rgba(16, 20, 28, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.systems-card:hover {
    border-color: rgba(128, 180, 220, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(100, 160, 220, 0.05);
}

.systems-icon {
    font-size: 40px;
    margin-bottom: var(--space-md);
}

.systems-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.systems-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.systems-cta {
    text-align: center;
    margin-top: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.systems-urgency {
    font-size: var(--text-md);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.btn-primary-glow {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #34d058, #28a745);
    color: white;
    font-weight: 600;
    font-size: var(--text-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(52, 208, 88, 0.25);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(52, 208, 88, 0.4);
}

.power-section {
    padding: var(--space-2xl);
    background: var(--color-bg-primary);
}

.page-gallery {
    background: var(--color-bg-primary);
    padding-top: 60px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOGIN PAGE - Industrial High-Tech Style
   ───────────────────────────────────────────────────────────────────────────── */

.page-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0a0a12;
    padding-top: 60px;
}

.page-login .central-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.login-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #1a1c24 0%, #2a2e38 50%, #1a1c24 100%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: glow-pulse 8s ease-in-out infinite;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(80, 88, 96, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: glow-pulse 10s ease-in-out infinite reverse;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.bg-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 100px 50px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 200px 150px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 300px 250px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 400px 100px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 500px 300px, rgba(255,255,255,0.3), transparent);
    animation: particle-drift 20s linear infinite;
}

@keyframes particle-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 450px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.login-logo {
    height: 36px;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-lg);
    background: rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
    padding: 4px;
}

.login-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-tab:hover {
    color: var(--color-text-secondary);
}

.login-tab.active {
    background: rgba(128, 144, 160, 0.2);
    color: var(--color-text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.login-form .btn {
    margin-top: var(--space-sm);
    padding: var(--space-md);
    font-size: var(--text-base);
    font-weight: 600;
    background: linear-gradient(135deg, #707880 0%, #505860 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-form .btn:hover {
    background: linear-gradient(135deg, #808890 0%, #606870 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(128, 144, 160, 0.3);
}

.login-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(128, 144, 160, 0.1);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.link-button {
    background: none;
    border: none;
    color: var(--color-steel-light);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color 0.2s;
}

.link-button:hover {
    color: var(--color-text-primary);
}

.form-error-banner {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    color: #ef4444;
    font-size: var(--text-sm);
    text-align: center;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(128, 144, 160, 0.2);
}

.login-divider span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-logins {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-login-btn.steam {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-login-btn.steam:hover {
    background: linear-gradient(135deg, #2a475e 0%, #3d6a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(27, 40, 56, 0.4);
}

.social-login-icon {
    width: 20px;
    height: 20px;
}

/* ── Auth Method Bar (Email / Eustress Identity toggle) ── */
.login-method-bar {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-lg);
    background: rgba(128, 144, 160, 0.08);
    border-radius: var(--radius-md);
    padding: 3px;
}

.method-btn {
    flex: 1;
    padding: var(--space-xs) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.method-btn:hover {
    color: var(--color-text-secondary);
}

.method-btn.active {
    background: rgba(128, 144, 160, 0.2);
    color: var(--color-text-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ── Auth Panel Container ── */
.auth-panel {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Eustress Identity Panel ── */
.identity-panel .identity-header {
    margin-bottom: var(--space-lg);
}

.identity-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.identity-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.identity-desc code {
    background: rgba(128, 144, 160, 0.15);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--color-accent);
}

/* File picker */
.identity-file-drop {
    position: relative;
    border: 2px dashed rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.identity-file-drop:hover {
    border-color: rgba(128, 144, 160, 0.5);
    background: rgba(128, 144, 160, 0.05);
}

.identity-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-drop-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    pointer-events: none;
}

/* Identity info card */
.identity-info {
    background: rgba(128, 144, 160, 0.08);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.identity-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.identity-field .field-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 500;
}

.identity-field .field-value {
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    font-weight: 500;
}

.identity-field .field-value.mono {
    font-family: var(--font-mono, monospace);
    font-size: var(--text-xs);
}

.identity-status-ok {
    color: #81c784 !important;
}

/* Identity sign-in button */
.btn-identity {
    width: 100%;
    margin-top: var(--space-md);
}

/* Help text */
.identity-help {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(128, 144, 160, 0.05);
    border-radius: var(--radius-md);
}

.identity-help p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Registration steps */
.register-step {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    animation: fadeIn 0.2s ease;
}

.step-indicator {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.04em;
    margin: 0 0 var(--space-xs) 0;
}

.register-nav-buttons {
    display: flex;
    gap: var(--space-sm);
}

.register-nav-buttons .btn {
    flex: 1;
}

/* KYC Verification Status Feedback */
.kyc-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
}

.kyc-status p {
    margin: 2px 0 0;
    font-size: 13px;
    opacity: 0.85;
}

.kyc-verified {
    background: rgba(52, 208, 88, 0.1);
    border: 1px solid rgba(52, 208, 88, 0.4);
    color: #34d058;
}

.kyc-rejected {
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.4);
    color: #ef5350;
}

.kyc-processing {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: #4a9eff;
}

.kyc-icon {
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.kyc-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: kyc-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes kyc-spin {
    to { transform: rotate(360deg); }
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* KYC Webcam placeholder */
.kyc-webcam-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-md);
    background: rgba(128, 144, 160, 0.05);
    border: 1px dashed rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
}

.kyc-webcam-placeholder .webcam-icon {
    font-size: 2rem;
    opacity: 0.5;
}

.kyc-webcam-placeholder p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.hidden {
    display: none !important;
}

.identity-create-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.identity-create-hint code {
    background: rgba(128, 144, 160, 0.15);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--color-accent);
}

/* ── Jurisdiction Detection ── */
.jurisdiction-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--color-bg-primary, #1a1a2e);
    color: var(--color-text-secondary, #8899aa);
    gap: var(--space-md);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(128, 144, 160, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Jurisdiction Blocked Page ── */
.jurisdiction-blocked {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: var(--space-xl);
}

.blocked-card {
    max-width: 560px;
    background: rgba(30, 30, 46, 0.95);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-2xl, 48px);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.blocked-logo {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
    opacity: 0.6;
}

.blocked-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: var(--space-md);
}

.blocked-message {
    font-size: var(--text-base, 1rem);
    color: var(--color-text-primary, #e0e0e0);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.blocked-detail {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-muted, #8899aa);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.blocked-action {
    background: rgba(128, 144, 160, 0.08);
    border-radius: var(--radius-md, 8px);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.blocked-action p {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-secondary, #aabbcc);
    margin-bottom: var(--space-md);
}

.blocked-action .btn {
    display: inline-block;
    text-decoration: none;
}

.blocked-footer {
    font-size: var(--text-xs, 0.75rem);
    color: var(--color-text-muted, #667788);
    margin: 0;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: var(--space-xl);
    gap: var(--space-2xl);
}

/* Blueprint Icons Showcase - Left Side */
.login-showcase {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.blueprint-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 25, 35, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: all 0.3s ease;
    animation: teeter 3s ease-in-out infinite;
}

.blueprint-icon img {
    width: 100%;
    height: 100%;
    /* Grey-white style matching eustress-gear: #8090a0 */
    filter: brightness(0) saturate(100%) invert(60%) sepia(10%) saturate(300%) hue-rotate(180deg) brightness(90%) contrast(90%) drop-shadow(0 0 8px rgba(128, 144, 160, 0.4));
    transition: filter 0.3s ease;
}

.blueprint-icon:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(30, 35, 50, 0.8);
    transform: scale(1.1) rotate(0deg) !important;
}

.blueprint-icon:hover img {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

/* Teetering animations with different delays and rotations */
@keyframes teeter {
    0%, 100% { transform: rotate(var(--tilt-start)); }
    50% { transform: rotate(var(--tilt-end)); }
}

.blueprint-icon.tilt-1 { --tilt-start: -5deg; --tilt-end: 5deg; animation-delay: 0s; }
.blueprint-icon.tilt-2 { --tilt-start: 4deg; --tilt-end: -4deg; animation-delay: 0.3s; }
.blueprint-icon.tilt-3 { --tilt-start: -6deg; --tilt-end: 3deg; animation-delay: 0.6s; }
.blueprint-icon.tilt-4 { --tilt-start: 3deg; --tilt-end: -5deg; animation-delay: 0.9s; }
.blueprint-icon.tilt-5 { --tilt-start: -4deg; --tilt-end: 6deg; animation-delay: 1.2s; }
.blueprint-icon.tilt-6 { --tilt-start: 5deg; --tilt-end: -3deg; animation-delay: 1.5s; }
.blueprint-icon.tilt-7 { --tilt-start: -3deg; --tilt-end: 4deg; animation-delay: 1.8s; }
.blueprint-icon.tilt-8 { --tilt-start: 6deg; --tilt-end: -6deg; animation-delay: 2.1s; }
.blueprint-icon.tilt-9 { --tilt-start: -5deg; --tilt-end: 5deg; animation-delay: 2.4s; }

.showcase-tagline {
    text-align: center;
}

.showcase-tagline h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.showcase-tagline p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0;
}

@media (max-width: 1100px) {
    .login-wrapper {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .login-showcase {
        max-width: 100%;
        padding: var(--space-md);
    }
    
    .blueprint-grid {
        gap: var(--space-md);
    }
    
    .blueprint-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 600px) {
    .login-showcase {
        display: none;
    }
    
    .login-container {
        width: 100%;
        max-width: 100%;
    }
    
    .login-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
/* ... */
}

.section-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(128, 144, 160, 0.1);
    border: 1px solid rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-title-epic {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.power-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.power-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.power-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.power-card.featured {
    background: linear-gradient(135deg, rgba(128, 144, 160, 0.1), rgba(96, 104, 112, 0.1));
    border-color: rgba(128, 144, 160, 0.3);
    grid-column: span 2;
}

.power-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.power-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.power-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.power-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 8px;
    background: var(--color-accent);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    color: white;
}

/* ─────────────────────────────────────────────────────────────────────────────
   COMPARISON SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.comparison-section {
    padding: var(--space-2xl);
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, #0a0a1a 100%);
}

.comparison-table-wrapper {
    max-width: 1200px;
    margin: 0 auto var(--space-2xl);
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background: var(--color-bg-tertiary);
    font-weight: 600;
}

.comparison-table .feature-col {
    text-align: left;
    width: 200px;
}

.comparison-table .feature-name {
    text-align: left;
    font-weight: 500;
}

.engine-col {
    min-width: 140px;
}

.engine-logo {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    object-fit: contain;
}

.engine-col.eustress {
    background: rgba(128, 144, 160, 0.1);
}

.comparison-table td.eustress {
    background: rgba(128, 144, 160, 0.05);
}

.check {
    color: #22c55e;
    font-weight: bold;
}

.warn {
    color: #f59e0b;
    font-weight: bold;
}

.cross {
    color: #ef4444;
    font-weight: bold;
}

.highlight-row {
    background: var(--color-bg-tertiary) !important;
}

.highlight-row td {
    border-bottom: none;
}

.score-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.score-badge.best {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.score-badge.good {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.score-badge.okay {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.comparison-verdict {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .comparison-verdict {
        grid-template-columns: 1fr;
    }
}

.verdict-card {
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.verdict-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.verdict-card p {
    color: var(--color-text-secondary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   INDUSTRIAL SHOWCASE SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.showcase-industrial {
    padding: 80px var(--space-2xl);
    background: linear-gradient(180deg, #0a0a12 0%, #10121a 100%);
    text-align: center;
    border-top: 1px solid rgba(128, 144, 160, 0.08);
}

.showcase-header,
.testimonials-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.header-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(128, 144, 160, 0.4), transparent);
}

.header-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    padding: 6px 14px;
    background: rgba(128, 144, 160, 0.1);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-full);
}

.showcase-title,
.testimonials-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.showcase-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.showcase-grid-industrial {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto var(--space-xl);
}

.showcase-card {
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.showcase-card:hover {
    border-color: rgba(128, 144, 160, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.showcase-card.featured {
    grid-column: 1;
    grid-row: span 2;
}

.card-visual {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #1a1d24 0%, #14161c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.showcase-card.featured .card-visual {
    height: 100%;
    min-height: 200px;
}

.visual-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.showcase-card.featured .visual-icon {
    font-size: 72px;
}

.visual-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(128, 144, 160, 0.03) 2px,
        rgba(128, 144, 160, 0.03) 4px
    );
    pointer-events: none;
}

.card-info {
    padding: var(--space-md);
    text-align: left;
}

.info-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
}

.card-info h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.card-info p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.stat-plays {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.showcase-btn {
    display: inline-flex;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-lg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   INDUSTRIAL TESTIMONIALS SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.testimonials-industrial {
    padding: 80px var(--space-2xl);
    background: #0c0e14;
    text-align: center;
    border-top: 1px solid rgba(128, 144, 160, 0.08);
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1100px;
    margin: var(--space-xl) auto 0;
}

.testimonial-panel {
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: left;
    transition: all 0.3s ease;
}

.testimonial-panel:hover {
    border-color: rgba(128, 144, 160, 0.25);
    background: rgba(30, 33, 42, 0.7);
}

.testimonial-panel.highlight {
    background: linear-gradient(135deg, rgba(50, 55, 70, 0.5) 0%, rgba(30, 33, 42, 0.6) 100%);
    border-color: rgba(128, 144, 160, 0.2);
}

.panel-quote {
    margin-bottom: var(--space-lg);
}

.quote-mark {
    font-size: 32px;
    color: rgba(128, 144, 160, 0.3);
    line-height: 1;
    display: block;
    margin-bottom: var(--space-sm);
}

.panel-quote p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.panel-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-indicator {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border-radius: 50%;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: var(--text-sm);
}

.author-role {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   INDUSTRIAL CTA SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.cta-industrial {
    position: relative;
    padding: 100px var(--space-2xl);
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(128, 144, 160, 0.08);
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0c0e14 0%, #14161c 50%, #0c0e14 100%);
}

.cta-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
}

.cta-glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 110, 130, 0.12) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(40px);
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-headline {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.cta-accent {
    background: linear-gradient(135deg, #a0a8b0 0%, #e0e4e8 50%, #a0a8b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtext {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.cta-btn {
    margin-bottom: var(--space-xl);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.feature-check {
    color: #4ade80;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   OLD SHOWCASE SECTION (hidden)
   ───────────────────────────────────────────────────────────────────────────── */

.showcase-section {
    display: none;
}

.testimonials-section {
    display: none;
}

.final-cta-section {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SHOWCASE SECTION (legacy)
   ───────────────────────────────────────────────────────────────────────────── */

.showcase-section-legacy {
    padding: var(--space-2xl);
    background: var(--color-bg-primary);
    text-align: center;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto var(--space-xl);
}

.showcase-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.showcase-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.showcase-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a3a, #2a2a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    transition: transform 0.5s ease;
}

.showcase-item.large .showcase-image {
    font-size: 100px;
}

.showcase-item:hover .showcase-image {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-overlay h4 {
    font-size: var(--text-lg);
    margin-bottom: 4px;
}

.showcase-overlay p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.showcase-plays {
    font-size: var(--text-sm);
    color: var(--color-accent);
}

.showcase-cta {
    margin-top: var(--space-lg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TESTIMONIALS SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.testimonials-section {
    padding: var(--space-2xl);
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, #0a0a1a 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--color-accent);
}

.testimonial-card.featured {
    background: linear-gradient(135deg, rgba(128, 144, 160, 0.1), rgba(96, 104, 112, 0.1));
    border-color: rgba(128, 144, 160, 0.3);
    transform: scale(1.02);
}

.testimonial-content p {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    font-size: 40px;
}

.author-name {
    display: block;
    font-weight: 600;
}

.author-title {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FINAL CTA SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.final-cta-section {
    position: relative;
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    background: linear-gradient(135deg, #1a1a3a 0%, #0f0f2f 100%);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.cta-content > p {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    margin-bottom: var(--space-lg);
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* ─────────────────────────────────────────────────────────────────────────────
   EPIC FOOTER
   ───────────────────────────────────────────────────────────────────────────── */

.epic-footer {
    padding: var(--space-2xl);
    background: #050510;
    border-top: none;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto var(--space-xl);
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: var(--text-xl);
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-col h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.footer-col a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    font-size: 20px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 1;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.footer-social a:hover .social-icon {
    transform: scale(1.1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   INDUSTRIAL FOOTER
   ───────────────────────────────────────────────────────────────────────────── */

.footer-industrial {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 60px var(--space-2xl) 40px;
    background: #08090c;
    border-top: 1px solid rgba(128, 144, 160, 0.1);
    overflow: hidden;
}

.footer-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.footer-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-logo-link:hover .footer-logo-img {
    opacity: 1;
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.footer-social-row {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.footer-social-row .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(128, 144, 160, 0.08);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.footer-social-row .social-link:hover {
    background: rgba(128, 144, 160, 0.15);
    border-color: rgba(128, 144, 160, 0.25);
    transform: translateY(-2px);
}

.footer-social-row .social-link img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-social-row .social-link:hover img {
    opacity: 1;
}

.footer-links-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.footer-link-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-width: 100px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-text-primary);
}

.footer-divider {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(128, 144, 160, 0.15), transparent);
}

.footer-bottom-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-copyright {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer-status .status-dot {
    position: static;
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    border: none;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Hide old footer */
.epic-footer {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE - Epic Landing
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .central-nav {
        gap: var(--space-xs);
        padding: var(--space-sm) var(--space-md);
        flex-wrap: wrap;
    }
    
    .central-nav-link {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }
    
    .epic-hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        text-align: center;
        padding: var(--space-xl);
        padding-top: 100px;
    }
    
    .hero-logo {
        padding: var(--space-md) 0;
    }
    
    .logo-svg {
        max-width: 400px;
    }
    
    .epic-hero-content {
        max-width: 100%;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-platforms {
        align-items: center;
    }
    
    .platform-icons {
        justify-content: center;
    }
    
    .power-card.featured {
        grid-column: span 1;
    }
    
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 150px);
    }
    
    .showcase-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-epic {
        width: 100%;
        justify-content: center;
    }
    
    .comparison-table {
        font-size: var(--text-sm);
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: var(--space-sm);
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 150px);
    }
    
    .showcase-item.large {
        grid-column: span 1;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .footer-brand-col {
        text-align: center;
        align-items: center;
    }
    
    .footer-social-row {
        justify-content: center;
    }
    
    .footer-bottom-bar {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* =============================================================================
   INDUSTRIAL GALLERY PAGE
   ============================================================================= */

.page-gallery-industrial {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: #0a0a12;
}

.gallery-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.gallery-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.gallery-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.gallery-glow.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.1) 0%, transparent 70%);
    top: -100px;
    right: 10%;
}

.gallery-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 110, 130, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
}

/* Gallery Hero */
.gallery-hero-industrial {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.gallery-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.gallery-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    padding: 14px 20px;
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease;
}

.search-box:focus-within {
    border-color: rgba(128, 144, 160, 0.4);
}

.search-icon {
    width: 20px;
    height: 20px;
    opacity: 0.4;
    filter: invert(1);
}

.search-input-industrial {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--text-base);
    color: var(--color-text-primary);
}

.search-input-industrial::placeholder {
    color: var(--color-text-muted);
}

/* Filter Bar */
.filter-bar-industrial {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.category-chips {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    padding: 8px 16px;
    background: rgba(40, 45, 55, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    background: rgba(60, 65, 75, 0.7);
    border-color: rgba(128, 144, 160, 0.3);
}

.chip.active {
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border-color: rgba(128, 144, 160, 0.4);
    color: white;
}

.sort-select-industrial {
    padding: 8px 16px;
    background: rgba(40, 45, 55, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
}

/* Section Headers */
.section-header-industrial {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.section-header-industrial h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.section-icon {
    width: 20px;
    height: 20px;
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* Featured Section */
.featured-section-industrial {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.featured-grid-industrial {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

/* Featured Card */
.featured-card-industrial {
    display: flex;
    flex-direction: column;
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-card-industrial:hover {
    border-color: rgba(128, 144, 160, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-thumbnail {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #1a1d24 0%, #14161c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-visual {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-icon {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.featured-badge-industrial {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.badge-icon {
    width: 12px;
    height: 12px;
}

.card-content {
    padding: var(--space-lg);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.creator-info {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.creator-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.card-stats {
    display: flex;
    gap: var(--space-md);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.stat-icon {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.card-tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.tag-chip {
    padding: 4px 10px;
    background: rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-full);
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: capitalize;
}

/* Experiences Section */
.experiences-section-industrial {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.experiences-grid-industrial {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Experience Card */
.exp-card-industrial {
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.exp-card-industrial:hover {
    border-color: rgba(128, 144, 160, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.card-link {
    display: block;
}

.card-thumbnail-sm {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #1a1d24 0%, #14161c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card-link:hover .play-hover {
    opacity: 1;
}

.play-icon {
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

.card-body {
    padding: var(--space-md);
}

.card-name {
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    margin-bottom: var(--space-xs);
}

.card-name:hover {
    color: var(--color-steel-light);
}

.card-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.creator-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    text-decoration: none;
}

.creator-link:hover {
    color: var(--color-text-primary);
}

.creator-icon-sm {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.card-stats-sm {
    display: flex;
    gap: var(--space-sm);
}

.card-stats-sm span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.stat-icon-sm {
    width: 10px;
    height: 10px;
    opacity: 0.5;
}

/* No Results */
.no-results-industrial {
    text-align: center;
    padding: var(--space-3xl);
}

.no-results-industrial .no-results-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin: 0 auto var(--space-md);
    display: block;
    color: var(--color-text-muted);
}

.no-results-industrial h3 {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.no-results-industrial p {
    color: var(--color-text-muted);
}

/* =============================================================================
   INDUSTRIAL MARKETPLACE PAGE
   ============================================================================= */

.page-marketplace-industrial {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: #0a0a12;
}

.marketplace-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.marketplace-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.marketplace-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.marketplace-glow.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.1) 0%, transparent 70%);
    top: -100px;
    left: 20%;
}

.marketplace-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 110, 130, 0.08) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
}

/* Marketplace Hero */
.marketplace-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.marketplace-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.marketplace-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* Tab Switcher */
.tab-switcher {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    background: rgba(40, 45, 55, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(60, 65, 75, 0.7);
    border-color: rgba(128, 144, 160, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border-color: rgba(128, 144, 160, 0.4);
    color: white;
}

.tab-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Marketplace Content Layout */
.marketplace-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-2xl) var(--space-2xl);
}

/* Sidebar */
.marketplace-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.sidebar-section {
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.category-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: rgba(128, 144, 160, 0.1);
    color: var(--color-text-primary);
}

.category-btn.active {
    background: rgba(128, 144, 160, 0.15);
    color: var(--color-text-primary);
}

.cat-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.category-btn.active .cat-icon {
    opacity: 1;
}

/* Main Content */
.marketplace-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
}

/* Marketplace Card */
.marketplace-card {
    display: flex;
    flex-direction: column;
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.marketplace-card:hover {
    border-color: rgba(128, 144, 160, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.marketplace-card .card-thumbnail {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #1a1d24 0%, #14161c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marketplace-card .thumbnail-icon {
    width: 40px;
    height: 40px;
    opacity: 0.4;
}

.verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-badge .badge-icon {
    width: 14px;
    height: 14px;
    color: white;
}

.marketplace-card .card-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.card-category {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.marketplace-card .card-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0;
}

.marketplace-card .card-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.marketplace-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-sm);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: #fbbf24;
}

.rating-icon {
    width: 12px;
    height: 12px;
}

.marketplace-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(128, 144, 160, 0.1);
}

.card-downloads {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.card-price {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}

.card-price.free {
    color: #4ade80;
}

/* Responsive */
@media (max-width: 900px) {
    .marketplace-content {
        grid-template-columns: 1fr;
    }
    
    .marketplace-sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: var(--space-md);
    }
    
    .sidebar-section {
        flex-shrink: 0;
        min-width: 200px;
    }
    
    .tab-switcher {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* =============================================================================
   INDUSTRIAL PROJECTS PAGE
   ============================================================================= */

.page-projects-industrial {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: #0a0a12;
}

.projects-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.projects-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.projects-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.projects-glow.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.1) 0%, transparent 70%);
    top: -100px;
    right: 20%;
}

.projects-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 110, 130, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
}

/* Projects Hero */
.projects-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.projects-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.projects-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.stat-box .stat-icon {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.stat-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Create New Button */
.btn-create-new {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-create-new:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-create-new .btn-icon {
    width: 18px;
    height: 18px;
}

/* Projects Toolbar */
.projects-toolbar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-2xl) var(--space-lg);
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.filter-chips {
    display: flex;
    gap: var(--space-xs);
}

.view-toggle {
    display: flex;
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn img {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.view-btn:hover img {
    opacity: 0.8;
}

.view-btn.active {
    background: rgba(128, 144, 160, 0.15);
}

.view-btn.active img {
    opacity: 1;
}

/* Projects Content */
.projects-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-2xl) var(--space-2xl);
}

/* Places Grid */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.places-grid.list-view {
    grid-template-columns: 1fr;
}

.places-grid.list-view .place-card {
    flex-direction: row;
}

.places-grid.list-view .card-thumbnail {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
}

/* Place Card */
.place-card {
    display: flex;
    flex-direction: column;
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.place-card:hover {
    border-color: rgba(128, 144, 160, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.place-card .card-thumbnail {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #1a1d24 0%, #14161c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-card .thumbnail-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.published {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.status-badge.draft {
    background: rgba(128, 144, 160, 0.3);
    color: var(--color-text-secondary);
}

.status-badge.archived {
    background: rgba(100, 100, 100, 0.5);
    color: var(--color-text-muted);
}

.status-badge.review {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a1a;
}

.place-card .card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.place-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
}

.place-card .card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

/* Context Menu */
.menu-container {
    position: relative;
}

.menu-trigger {
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease;
}

.menu-trigger:hover {
    background: rgba(128, 144, 160, 0.15);
}

.menu-trigger img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.context-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #1a1d24;
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.menu-item:hover {
    background: rgba(128, 144, 160, 0.1);
    color: var(--color-text-primary);
}

.menu-item img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.menu-item.danger {
    color: #ef4444;
}

.menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.menu-divider {
    height: 1px;
    background: rgba(128, 144, 160, 0.1);
    margin: 4px 0;
}

.place-card .card-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.place-card .card-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.meta-icon {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.place-card .card-stats {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(128, 144, 160, 0.1);
    margin-top: auto;
}

.place-card .card-stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.place-card .card-stats .stat.updated {
    margin-left: auto;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.place-card .card-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-btn img {
    width: 14px;
    height: 14px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    color: white;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
}

.action-btn.secondary {
    background: rgba(128, 144, 160, 0.1);
    border: 1px solid rgba(128, 144, 160, 0.15);
    color: var(--color-text-secondary);
}

.action-btn.secondary:hover {
    background: rgba(128, 144, 160, 0.2);
    color: var(--color-text-primary);
}

/* Empty State */
.empty-state-industrial {
    text-align: center;
    padding: var(--space-3xl);
}

.empty-state-industrial .empty-icon {
    width: 64px;
    height: 64px;
    opacity: 0.3;
    margin: 0 auto var(--space-lg);
    display: block;
}

.empty-state-industrial h3 {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.empty-state-industrial p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* Responsive */
@media (max-width: 900px) {
    .projects-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left,
    .toolbar-right {
        justify-content: center;
    }
    
    .stats-row {
        gap: var(--space-md);
    }
    
    .stat-box {
        padding: var(--space-sm) var(--space-md);
    }
    
    .places-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   INDUSTRIAL LEARN PAGE
   ============================================================================= */

.page-learn-industrial {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: #0a0a12;
}

.learn-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.learn-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.learn-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.learn-glow.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.1) 0%, transparent 70%);
    top: -100px;
    left: 30%;
}

.learn-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 110, 130, 0.08) 0%, transparent 70%);
    bottom: 30%;
    right: 10%;
}

/* Learn Hero */
.learn-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.learn-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.learn-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

/* MindSpace Feature */
.mindspace-feature {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-2xl) var(--space-2xl);
}

.mindspace-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-2xl);
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.9) 0%, rgba(20, 25, 35, 0.9) 100%);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    overflow: hidden;
}

.mindspace-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.mindspace-orb {
    position: relative;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 60px rgba(128, 144, 160, 0.3);
}

.mindspace-icon {
    width: 48px;
    height: 48px;
    opacity: 0.9;
}

.mindspace-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: 50%;
    animation: pulse-ring 3s ease-in-out infinite;
}

.ring-1 {
    width: 160px;
    height: 160px;
    animation-delay: 0s;
}

.ring-2 {
    width: 200px;
    height: 200px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 240px;
    height: 240px;
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.mindspace-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mindspace-badge {
    display: inline-block;
    width: fit-content;
    padding: 4px 12px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: white;
}

.mindspace-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0;
}

.mindspace-tagline {
    font-size: var(--text-lg);
    color: var(--color-steel-light);
    margin: 0;
}

.mindspace-description {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.mindspace-features {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.mindspace-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.mindspace-features li img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.mindspace-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.btn-mindspace {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-mindspace img {
    width: 16px;
    height: 16px;
}

.btn-mindspace.primary {
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    color: white;
}

.btn-mindspace.primary:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
    transform: translateY(-2px);
}

.btn-mindspace.secondary {
    background: rgba(128, 144, 160, 0.1);
    border: 1px solid rgba(128, 144, 160, 0.2);
    color: var(--color-text-secondary);
}

.btn-mindspace.secondary:hover {
    background: rgba(128, 144, 160, 0.2);
    color: var(--color-text-primary);
}

/* Documentation Section */
.docs-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.doc-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.doc-card:hover {
    border-color: rgba(128, 144, 160, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.doc-icon {
    width: 32px;
    height: 32px;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.doc-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.doc-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Tutorials Section */
.tutorials-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.tutorial-filters {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.tutorial-card {
    display: flex;
    flex-direction: column;
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tutorial-card:hover {
    border-color: rgba(128, 144, 160, 0.3);
    transform: translateY(-4px);
}

.tutorial-thumbnail {
    height: 120px;
    background: linear-gradient(135deg, #1a1d24 0%, #14161c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-badge {
    width: 40px;
    height: 40px;
    opacity: 0.4;
}

.tutorial-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.tutorial-category {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.tutorial-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.tutorial-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.tutorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-sm);
}

.tutorial-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.tutorial-meta .meta-item img {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.difficulty-badge {
    padding: 4px 8px;
    background: rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-sm);
    font-size: 10px;
    color: var(--color-text-secondary);
}

.view-all-link {
    text-align: center;
    margin-top: var(--space-xl);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    border-color: rgba(128, 144, 160, 0.4);
    color: var(--color-text-primary);
}

.btn-view-all img {
    width: 14px;
    height: 14px;
}

/* Resources Section */
.resources-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.resource-card:hover {
    border-color: rgba(128, 144, 160, 0.3);
    background: rgba(35, 38, 45, 0.7);
}

.resource-icon {
    width: 32px;
    height: 32px;
    opacity: 0.6;
    flex-shrink: 0;
}

.resource-content {
    flex: 1;
}

.resource-content h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 4px;
}

.resource-content p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.resource-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.4;
    flex-shrink: 0;
}

/* Help CTA */
.help-cta {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.help-card {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.help-icon {
    width: 48px;
    height: 48px;
    opacity: 0.6;
    flex-shrink: 0;
}

.help-content {
    flex: 1;
}

.help-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 4px;
}

.help-content p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.help-actions {
    display: flex;
    gap: var(--space-md);
}

.btn-help {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-help:not(.secondary) {
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    color: white;
}

.btn-help:not(.secondary):hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
}

.btn-help.secondary {
    background: transparent;
    border: 1px solid rgba(128, 144, 160, 0.2);
    color: var(--color-text-secondary);
}

.btn-help.secondary:hover {
    border-color: rgba(128, 144, 160, 0.4);
    color: var(--color-text-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .mindspace-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mindspace-visual {
        min-height: 200px;
    }
    
    .mindspace-features {
        grid-template-columns: 1fr;
    }
    
    .mindspace-actions {
        justify-content: center;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .help-card {
        flex-direction: column;
        text-align: center;
    }
    
    .help-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-help {
        width: 100%;
        text-align: center;
    }
}

/* =============================================================================
   INDUSTRIAL COMMUNITY PAGE
   ============================================================================= */

.page-community-industrial {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: #0a0a12;
}

.community-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.community-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.community-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.community-glow.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.12) 0%, transparent 70%);
    top: -150px;
    left: 20%;
}

.community-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 110, 130, 0.08) 0%, transparent 70%);
    bottom: 30%;
    right: 10%;
}

.community-glow.glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(90, 98, 112, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 5%;
}

/* Community Hero */
.community-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.community-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.community-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* Community Stats Banner */
.community-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-2xl);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.community-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.community-stats .stat-number {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-variant-numeric: tabular-nums;
}

.community-stats .stat-number.stat-animate {
    animation: statPulse 0.4s ease;
}

@keyframes statPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); color: #7c9fff; }
    100% { transform: scale(1); }
}

.community-stats .stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* AI search suggestion */
.ai-suggestion {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    background: rgba(90, 120, 200, 0.1);
    border: 1px solid rgba(90, 120, 200, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.ai-suggestion .ai-label {
    flex-shrink: 0;
    background: rgba(90, 120, 200, 0.3);
    color: #aabbff;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.ai-suggestion p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.no-results {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    padding: var(--space-xl) 0;
}

.user-bliss {
    font-size: var(--text-xs);
    color: #7c9fff;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(128, 144, 160, 0.2);
}

/* Search Section */
.search-section {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.search-container {
    margin-bottom: var(--space-lg);
}

.search-box.large {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 16px 20px;
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-lg);
}

.search-box.large .search-icon {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.search-box.large .search-input-industrial {
    flex: 1;
    font-size: var(--text-base);
}

.search-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
}

.search-hint {
    margin-top: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: center;
    opacity: 0.7;
}

/* Search Results */
.search-results {
    margin-top: var(--space-lg);
}

.results-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.user-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-card:hover {
    border-color: rgba(128, 144, 160, 0.3);
    background: rgba(35, 38, 45, 0.7);
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: rgba(128, 144, 160, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-display-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
}

.verified-icon {
    width: 14px;
    height: 14px;
    color: #4ade80;
}

.user-username {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.user-followers {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.user-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.4;
}

/* Leaderboard Section */
.leaderboard-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.leaderboard-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.leaderboard-header .section-header-industrial {
    justify-content: center;
}

.leaderboard-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Leaderboard Tabs */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.leaderboard-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 2px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    min-width: 180px;
}

.leaderboard-tab:hover {
    border-color: rgba(128, 144, 160, 0.3);
}

.leaderboard-tab.active {
    background: linear-gradient(135deg, rgba(90, 98, 112, 0.3) 0%, rgba(58, 66, 80, 0.3) 100%);
    border-color: rgba(128, 144, 160, 0.4);
}

.leaderboard-tab .tab-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    flex-shrink: 0;
}

.leaderboard-tab.active .tab-icon {
    opacity: 1;
}

.tab-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tab-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
}

.tab-desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Leaderboard Table */
.leaderboard-container {
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.leaderboard-table {
    display: flex;
    flex-direction: column;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(128, 144, 160, 0.05);
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.table-header span {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.table-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    align-items: center;
    text-decoration: none;
    border-bottom: 1px solid rgba(128, 144, 160, 0.05);
    transition: background 0.2s ease;
}

.table-row:hover {
    background: rgba(128, 144, 160, 0.05);
}

.table-row:last-child {
    border-bottom: none;
}

.rank {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
}

.rank.gold {
    font-size: var(--text-lg);
}

.rank.silver {
    font-size: var(--text-lg);
}

.rank.bronze {
    font-size: var(--text-lg);
}

.player-cell {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.player-avatar {
    width: 36px;
    height: 36px;
    background: rgba(128, 144, 160, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-avatar img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.player-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
}

.hours-cell {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-steel-light);
    text-align: right;
}

.leaderboard-footer {
    text-align: center;
    margin-top: var(--space-lg);
}

/* Highlights Section */
.highlights-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.highlight-card {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.highlight-card.featured {
    grid-row: span 2;
    text-align: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(90, 98, 112, 0.2) 0%, rgba(58, 66, 80, 0.2) 100%);
    border-color: rgba(128, 144, 160, 0.2);
}

.highlight-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: var(--space-sm);
}

.highlight-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.creator-avatar.large {
    width: 80px;
    height: 80px;
    background: rgba(128, 144, 160, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.creator-avatar.large img {
    width: 40px;
    height: 40px;
    opacity: 0.6;
}

.highlight-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.highlight-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.highlight-link {
    font-size: var(--text-sm);
    color: var(--color-steel-light);
    text-decoration: none;
    margin-top: auto;
}

.highlight-link:hover {
    text-decoration: underline;
}

/* Join CTA */
.join-cta {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.join-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(90, 98, 112, 0.2) 0%, rgba(58, 66, 80, 0.2) 100%);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-xl);
}

.join-content h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.join-content p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0;
}

.join-actions {
    display: flex;
    gap: var(--space-md);
}

.btn-join {
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-join.primary {
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    color: white;
}

.btn-join.primary:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
    transform: translateY(-2px);
}

.btn-join.secondary {
    background: transparent;
    border: 1px solid rgba(128, 144, 160, 0.2);
    color: var(--color-text-secondary);
}

.btn-join.secondary:hover {
    border-color: rgba(128, 144, 160, 0.4);
    color: var(--color-text-primary);
}

/* Responsive */
@media (max-width: 1000px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlight-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .community-stats {
        gap: var(--space-md);
    }
    
    .stat-divider {
        display: none;
    }
    
    .leaderboard-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .leaderboard-tab {
        width: 100%;
        max-width: 280px;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-card.featured {
        grid-column: span 1;
    }
    
    .join-card {
        flex-direction: column;
        text-align: center;
    }
    
    .join-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-join {
        width: 100%;
        text-align: center;
    }
}

/* =============================================================================
   NAV USER SECTION (Logged In State)
   ============================================================================= */

.nav-user-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-self: end;
}

.nav-tickets {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 10px;
    background: rgba(128, 144, 160, 0.08);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-tickets:hover {
    background: rgba(128, 144, 160, 0.15);
    border-color: rgba(128, 144, 160, 0.3);
}

.ticket-icon {
    font-size: 14px;
}

.ticket-amount {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ── Tickets Page ── */
.page-tickets {
    max-width: none;
    padding: 0;
}

.tickets-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #0a0a12 0%, #12141c 50%, #0a0a12 100%);
}

.tickets-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.tickets-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: calc(60px + var(--space-2xl)) var(--space-xl) var(--space-xl);
    max-width: 700px;
    margin: 0 auto;
}

.tickets-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.tickets-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.tickets-balance-display {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: rgba(128, 144, 160, 0.08);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-full);
}

.tickets-balance-icon {
    font-size: 1.5rem;
}

.tickets-balance-amount {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
}

.tickets-balance-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.tickets-packages {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-2xl);
    text-align: center;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.ticket-card {
    position: relative;
    background: rgba(128, 144, 160, 0.06);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.ticket-card:hover {
    border-color: rgba(128, 144, 160, 0.3);
}

.ticket-card.selected {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.ticket-card.popular {
    border-color: rgba(100, 149, 237, 0.3);
}

.ticket-card.best-value {
    border-color: rgba(76, 175, 80, 0.3);
}

.ticket-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.popular-badge {
    background: rgba(100, 149, 237, 0.2);
    border: 1px solid rgba(100, 149, 237, 0.4);
    color: #6495ed;
}

.best-badge {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #81c784;
}

.ticket-card-name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
}

.ticket-card-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: var(--space-xs);
}

.ticket-card-icon {
    font-size: 1.2rem;
}

.ticket-card-count {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-text-primary);
}

.ticket-card-bonus {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #81c784;
    margin-bottom: 2px;
}

.ticket-card-total {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.ticket-card-price {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
}

.tickets-buy-btn {
    min-width: 300px;
    padding: 14px 48px;
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
}

.tickets-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.nav-bliss {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 215, 0, 0.06) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.25s ease;
}

.nav-bliss:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.nav-bliss .bliss-icon {
    width: 22px;
    height: 22px;
}

.nav-bliss .bliss-amount {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #ffffff;
}

.nav-bliss .bliss-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 12px 6px 6px;
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-user:hover {
    border-color: rgba(128, 144, 160, 0.3);
    background: rgba(35, 38, 45, 0.7);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(128, 144, 160, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-username {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
}

/* User Dropdown Menu */
.nav-user-dropdown {
    position: relative;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 12px 6px 6px;
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-user-trigger:hover {
    border-color: rgba(128, 144, 160, 0.3);
    background: rgba(35, 38, 45, 0.7);
}

.dropdown-chevron {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
    transition: transform 0.2s ease;
}

.nav-user-dropdown:hover .dropdown-chevron,
.nav-user-dropdown:focus-within .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(20, 22, 30, 0.98);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-user-dropdown:hover .nav-dropdown-menu,
.nav-user-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.15s ease;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(128, 144, 160, 0.1);
    color: var(--color-text-primary);
}

.dropdown-item img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.dropdown-item:hover img {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: rgba(128, 144, 160, 0.1);
    margin: var(--space-xs) 0;
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-item.logout img {
    filter: brightness(0) saturate(100%) invert(50%) sepia(50%) saturate(500%) hue-rotate(330deg);
}

/* =============================================================================
   INDUSTRIAL BLISS PAGE
   ============================================================================= */

.page-bliss-industrial {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: #0a0a12;
}

.bliss-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bliss-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bliss-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.bliss-glow.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.15) 0%, transparent 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
}

.bliss-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 110, 130, 0.1) 0%, transparent 70%);
    bottom: 30%;
    left: 10%;
}

.bliss-glow.glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(90, 98, 112, 0.1) 0%, transparent 70%);
    top: 40%;
    right: 10%;
}

/* Bliss Hero */
.bliss-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.bliss-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(128, 144, 160, 0.3);
}

.bliss-logo-icon {
    width: 48px;
    height: 48px;
}

.bliss-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.bliss-tagline {
    font-size: var(--text-xl);
    color: var(--color-steel-light);
    margin-bottom: var(--space-md);
}

.bliss-description {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

/* ── Bliss Account Panel (signed in) ── */
.bliss-account-panel {
    max-width: 700px;
    margin: 0 auto;
}

.bliss-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .bliss-account-grid { grid-template-columns: 1fr; }
}

.bliss-balance-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.02) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bliss-balance-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bliss-balance-amount {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #ffd700;
    font-variant-numeric: tabular-nums;
}

.bliss-balance-unit {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255, 215, 0, 0.6);
}

.bliss-payout-card {
    background: rgba(128, 144, 160, 0.06);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-align: center;
}

.bliss-payout-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bliss-payout-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.payout-connect-btn {
    width: 100%;
    padding: 10px 20px;
    font-size: var(--text-sm);
}

.bliss-payout-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* ── Identity Wallet (signed out) ── */
.identity-wallet-section {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: rgba(128, 144, 160, 0.06);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    max-width: 600px;
    margin: 0 auto;
}

.identity-wallet-icon {
    width: 36px;
    height: 36px;
    opacity: 0.6;
    flex-shrink: 0;
}

.identity-wallet-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 4px;
}

.identity-wallet-desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.identity-wallet-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .identity-wallet-section {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Bliss KPI Dashboard ── */
.bliss-kpi-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-2xl);
}

.bliss-kpi-section .section-header-industrial {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.bliss-kpi-section .section-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    color: #81c784;
    letter-spacing: 0.05em;
    margin-left: var(--space-sm);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #81c784;
    border-radius: 50%;
    animation: livePulse 1.5s ease infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.kpi-card {
    background: rgba(128, 144, 160, 0.06);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.2s ease;
}

.kpi-card:hover {
    border-color: rgba(128, 144, 160, 0.25);
}

.kpi-card.kpi-primary {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%);
    border-color: rgba(255, 215, 0, 0.2);
}

.kpi-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.kpi-value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    font-variant-numeric: tabular-nums;
}

.kpi-card.kpi-primary .kpi-value {
    color: #ffd700;
}

/* ── Bliss Investment Tiers ── */
.bliss-invest-section,
.bliss-why-section,
.bliss-nodes-section,
.bliss-innovation-section,
.bliss-faq-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-xl) var(--space-2xl);
}

/* ── Payment Mode Tabs ── */
.payment-mode-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-xl);
    background: rgba(128, 144, 160, 0.08);
    border-radius: var(--radius-full);
    padding: 3px;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
}

.payment-mode-tab {
    flex: 1;
    padding: 8px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-mode-tab:hover {
    color: var(--color-text-secondary);
}

.payment-mode-tab.active {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.tier-frequency {
    font-size: var(--text-xs);
    font-weight: 400;
    opacity: 0.6;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.tier-card {
    background: rgba(128, 144, 160, 0.06);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tier-card:hover,
.tier-card.selected {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.05);
}

.tier-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
}

.tier-price {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #ffd700;
}

.tier-bls,
.tier-impact {
    font-size: var(--text-sm);
    color: #81c784;
    font-weight: 500;
}

.tier-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.tier-perks {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tier-perks li {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    padding-left: 16px;
    position: relative;
}

.tier-perks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #81c784;
    font-weight: 700;
}

/* ── Bliss Node Comparison ── */
.node-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .node-comparison { grid-template-columns: 1fr; }
}

.node-card {
    background: rgba(128, 144, 160, 0.06);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.node-card.node-full {
    border-color: rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.06) 0%, rgba(76, 175, 80, 0.02) 100%);
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.node-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
}

.node-badge {
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.node-badge.default {
    background: rgba(128, 144, 160, 0.2);
    color: var(--color-text-secondary);
}

.node-badge.bonus {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.node-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.node-features li {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    padding-left: 20px;
    position: relative;
}

.node-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}

.node-card.node-full .node-features li::before {
    content: '✓';
    color: #81c784;
}

/* ── Bliss Why / Innovation / FAQ ── */
.why-grid,
.innovation-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.why-card {
    background: rgba(128, 144, 160, 0.06);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.why-card h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.why-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: rgba(128, 144, 160, 0.04);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.faq-item h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.faq-item p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ── Wallet Connect ── */
.wallet-disconnected,
.wallet-connected,
.wallet-connecting,
.wallet-error {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: center;
    padding: var(--space-md);
}

.connect-btn,
.disconnect-btn {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(128, 144, 160, 0.3);
    background: rgba(128, 144, 160, 0.1);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.connect-btn:hover {
    background: rgba(128, 144, 160, 0.2);
    border-color: rgba(128, 144, 160, 0.5);
}

/* ── Custom Investment Input ── */
.custom-invest-card {
    background: rgba(128, 144, 160, 0.06);
    border: 1px solid rgba(128, 144, 160, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    max-width: 400px;
    margin: 0 auto var(--space-lg);
}

.custom-invest-header {
    margin-bottom: var(--space-md);
}

.custom-invest-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.custom-invest-input {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.custom-invest-input:focus-within {
    border-color: rgba(255, 215, 0, 0.4);
}

.currency-symbol {
    padding: 14px 0 14px 16px;
    font-size: var(--text-xl);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    user-select: none;
}

.custom-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--text-xl);
    font-weight: 700;
    color: #ffffff;
    padding: 14px 8px;
    min-width: 0;
    -moz-appearance: textfield;
}

.custom-amount-input::-webkit-outer-spin-button,
.custom-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 400;
}

.currency-code {
    padding: 14px 16px 14px 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    user-select: none;
}

.custom-estimate {
    margin: var(--space-sm) 0 0;
    font-size: var(--text-sm);
    color: #ffd700;
    font-weight: 600;
    text-align: center;
}

/* ── Invest Button ── */
.invest-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto var(--space-md);
    padding: 14px 32px;
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 700;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.invest-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffe44d 0%, #ffd700 100%);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.invest-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Invest Footer ── */
.invest-footer {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    max-width: 400px;
    margin: 0 auto;
    justify-content: center;
}

.invest-footer-icon {
    width: 16px;
    height: 16px;
    opacity: 0.4;
    flex-shrink: 0;
    margin-top: 2px;
}

.invest-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.current-balance {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(135deg, rgba(90, 98, 112, 0.2) 0%, rgba(58, 66, 80, 0.2) 100%);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-xl);
}

.balance-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.balance-amount img {
    width: 32px;
    height: 32px;
}

.balance-amount span {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-text-primary);
}

.login-prompt {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(128, 144, 160, 0.1);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.login-prompt:hover {
    background: rgba(128, 144, 160, 0.2);
    color: var(--color-text-primary);
}

/* Packages Section */
.packages-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.packages-subtitle {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
}

.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.package-card:hover {
    border-color: rgba(128, 144, 160, 0.3);
    transform: translateY(-4px);
}

.package-card.popular {
    border-color: rgba(128, 144, 160, 0.4);
    background: linear-gradient(135deg, rgba(90, 98, 112, 0.2) 0%, rgba(58, 66, 80, 0.2) 100%);
}

.package-card.best-value {
    border-color: rgba(74, 222, 128, 0.4);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.package-badge.popular {
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    color: white;
}

.package-badge.best-value {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.package-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.package-amount {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: var(--space-sm) 0;
}

.package-bliss-icon {
    width: 24px;
    height: 24px;
}

.amount-value {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
}

.package-bonus {
    font-size: var(--text-sm);
    color: #4ade80;
    font-weight: 600;
}

.package-total {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.package-price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: var(--space-sm) 0;
}

.package-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.package-buy-btn:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
}

.package-buy-btn img {
    width: 16px;
    height: 16px;
}

/* Bliss Info Section */
.bliss-info-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.info-card {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.info-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon img {
    width: 28px;
    height: 28px;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.info-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.info-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Earn Section */
.earn-section {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.earn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.earn-card {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    text-align: center;
}

.earn-amount {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #4ade80;
    margin-bottom: var(--space-sm);
}

.earn-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.earn-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

/* FAQ Section */
.faq-section {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.faq-item h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.faq-item p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Docs CTA */
.docs-cta {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.docs-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.docs-icon {
    width: 40px;
    height: 40px;
    opacity: 0.6;
    flex-shrink: 0;
}

.docs-content {
    flex: 1;
}

.docs-content h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 4px;
}

.docs-content p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.docs-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.docs-link:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
}

.docs-link img {
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .docs-card {
        flex-direction: column;
        text-align: center;
    }
    
    .docs-link {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================================================
   INDUSTRIAL LEADERBOARD PAGE
   ============================================================================= */

.page-leaderboard-industrial {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: #0a0a12;
}

.leaderboard-page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.leaderboard-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.page-leaderboard-industrial .leaderboard-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.page-leaderboard-industrial .leaderboard-glow.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.12) 0%, transparent 70%);
    top: -100px;
    left: 30%;
}

.page-leaderboard-industrial .leaderboard-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 110, 130, 0.08) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
}

/* Leaderboard Hero */
.leaderboard-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.leaderboard-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.leaderboard-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.leaderboard-cta {
    margin-top: var(--space-lg);
}

/* Leaderboard Controls */
.leaderboard-controls {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-2xl) var(--space-lg);
}

.tab-switcher-large {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.tab-btn-large {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 2px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    min-width: 200px;
}

.tab-btn-large:hover {
    border-color: rgba(128, 144, 160, 0.3);
}

.tab-btn-large.active {
    background: linear-gradient(135deg, rgba(90, 98, 112, 0.3) 0%, rgba(58, 66, 80, 0.3) 100%);
    border-color: rgba(128, 144, 160, 0.5);
}

.tab-btn-large .tab-icon {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    flex-shrink: 0;
}

.tab-btn-large.active .tab-icon {
    opacity: 1;
}

.tab-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tab-text .tab-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
}

.tab-text .tab-desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.time-filters {
    display: flex;
    gap: var(--space-xs);
}

.time-btn {
    padding: 8px 16px;
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-btn:hover {
    border-color: rgba(128, 144, 160, 0.3);
    color: var(--color-text-secondary);
}

.time-btn.active {
    background: rgba(128, 144, 160, 0.15);
    border-color: rgba(128, 144, 160, 0.3);
    color: var(--color-text-primary);
}

/* Leaderboard Content */
.leaderboard-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-2xl);
}

.full-leaderboard {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Podium */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    min-width: 140px;
}

.podium-place.first {
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 180, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.podium-place.second {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(160, 160, 160, 0.05) 100%);
    border-color: rgba(192, 192, 192, 0.3);
}

.podium-place.third {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(180, 100, 40, 0.05) 100%);
    border-color: rgba(205, 127, 50, 0.3);
}

.podium-crown {
    margin-bottom: var(--space-xs);
}

.podium-crown img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.podium-avatar {
    width: 64px;
    height: 64px;
    background: rgba(128, 144, 160, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podium-avatar.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 180, 0, 0.2) 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.podium-avatar img {
    width: 32px;
    height: 32px;
    opacity: 0.7;
}

.podium-rank {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
}

.podium-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
}

.podium-hours {
    font-size: var(--text-sm);
    color: var(--color-steel-light);
    font-weight: 600;
}

/* Full Table */
.leaderboard-table-full {
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-header-full {
    display: grid;
    grid-template-columns: 80px 1fr 80px 120px 100px;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(128, 144, 160, 0.05);
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.table-header-full span {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.table-row-full {
    display: grid;
    grid-template-columns: 80px 1fr 80px 120px 100px;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    align-items: center;
    text-decoration: none;
    border-bottom: 1px solid rgba(128, 144, 160, 0.05);
    transition: background 0.2s ease;
}

.table-row-full:hover {
    background: rgba(128, 144, 160, 0.05);
}

.table-row-full:last-child {
    border-bottom: none;
}

.rank-cell {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
}

.rank-cell.gold {
    color: #ffd700;
    font-weight: 700;
}

.rank-cell.silver {
    color: #c0c0c0;
    font-weight: 700;
}

.rank-cell.bronze {
    color: #cd7f32;
    font-weight: 700;
}

.player-avatar-sm {
    width: 32px;
    height: 32px;
    background: rgba(128, 144, 160, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-avatar-sm img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.level-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-secondary);
}

.streak-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.streak-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.spaces-cell,
.visits-cell {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.hours-cell {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-steel-light);
    text-align: right;
}

/* Your Rank Section */
.your-rank-section {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.your-rank-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.your-rank-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 4px;
}

.your-rank-content p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.btn-sign-in {
    padding: 12px 24px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-sign-in:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
}

/* Responsive */
@media (max-width: 900px) {
    .tab-switcher-large {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-filters {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .table-header-full,
    .table-row-full {
        grid-template-columns: 60px 1fr 80px;
    }
    
    .col-level,
    .col-streak,
    .col-spaces,
    .col-visits,
    .level-cell,
    .streak-cell,
    .spaces-cell,
    .visits-cell {
        display: none;
    }
    
    .podium {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-place {
        width: 100%;
        max-width: 200px;
    }
    
    .your-rank-card {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================================================
   INDUSTRIAL STEAM PAGE
   ============================================================================= */

.page-steam-industrial {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: #0a0a12;
}

.steam-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.steam-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.steam-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.steam-glow.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 60, 114, 0.2) 0%, transparent 70%);
    top: -100px;
    left: 30%;
}

.steam-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.1) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
}

/* Steam Hero */
.steam-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.steam-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.steam-logo-icon {
    width: 64px;
    height: 64px;
}

.eustress-logo-icon {
    width: 64px;
    height: 64px;
}

.steam-x {
    font-size: var(--text-2xl);
    color: var(--color-text-muted);
}

.steam-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.steam-tagline {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.steam-cta-row {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn-steam-primary {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid rgba(102, 192, 244, 0.3);
    border-radius: var(--radius-lg);
    color: #66c0f4;
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-steam-primary:hover {
    background: linear-gradient(135deg, #2a475e 0%, #3d6a8a 100%);
    border-color: rgba(102, 192, 244, 0.5);
}

.btn-steam-primary img {
    width: 20px;
    height: 20px;
}

.btn-steam-secondary {
    padding: 14px 28px;
    background: transparent;
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-steam-secondary:hover {
    border-color: rgba(128, 144, 160, 0.4);
    color: var(--color-text-primary);
}

/* Steam Features */
.steam-features {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.steam-features .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.steam-features .feature-card {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.steam-features .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.steam-features .feature-icon img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

.steam-features .feature-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.steam-features .feature-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Steam Stats */
.steam-stats {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.steam-stats .stats-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(135deg, rgba(27, 40, 56, 0.6) 0%, rgba(42, 71, 94, 0.4) 100%);
    border: 1px solid rgba(102, 192, 244, 0.2);
    border-radius: var(--radius-xl);
}

.steam-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.steam-stats .stat-number {
    font-size: var(--text-xl);
    font-weight: 800;
    color: #66c0f4;
}

.steam-stats .stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.steam-stats .stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(102, 192, 244, 0.2);
}

/* System Requirements */
.system-requirements {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.requirements-card {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.requirements-card.recommended {
    border-color: rgba(102, 192, 244, 0.3);
    background: linear-gradient(135deg, rgba(27, 40, 56, 0.4) 0%, rgba(42, 71, 94, 0.2) 100%);
}

.requirements-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.requirements-list li {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.requirements-list li strong {
    color: var(--color-text-secondary);
}

/* Steam CTA */
.steam-cta-section {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.steam-cta-section .cta-card {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(27, 40, 56, 0.6) 0%, rgba(42, 71, 94, 0.4) 100%);
    border: 1px solid rgba(102, 192, 244, 0.2);
    border-radius: var(--radius-xl);
}

.steam-cta-section .cta-card h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.steam-cta-section .cta-card p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
}

.btn-steam-large {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 32px;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid rgba(102, 192, 244, 0.3);
    border-radius: var(--radius-lg);
    color: #66c0f4;
    font-size: var(--text-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-steam-large:hover {
    background: linear-gradient(135deg, #2a475e 0%, #3d6a8a 100%);
    border-color: rgba(102, 192, 244, 0.5);
    transform: translateY(-2px);
}

.btn-steam-large img {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 900px) {
    .steam-features .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .steam-features .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steam-stats .stats-card {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .steam-stats .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .steam-logo-row {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .steam-x {
        display: none;
    }
}

/* =============================================================================
   INDUSTRIAL DOWNLOAD PAGE
   ============================================================================= */

.page-download-industrial {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: #0a0a12;
}

.download-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.download-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.download-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.download-glow.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.12) 0%, transparent 70%);
    top: -100px;
    left: 30%;
}

.download-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 110, 130, 0.08) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
}

/* Download Hero */
.download-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.download-tagline {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.version-info {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.version-badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: white;
}

.version-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.version-date {
    font-size: 12px;
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* Primary Download */
.primary-download {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-2xl) var(--space-xl);
}

.download-card-main {
    text-align: center;
    padding: var(--space-2xl);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-xl);
}

.download-auth-gate {
    max-width: 500px;
    margin: 0 auto;
}

.download-auth-gate .btn-primary-glow {
    margin-top: var(--space-lg);
}

.download-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
}

.download-icon-large img {
    width: 100%;
    height: 100%;
}

.download-card-main h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.download-desc {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-xl);
}

/* Platform Buttons */
.platform-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 200px;
}

.platform-btn:hover {
    border-color: rgba(128, 144, 160, 0.4);
    background: rgba(35, 38, 45, 0.9);
    transform: translateY(-2px);
}

.platform-btn img {
    width: 32px;
    height: 32px;
}

.platform-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.platform-btn .btn-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.platform-btn .btn-platform {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
}

.platform-btn .btn-size {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Steam Alternative */
.steam-alternative {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.alt-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.steam-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid rgba(102, 192, 244, 0.3);
    border-radius: var(--radius-md);
    color: #66c0f4;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.steam-link:hover {
    background: linear-gradient(135deg, #2a475e 0%, #3d6a8a 100%);
}

.steam-link img {
    width: 16px;
    height: 16px;
}

/* Requirements Section */
.requirements-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.requirements-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.req-card {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.req-card.recommended {
    border-color: rgba(128, 144, 160, 0.3);
    background: linear-gradient(135deg, rgba(90, 98, 112, 0.15) 0%, rgba(58, 66, 80, 0.1) 100%);
}

.req-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
}

.req-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.req-card li {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.req-card li strong {
    color: var(--color-text-secondary);
}

/* About Eustress Section */
.about-eustress {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.about-content {
    margin-bottom: var(--space-xl);
}

.about-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.features-highlight {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.feature-item img {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 4px;
}

.feature-item p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-learn-more:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
    transform: translateY(-2px);
}

.btn-learn-more img {
    width: 16px;
    height: 16px;
}

/* Quick Links */
.quick-links {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link-card:hover {
    border-color: rgba(128, 144, 160, 0.3);
    transform: translateY(-2px);
}

.quick-link-card img {
    width: 32px;
    height: 32px;
    opacity: 0.7;
}

.quick-link-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.quick-link-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .features-highlight {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .platform-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .requirements-row {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   INDUSTRIAL ABOUT PAGE
   ============================================================================= */

.page-about-industrial {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: #0a0a12;
}

.about-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.about-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.about-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.about-glow.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.12) 0%, transparent 70%);
    top: -100px;
    left: 20%;
}

.about-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 110, 130, 0.08) 0%, transparent 70%);
    bottom: 30%;
    right: 10%;
}

/* About Hero */
.about-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.about-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.about-tagline {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

/* Mission Section */
.mission-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-2xl) var(--space-xl);
}

.mission-card {
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(90, 98, 112, 0.15) 0%, rgba(58, 66, 80, 0.1) 100%);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-xl);
    text-align: center;
}

.mission-text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 0;
}

.mission-text strong {
    color: var(--color-text-primary);
}

/* Products Section */
.products-section {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.product-card {
    padding: var(--space-xl);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-xl);
    text-align: center;
}

.product-card.studio {
    border-color: rgba(128, 144, 160, 0.25);
}

.product-card.player {
    border-color: rgba(100, 120, 140, 0.2);
}

.product-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
}

.product-icon img {
    width: 100%;
    height: 100%;
}

.product-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 4px;
}

.product-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--space-md);
}

.product-desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 0 var(--space-md);
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    text-align: left;
}

.product-features li {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: 6px 0;
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.product-features li::before {
    content: "✓ ";
    color: var(--color-text-secondary);
}

.product-cta {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.product-cta:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
    transform: translateY(-2px);
}

/* Why Section */
.why-section {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.section-subtitle {
    text-align: center;
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: calc(-1 * var(--space-md)) 0 var(--space-xl);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.why-card {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    text-align: center;
}

.why-stat {
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.why-card .why-icon {
    margin-bottom: var(--space-sm);
}

.why-card .why-icon img {
    width: 28px;
    height: 28px;
    opacity: 0.5;
    filter: brightness(0) invert(0.7);
}

.why-card h3 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.why-card h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-sm);
}

.why-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Performance Section */
.performance-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.performance-card {
    padding: var(--space-xl);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-xl);
}

.perf-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.perf-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.perf-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
}

.perf-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.perf-bar {
    height: 28px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0 var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    min-width: 80px;
}

.perf-bar.eustress {
    background: linear-gradient(90deg, #5a6270 0%, #7a8290 100%);
    color: white;
}

.perf-bar.unity {
    background: rgba(34, 44, 55, 0.8);
    color: var(--color-text-muted);
}

.perf-bar.unreal {
    background: rgba(47, 47, 47, 0.6);
    color: var(--color-text-muted);
}

.perf-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
    margin: var(--space-lg) 0 0;
}

/* Build Section */
.build-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.build-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.build-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.build-item:hover {
    border-color: rgba(128, 144, 160, 0.3);
}

.build-item img {
    width: 32px;
    height: 32px;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.build-item span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
}

/* CTA Section */
.cta-section {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.cta-card-about {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(90, 98, 112, 0.2) 0%, rgba(58, 66, 80, 0.15) 100%);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-xl);
}

.cta-card-about h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.cta-card-about p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cta.primary {
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    color: white;
}

.btn-cta.primary:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
    transform: translateY(-2px);
}

.btn-cta.primary img {
    width: 18px;
    height: 18px;
}

.btn-cta.secondary {
    background: transparent;
    border: 1px solid rgba(128, 144, 160, 0.2);
    color: var(--color-text-secondary);
}

.btn-cta.secondary:hover {
    border-color: rgba(128, 144, 160, 0.4);
    color: var(--color-text-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .build-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .build-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* =============================================================================
   INDUSTRIAL PREMIUM PAGE
   ============================================================================= */

.page-premium-industrial {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: #0a0a12;
}

.premium-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.premium-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.premium-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.premium-glow.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    top: -100px;
    left: 30%;
}

.premium-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(128, 144, 160, 0.08) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
}

/* Premium Hero */
.premium-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.premium-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.premium-tagline {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-lg);
    padding: 4px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    color: white;
}

.save-badge {
    padding: 2px 6px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-sm);
    color: #ffd700;
    font-size: var(--text-xs);
}

/* Pricing Section */
.pricing-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: var(--space-xl);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-xl);
    text-align: center;
}

.pricing-card.popular {
    border-color: rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(25, 28, 35, 0.6) 100%);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    border-radius: var(--radius-md);
    color: #1a1a2e;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card .card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
}

.pricing-card .card-icon img {
    width: 100%;
    height: 100%;
}

.pricing-card .card-name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 4px;
}

.pricing-card .card-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
}

.card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 4px;
}

.card-price .currency {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-secondary);
}

.card-price .amount {
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--color-text-primary);
}

.card-price .period {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.billed-text {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 8px 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

.check-icon {
    color: #ffd700;
    font-weight: bold;
}

.subscribe-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #5a6270 0%, #3a4250 100%);
    border: 1px solid rgba(128, 144, 160, 0.3);
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #6a7280 0%, #4a5260 100%);
    transform: translateY(-2px);
}

.pricing-card.popular .subscribe-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    border-color: rgba(255, 215, 0, 0.5);
    color: #1a1a2e;
}

.pricing-card.popular .subscribe-btn:hover {
    background: linear-gradient(135deg, #ffe033 0%, #ffc800 100%);
}

/* Comparison Section */
.comparison-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.premium-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.premium-comparison-table th,
.premium-comparison-table td {
    padding: var(--space-md);
    text-align: center;
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.premium-comparison-table th {
    background: rgba(25, 28, 35, 0.8);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
}

.premium-comparison-table th.feature-col {
    text-align: left;
}

.premium-comparison-table th.highlight {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.premium-comparison-table td {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.premium-comparison-table td:first-child {
    text-align: left;
    color: var(--color-text-secondary);
}

.premium-comparison-table .check {
    color: #ffd700;
}

.premium-comparison-table .cross {
    color: var(--color-text-muted);
    opacity: 0.5;
}

/* FAQ Section */
.faq-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.faq-item {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.faq-item h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.faq-item p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Premium CTA */
.premium-cta-section {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.premium-cta-section .cta-card {
    text-align: center;
}

.premium-cta-section .cta-card h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.premium-cta-section .cta-card p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
}

.premium-cta-section .cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .premium-comparison-table {
        font-size: var(--text-xs);
    }
    
    .premium-comparison-table th,
    .premium-comparison-table td {
        padding: var(--space-sm);
    }
}

/* =============================================================================
   LEGAL PAGES (Terms, Privacy, Cookies, DMCA)
   ============================================================================= */

.page-legal {
    min-height: 100vh;
    padding-top: 80px;
    background: #0a0a12;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl);
}

.legal-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(128, 144, 160, 0.15);
}

.legal-header h1 {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.legal-updated {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.legal-content {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.legal-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
}

.legal-section h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: var(--space-md) 0 var(--space-sm);
}

.legal-section p {
    margin: 0 0 var(--space-md);
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 var(--space-md);
    padding-left: var(--space-lg);
}

.legal-section li {
    margin-bottom: var(--space-xs);
}

@media (max-width: 600px) {
    .legal-container {
        padding: var(--space-lg);
    }
    
    .legal-header h1 {
        font-size: var(--text-2xl);
    }
}

/* Acts Grid */
.acts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.act-card {
    display: block;
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s;
}

.act-card:hover {
    border-color: rgba(128, 144, 160, 0.3);
    background: rgba(25, 28, 35, 0.8);
    transform: translateY(-2px);
}

.act-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.act-card .act-full {
    font-size: var(--text-sm);
    color: var(--color-accent);
    margin: 0 0 var(--space-sm);
}

.act-card .act-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .acts-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   CAREERS PAGE
   ============================================================================= */

.page-careers {
    min-height: 100vh;
    position: relative;
}

.page-careers .footer-industrial {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
}

.careers-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #0a0a12 0%, #12141c 50%, #0a0a12 100%);
}

.careers-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.careers-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.careers-glow.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 120, 180, 0.3) 0%, transparent 70%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.careers-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 120px var(--space-xl) var(--space-2xl);
}

.careers-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.careers-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: var(--space-md) 0;
}

.careers-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin: 0;
}

.about-team {
    margin-bottom: var(--space-2xl);
}

.team-card {
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(10px);
}

.founder-section {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.founder-avatar-link {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.founder-avatar-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(128, 144, 160, 0.3);
}

.founder-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.founder-info h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.founder-role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-link:hover {
    opacity: 0.8;
}

.social-link .x-icon {
    width: 24px;
    height: 24px;
}

.team-description p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 0 0 var(--space-md);
}

.team-description p:last-child {
    margin-bottom: 0;
}

.ai-section {
    margin-bottom: var(--space-2xl);
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.ai-card {
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.ai-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.ai-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

.hiring-section {
    margin-bottom: var(--space-2xl);
}

.hiring-card {
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
}

.hiring-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.not-hiring {
    background: #ef4444;
}

.status-indicator.hiring {
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-text {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #ef4444;
}

.hiring-card h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
}

.hiring-card > p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 0 0 var(--space-lg);
}

.hiring-card a {
    color: var(--color-accent);
}

.hiring-cta {
    display: flex;
    justify-content: center;
}

.values-section {
    margin-bottom: var(--space-xl);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.value-item {
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.value-icon {
    font-size: 32px;
    display: block;
    margin-bottom: var(--space-sm);
}

.value-item h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.value-item p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

@media (max-width: 600px) {
    .careers-container {
        padding: 100px var(--space-md) var(--space-xl);
    }
    
    .founder-section {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   CONTACT PAGE
   ============================================================================= */

.page-contact {
    min-height: 100vh;
    position: relative;
}

.contact-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #0a0a12 0%, #12141c 100%);
}

.contact-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.contact-container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 120px var(--space-xl) var(--space-2xl);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.contact-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: var(--space-md) 0;
}

.contact-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin: 0;
}

.contact-main {
    margin-bottom: var(--space-xl);
}

.contact-card {
    background: rgba(25, 28, 35, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
}

.contact-card.primary {
    text-align: center;
    padding: var(--space-2xl);
}

.contact-card.primary .contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card.primary .contact-icon img {
    width: 40px;
    height: 40px;
}

.contact-card.primary h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
}

.contact-card.primary p {
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-icon.small {
    width: 48px;
    height: 48px;
    background: rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.contact-icon.small img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.contact-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.contact-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md);
    line-height: 1.6;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 0.8;
}

.email-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.response-note {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(128, 144, 160, 0.05);
    border-radius: var(--radius-lg);
}

.response-note p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

@media (max-width: 600px) {
    .contact-container {
        padding: 100px var(--space-md) var(--space-xl);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   PRESS KIT PAGE
   ============================================================================= */

.page-press {
    min-height: 100vh;
    position: relative;
}

.press-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #0a0a12 0%, #12141c 100%);
}

.press-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.press-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 120px var(--space-xl) var(--space-2xl);
}

.press-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.press-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: var(--space-md) 0;
}

.press-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin: 0;
}

.press-section {
    margin-bottom: var(--space-2xl);
}

.press-section h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(128, 144, 160, 0.15);
}

.section-note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: calc(var(--space-lg) * -1) 0 var(--space-lg) 0;
    margin-top: -8px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.fact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.fact-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fact-value {
    font-size: var(--text-base);
    color: var(--color-text-primary);
}

.description-card {
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.description-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.description-card h3:not(:first-child) {
    margin-top: var(--space-lg);
}

.description-text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 0;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.asset-card {
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.asset-preview {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.asset-preview.dark {
    background: #0a0a12;
}

.asset-preview.light {
    background: #f0f0f0;
}

.asset-preview img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.asset-info {
    padding: var(--space-md);
    border-top: 1px solid rgba(128, 144, 160, 0.1);
}

.asset-info h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.asset-info p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-sm);
}

.asset-downloads {
    display: flex;
    gap: var(--space-xs);
}

.download-btn {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(128, 144, 160, 0.1);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.download-btn:hover {
    background: rgba(128, 144, 160, 0.2);
    color: var(--color-text-primary);
}

.download-all {
    text-align: center;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.color-swatch {
    text-align: center;
}

.swatch {
    width: 100%;
    height: 60px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(128, 144, 160, 0.2);
}

.color-name {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}

.color-hex {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.screenshots-placeholder {
    background: rgba(25, 28, 35, 0.6);
    border: 1px dashed rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
}

.screenshots-placeholder p {
    color: var(--color-text-muted);
    margin: 0;
}

.press-contact-card {
    background: rgba(25, 28, 35, 0.6);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
}

.press-contact-card p {
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-md);
}

.contact-email {
    display: inline-block;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    margin-bottom: var(--space-md);
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-social {
    font-size: var(--text-sm);
}

.contact-social a {
    color: var(--color-accent);
    text-decoration: none;
}

.contact-social a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .press-container {
        padding: 100px var(--space-md) var(--space-xl);
    }
    
    .facts-grid,
    .assets-grid {
        grid-template-columns: 1fr;
    }
    
    .colors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   EXPERIENCES PAGE
   ───────────────────────────────────────────────────────────────────────────── */

.page-experiences {
    min-height: 100vh;
    padding-top: 80px;
}

.experiences-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--color-bg-primary);
}

.experiences-bg .bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.experiences-bg .bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.experiences-bg .bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--color-accent);
    top: -200px;
    right: -200px;
}

.experiences-bg .bg-glow-2 {
    width: 400px;
    height: 400px;
    background: #4a5260;
    bottom: -100px;
    left: -100px;
}

/* Hero */
.experiences-hero {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
}

.experiences-hero .hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.experiences-hero .header-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.experiences-hero .header-tag {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    text-transform: uppercase;
}

.experiences-title {
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.experiences-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin: 0;
}

/* Filters */
.experiences-filters {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto var(--space-xl);
    padding: 0 var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
}

.search-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: var(--text-base);
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tag-btn {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

.tag-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

/* Experience Grid */
.experiences-grid {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-2xl);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Experience Card */
a.experience-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.experience-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.experience-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--color-bg-tertiary);
    overflow: hidden;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1d24 0%, #2a2d34 100%);
}

.thumbnail-placeholder img {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.thumbnail-placeholder.large img {
    width: 80px;
    height: 80px;
}

.card-player-count {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(0, 0, 0, 0.8);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: #4ade80;
}

.card-player-count img {
    width: 12px;
    height: 12px;
}

.card-content {
    padding: var(--space-md);
}

.card-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-creator {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-sm);
}

.creator-link {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.creator-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.card-tags {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.card-tag {
    font-size: var(--text-xs);
    padding: 2px 8px;
    background: rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
}

/* Clickable tags - link to gallery search */
.card-tag.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-tag.clickable:hover {
    background: rgba(128, 144, 160, 0.4);
    color: var(--color-text-primary);
}

.modal-tag.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.modal-tag.clickable:hover {
    background: rgba(128, 144, 160, 0.4);
    color: var(--color-text-primary);
}

.card-stats {
    display: flex;
    gap: var(--space-md);
}

.card-stats .stat {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.card-stats .stat img {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    backdrop-filter: blur(4px);
}

/* Experience Modal */
.experience-modal {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.modal-header {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.modal-thumbnail {
    width: 200px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.modal-info {
    flex: 1;
}

.modal-title {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.modal-creator {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md);
}

.modal-stats {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.stat-box {
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
}

.stat-value {
    display: block;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.modal-tag {
    font-size: var(--text-xs);
    padding: 4px 12px;
    background: rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
}

.modal-description {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.modal-description p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.btn-play {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.3);
}

.btn-play img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.btn-favorite {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-favorite:hover {
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
}

.btn-favorite img {
    width: 20px;
    height: 20px;
}

/* Server Sections */
.server-section {
    padding: var(--space-md) var(--space-lg);
}

.server-section:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.server-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
}

.server-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.server-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}

.server-region {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.server-friends {
    font-size: var(--text-xs);
    color: var(--color-accent);
}

.server-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.server-capacity {
    font-size: var(--text-sm);
    font-weight: 600;
}

.server-capacity.available {
    color: #4ade80;
}

.server-capacity.busy {
    color: #fbbf24;
}

.server-capacity.full {
    color: #f43f5e;
}

.server-ping {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.btn-join {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-join:hover {
    background: var(--color-accent-hover);
}

/* Experience Detail Page */
.page-experience-detail {
    min-height: 100vh;
    padding-top: 80px;
}

.experience-detail-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.detail-header {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.detail-thumbnail {
    width: 300px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.detail-creator {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
}

.detail-stats {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Detail Tabs Section */
.detail-tabs-section {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.detail-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
}

.detail-tab {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-tab:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.detail-tab.active {
    color: var(--color-accent);
    background: rgba(128, 144, 160, 0.1);
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: -1px;
}

.detail-tab-content {
    padding: var(--space-xl);
}

.tab-about p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

.tab-links .links-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.tab-links .social-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tab-links .social-link:hover {
    border-color: var(--color-accent);
    transform: translateX(4px);
}

.tab-links .social-link img {
    width: 24px;
    height: 24px;
}

.tab-links .social-link.twitter:hover {
    border-color: #1da1f2;
}

.tab-links .social-link.discord:hover {
    border-color: #5865f2;
}

.no-links {
    color: var(--color-text-muted);
    text-align: center;
    padding: var(--space-lg);
}

.detail-description {
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
}

.detail-description h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
}

.detail-description p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

.detail-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.btn-share {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

.btn-share img {
    width: 18px;
    height: 18px;
}

.detail-servers {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.experience-not-found {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.experience-not-found h1 {
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
}

.experience-not-found p {
    color: var(--color-text-muted);
    margin: 0 0 var(--space-xl);
}

/* Responsive */
@media (max-width: 768px) {
    .experiences-hero {
        padding: var(--space-xl) var(--space-md);
    }
    
    .experiences-title {
        font-size: var(--text-2xl);
    }
    
    .experiences-filters {
        padding: 0 var(--space-md);
    }
    
    .experiences-grid {
        padding: 0 var(--space-md) var(--space-xl);
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .modal-header {
        flex-direction: column;
    }
    
    .modal-thumbnail {
        width: 100%;
    }
    
    .modal-stats {
        flex-wrap: wrap;
    }
    
    .detail-header {
        flex-direction: column;
    }
    
    .detail-thumbnail {
        width: 100%;
    }
    
    .detail-actions {
        flex-wrap: wrap;
    }
    
    .experience-detail-container {
        padding: var(--space-md);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PLAY PAGE
   ───────────────────────────────────────────────────────────────────────────── */

.page-play {
    min-height: 100vh;
    padding-top: 80px;
}

.play-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--color-bg-primary);
}

.play-bg .bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.play-bg .bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.play-bg .bg-glow-1 {
    width: 500px;
    height: 500px;
    background: #4ade80;
    top: -150px;
    right: -150px;
}

.play-bg .bg-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    bottom: -100px;
    left: -100px;
}

.play-container {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}

/* Launching State */
.play-status {
    padding: var(--space-2xl);
}

.play-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--color-border);
    border-top-color: #4ade80;
    border-radius: 50%;
    margin: 0 auto var(--space-xl);
    animation: spin 1s linear infinite;
}

.play-status h1 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.play-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md);
}

.play-id {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    background: var(--color-bg-secondary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Not Installed State */
.play-not-installed {
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.play-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.1);
    border-radius: var(--radius-full);
}

.play-icon img {
    width: 40px;
    height: 40px;
}

.play-not-installed h1 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.play-not-installed .play-subtitle {
    margin-bottom: var(--space-xl);
}

.play-actions {
    margin-bottom: var(--space-xl);
}

.btn-download-player {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-lg);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.3);
}

.btn-download-player img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.play-alternative {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-lg);
}

.play-alternative p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-sm);
}

.btn-retry {
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-retry:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

.play-info {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.play-info h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--space-md);
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.platform-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.platform-link:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

.platform-link img {
    width: 16px;
    height: 16px;
}

/* Play Modal (on experience page) */
.play-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.play-modal {
    position: relative;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.play-modal-content {
    padding: var(--space-xl);
    text-align: center;
}

.play-modal-content h2 {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.play-modal-content .play-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.1);
    border-radius: var(--radius-full);
}

.play-modal-content .play-icon img {
    width: 32px;
    height: 32px;
}

.play-modal-content .play-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-xl);
}

.play-modal-content .play-actions {
    margin-bottom: var(--space-lg);
}

.play-modal-content .play-alternative {
    padding: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.play-modal-content .play-info {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

/* Error State */
.play-error {
    padding: var(--space-2xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.play-error h1 {
    font-size: var(--text-xl);
    color: #f43f5e;
    margin: 0 0 var(--space-md);
}

.play-error p {
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
}

@media (max-width: 600px) {
    .play-container {
        padding: var(--space-xl) var(--space-md);
    }
    
    .btn-download-player {
        width: 100%;
        justify-content: center;
    }
    
    .platform-links {
        flex-direction: column;
    }
    
    .platform-link {
        justify-content: center;
    }
}

/* =============================================================================
   DASHBOARD PAGE (Industrial Design)
   ============================================================================= */

.page-dashboard-industrial {
    min-height: 100vh;
    position: relative;
}

.page-dashboard-industrial .footer-industrial {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.dashboard-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #0a0a12 0%, #12141c 50%, #0a0a12 100%);
}

.dashboard-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.dashboard-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.dashboard-glow.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 120, 180, 0.3) 0%, transparent 70%);
    top: 10%;
    left: 20%;
}

.dashboard-glow.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(80, 100, 160, 0.2) 0%, transparent 70%);
    top: 40%;
    right: 10%;
}

.dashboard-hero {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 140px var(--space-xl) var(--space-2xl);
}

.dashboard-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin: 0;
}

.dashboard-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-2xl);
}

/* Stats Banner */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(128, 144, 160, 0.05);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: rgba(128, 144, 160, 0.08);
    border-color: rgba(128, 144, 160, 0.2);
}

/* Bliss Gold styling - official currency color */
.stat-card.bliss-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(218, 165, 32, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.bliss-gold-text {
    color: var(--color-bliss-gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Nav Bliss display with gold */
.nav-bliss {
    color: var(--color-bliss-gold);
}

.nav-bliss .bliss-icon {
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.nav-bliss .bliss-amount {
    color: var(--color-bliss-gold);
    font-weight: 600;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
}

.stat-card .stat-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.stat-card .stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: var(--space-2xl);
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.action-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(128, 144, 160, 0.05);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-card:hover {
    background: rgba(128, 144, 160, 0.1);
    border-color: rgba(128, 144, 160, 0.2);
    transform: translateY(-2px);
}

.action-card .action-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.action-card .action-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.action-card .action-content {
    flex: 1;
}

.action-card .action-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.action-card .action-content p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.action-card .action-arrow {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
}

.action-card:hover .action-arrow {
    transform: translateX(4px);
    color: var(--color-text-primary);
}

/* Recent Projects Card */
.recent-projects-card {
    background: rgba(128, 144, 160, 0.05);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.recent-projects-card .empty-state {
    text-align: center;
    padding: var(--space-xl);
}

.recent-projects-card .empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.recent-projects-card .empty-state h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.recent-projects-card .empty-state p {
    font-size: var(--text-md);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
}

/* Getting Started Grid */
.getting-started-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.step-card {
    padding: var(--space-lg);
    background: rgba(128, 144, 160, 0.05);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    text-align: center;
}

.step-card .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(128, 144, 160, 0.2) 0%, rgba(128, 144, 160, 0.1) 100%);
    border-radius: 50%;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.step-card h4 {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.step-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .getting-started-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .getting-started-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   PROFILE PAGE (Industrial Design)
   ============================================================================= */

.page-profile-industrial {
    min-height: 100vh;
    position: relative;
}

.page-profile-industrial .footer-industrial {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.profile-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #0a0a12 0%, #12141c 50%, #0a0a12 100%);
}

.profile-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.profile-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.profile-glow.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 120, 180, 0.15) 0%, transparent 70%);
    top: 15%;
    right: 20%;
}

.profile-glow.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(80, 100, 160, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 10%;
}

/* Profile Header */
.page-profile-industrial {
    overflow: hidden;
}

.profile-header-industrial {
    position: relative;
    z-index: 1;
    padding-top: 0;
}

.profile-banner {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(60, 70, 90, 0.5) 0%, rgba(30, 40, 60, 0.5) 100%);
}

.profile-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    gap: var(--space-xl);
    margin-top: -80px;
}

/* Avatar */
.avatar-container {
    position: relative;
    flex-shrink: 0;
}

.avatar-frame {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(128, 144, 160, 0.2) 0%, rgba(60, 70, 90, 0.3) 100%);
    border: 4px solid rgba(128, 144, 160, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.avatar-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: filter 0.2s ease;
}

.avatar-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.avatar-hover-overlay span {
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    padding: var(--space-sm);
}

.avatar-frame:hover .avatar-hover-overlay {
    opacity: 1;
}

.avatar-frame:hover .avatar-img {
    filter: blur(2px);
}

.customize-avatar-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(40, 50, 60, 0.9);
    border: 2px solid rgba(128, 144, 160, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.customize-avatar-btn:hover {
    background: rgba(60, 70, 90, 0.95);
    transform: scale(1.1);
}

.customize-avatar-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

/* Profile Info */
.profile-info {
    flex: 1;
    padding-top: 90px;
}

.profile-name-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.name-with-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.profile-info .display-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.linked-accounts-icons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.linked-accounts-icons .linked-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(128, 144, 160, 0.15);
    border: 1px solid rgba(128, 144, 160, 0.2);
    transition: all 0.2s ease;
}

.linked-accounts-icons .linked-icon:hover {
    background: rgba(128, 144, 160, 0.25);
    transform: scale(1.1);
}

.linked-accounts-icons .linked-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(70%) sepia(10%) saturate(300%) hue-rotate(180deg);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
}

.verified-badge img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.profile-info .username {
    font-size: var(--text-md);
    color: var(--color-text-muted);
}

.profile-info .bio {
    font-size: var(--text-md);
    color: var(--color-text-secondary);
    margin: var(--space-md) 0;
    max-width: 600px;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.profile-meta .join-date {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.profile-meta .join-date img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

/* Profile Container */
.profile-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

/* Stats Row */
.profile-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.profile-stats {
    display: flex;
    gap: var(--space-lg);
}

.profile-stats .stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: rgba(128, 144, 160, 0.05);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    min-width: 100px;
}

.profile-stats .stat-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.profile-stats .stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: var(--space-md);
}

.btn-follow {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-follow.following {
    background: rgba(128, 144, 160, 0.2);
    color: var(--color-text-primary);
}

.btn-follow img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.btn-follow.following img {
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.btn-secondary-steel {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(128, 144, 160, 0.1);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-steel:hover {
    background: rgba(128, 144, 160, 0.2);
}

.btn-secondary-steel img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 144, 160, 0.1);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(128, 144, 160, 0.2);
}

.btn-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

/* Profile Section */
.profile-section {
    margin-bottom: var(--space-2xl);
}

/* Badges Grid */
.badges-grid {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.badge-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(128, 144, 160, 0.05);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
    cursor: default;
    transition: all 0.2s ease;
}

.badge-card:hover {
    background: rgba(128, 144, 160, 0.1);
}

.badge-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-radius: 50%;
}

.badge-icon-wrapper img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(76%) sepia(50%) saturate(500%) hue-rotate(10deg);
}

.badge-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
    margin-bottom: var(--space-xl);
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-tab:hover {
    color: var(--color-text-primary);
}

.profile-tab.active {
    color: var(--color-text-primary);
    border-bottom-color: var(--color-text-primary);
}

.profile-tab img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.profile-tab.active img {
    opacity: 1;
}

/* Tab Content */
.profile-tab-content {
    min-height: 300px;
}

/* ── Avatar Customizer ── */
.avatar-customizer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding: var(--space-lg) 0;
}

@media (max-width: 768px) {
    .avatar-customizer {
        grid-template-columns: 1fr;
    }
}

.avatar-preview-section {
    position: sticky;
    top: 80px;
    align-self: start;
}

.avatar-viewport {
    aspect-ratio: 3 / 4;
    background: rgba(20, 22, 30, 0.8);
    border: 1px solid rgba(128, 144, 160, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-3d-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    opacity: 0.3;
}

.avatar-placeholder-icon {
    width: 96px;
    height: 96px;
    filter: brightness(0) invert(0.7);
}

.avatar-placeholder-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.avatar-rotate-hint {
    position: absolute;
    bottom: 12px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    opacity: 0.5;
}

.avatar-controls-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.avatar-section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.avatar-category {
    background: rgba(128, 144, 160, 0.06);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.avatar-category-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--space-md) 0;
}

.avatar-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.avatar-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.avatar-option label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 500;
}

.avatar-select {
    font-size: var(--text-sm) !important;
    padding: 6px 10px !important;
}

.avatar-slider {
    width: 100%;
    height: 6px;
    appearance: none;
    background: rgba(128, 144, 160, 0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.avatar-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.color-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.swatch:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.swatch.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.avatar-save-btn {
    width: 100%;
    margin-top: var(--space-md);
}

.profile-tab-content .empty-state {
    text-align: center;
    padding: var(--space-2xl);
}

.profile-tab-content .empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.profile-tab-content .empty-state h3 {
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.profile-tab-content .empty-state p {
    color: var(--color-text-muted);
    margin: 0;
}

/* Experiences Grid */
.profile-tab-content .experiences-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.profile-experience-card {
    display: block;
    background: rgba(128, 144, 160, 0.05);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-experience-card:hover {
    background: rgba(128, 144, 160, 0.1);
    transform: translateY(-4px);
}

.profile-experience-card .experience-thumbnail {
    height: 120px;
    background: rgba(128, 144, 160, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-experience-card .thumbnail-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.profile-experience-card .experience-info {
    padding: var(--space-md);
}

.profile-experience-card .experience-name {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.profile-experience-card .play-count {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.profile-experience-card .play-count img {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

/* Friends Grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.friend-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(128, 144, 160, 0.05);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.friend-card:hover {
    background: rgba(128, 144, 160, 0.1);
}

.friend-avatar {
    position: relative;
    width: 48px;
    height: 48px;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #12141c;
}

.status-dot.status-online {
    background: #22c55e;
}

.status-dot.status-ingame {
    background: #3b82f6;
}

.status-dot.status-offline {
    background: #6b7280;
}

.friend-info {
    display: flex;
    flex-direction: column;
}

.friend-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.friend-status {
    font-size: var(--text-sm);
}

.friend-status.status-online {
    color: #22c55e;
}

.friend-status.status-ingame {
    color: #3b82f6;
}

.friend-status.status-offline {
    color: #6b7280;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.inventory-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(128, 144, 160, 0.05);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
}

.inventory-item .item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
}

.inventory-item .item-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.inventory-item .item-info {
    display: flex;
    flex-direction: column;
}

.inventory-item .item-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.inventory-item .item-rarity {
    font-size: var(--text-sm);
    text-transform: capitalize;
}

.inventory-item.rarity-legendary .item-rarity {
    color: #fbbf24;
}

.inventory-item.rarity-epic .item-rarity {
    color: #a855f7;
}

.inventory-item.rarity-rare .item-rarity {
    color: #3b82f6;
}

.inventory-item.rarity-common .item-rarity {
    color: #6b7280;
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-info {
        padding-top: var(--space-lg);
    }
    
    .profile-name-row {
        justify-content: center;
    }
    
    .profile-info .bio {
        margin-left: auto;
        margin-right: auto;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-stats-row {
        flex-direction: column;
    }
    
    .profile-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .profile-tab-content .experiences-grid,
    .friends-grid,
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-tabs {
        overflow-x: auto;
    }
    
    .profile-tab-content .experiences-grid,
    .friends-grid,
    .inventory-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   SETTINGS PAGE (Roblox-style)
   ============================================================================= */

.page-settings-roblox {
    min-height: 100vh;
    position: relative;
}

.page-settings-roblox .footer-industrial {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.settings-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #0a0a12 0%, #12141c 50%, #0a0a12 100%);
}

.settings-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Settings Layout */
.settings-layout {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 60px);
    padding-top: 60px;
}

/* Sidebar */
.settings-sidebar {
    background: rgba(15, 17, 25, 0.95);
    border-right: 1px solid rgba(128, 144, 160, 0.1);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
    margin-bottom: var(--space-lg);
}

.sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(128, 144, 160, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-avatar img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
}

.sidebar-username {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text-primary);
}

.sidebar-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
}

.settings-nav-item:hover {
    background: rgba(128, 144, 160, 0.1);
    color: var(--color-text-primary);
}

.settings-nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.settings-nav-item img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.settings-nav-item:hover img,
.settings-nav-item.active img {
    opacity: 1;
}

.settings-nav-item.active img {
    filter: brightness(0) saturate(100%) invert(50%) sepia(80%) saturate(500%) hue-rotate(190deg);
}

.settings-nav-item.logout {
    color: #ef4444;
    margin-top: auto;
}

.settings-nav-item.logout img {
    filter: brightness(0) saturate(100%) invert(50%) sepia(50%) saturate(500%) hue-rotate(330deg);
}

.sidebar-footer {
    border-top: 1px solid rgba(128, 144, 160, 0.1);
    padding-top: var(--space-lg);
}

/* Main Content */
.settings-content {
    padding: var(--space-2xl);
    max-width: 800px;
}

.settings-panel {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
}

.panel-description {
    font-size: var(--text-md);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-xl);
}

/* Settings Groups */
.settings-group {
    background: rgba(128, 144, 160, 0.03);
    border: 1px solid rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.group-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--space-lg);
}

/* Setting Rows */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(128, 144, 160, 0.05);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.setting-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.setting-value {
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--color-text-primary);
}

.setting-value.status-disabled {
    color: var(--color-text-muted);
}

.btn-edit {
    padding: var(--space-xs) var(--space-md);
    background: rgba(128, 144, 160, 0.1);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-edit:hover:not(:disabled) {
    background: rgba(128, 144, 160, 0.2);
    color: var(--color-text-primary);
}

.btn-edit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Social Account Row */
.social-account-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
}

.social-icon.steam {
    background: rgba(0, 0, 0, 0.4);
}

.social-icon.discord {
    background: rgba(88, 101, 242, 0.2);
}

.social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.social-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.social-name {
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--color-text-primary);
}

.social-status {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.connected-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
}

.connected-badge img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(65%) sepia(50%) saturate(500%) hue-rotate(80deg);
}

.btn-connect {
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-connect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Toggle Rows */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(128, 144, 160, 0.05);
}

.toggle-row:last-child {
    border-bottom: none;
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-label {
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--color-text-primary);
}

.toggle-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.toggle-switch {
    width: 48px;
    height: 28px;
    background: rgba(128, 144, 160, 0.2);
    border: none;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-switch.active {
    background: #3b82f6;
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-knob {
    left: 23px;
}

/* Add Password Section */
.add-password-section {
    padding: var(--space-md) 0;
}

.info-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
}

.form-grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-field label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-field input {
    padding: var(--space-sm) var(--space-md);
    background: rgba(128, 144, 160, 0.1);
    border: 1px solid rgba(128, 144, 160, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: var(--text-md);
    transition: all 0.15s ease;
}

.form-field input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(128, 144, 160, 0.15);
}

.btn-primary {
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Session Item */
.session-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
}

.session-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 144, 160, 0.1);
    border-radius: var(--radius-md);
}

.session-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

.session-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.session-device {
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--color-text-primary);
}

.session-details {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.current-badge {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    color: #22c55e;
}

/* Bliss Balance Card */
.bliss-balance-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(128, 144, 160, 0.1) 0%, rgba(60, 70, 90, 0.1) 100%);
    border-radius: var(--radius-lg);
}

.balance-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 144, 160, 0.15);
    border-radius: 50%;
}

.balance-icon img {
    width: 32px;
    height: 32px;
}

.balance-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.balance-amount {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.balance-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Empty State */
.empty-state-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
    color: var(--color-text-muted);
}

.empty-state-small img {
    width: 32px;
    height: 32px;
    opacity: 0.4;
    filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(500%) hue-rotate(180deg);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.alert img {
    width: 20px;
    height: 20px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.alert-success img {
    filter: brightness(0) saturate(100%) invert(65%) sepia(50%) saturate(500%) hue-rotate(80deg);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-error img {
    filter: brightness(0) saturate(100%) invert(50%) sepia(50%) saturate(500%) hue-rotate(330deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
    
    .settings-sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(128, 144, 160, 0.1);
    }
    
    .settings-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .settings-nav-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .sidebar-footer {
        display: none;
    }
}

/* Notification Permission Card */
.notification-permission-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
}

.permission-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.permission-icon {
    width: 40px;
    height: 40px;
    padding: var(--space-sm);
    background: rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    filter: brightness(0) saturate(100%) invert(50%) sepia(80%) saturate(500%) hue-rotate(190deg);
}

.permission-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.permission-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text-primary);
}

.permission-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.permission-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
}

.permission-status.granted {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.permission-status.granted img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(65%) sepia(50%) saturate(500%) hue-rotate(80deg);
}

.permission-status.denied {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.permission-status.denied img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(50%) sepia(50%) saturate(500%) hue-rotate(330deg);
}

.btn-enable-notifications {
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-enable-notifications:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-enable-notifications:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================================================
   DOCUMENTATION PAGES
   ============================================================================= */

.page-docs {
    min-height: 100vh;
    padding-top: 80px;
    background: #0a0a12;
}

.docs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

/* Docs Header */
.docs-header {
    padding: var(--space-2xl) 0;
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(128, 144, 160, 0.15);
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.docs-breadcrumb a {
    color: var(--color-accent);
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    text-decoration: underline;
}

.docs-header h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm);
    letter-spacing: -0.02em;
}

.docs-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin: 0;
}

/* Docs Layout - Sidebar + Content */
.docs-layout {
    display: flex;
    gap: var(--space-2xl);
    align-items: flex-start;
    position: relative;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 80px;
    align-self: flex-start;
    flex-shrink: 0;
    width: 240px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.docs-sidebar::-webkit-scrollbar {
    width: 4px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(128, 144, 160, 0.3);
    border-radius: 2px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 144, 160, 0.5);
}

.docs-sidebar h3 {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.docs-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-sidebar li {
    margin-bottom: var(--space-xs);
}

.docs-sidebar a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.docs-sidebar a:hover {
    background: rgba(128, 144, 160, 0.1);
    color: var(--color-text-primary);
}

.docs-sidebar a.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-accent);
}

/* Main Content */
.docs-content {
    flex: 1;
    min-width: 0;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Hero Section */
.docs-hero {
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.docs-hero .hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.docs-hero h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
}

.docs-hero p {
    font-size: var(--text-md);
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Docs Sections */
.docs-section {
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-lg);
    padding-top: var(--space-md);
}

.docs-section h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: var(--space-xl) 0 var(--space-md);
}

.docs-section h4 {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: var(--space-lg) 0 var(--space-sm);
}

.docs-section p {
    margin: 0 0 var(--space-md);
}

.docs-section ul,
.docs-section ol {
    margin: 0 0 var(--space-lg);
    padding-left: var(--space-xl);
}

.docs-section li {
    margin-bottom: var(--space-sm);
}

/* Info Card */
.info-card {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
    margin-bottom: var(--space-lg);
}

.info-card h3 {
    margin-top: 0 !important;
    margin-bottom: var(--space-sm) !important;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* Comparison Box */
.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.comparison-item {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
}

.comparison-item.highlight {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.comparison-item h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.caption {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
    margin-top: var(--space-sm);
}

/* Code Blocks */
.code-block {
    display: block;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: var(--text-sm);
    color: #e2e8f0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    line-height: 1.6;
}

.code-block.soul {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

/* Code Toggle Component */
.code-toggle-wrapper {
    margin: var(--space-sm) 0;
}

.code-toggle-wrapper .toggle-switch {
    display: inline-flex;
    flex-direction: row;
    gap: 2px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 3px;
    margin-bottom: 8px;
}

.code-toggle-wrapper .code-block {
    margin-top: 0;
}

.toggle-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.toggle-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.toggle-btn.active {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

/* Steps List */
.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.steps-list li {
    position: relative;
    padding-left: var(--space-2xl);
    margin-bottom: var(--space-md);
    counter-increment: step;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-accent);
}

/* Tables */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: var(--text-sm);
}

.docs-table th,
.docs-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.docs-table th {
    font-weight: 600;
    color: var(--color-text-primary);
    background: rgba(25, 28, 35, 0.4);
}

.docs-table td {
    color: var(--color-text-secondary);
}

.docs-table.compact td {
    padding: var(--space-sm) var(--space-md);
}

/* Property List */
.property-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.property-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(128, 144, 160, 0.05);
}

.property-list li:last-child {
    border-bottom: none;
}

/* Behavior Grid */
.behavior-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.behavior-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
}

.behavior-icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-sm);
    filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(500%) hue-rotate(190deg);
}

.inline-icon {
    width: 18px;
    height: 18px;
    margin-right: var(--space-xs);
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(500%) hue-rotate(190deg);
}

.behavior-item strong {
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.behavior-item span:last-child {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Example Comparison */
.example-comparison {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.example {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 3px solid;
}

.example.bad {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.example.better {
    background: rgba(234, 179, 8, 0.1);
    border-color: #eab308;
}

.example.best {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.example .label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
    display: block;
}

.example p {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--text-sm);
}

/* Code Examples */
.code-examples {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

/* Spawn Examples */
.spawn-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.spawn-item {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
}

.spawn-item h4 {
    margin: 0 0 var(--space-md) !important;
    font-size: var(--text-md);
}

.spawn-item .code-block {
    margin: 0;
}

/* Physics Comparison */
.physics-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.physics-item {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
}

.physics-item h4 {
    margin: 0 0 var(--space-xs) !important;
}

.physics-item p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* Animation Grid */
.animation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.animation-item {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
}

.animation-item h4 {
    margin: 0 0 var(--space-md) !important;
}

/* Example Cards */
.example-card {
    padding: var(--space-xl);
    background: rgba(25, 28, 35, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
    margin-bottom: var(--space-lg);
}

.example-card h3 {
    margin: 0 0 var(--space-md) !important;
    font-size: var(--text-lg);
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.scale-note {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm);
    background: rgba(25, 28, 35, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid rgba(128, 144, 160, 0.1);
}

.color-item::before {
    content: '';
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--color);
    margin-bottom: var(--space-xs);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-item span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Tips Section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.tip-card {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
}

.tip-card h4 {
    margin: 0 0 var(--space-sm) !important;
    font-size: var(--text-md);
}

.tip-card p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Next Steps */
.next-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.next-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
    text-decoration: none;
    transition: all 0.15s ease;
}

.next-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.next-icon {
    width: 40px;
    height: 40px;
    padding: var(--space-sm);
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(500%) hue-rotate(190deg);
}

.next-link strong {
    display: block;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.next-link span {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-layout {
        flex-direction: column;
    }
    
    .docs-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        margin-bottom: var(--space-xl);
    }
    
    .comparison-box,
    .physics-comparison,
    .animation-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .next-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-container {
        padding: var(--space-lg);
    }
    
    .docs-header {
        padding: var(--space-xl) 0;
    }
    
    .docs-header h1 {
        font-size: var(--text-2xl);
    }
    
    .behavior-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .spawn-examples {
        grid-template-columns: 1fr;
    }
    
    .color-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =============================================================================
   FLOATING TOC - Documentation Pages
   ============================================================================= */

/* Docs Background */
.docs-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: #0a0a12;
}

.docs-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.docs-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
}

.docs-glow.glow-physics {
    top: 10%;
    right: 10%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* Floating TOC Sidebar */
.docs-toc {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    flex-shrink: 0;
    width: 280px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: var(--space-lg);
    background: rgba(15, 18, 25, 0.95);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(128, 144, 160, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.docs-toc::-webkit-scrollbar {
    width: 4px;
}

.docs-toc::-webkit-scrollbar-track {
    background: transparent;
}

.docs-toc::-webkit-scrollbar-thumb {
    background: rgba(128, 144, 160, 0.3);
    border-radius: 2px;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(128, 144, 160, 0.15);
}

.toc-header h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.toc-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(500%) hue-rotate(190deg);
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.toc-section {
    margin-bottom: var(--space-sm);
}

.toc-section-title {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.toc-section-title:hover {
    background: rgba(128, 144, 160, 0.1);
    color: var(--color-text-primary);
}

.toc-section-title.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-accent);
}

.toc-subsections {
    display: flex;
    flex-direction: column;
    padding-left: var(--space-md);
    margin-top: var(--space-xs);
}

.toc-subsection {
    display: block;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-decoration: none;
    border-left: 2px solid rgba(128, 144, 160, 0.1);
    transition: all 0.15s ease;
}

.toc-subsection:hover {
    color: var(--color-text-secondary);
    border-left-color: rgba(59, 130, 246, 0.5);
}

.toc-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(128, 144, 160, 0.1);
}

.toc-back {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.toc-back:hover {
    color: var(--color-accent);
}

.toc-back img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(500%) hue-rotate(190deg);
}

/* Docs Title Styling */
.docs-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
    letter-spacing: -0.02em;
}

.docs-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-lg);
    max-width: 700px;
}

.docs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.docs-meta .meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.docs-meta .meta-item img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(500%) hue-rotate(190deg);
}

/* Section Title with Number */
.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xl);
    padding-top: var(--space-lg);
}

.section-number {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(59, 130, 246, 0.15);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
}

/* Subsections */
.subsection {
    margin-bottom: var(--space-2xl);
    scroll-margin-top: 100px;
}

.subsection h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
}

.subsection h4 {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: var(--space-lg) 0 var(--space-sm);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.feature-card {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
    text-align: center;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    padding: var(--space-sm);
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
}

.feature-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(500%) hue-rotate(190deg);
}

.feature-card h4 {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

/* Code Block with Header */
.code-block .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.code-block .code-lang {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-block pre {
    margin: 0;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: #e2e8f0;
}

/* Callouts */
.callout {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
}

.callout img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.callout strong {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
}

.callout p {
    margin: 0;
    font-size: var(--text-sm);
}

.callout-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.callout-info img {
    filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(500%) hue-rotate(190deg);
}

.callout-tip {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.callout-tip img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(50%) saturate(500%) hue-rotate(80deg);
}

.callout-new {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.callout-new img {
    filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(500%) hue-rotate(230deg);
}

.callout-advanced {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.callout-advanced img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(50%) saturate(500%) hue-rotate(10deg);
}

/* Equation Card */
.equation-card {
    padding: var(--space-xl);
    background: rgba(25, 28, 35, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
    text-align: center;
    margin: var(--space-lg) 0;
}

.equation {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.equation-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* API Tables */
.api-table {
    margin: var(--space-lg) 0;
    overflow-x: auto;
}

.api-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.api-table th,
.api-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.api-table th {
    font-weight: 600;
    color: var(--color-text-primary);
    background: rgba(25, 28, 35, 0.6);
}

.api-table td {
    color: var(--color-text-secondary);
}

.api-table code {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--text-xs);
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    color: #93c5fd;
}

/* Comparison Table */
.comparison-table {
    margin: var(--space-lg) 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(128, 144, 160, 0.1);
}

.comparison-table th {
    font-weight: 600;
    color: var(--color-text-primary);
    background: rgba(25, 28, 35, 0.6);
}

.comparison-table th code {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--text-xs);
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.stat-card {
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
    text-align: center;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.stat-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.feature-list li {
    position: relative;
    padding: var(--space-sm) 0 var(--space-sm) var(--space-xl);
    border-bottom: 1px solid rgba(128, 144, 160, 0.05);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.feature-list li strong {
    color: var(--color-text-primary);
}

/* Numbered List */
.numbered-list {
    counter-reset: item;
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.numbered-list li {
    position: relative;
    padding: var(--space-md) 0 var(--space-md) var(--space-2xl);
    counter-increment: item;
    border-bottom: 1px solid rgba(128, 144, 160, 0.05);
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: var(--space-md);
    width: 24px;
    height: 24px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-accent);
}

.numbered-list li strong {
    color: var(--color-text-primary);
}

/* Docs Navigation Footer */
.docs-nav-footer {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(128, 144, 160, 0.1);
}

.nav-prev,
.nav-next {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(25, 28, 35, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(128, 144, 160, 0.1);
    text-decoration: none;
    transition: all 0.15s ease;
    flex: 1;
    max-width: 300px;
}

.nav-prev:hover,
.nav-next:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.nav-prev img,
.nav-next img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(500%) hue-rotate(190deg);
}

.nav-next {
    flex-direction: row-reverse;
    text-align: right;
    margin-left: auto;
}

.nav-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    display: block;
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Responsive TOC */
@media (max-width: 1200px) {
    .docs-toc {
        width: 240px;
    }
}

@media (max-width: 1024px) {
    .docs-toc {
        display: none;
    }
    
    .docs-layout {
        padding: 0 var(--space-lg);
    }
}

/* =============================================================================
   MOBILE NAVIGATION - Hamburger Menu & Drawer
   ============================================================================= */

/* Mobile/Desktop visibility utilities */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Hamburger Button */
.hamburger-btn {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    z-index: 1002;
}

.hamburger-btn:hover {
    background: rgba(128, 144, 160, 0.1);
}

.hamburger-btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation to X */
.hamburger-line.open.line-1 {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-line.open.line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-line.open.line-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Backdrop */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.mobile-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background: var(--color-bg-secondary);
    border-left: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-drawer.open {
    transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.drawer-logo {
    display: flex;
    align-items: center;
}

.drawer-logo img {
    height: 28px;
    width: auto;
}

.drawer-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.drawer-close:hover {
    background: rgba(128, 144, 160, 0.1);
    color: var(--color-text-primary);
}

.drawer-close svg {
    width: 24px;
    height: 24px;
}

/* Drawer Navigation */
.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: var(--space-md) 0;
    flex-shrink: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 52px; /* Touch-friendly */
}

.mobile-nav-link:hover {
    background: rgba(128, 144, 160, 0.1);
    color: var(--color-text-primary);
}

.mobile-nav-link.active {
    background: rgba(70, 130, 180, 0.15);
    color: var(--color-accent);
    border-left: 3px solid var(--color-accent);
}

.mobile-nav-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Drawer Divider */
.drawer-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-sm) var(--space-lg);
}

/* Drawer User Section */
.drawer-user-section {
    padding: var(--space-md) var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(128, 144, 160, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-bg-tertiary);
    flex-shrink: 0;
}

.drawer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawer-user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.drawer-username {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: var(--text-base);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-bliss {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.drawer-bliss img {
    width: 16px;
    height: 16px;
}

/* Drawer User Navigation */
.drawer-user-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-user-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.drawer-user-link:hover {
    background: rgba(128, 144, 160, 0.1);
    color: var(--color-text-primary);
}

.drawer-user-link.logout {
    color: #e57373;
}

.drawer-user-link.logout:hover {
    background: rgba(229, 115, 115, 0.1);
    color: #ef5350;
}

.drawer-user-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Drawer Auth Buttons (when not logged in) */
.drawer-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 48px;
}

.drawer-btn.primary {
    background: linear-gradient(135deg, #4682B4 0%, #3a6d96 100%);
    color: white;
}

.drawer-btn.primary:hover {
    background: linear-gradient(135deg, #5a9bc9 0%, #4682B4 100%);
    transform: translateY(-1px);
}

.drawer-btn.secondary {
    background: rgba(128, 144, 160, 0.1);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.drawer-btn.secondary:hover {
    background: rgba(128, 144, 160, 0.15);
    border-color: var(--color-text-muted);
}

/* Drawer Footer */
.drawer-footer {
    padding: var(--space-md) var(--space-lg);
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--color-border);
    margin-top: auto;
    flex-shrink: 0;
}

.drawer-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, #707880 0%, #505860 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all 0.2s ease;
    min-height: 48px;
}

.drawer-download-btn:hover {
    background: linear-gradient(135deg, #808890 0%, #606870 100%);
    transform: translateY(-1px);
}

.drawer-download-btn svg {
    width: 20px;
    height: 20px;
}

/* Nav Right wrapper for desktop */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: var(--space-md);
}

/* =============================================================================
   MOBILE RESPONSIVE - Page Layouts
   ============================================================================= */

@media (max-width: 768px) {
    /* Central Nav adjustments */
    .central-nav {
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav-logo-svg {
        height: 24px;
    }
    
    .nav-logo-gear {
        width: 28px;
        height: 28px;
    }
    
    /* Hero sections */
    .epic-hero {
        padding: var(--space-lg);
        padding-top: 80px;
        min-height: auto;
    }
    
    .logo-svg {
        max-width: 280px;
    }
    
    .hero-headline {
        font-size: var(--text-2xl);
    }
    
    .hero-subheadline {
        font-size: var(--text-base);
    }
    
    /* Gallery grid */
    .experiences-grid-industrial {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .featured-experiences-grid {
        grid-template-columns: 1fr;
    }
    
    /* Marketplace grid */
    .marketplace-grid {
        grid-template-columns: 1fr;
    }
    
    /* Projects grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Community stats */
    .community-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    /* Search boxes */
    .search-box {
        flex-direction: column;
    }
    
    .search-box.large {
        flex-direction: column;
    }
    
    .search-input-industrial {
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Filter sections */
    .filter-bar,
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    /* Cards */
    .experience-card-industrial,
    .marketplace-item-card,
    .project-card {
        min-height: auto;
    }
    
    /* Buttons */
    .btn-epic {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    /* Section headers */
    .section-header-industrial h2 {
        font-size: var(--text-xl);
    }
    
    /* Leaderboard */
    .leaderboard-table {
        font-size: var(--text-sm);
    }
    
    .table-row {
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Power cards */
    .power-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .power-card.featured {
        grid-column: span 1;
    }
    
    /* Showcase */
    .showcase-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 120px);
    }
    
    .showcase-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* Comparison table */
    .comparison-table {
        font-size: var(--text-xs);
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: var(--space-xs) var(--space-sm);
    }
    
    /* Hide decorative elements */
    .hero-visual,
    .decorative-grid,
    .floating-element {
        display: none;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .central-nav {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .nav-logo-svg {
        height: 20px;
    }
    
    .nav-logo-gear {
        width: 24px;
        height: 24px;
    }
    
    .mobile-drawer {
        width: 100%;
        max-width: 100%;
    }
    
    .epic-hero {
        padding: var(--space-md);
        padding-top: 70px;
    }
    
    .logo-svg {
        max-width: 220px;
    }
    
    .hero-headline {
        font-size: var(--text-xl);
    }
    
    .section-header-industrial h2 {
        font-size: var(--text-lg);
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    
    /* Smaller touch targets for very small screens */
    .drawer-btn,
    .drawer-download-btn {
        min-height: 44px;
        padding: var(--space-sm) var(--space-md);
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-drawer {
        width: 50vw;
        max-width: 300px;
    }
    
    .epic-hero {
        padding-top: 70px;
        min-height: auto;
    }
}

/* Safe area insets for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .mobile-drawer {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .central-nav {
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .mobile-drawer,
    .mobile-backdrop,
    .hamburger-line,
    .btn-epic,
    .experience-card-industrial,
    .marketplace-item-card,
    .project-card,
    .power-card,
    .showcase-item,
    .nav-user-dropdown,
    .dropdown-item,
    .central-nav-link {
        transition: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =============================================================================
   SPRINT 2: TOUCH-FRIENDLY UI
   ============================================================================= */

/* Global touch target minimum - 44x44px per Apple HIG */
@media (max-width: 768px) {
    /* All interactive elements get minimum touch size */
    button,
    a,
    input[type="button"],
    input[type="submit"],
    .btn,
    .btn-epic,
    .btn-secondary,
    .btn-primary {
        min-height: 44px;
    }
    
    /* Form inputs - 16px font prevents iOS zoom */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
        min-height: 48px;
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Search inputs */
    .search-input,
    .search-input-industrial {
        font-size: 16px !important;
        min-height: 48px;
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }
    
    /* Buttons */
    .search-btn,
    .filter-btn,
    .btn-filter {
        min-height: 48px;
        padding: var(--space-sm) var(--space-lg);
    }
    
    /* Tab buttons */
    .tab-btn,
    .filter-tab,
    .category-tab {
        min-height: 44px;
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Card touch targets */
    .experience-card-industrial,
    .marketplace-item-card,
    .project-card,
    .user-card {
        /* Ensure cards have good tap area */
        padding: var(--space-md);
    }
    
    /* Card action buttons */
    .card-action,
    .card-btn,
    .play-btn,
    .favorite-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Dropdown and select */
    .dropdown-trigger,
    .select-trigger,
    .sort-select {
        min-height: 44px;
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Links in lists */
    .dropdown-item,
    .menu-item,
    .nav-item {
        min-height: 44px;
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Checkbox and radio - larger touch area */
    input[type="checkbox"],
    input[type="radio"] {
        width: 24px;
        height: 24px;
        margin: var(--space-xs);
    }
    
    /* Toggle switches */
    .toggle,
    .switch {
        min-width: 52px;
        min-height: 32px;
    }
}

/* Card spacing improvements */
@media (max-width: 768px) {
    /* Experience cards */
    .experiences-grid-industrial {
        gap: var(--space-lg);
        padding: 0 var(--space-md);
    }
    
    .experience-card-industrial {
        border-radius: var(--radius-lg);
    }
    
    .experience-card-industrial .card-thumbnail {
        height: 180px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    
    .experience-card-industrial .card-content {
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .experience-card-industrial .card-title {
        font-size: var(--text-lg);
    }
    
    .experience-card-industrial .card-meta {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    /* Featured cards */
    .featured-card,
    .featured-experience-card {
        border-radius: var(--radius-lg);
    }
    
    .featured-card .card-thumbnail {
        height: 200px;
    }
    
    /* Marketplace cards */
    .marketplace-grid {
        gap: var(--space-lg);
        padding: 0 var(--space-md);
    }
    
    .marketplace-item-card {
        border-radius: var(--radius-lg);
        padding: var(--space-md);
    }
    
    .marketplace-item-card .item-thumbnail {
        height: 160px;
        border-radius: var(--radius-md);
    }
    
    /* Project cards */
    .projects-grid {
        gap: var(--space-lg);
        padding: 0 var(--space-md);
    }
    
    .project-card {
        border-radius: var(--radius-lg);
        padding: var(--space-md);
    }
    
    .project-card .project-thumbnail {
        height: 140px;
        border-radius: var(--radius-md);
    }
    
    /* User cards */
    .user-card,
    .results-grid .user-card {
        padding: var(--space-md);
        gap: var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .user-avatar {
        width: 48px;
        height: 48px;
    }
    
    /* Leaderboard rows */
    .table-row,
    .leaderboard-row {
        min-height: 56px;
        padding: var(--space-md);
    }
    
    .player-avatar {
        width: 40px;
        height: 40px;
    }
}

/* Improved spacing for sections */
@media (max-width: 768px) {
    /* Section padding */
    section {
        padding: var(--space-xl) var(--space-md);
    }
    
    /* Hero sections */
    .experiences-hero,
    .gallery-hero,
    .community-hero,
    .marketplace-hero,
    .projects-hero {
        padding: var(--space-xl) var(--space-md);
        padding-top: 80px;
    }
    
    /* Section headers */
    .section-header,
    .section-header-industrial {
        margin-bottom: var(--space-lg);
        gap: var(--space-sm);
    }
    
    .section-header h2,
    .section-header-industrial h2 {
        font-size: var(--text-xl);
    }
    
    .section-header p,
    .section-header-industrial p {
        font-size: var(--text-sm);
    }
    
    /* Filter sections */
    .filter-section,
    .filter-bar {
        gap: var(--space-md);
        padding: var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    /* Stats sections */
    .stats-section,
    .community-stats {
        padding: var(--space-lg) var(--space-md);
    }
    
    .stat-item {
        padding: var(--space-md);
    }
    
    .stat-number {
        font-size: var(--text-2xl);
    }
    
    .stat-label {
        font-size: var(--text-xs);
    }
}

/* =============================================================================
   SPRINT 3: LAYOUT OPTIMIZATION
   ============================================================================= */

/* Sticky search bar */
@media (max-width: 768px) {
    .search-section,
    .gallery-search,
    .filter-sticky {
        position: sticky;
        top: 56px; /* Below nav */
        z-index: 100;
        background: var(--color-bg-primary);
        padding: var(--space-md);
        margin: 0 calc(-1 * var(--space-md));
        border-bottom: 1px solid var(--color-border);
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box.large {
        gap: var(--space-sm);
    }
    
    .search-hint {
        display: none; /* Hide hint on mobile to save space */
    }
}

/* Collapsible filter sections */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group label {
        font-size: var(--text-sm);
        margin-bottom: var(--space-xs);
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
    }
    
    /* Category pills - horizontal scroll */
    .category-tabs,
    .filter-tabs,
    .tab-group {
        display: flex;
        overflow-x: auto;
        gap: var(--space-sm);
        padding-bottom: var(--space-sm);
        margin: 0 calc(-1 * var(--space-md));
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-tabs::-webkit-scrollbar,
    .filter-tabs::-webkit-scrollbar,
    .tab-group::-webkit-scrollbar {
        display: none;
    }
    
    .category-tab,
    .filter-tab,
    .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Simplified hero on mobile */
@media (max-width: 768px) {
    .epic-hero {
        text-align: center;
        padding: var(--space-lg) var(--space-md);
        padding-top: 80px;
        min-height: auto;
        gap: var(--space-lg);
    }
    
    .hero-logo {
        margin-bottom: var(--space-md);
    }
    
    .logo-svg {
        max-width: 240px;
        margin: 0 auto;
    }
    
    .hero-headline {
        font-size: var(--text-2xl);
        line-height: 1.2;
    }
    
    .hero-subheadline {
        font-size: var(--text-base);
        max-width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }
    
    .hero-stat {
        padding: var(--space-sm) 0;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
    }
    
    .hero-cta .btn-epic {
        width: 100%;
    }
    
    .hero-platforms {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .platform-icons {
        justify-content: center;
    }
    
    /* Hide decorative elements */
    .hero-visual,
    .hero-decoration,
    .hero-particles,
    .floating-shapes {
        display: none;
    }
}

/* Footer accordion on mobile */
@media (max-width: 768px) {
    .footer-main {
        padding: var(--space-xl) var(--space-md);
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: var(--space-xl);
    }
    
    .footer-brand .logo-svg {
        max-width: 160px;
        margin: 0 auto var(--space-md);
    }
    
    .footer-links-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
        text-align: left;
    }
    
    .footer-column {
        margin-bottom: 0;
    }
    
    .footer-column h4 {
        font-size: var(--text-sm);
        margin-bottom: var(--space-sm);
    }
    
    .footer-column a {
        font-size: var(--text-sm);
        padding: var(--space-xs) 0;
        display: block;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-lg) var(--space-md);
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* =============================================================================
   SPRINT 4: PERFORMANCE & POLISH
   ============================================================================= */

/* Lazy loading placeholder */
.lazy-image {
    background: var(--color-bg-tertiary);
    background-image: linear-gradient(
        90deg,
        var(--color-bg-tertiary) 0%,
        var(--color-bg-secondary) 50%,
        var(--color-bg-tertiary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Loading states */
.skeleton {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 0.75em;
}

.skeleton-card {
    height: 200px;
    border-radius: var(--radius-lg);
}

/* Empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
    color: var(--color-text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    font-size: var(--text-sm);
    max-width: 300px;
}

/* Error states */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
    color: #e57373;
}

.error-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
}

.error-state .retry-btn {
    margin-top: var(--space-md);
}

/* Pull to refresh indicator (CSS only, JS handles logic) */
.pull-indicator {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-full);
    padding: var(--space-sm);
    box-shadow: var(--shadow-md);
    z-index: 99;
    transition: transform 0.2s ease;
}

.pull-indicator.visible {
    transform: translateX(-50%) translateY(var(--space-md));
}

.pull-indicator svg {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-epic,
    .drawer-btn,
    .mobile-nav-link,
    .central-nav-link {
        border: 2px solid currentColor;
    }
    
    .experience-card-industrial,
    .marketplace-item-card,
    .project-card {
        border: 1px solid var(--color-text-primary);
    }
}

/* Dark mode already default, but ensure consistency */
@media (prefers-color-scheme: light) {
    /* Future: light mode overrides if needed */
}

/* Print styles */
@media print {
    .central-nav,
    .mobile-drawer,
    .mobile-backdrop,
    .hamburger-btn,
    .footer {
        display: none !important;
    }
    
    .page {
        padding-top: 0;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* =============================================================================
   AI TRAINING PORTAL PAGE
   ============================================================================= */

.page-ai {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
}

.ai-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0a0f14 0%, #0d1117 50%, #101820 100%);
}

.ai-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(128, 144, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 144, 160, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.ai-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.ai-glow.glow-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #8090a0, #a0a8b0);
    top: -200px;
    right: -100px;
}

.ai-glow.glow-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    bottom: -150px;
    left: -100px;
}

.ai-neural-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

/* AI Hero */
.ai-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
}

.ai-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.ai-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

/* ═══════════════════════════════════════════════════════════════════
   AI PAGE — Complete styles for /ai
   ═══════════════════════════════════════════════════════════════════ */
.page-ai-industrial { min-height: 100vh; padding-top: 80px; position: relative; }

/* Hero stats bar */
.ai-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}
.ai-stat { text-align: center; }
.ai-stat .stat-value { font-size: 2rem; font-weight: 700; color: var(--color-text-primary); display: block; }
.ai-stat .stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* AI page API Keys section wrapper */
.page-ai-industrial .api-keys-section {
    max-width: 1200px;
    margin: var(--space-xl) auto;
    padding: var(--space-xl);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
}

/* Tools Grid */
.ai-tools-section { max-width: 1200px; margin: 0 auto; padding: var(--space-2xl) var(--space-lg); }
.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
@media (max-width: 900px) { .ai-tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ai-tools-grid { grid-template-columns: 1fr; } }

.ai-tool-card {
    padding: var(--space-xl);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.ai-tool-card:hover, .ai-tool-card.selected {
    border-color: rgba(80,120,180,0.3);
    background: rgba(80,120,180,0.06);
}
.tool-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.tool-icon { width: 32px; height: 32px; opacity: 0.7; filter: brightness(1.5); }
.tool-title-row { display: flex; align-items: center; gap: var(--space-sm); flex: 1; }
.tool-name { font-size: 1rem; font-weight: 600; color: var(--color-text-primary); }
.tool-status {
    font-size: 0.65rem; font-weight: 600; padding: 2px 8px;
    border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.04em;
}
.status-available { background: rgba(76,175,80,0.15); color: #66bb6a; }
.status-beta { background: rgba(255,183,77,0.15); color: #ffb74d; }
.status-coming { background: rgba(158,158,158,0.15); color: #9e9e9e; }
.tool-description { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: var(--space-md); }
.tool-features { list-style: none; padding: 0; margin: 0; }
.tool-feature { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.8rem; color: var(--color-text-muted); padding: 3px 0; }
.feature-check { color: #5e8fd4; font-weight: 700; font-size: 0.7rem; }

/* Soul Showcase */
.soul-showcase { max-width: 1200px; margin: 0 auto; padding: var(--space-2xl) var(--space-lg); }
.soul-demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
@media (max-width: 768px) { .soul-demo-container { grid-template-columns: 1fr; } }

.soul-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.panel-header {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.75rem; font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase; letter-spacing: 0.05em;
    display: flex; align-items: center; gap: var(--space-sm);
}
.panel-header svg, .panel-header img { width: 14px; height: 14px; opacity: 0.6; }
.soul-input, .soul-output {
    padding: var(--space-lg);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem; line-height: 1.7;
    white-space: pre-wrap; min-height: 180px;
}
.soul-input { color: #7ab0e8; }
.soul-output { color: #a0c4a0; }
.soul-prompt-tabs { display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); }
.prompt-tab {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.8rem; cursor: pointer;
    transition: all 0.15s;
}
.prompt-tab:hover, .prompt-tab.active {
    background: rgba(80,120,180,0.12);
    color: var(--color-text-primary);
    border-color: rgba(80,120,180,0.2);
}

/* How It Works */
.ai-how-it-works { max-width: 1200px; margin: 0 auto; padding: var(--space-2xl) var(--space-lg); }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
@media (max-width: 768px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
.step-card {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
}
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(80,120,180,0.12); color: #5e8fd4;
    font-weight: 700; font-size: 1.1rem; margin-bottom: var(--space-md);
}
.step-title { font-size: 1rem; font-weight: 600; color: var(--color-text-primary); margin-bottom: var(--space-sm); }
.step-desc { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.5; }
.step-arrow { display: none; } /* Hide → arrows between steps */

/* Philosophy */
.ai-philosophy { max-width: 1200px; margin: 0 auto; padding: var(--space-2xl) var(--space-lg); }
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
@media (max-width: 600px) { .philosophy-grid { grid-template-columns: 1fr; } }
.philosophy-card {
    padding: var(--space-xl);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
}
.philosophy-card h3 { font-size: 1rem; font-weight: 600; color: var(--color-text-primary); margin-bottom: var(--space-sm); }
.philosophy-card p { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.6; }

/* CTA */
.ai-cta {
    position: relative;
    padding: var(--space-2xl) var(--space-lg) var(--space-2xl);
}
.cta-container { max-width: 600px; margin: 0 auto; text-align: center; }
.cta-headline { font-size: 1.75rem; font-weight: 700; color: var(--color-text-primary); margin-bottom: var(--space-sm); }
.cta-accent { color: #5e8fd4; }
.cta-subtext { color: var(--color-text-secondary); font-size: 0.9rem; margin-bottom: var(--space-lg); }
.cta-buttons {
    display: flex; gap: var(--space-md);
    justify-content: center; align-items: center;
}
.ai-cta-primary {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #4a7cc9, #5e8fd4);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.ai-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74, 124, 201, 0.3);
}
.ai-cta-secondary {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.ai-cta-secondary:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--color-text-primary);
}
.cta-bg { display: none; }
.cta-grid-overlay { display: none; }
.cta-glow-orb { display: none; }

/* Architecture flow (How It Works) */
.architecture-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: var(--space-md);
    align-items: start;
    margin-top: var(--space-xl);
}
@media (max-width: 768px) {
    .architecture-flow { grid-template-columns: 1fr; }
    .flow-arrow { display: none; }
}
.flow-step {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
}
.flow-step h4 { font-size: 1rem; font-weight: 600; color: var(--color-text-primary); margin-bottom: var(--space-sm); }
.flow-step p { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.5; }
.flow-arrow {
    display: flex; align-items: center; justify-content: center;
    color: rgba(80,120,180,0.4); font-size: 1.5rem; padding-top: var(--space-xl);
}

/* Principles grid */
.ai-principles { max-width: 1200px; margin: 0 auto; padding: var(--space-2xl) var(--space-lg); }
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
@media (max-width: 600px) { .principles-grid { grid-template-columns: 1fr; } }
.principle-card {
    padding: var(--space-xl);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
}
.principle-card h3 { font-size: 1rem; font-weight: 600; color: var(--color-text-primary); margin-bottom: var(--space-sm); }
.principle-card p { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.6; }

/* API Keys Modal */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    width: 440px; max-width: 90vw;
    max-height: 80vh; overflow-y: auto;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--color-text-primary); }
.modal-close {
    background: none; border: none; color: var(--color-text-muted);
    cursor: pointer; padding: 4px; border-radius: 4px;
}
.modal-close:hover { color: var(--color-text-primary); background: rgba(255,255,255,0.06); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: var(--space-xl); }
.modal-body .form-group { margin-bottom: var(--space-lg); }
.modal-body .form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--color-text-primary); margin-bottom: var(--space-sm);
}
.modal-body .form-group input[type="text"] {
    width: 100%; padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.9rem;
}
.modal-body .form-group input[type="text"]:focus {
    outline: none;
    border-color: rgba(80,120,180,0.4);
}
.key-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}
.type-option {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: var(--space-md);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    cursor: pointer; transition: all 0.15s;
    color: var(--color-text-secondary);
}
.type-option:hover { border-color: rgba(80,120,180,0.25); background: rgba(80,120,180,0.06); }
.type-option.selected { border-color: #5e8fd4; background: rgba(80,120,180,0.1); }
.type-option svg { width: 24px; height: 24px; opacity: 0.6; }
.type-option.selected svg { opacity: 1; color: #5e8fd4; }
.type-option span { font-size: 0.8rem; font-weight: 600; color: var(--color-text-primary); }
.type-option small { font-size: 0.7rem; color: var(--color-text-muted); text-align: center; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.modal-footer .btn-cancel {
    padding: 8px 20px; background: transparent;
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md);
    color: var(--color-text-secondary); cursor: pointer; font-size: 0.85rem;
}
.modal-footer .btn-cancel:hover { border-color: rgba(255,255,255,0.2); color: var(--color-text-primary); }
.modal-footer .btn-create {
    padding: 8px 20px;
    background: linear-gradient(135deg, #4a7cc9, #5e8fd4);
    border: none; border-radius: var(--radius-md);
    color: white; cursor: pointer; font-size: 0.85rem; font-weight: 500;
}
.modal-footer .btn-create:hover { box-shadow: 0 4px 12px rgba(74,124,201,0.3); }
.modal-footer .btn-create:disabled { opacity: 0.5; cursor: not-allowed; }

/* Key created success state */
.key-created-success {
    padding: var(--space-xl); text-align: center;
}
.key-created-success svg { width: 40px; height: 40px; color: #66bb6a; margin-bottom: var(--space-md); }
.key-created-success p { color: var(--color-text-secondary); margin-bottom: var(--space-md); }
.key-display {
    display: flex; align-items: center; gap: var(--space-sm);
    background: rgba(0,0,0,0.3); padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md); margin-bottom: var(--space-lg);
}
.key-display code {
    flex: 1; font-size: 0.8rem; color: #7ab0e8;
    font-family: 'JetBrains Mono', monospace; word-break: break-all;
}
.copy-btn {
    background: none; border: none; color: var(--color-text-muted);
    cursor: pointer; padding: 4px;
}
.copy-btn svg { width: 16px; height: 16px; }
.btn-done {
    padding: 8px 24px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md);
    color: var(--color-text-primary); cursor: pointer;
}

/* API Keys section */
.api-keys-section { max-width: 1200px; margin: var(--space-xl) auto; padding: 0 var(--space-lg); }
.api-keys-section .section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: var(--space-lg);
}
.api-keys-section .header-content { display: flex; align-items: center; gap: var(--space-md); }
.api-keys-section .header-content svg, .api-keys-section .section-icon { width: 24px; height: 24px; color: var(--color-text-muted); }
.api-keys-section .header-content h2 { font-size: 1.25rem; font-weight: 600; }
.api-keys-section .header-content p { font-size: 0.85rem; color: var(--color-text-secondary); }
.btn-create-key {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: 8px 16px;
    background: rgba(80,120,180,0.12); border: 1px solid rgba(80,120,180,0.2);
    border-radius: var(--radius-md); color: #5e8fd4;
    font-size: 0.85rem; font-weight: 500; cursor: pointer;
}
.btn-create-key:hover { background: rgba(80,120,180,0.2); }
.btn-create-key svg { width: 14px; height: 14px; }
.keys-empty {
    text-align: center; padding: var(--space-2xl);
    color: var(--color-text-muted);
}
.keys-empty svg { width: 40px; height: 40px; opacity: 0.3; margin-bottom: var(--space-md); }
.keys-empty p { font-size: 0.9rem; }
.keys-loading { text-align: center; padding: var(--space-xl); color: var(--color-text-muted); }

/* Section header (AI page scoped) */
.section-title-epic { font-size: 2rem; font-weight: 700; color: var(--color-text-primary); margin-bottom: var(--space-sm); }

/* AI Tabs */
.ai-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    gap: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.tab-btn svg {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    color: var(--color-text-primary);
}

.tab-btn.active {
    color: var(--color-text-primary);
    border-bottom-color: var(--color-accent);
}

/* AI Content */
.ai-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

/* Keys Section */
.keys-section {
    animation: fadeIn 0.3s ease;
}

.api-keys-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    text-align: left;
}

.header-left h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.api-keys-section .section-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.keys-empty {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-text-muted);
}

.keys-empty svg {
    width: 48px;
    height: 48px;
    opacity: 0.2;
    margin-bottom: var(--space-md);
}

.keys-empty p {
    font-size: var(--text-sm);
    margin: 0;
}

.btn-create-key {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, #8090a0, #a0a8b0);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-create-key svg {
    width: 18px;
    height: 18px;
}

.btn-create-key:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* New Key Banner */
.new-key-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.banner-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    color: #3b82f6;
}

.banner-icon svg {
    width: 24px;
    height: 24px;
}

.banner-content {
    flex: 1;
}

.banner-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.banner-content p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.key-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}

.key-display code {
    flex: 1;
    font-size: 0.875rem;
    color: var(--color-text-primary);
    word-break: break-all;
}

.copy-btn {
    padding: var(--space-xs);
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.copy-btn:hover {
    color: var(--color-text-primary);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.banner-close {
    padding: var(--space-xs);
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.banner-close svg {
    width: 20px;
    height: 20px;
}

/* Keys Table */
.keys-table {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 1.5fr 1fr 80px;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 1.5fr 1fr 80px;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    transition: background 0.2s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: var(--color-bg-tertiary);
}

.table-row.revoked {
    opacity: 0.5;
}

.key-name {
    font-weight: 500;
    color: var(--color-text-primary);
    display: block;
    margin-bottom: var(--space-xs);
}

.key-status {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.key-status.active {
    background: rgba(63, 185, 80, 0.15);
    color: var(--color-success);
}

.key-status.revoked {
    background: rgba(248, 81, 73, 0.15);
    color: var(--color-danger);
}

.key-prefix {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    background: var(--color-bg-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.permission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.permission-tag {
    padding: 2px 6px;
    font-size: 0.7rem;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
}

.usage-bar {
    height: 4px;
    background: var(--color-bg-primary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #8090a0, #a0a8b0);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.usage-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.col-last-used {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.col-actions {
    position: relative;
}

.action-btn {
    padding: var(--space-sm);
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.action-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 100;
    padding: var(--space-xs);
}

.action-menu .menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.action-menu .menu-item:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

.action-menu .menu-item.danger:hover {
    background: rgba(248, 81, 73, 0.15);
    color: var(--color-danger);
}

.action-menu .menu-item svg {
    width: 16px;
    height: 16px;
}

.action-menu .menu-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-xs) 0;
}

/* Team Keys Info */
.team-keys-info {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-top: var(--space-xl);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.info-content p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.info-link {
    font-size: 0.875rem;
    color: var(--color-accent);
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline;
}

/* SDK Section */
.sdk-section {
    animation: fadeIn 0.3s ease;
}

.sdk-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.benefit-card {
    padding: var(--space-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.benefit-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(128, 144, 160, 0.2), rgba(160, 168, 176, 0.2));
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    color: #a0a8b0;
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.benefit-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Language Tabs */
.lang-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.lang-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-tab:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

.lang-tab.active {
    background: var(--color-bg-tertiary);
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

.lang-icon {
    width: 20px;
    height: 20px;
}

/* Install Block */
.install-block {
    animation: fadeIn 0.3s ease;
}

.install-block h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.code-block {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.code-block code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.code-block.large {
    display: block;
    overflow-x: auto;
}

.code-block.large pre {
    margin: 0;
}

.code-block.large code {
    display: block;
    white-space: pre;
    line-height: 1.6;
    font-size: 0.8rem;
}

/* SDK Downloads */
.sdk-downloads {
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-top: var(--space-2xl);
    text-align: center;
}

.sdk-downloads h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.sdk-downloads > p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.download-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.download-btn:hover {
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

.download-btn img {
    width: 20px;
    height: 20px;
}

/* SDK Docs Link */
.sdk-docs-link {
    margin-top: var(--space-xl);
    text-align: center;
}

.docs-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.docs-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

.docs-btn svg {
    width: 18px;
    height: 18px;
}

/* Usage Section */
.usage-section {
    animation: fadeIn 0.3s ease;
}

.usage-chart {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.chart-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.chart-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.chart-placeholder {
    padding: var(--space-3xl);
    text-align: center;
    color: var(--color-text-secondary);
}

.chart-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.usage-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.detail-card {
    padding: var(--space-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.detail-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
}

.detail-row span:first-child {
    color: var(--color-text-secondary);
}

.detail-row .value {
    font-weight: 500;
    color: var(--color-text-primary);
}

/* Create Key Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.modal-close {
    padding: var(--space-xs);
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.permission-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--color-bg-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.permission-checkbox input {
    accent-color: var(--color-accent);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.btn-cancel {
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text-primary);
}

.btn-create {
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, #8090a0, #a0a8b0);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* AI Training Section (Projects Page) */
.ai-training-section {
    max-width: 1200px;
    margin: var(--space-3xl) auto;
    padding: var(--space-3xl) var(--space-3xl) var(--space-xl);
    background: linear-gradient(135deg, rgba(80, 120, 180, 0.08), rgba(60, 100, 160, 0.04));
    border: 1px solid rgba(80, 120, 180, 0.15);
    border-radius: var(--radius-xl);
}

.ai-section-header-centered {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-top: var(--space-xl);
}

.ai-section-header-centered h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.ai-subtitle {
    font-size: 0.9rem;
    color: #5e8fd4;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-md);
}

.ai-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.ai-description code {
    background: rgba(80, 120, 180, 0.15);
    color: #7ab0e8;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Protocol feature cards grid */
.ai-protocol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .ai-protocol-grid {
        grid-template-columns: 1fr;
    }
}

.ai-protocol-card {
    padding: var(--space-xl);
    background: rgba(80, 120, 180, 0.06);
    border: 1px solid rgba(80, 120, 180, 0.1);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ai-protocol-card:hover {
    border-color: rgba(80, 120, 180, 0.25);
    background: rgba(80, 120, 180, 0.1);
}

.ai-protocol-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 120, 180, 0.12);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.ai-protocol-card-icon svg {
    width: 20px;
    height: 20px;
    color: #5e8fd4;
}

.ai-protocol-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.ai-protocol-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Benchmark table inside protocol card */
.ai-benchmark-table {
    margin-top: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.8rem;
}

.ai-bench-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(80, 120, 180, 0.08);
}

.ai-bench-row:last-child {
    border-bottom: none;
}

.ai-bench-header {
    background: rgba(80, 120, 180, 0.08);
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ai-bench-highlight {
    background: rgba(80, 120, 180, 0.12);
}

.ai-bench-highlight .ai-bench-value {
    color: #7ab0e8;
    font-weight: 600;
}

.ai-bench-label {
    color: var(--color-text-secondary);
}

.ai-bench-value {
    color: var(--color-text-muted);
    text-align: right;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
}

/* Feature list inside protocol cards */
.ai-feature-list {
    margin-top: var(--space-md);
    padding: 0;
    list-style: none;
}

.ai-feature-list li {
    position: relative;
    padding: 4px 0 4px 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.ai-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(80, 120, 180, 0.4);
}

.ai-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, #4a7cc9, #5e8fd4);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ai-portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 124, 201, 0.3);
}

.ai-portal-btn svg {
    width: 18px;
    height: 18px;
}

.ai-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.api-showcase {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.api-showcase h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-primary);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.api-method {
    padding: 2px 8px;
    background: linear-gradient(135deg, #8090a0, #a0a8b0);
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
}

.api-path {
    color: var(--color-text-secondary);
}

.format-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.format-block {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.format-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.format-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.format-badge {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.format-badge.toon {
    background: linear-gradient(135deg, #8090a0, #a0a8b0);
    color: white;
}

.format-badge.json {
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.format-code {
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    white-space: pre;
    overflow-x: auto;
}

.format-stats {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-tertiary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.stat-item strong {
    color: var(--color-text-primary);
}

@media (max-width: 768px) {
    .format-comparison {
        grid-template-columns: 1fr;
    }
}

.ai-portal-btn svg {
    width: 18px;
    height: 18px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
