/* =====================================================================
   ypsilonminus – Dark Avant-Garde Gallery Architecture
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Grotesk:wght@300;400;700&family=JetBrains+Mono:wght@300;400;500&family=Oswald:wght@200;400;700&display=swap');

:root {
    --bg-dark: #0a0b0e;
    --bg-panel: #12141a;
    --bg-card: #161822;
    --text-primary: #f2f3f7;
    --text-muted: #8b909e;
    --text-dim: #525665;
    
    --border-hairline: rgba(255, 255, 255, 0.12);
    --border-active: rgba(255, 255, 255, 0.4);
    
    --accent-fryth: #c93b2b;
    --accent-stiehler: #2b6ec9;
    --accent-bigl: #3aa35c;
    --accent-gold: #c4a77d;
    --status-available: #3aa35c;

    --font-display: 'Oswald', 'Anton', sans-serif;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

/* =====================================================================
   1. Typography Mix (Condensed / Narrow & Monospace)
   ===================================================================== */

h1, h2, h3, .brand-title, .section-title, .hero-headline, .artist-card-name, .artist-title, .artwork-title {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    border-radius: 0px !important; /* STRICTLY NO ROUND BUTTONS */
}

/* =====================================================================
   2. Architectural Buttons (Strictly No Round / Pill Buttons!)
   ===================================================================== */

.btn-architectural {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 12px 24px;
    border-radius: 0px !important; /* Strictly sharp corners */
    border: 1px solid var(--border-hairline);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-architectural:hover, .btn-architectural.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.btn-architectural-transparent {
    background: transparent;
}

.btn-architectural-full {
    width: 100%;
}

.btn-filter-pill {
    padding: 8px 16px;
}

.btn-inquire-lg {
    width: 100%;
    padding: 18px 24px;
    font-size: 13px;
}

/* =====================================================================
   3. Kinetic Hairlines & Counter-Scrolling Grid Rules
   ===================================================================== */

.hairline-h {
    width: 100%;
    height: 1px;
    background: var(--border-hairline);
    position: relative;
    overflow: hidden;
}

.hairline-h::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: counterSweep 8s linear infinite;
}

@keyframes counterSweep {
    0% { left: -40%; }
    100% { left: 140%; }
}

/* =====================================================================
   4. Floating Global Header & Subdomain Switcher
   ===================================================================== */

.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 11, 14, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-hairline);
}

.brand-wrapper {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.brand-logo {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.brand-scope-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    border-left: 1px solid var(--border-hairline);
    padding-left: 10px;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.subdomain-label {
    margin-right: -10px;
}

.subdomain-select {
    background: transparent;
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 0;
    outline: none;
    cursor: pointer;
}

.subdomain-select option {
    background: var(--bg-panel);
    color: var(--text-primary);
}

/* =====================================================================
   5. Hero Section (Atmospheric 3D Space)
   ===================================================================== */

.hero-section {
    position: relative;
    height: 90vh;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 40px;
    background: radial-gradient(circle at 50% 30%, #1c202a 0%, #0a0b0e 75%);
    overflow: hidden;
    margin-top: 60px;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    filter: contrast(1.1) brightness(0.85);
}

.hero-overlay-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-super {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.hero-headline {
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.95;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-headline .light {
    font-weight: 200;
    color: rgba(255, 255, 255, 0.6);
}

.hero-headline .bold {
    font-weight: 700;
    color: #ffffff;
}

.hero-description {
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

/* =====================================================================
   6. Artists Showcase & Cards
   ===================================================================== */

.section-wrapper {
    padding: 80px 40px;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1;
}

.artist-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.artist-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    padding: 32px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-active);
}

.artist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-accent, #ffffff);
    opacity: 0.8;
}

.artist-card-fryth { --card-accent: var(--accent-fryth); }
.artist-card-stiehler { --card-accent: var(--accent-stiehler); }
.artist-card-bigl { --card-accent: var(--accent-bigl); }

.text-accent-fryth { color: var(--accent-fryth); }
.text-accent-stiehler { color: var(--accent-stiehler); }
.text-accent-bigl { color: var(--accent-bigl); }

.hero-backdrop-default {
    background-image: url('/uploads/artists/fryth/visual/paintings/Die Schoepfung - Oel ErdeAscheTaubendreck on canvas - 300x180-Triptychon.jpg');
}

.artist-card-header {
    margin-bottom: 20px;
}

.artist-card-name {
    font-size: 38px;
    margin-bottom: 8px;
}

.artist-pseudonyms {
    color: var(--text-dim);
}

.artist-bio-preview {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.artist-disciplines-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.artist-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-hairline);
    padding-top: 20px;
    margin-top: 20px;
}

/* =====================================================================
   7. Featured Artworks & Grid
   ===================================================================== */

.artworks-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.artworks-masonry-artist {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.artwork-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.artwork-item:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-4px);
}

.artwork-media-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: #000000;
}

.artwork-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-item:hover .artwork-media-container img {
    transform: scale(1.05);
}

.artwork-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #14161f;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
}

.artwork-caption {
    padding: 20px;
}

.artwork-caption-artist {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.artwork-caption-title {
    font-size: 20px;
    margin-bottom: 4px;
}

.artwork-caption-title-sm {
    font-size: 17px;
}

.artwork-caption-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* =====================================================================
   8. Artist Split-Screen Page
   ===================================================================== */

.artist-page-wrapper {
    margin-top: 80px;
}

.artist-split-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.artist-portrait-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    padding: 12px;
    margin-bottom: 24px;
}

.artist-portrait-img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(1.15);
    display: block;
}

.artist-portrait-placeholder {
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #161822;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

.artist-subdomain-meta {
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 12px;
}

.artist-bio-full {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
}

.artist-title {
    font-size: clamp(48px, 7vw, 90px);
    line-height: 0.95;
    margin-bottom: 20px;
}

.artist-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

/* =====================================================================
   9. Artwork Detail Page
   ===================================================================== */

.breadcrumb-nav {
    margin-bottom: 30px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.breadcrumb-active {
    color: #ffffff;
}

.artwork-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.artwork-frame-box {
    background: #000000;
    border: 1px solid var(--border-hairline);
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
    cursor: zoom-in;
}

.artwork-zoom-hint {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(10, 11, 14, 0.88);
    border: 1px solid var(--border-hairline);
    padding: 6px 12px;
    pointer-events: none;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.artwork-frame-box:hover .artwork-zoom-hint {
    border-color: #ffffff;
}

.artwork-frame-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.artwork-text-box {
    margin-top: 40px;
    padding: 40px;
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
}

.artwork-text-content {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-line;
}

.artwork-title-lg {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1;
    margin: 12px 0 24px;
}

.artwork-meta-divider {
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    padding: 24px 0;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.artwork-meta-value-mono {
    font-family: var(--font-mono);
    font-size: 14px;
}

.status-badge-available {
    font-family: var(--font-mono);
    color: var(--status-available);
    font-size: 13px;
}

.related-section {
    margin-top: 50px;
}

.related-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    padding: 12px;
    transition: border-color 0.2s ease;
}

.related-card:hover {
    border-color: var(--border-active);
}

.related-thumb {
    width: 50px;
    height: 50px;
    background: #000;
    flex-shrink: 0;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================================
   10. 3D Gallery View
   ===================================================================== */

.room3d-wrapper {
    margin-top: 60px;
    min-height: 80vh;
}

.room3d-canvas-box {
    background: #000;
    border: 1px solid var(--border-hairline);
    height: 65vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room3d-center-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.room3d-accent-label {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.room3d-heading {
    font-size: 28px;
    margin-bottom: 16px;
}

.room3d-description {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* =====================================================================
   11. Persistent Bottom Waveform Audio Player
   ===================================================================== */

.persistent-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(10, 11, 14, 0.88);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-hairline);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn-play {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-hairline);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0;
}

.player-btn-play:hover {
    background: #ffffff;
    color: #000000;
}

.player-wave-canvas {
    width: 240px;
    height: 32px;
}

.player-track-info {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
}

.player-meta-right {
    display: flex;
    gap: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .global-header {
        padding: 14px 20px;
    }
    .nav-center {
        display: none;
    }
    .section-wrapper, .hero-section {
        padding: 40px 20px;
    }
    .artwork-detail-layout {
        grid-template-columns: 1fr;
    }
    .persistent-player-bar {
        padding: 0 20px;
    }
}

/* =====================================================================
   7. Architectural Custom Cursor
   ===================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: #ffffff;
    pointer-events: none;
    z-index: 99999;
    transform: translate3d(-100px, -100px, 0);
    border-radius: 0; /* Strictly sharp */
}

.cursor-crosshair {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 99998;
    transform: translate3d(-100px, -100px, 0);
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                margin 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.2s ease, 
                background-color 0.2s ease;
    border-radius: 0 !important; /* Strictly sharp architectural crosshair */
}

.cursor-crosshair.cursor-hover {
    width: 44px;
    height: 44px;
    margin-left: -22px;
    margin-top: -22px;
    border-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.04);
}

.cursor-crosshair.cursor-active {
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -16px;
    border-color: var(--accent-fryth);
}

/* =====================================================================
   8. Deep-Zoom Lightbox Overlay
   ===================================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 14, 0.96);
    backdrop-filter: blur(12px);
    z-index: 90000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-hairline);
    background: rgba(18, 20, 26, 0.8);
}

.lightbox-controls {
    display: flex;
    gap: 8px;
}

.btn-lb-zoom {
    padding: 6px 14px;
    font-size: 11px;
}

.lightbox-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.lightbox-viewport img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    border-top: 1px solid var(--border-hairline);
    background: rgba(18, 20, 26, 0.8);
}

/* =====================================================================
   9. Discrete Artwork Inquiry Modal
   ===================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(10px);
    z-index: 95000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-active);
    width: 90%;
    max-width: 580px;
    padding: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-hairline);
}

.modal-close-btn {
    padding: 4px 10px;
    font-size: 13px;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 0 !important; /* Strictly sharp */
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.form-input-readonly {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.form-status {
    color: var(--accent-gold);
}

/* =====================================================================
   10. Three.js 3D Virtual Gallery Room Viewport & HUD
   ===================================================================== */
.gallery3d-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0a0b0e;
}

.gallery3d-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.gallery3d-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery3d-topbar {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    pointer-events: none;
}

.gallery3d-top-left, .gallery3d-top-right {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-gallery-back {
    padding: 8px 16px;
}

.gallery3d-guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 14, 0.75);
    backdrop-filter: blur(8px);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery3d-guide-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.guide-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-active);
    padding: 40px;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.guide-title {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.05em;
    margin: 16px 0 8px;
}

.guide-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-guide-dismiss {
    padding: 12px 28px;
    background: #ffffff;
    color: #0a0b0e;
    font-weight: 700;
}

.btn-guide-dismiss:hover {
    background: var(--text-muted);
}

.gallery3d-artwork-hud {
    position: absolute;
    bottom: 80px;
    left: 40px;
    z-index: 25;
    background: rgba(18, 20, 26, 0.9);
    border: 1px solid var(--border-active);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.gallery3d-artwork-hud.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.hud-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hud-title {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.04em;
    margin: 4px 0 2px;
}

.hud-artist {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
}

.hud-details {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
}

.hud-actions {
    display: flex;
    gap: 12px;
}

/* =====================================================================
   11. 404 Error Screen Styling (Zero Inline Styles)
   ===================================================================== */
.error-404-container {
    padding: 120px 40px;
    font-family: var(--font-mono);
    color: #ffffff;
    background: var(--bg-dark);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.error-404-title {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 0.08em;
}

.error-404-desc {
    margin-top: 16px;
    color: var(--text-muted);
}

.error-404-action {
    margin-top: 28px;
}

.error-404-link {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--border-hairline);
    color: var(--accent-fryth);
    text-transform: uppercase;
}

.error-404-link:hover {
    border-color: #ffffff;
    color: #ffffff;
}

/* =====================================================================
   12. Admin & Curator Dashboard Styles (Zero Inline Styles)
   ===================================================================== */
.admin-body {
    background-color: var(--bg-dark);
    min-height: 100vh;
}

.admin-header {
    background: rgba(18, 20, 26, 0.95);
    border-bottom: 1px solid var(--border-active);
}

.btn-logout {
    padding: 6px 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.admin-main {
    padding-top: 80px;
    min-height: 100vh;
}

.admin-content, .admin-form-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px;
}

.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-active);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header .brand-title {
    font-size: 36px;
    margin: 10px 0;
}

.admin-alert {
    padding: 12px 16px;
    margin-bottom: 24px;
    border-left: 3px solid;
    font-family: var(--font-mono);
    font-size: 12px;
}

.admin-alert-error {
    background: rgba(201, 59, 43, 0.15);
    border-color: var(--accent-fryth);
    color: #ff8577;
}

.admin-alert-success {
    background: rgba(58, 163, 92, 0.15);
    border-color: var(--status-available);
    color: #79e39b;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.admin-stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    padding: 24px;
}

.admin-stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 10px;
    color: #ffffff;
}

.admin-section-block {
    margin-bottom: 60px;
}

.admin-actions-bar {
    display: flex;
    gap: 12px;
}

.admin-table-wrapper {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    overflow-x: auto;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.admin-table th {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-active);
    background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-hairline);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-td-thumb {
    width: 60px;
}

.admin-thumb-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid var(--border-hairline);
    display: block;
}

.admin-td-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-inline-form {
    display: inline;
}

.btn-danger {
    color: var(--accent-fryth);
    border-color: rgba(201, 59, 43, 0.4);
}

.btn-danger:hover {
    background: var(--accent-fryth);
    color: #ffffff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.admin-upload-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-active);
    padding: 24px;
    margin-bottom: 30px;
}

.admin-upload-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0 16px;
}

.admin-autodetect-badge {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-gold);
    display: none;
}

.admin-autodetect-badge.active {
    display: block;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.admin-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.admin-checkbox-label input[type="checkbox"] {
    accent-color: var(--status-available);
    width: 16px;
    height: 16px;
    border-radius: 0;
}

.form-select {
    cursor: pointer;
}

.form-select option, .form-select optgroup {
    background: var(--bg-panel);
    color: var(--text-primary);
}

.admin-back-link {
    color: var(--text-muted);
}

.admin-back-link:hover {
    color: #ffffff;
}


