/* CSS Variables for Core Design System */
:root {
    --bg-base: #050508;
    --bg-surface: rgba(13, 12, 21, 0.75);
    --bg-surface-active: rgba(24, 21, 38, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-glow: rgba(188, 0, 255, 0.35);
    
    /* Brand Palette: Neon Synthwave Cosmic Theme */
    --color-amber: #ff007f;          /* Neon Hot Pink / Magenta */
    --color-amber-glow: rgba(255, 0, 127, 0.5);
    --color-gold: #bc00ff;           /* Neon Purple / Violet */
    --color-gold-glow: rgba(188, 0, 255, 0.4);
    --color-cyan: #00f0ff;           /* Electric Cyan */
    --color-cyan-glow: rgba(0, 240, 255, 0.5);
    --color-text-primary: #f5f4f9;
    --color-text-secondary: #a59dbd; /* Soft Silver-Purple */
    --color-text-muted: #685f80;     /* Muted Violet-Grey */
    
    /* Layout Sizes */
    --nav-width: 260px;
    --header-height: 80px;
}

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(188, 0, 255, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.03) 0%, transparent 70%),
        linear-gradient(to right, rgba(188, 0, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(188, 0, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    color: var(--color-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

h1, h2, h3, h4, .badge, .forge-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* App Container Layout */
.app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Navigation Rail */
.nav-rail {
    width: var(--nav-width);
    background-color: rgba(10, 11, 14, 0.95);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    height: 100%;
    z-index: 10;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.forge-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 85, 0, 0.3);
    box-shadow: 0 8px 24px rgba(255, 85, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.forge-logo:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 85, 0, 0.25);
    border-color: var(--color-amber);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
    flex-grow: 1;
}

.nav-item {
    background: none;
    border: 1px solid transparent;
    color: var(--color-text-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item .nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-text-primary);
}

.nav-item:hover .nav-icon {
    transform: translateX(2px);
}

.nav-item.active {
    background-color: rgba(255, 85, 0, 0.08);
    border-color: rgba(255, 85, 0, 0.2);
    color: var(--color-gold);
    box-shadow: inset 0 0 12px rgba(255, 85, 0, 0.05);
}

.nav-item.active .nav-icon {
    fill: var(--color-amber);
    filter: drop-shadow(0 0 4px var(--color-amber-glow));
}

.sidebar-status {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: var(--color-cyan);
    box-shadow: 0 0 8px var(--color-cyan-glow);
    animation: pulse 2s infinite ease-in-out;
}

.status-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-cyan);
    letter-spacing: 0.05em;
}

/* Main Content Wrapper */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* Header Bar */
.content-header {
    height: var(--header-height);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(9, 10, 13, 0.7);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 5;
}

.header-title-container {
    display: flex;
    flex-direction: column;
}

.header-pre {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: var(--color-amber);
    letter-spacing: 0.15em;
    margin-bottom: 2px;
}

.header-title {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.header-meta {
    font-family: 'Share Tech Mono', monospace;
}

.clock-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
}

.clock-label {
    color: var(--color-text-muted);
}

#live-clock {
    color: var(--color-gold);
}

/* Tab Panels */
.tab-panel {
    display: none;
    padding: 40px;
    flex-grow: 1;
    overflow-y: auto;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 32px;
}

.panel-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.panel-header p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

/* Welcome Banner */
.welcome-banner {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255, 85, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.05) 0%, rgba(9, 10, 13, 0.9) 100%);
    padding: 32px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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: 20px 20px;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.badge {
    display: inline-block;
    background: rgba(255, 85, 0, 0.15);
    border: 1px solid rgba(255, 85, 0, 0.3);
    color: var(--color-gold);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

.welcome-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--color-text-primary);
    line-height: 1.15;
}

.welcome-banner p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

/* Dashboard Grid & Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-card {
    background-color: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.dashboard-card.highlight-glow {
    border-color: var(--border-color-glow);
    box-shadow: 0 4px 24px rgba(255, 85, 0, 0.06);
}

.dashboard-card.highlight-glow:hover {
    border-color: rgba(255, 85, 0, 0.5);
    box-shadow: 0 8px 32px rgba(255, 85, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.card-header h3 {
    font-size: 1.25rem;
    color: var(--color-text-primary);
}

/* Beat Foundry Promo Card */
.promo-body {
    display: flex;
    gap: 24px;
    align-items: center;
}

.visualizer-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinning-disc {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #252830 20%, #101216 70%, #000 100%);
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: spin 6s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
}

.spinning-disc::before {
    content: '';
    position: absolute;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 85, 0, 0.2);
}

.disc-label {
    width: 36px;
    height: 36px;
    background-color: var(--color-gold);
    border-radius: 50%;
    border: 4px solid #000;
}

.wave-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
    position: absolute;
    bottom: 5px;
    width: 100%;
    justify-content: center;
}

.wave-bars span {
    width: 3px;
    background-color: var(--color-amber);
    animation: wave-bounce 1s ease-in-out infinite alternate;
}

.wave-bars span:nth-child(2) { animation-delay: 0.1s; height: 18px; }
.wave-bars span:nth-child(3) { animation-delay: 0.35s; height: 28px; }
.wave-bars span:nth-child(4) { animation-delay: 0.15s; height: 35px; }
.wave-bars span:nth-child(5) { animation-delay: 0.4s; height: 22px; }
.wave-bars span:nth-child(6) { animation-delay: 0.2s; height: 30px; }
.wave-bars span:nth-child(7) { animation-delay: 0.05s; height: 14px; }

.promo-text {
    flex-grow: 1;
}

.promo-text p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Button Component */
.forge-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--color-amber);
    color: var(--color-text-primary);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.forge-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.forge-btn.glow-amber {
    background-color: var(--color-amber);
    border-color: var(--color-amber);
    box-shadow: 0 4px 14px rgba(255, 85, 0, 0.35);
}

.forge-btn.glow-amber:hover {
    background-color: rgba(255, 85, 0, 0.85);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.55);
    transform: translateY(-1px);
}

.forge-btn.full-width {
    width: 100%;
    justify-content: center;
}

/* Creations Stack List */
.stack-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stack-item {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.stack-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.item-title strong {
    color: var(--color-text-primary);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot.gold { background-color: var(--color-gold); box-shadow: 0 0 6px var(--color-gold-glow); }
.dot.cyan { background-color: var(--color-cyan); box-shadow: 0 0 6px var(--color-cyan-glow); }
.dot.gray { background-color: var(--color-text-muted); }

.stack-item p {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* Telemetry Section */
.telemetry-card {
    margin-bottom: 0;
}

.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.telemetry-stat {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.stat-val {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-gold);
}

/* Beat Foundry Music Player */
.player-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-card {
    background-color: rgba(14, 17, 23, 0.9);
    border: 1px solid var(--color-amber-glow);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.player-info {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.player-art {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.disc-icon {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.player-text {
    flex-grow: 1;
}

.now-playing-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: var(--color-amber);
    letter-spacing: 0.1em;
}

.player-text h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 2px 0;
}

.player-text p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.player-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-amber);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 85, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.player-btn:hover {
    transform: scale(1.05);
    background-color: var(--color-gold);
    color: #000;
}

.player-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.progress-bar-wrapper {
    flex-grow: 1;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--color-amber), var(--color-gold));
    border-radius: 3px;
    transition: width 0.1s linear;
}

.player-time {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    min-width: 32px;
}

/* Audio Player Visualizer */
.live-visualizer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 32px;
    width: 100%;
    padding-top: 8px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.live-visualizer.playing {
    opacity: 1;
}

.viz-bar {
    width: calc(100% / 12 - 4px);
    background-color: var(--color-cyan);
    border-radius: 1px 1px 0 0;
    height: 2px;
    transition: height 0.08s ease;
}

.live-visualizer.playing .viz-bar {
    animation: bar-dance 0.5s ease-in-out infinite alternate;
}

.live-visualizer.playing .viz-bar:nth-child(2n) { animation-duration: 0.3s; }
.live-visualizer.playing .viz-bar:nth-child(3n) { animation-duration: 0.6s; }
.live-visualizer.playing .viz-bar:nth-child(4n) { animation-duration: 0.4s; }

/* Beat Lists */
.beat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.beat-row {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.beat-row:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 183, 0, 0.2);
}

.beat-row.active {
    border-color: var(--color-amber-glow);
    background-color: rgba(255, 85, 0, 0.03);
}

.beat-play-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.beat-row.active .beat-play-status {
    color: var(--color-gold);
}

.play-small {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.beat-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.beat-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.beat-specs {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
}

.beat-duration {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.foundry-cta {
    margin-top: 8px;
}

/* Creations Grid */
.creations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.creation-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.creation-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 183, 0, 0.25);
    box-shadow: 0 8px 24px rgba(255, 183, 0, 0.06);
}

.creation-badge {
    align-self: flex-start;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    color: var(--color-gold);
    background-color: rgba(255, 183, 0, 0.08);
    border: 1px solid rgba(255, 183, 0, 0.25);
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.08em;
}

.creation-card h3 {
    font-size: 1.3rem;
    color: #fff;
}

.creation-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    flex-grow: 1;
}

.card-footer-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.card-footer-tags span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

/* System Signals Tab Layout */
.signals-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.signal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.signal-card.span-two {
    grid-column: span 2;
}

.signal-card h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.oscilloscope-container {
    background-color: #050608;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 160px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.oscilloscope-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.oscilloscope-svg {
    width: 100%;
    height: 100%;
}

/* Switches & Inputs */
.control-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.control-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.control-row span {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--color-text-secondary);
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.4);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: var(--color-cyan);
    box-shadow: 0 0 6px var(--color-cyan-glow);
}

/* Diagnostic Progress Bars */
.diag-bar-wrapper {
    margin-bottom: 16px;
}

.diag-bar-wrapper:last-child {
    margin-bottom: 0;
}

.diag-label {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.diag-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.diag-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

/* Contact Tab styles */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-gold);
    letter-spacing: 0.05em;
}

.form-group input, .form-group textarea {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.25s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-amber);
    background-color: rgba(255, 255, 255, 0.05);
}

.social-side h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.social-side p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-icon {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.25s ease;
}

.social-icon:hover {
    color: var(--color-cyan);
    border-color: rgba(0, 240, 255, 0.3);
    background-color: rgba(0, 240, 255, 0.03);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.6; box-shadow: 0 0 6px var(--color-cyan-glow); }
    50% { opacity: 1; box-shadow: 0 0 14px var(--color-cyan-glow); }
    100% { opacity: 0.6; box-shadow: 0 0 6px var(--color-cyan-glow); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wave-bounce {
    from { height: 4px; }
    to { height: 35px; }
}

@keyframes bar-dance {
    0% { height: 2px; }
    100% { height: 28px; }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .dashboard-grid, .signals-grid, .contact-container {
        grid-template-columns: 1fr;
    }
    .signal-card.span-two {
        grid-column: span 1;
    }
    .creations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .telemetry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .nav-rail {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
    }
    .logo-container {
        padding-bottom: 16px;
    }
    .forge-logo {
        width: 80px;
        height: 80px;
    }
    .nav-menu {
        flex-direction: row;
        margin-top: 16px;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .nav-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .content-header {
        padding: 0 20px;
    }
    .tab-panel {
        padding: 20px;
    }
    .welcome-banner h2 {
        font-size: 1.6rem;
    }
    .creations-grid {
        grid-template-columns: 1fr;
    }
    .promo-body {
        flex-direction: column;
    }
}

/* ----------------------------------------------------
   Cinematic Landing Gate Styles
   ---------------------------------------------------- */
.entry-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050508;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(188, 0, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.05) 0%, transparent 80%),
        linear-gradient(to right, rgba(0, 240, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 1.0s ease-in-out;
}

.entry-gate.fade-out {
    transform: translateY(-100vh);
    opacity: 0;
    pointer-events: none;
}

#gate-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gate-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 600px;
}

.gate-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.3em;
    margin-bottom: 16px;
    opacity: 0.8;
    animation: pulse-ambient 4s ease-in-out infinite;
}

.gate-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 24px;
    text-shadow: 
        0 0 10px rgba(188, 0, 255, 0.3),
        0 0 25px rgba(255, 0, 127, 0.15),
        0 0 50px rgba(0, 240, 255, 0.2);
}

.emblem-container {
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    background-color: rgba(6, 7, 10, 0.5);
    box-shadow: 0 0 40px rgba(188, 0, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.emblem-container:hover {
    transform: scale(1.03);
    box-shadow: 
        0 0 50px rgba(188, 0, 255, 0.12),
        0 0 30px rgba(0, 240, 255, 0.08);
}

.emblem-container.strike-vibe {
    animation: strike-vibrate 0.15s linear 3;
}

/* SVG Lines Style & Neon Glow */
.forge-emblem-svg {
    filter: drop-shadow(0 0 12px rgba(188, 0, 255, 0.3));
}

.emblem-circle {
    stroke: var(--color-gold);
    stroke-width: 2.5;
    fill: none;
    opacity: 0.85;
}

.emblem-line, .emblem-poly {
    stroke: var(--color-gold);
    stroke-width: 2;
    fill: none;
    opacity: 0.85;
}

.emblem-dot {
    fill: var(--color-gold);
    stroke: none;
    opacity: 0.85;
}

.emblem-poly {
    fill: var(--color-gold);
}

.emblem-tick {
    stroke: var(--color-gold);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.6;
}

.emblem-eye {
    stroke: var(--color-gold);
    stroke-width: 2.5;
    fill: rgba(188, 0, 255, 0.03);
    filter: drop-shadow(0 0 5px rgba(188, 0, 255, 0.3));
}

.emblem-pupil-outer {
    stroke: var(--color-gold);
    stroke-width: 2;
    fill: #050508;
}

.emblem-pupil-text {
    fill: var(--color-gold);
    stroke: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 26px;
    text-anchor: middle;
    filter: drop-shadow(0 0 3px var(--color-gold-glow));
}

.emblem-ray {
    stroke: var(--color-gold);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.75;
}

.emblem-spark-line {
    stroke: var(--color-amber);
    stroke-width: 1.5;
    fill: none;
    stroke-dasharray: 4 4;
    opacity: 0.55;
    animation: dash-flow 1.5s linear infinite;
}

.emblem-anvil {
    stroke: var(--color-gold);
    stroke-width: 2.5;
    fill: rgba(255, 0, 127, 0.04);
    filter: drop-shadow(0 0 6px rgba(255, 0, 127, 0.2));
}

.emblem-anvil-horn-left, .emblem-anvil-horn-right, .emblem-anvil-base-cut {
    stroke: var(--color-gold);
    stroke-width: 2;
    fill: none;
}

.emblem-spark-center {
    fill: #fff;
    stroke: var(--color-gold);
    stroke-width: 1;
    filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 15px var(--color-gold));
}

/* Flash Glow Overlay on Anvil Hit */
.strike-glow {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, var(--color-gold) 40%, var(--color-amber) 70%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.05s ease, width 0.1s ease, height 0.1s ease;
}

.strike-glow.flash {
    opacity: 1;
    width: 280px;
    height: 280px;
}

.gate-hint {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.2em;
    margin-top: 40px;
    opacity: 0.6;
    animation: pulse-ambient 2s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes pulse-ambient {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.95; }
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -20;
    }
}

}

/* ----------------------------------------------------
   Symphonic & Poetic Landing View Styles
   ---------------------------------------------------- */
.landing-main {
    flex-grow: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 24px 60px 24px;
    display: flex;
    flex-direction: column;
}

.minimal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
}

.mini-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-forge-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 85, 0, 0.3);
}

.mini-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    color: #fff;
}

.beats-link {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-gold);
    text-decoration: none;
    letter-spacing: 0.15em;
    margin-right: 24px;
    opacity: 0.75;
    transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

.beats-link:hover {
    opacity: 1;
    text-shadow: 0 0 8px var(--color-gold-glow);
}

.sys-time-lbl {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    margin-right: 6px;
}

/* Landing Views Base */
.landing-view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.landing-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Poetry Section */
.poetry-section {
    max-width: 760px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.poetry-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: var(--color-gold);
    letter-spacing: 0.25em;
    display: block;
    margin-bottom: 16px;
}

.poetry-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #fff 30%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.poetry-lead {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 16px;
}

.poetry-lead.font-highlight {
    font-weight: 700;
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(255, 183, 0, 0.15);
}

.poetry-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.poetry-body strong {
    color: var(--color-gold);
}

.poetry-body.font-glow {
    color: var(--color-text-primary);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

/* Pathways Card Directory Grid */
.paths-section {
    max-width: 860px;
    margin: 0 auto;
}

.paths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.path-card {
    position: relative;
    background-color: rgba(12, 14, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 36px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.path-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 183, 0, 0.18);
    background-color: rgba(255, 183, 0, 0.015);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.35),
        0 0 50px rgba(255, 183, 0, 0.04),
        0 0 30px rgba(155, 48, 255, 0.03);
}

.card-glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 120%, rgba(155, 48, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.path-card:hover .card-glow-bg {
    opacity: 1;
}

.path-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.35s ease;
}

.path-card:hover .path-icon-container {
    background-color: rgba(255, 85, 0, 0.08);
    border-color: rgba(255, 85, 0, 0.2);
}

.path-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-text-secondary);
    transition: all 0.35s ease;
}

.path-card:hover .path-icon {
    fill: var(--color-gold);
    filter: drop-shadow(0 0 5px var(--color-gold-glow));
}

.path-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.path-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    flex-grow: 1;
}

.path-link-lbl {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.35s ease;
}

.path-card:hover .path-link-lbl {
    color: var(--color-gold);
    border-top-color: rgba(255, 183, 0, 0.15);
}

/* Sub-panel layout views */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 20px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.back-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    background-color: rgba(255, 255, 255, 0.02);
}

.back-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.float-right {
    float: right;
}

.panel-content-body {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.panel-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: var(--color-amber);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 16px;
}

.panel-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.panel-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.story-teaser-card {
    background-color: rgba(155, 48, 255, 0.015);
    border: 1px solid rgba(155, 48, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.story-quote {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-gold);
    text-align: center;
    border-left: none;
    padding-left: 0;
}

.story-text {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    text-align: center;
}

.coming-soon-badge {
    align-self: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    letter-spacing: 0.1em;
    margin-top: 12px;
}

/* Minimalist Video Showcase styles */
.video-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 860px;
    margin: 0 auto;
}

.video-card {
    background-color: rgba(12, 14, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 183, 0, 0.2);
}

.video-aspect-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
}

.video-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-meta {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.video-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    color: var(--color-gold);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 8px;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .poetry-title {
        font-size: 2.5rem;
    }
    .paths-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .video-showcase-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ----------------------------------------------------
   Symphony of the Lost Image Gallery & Lightbox
   ---------------------------------------------------- */
.width-wide {
    max-width: 1000px !important;
}

.symphony-quote {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-style: italic;
    color: var(--color-text-secondary);
    line-height: 1.85;
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px auto;
    padding: 0 30px;
    border-left: 2px solid rgba(255, 183, 0, 0.25);
    border-right: 2px solid rgba(255, 183, 0, 0.25);
    text-shadow: 0 0 15px rgba(255, 183, 0, 0.04);
}

.symphony-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #0b0d11;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(155, 48, 255, 0.25);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.35), 
        0 0 20px rgba(155, 48, 255, 0.1);
}

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

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 6, 8, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(155, 48, 255, 0.05);
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #8a99ad;
    font-size: 42px;
    font-weight: 200;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.lightbox-close:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Responsive adjust for gallery */
@media (max-width: 900px) {
    .symphony-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .symphony-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .symphony-quote {
        font-size: 1rem;
        padding: 0 15px;
    }
}

/* Symphony description & media section additions */
.symphony-desc-wrapper {
    margin: 0 auto 50px auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.symphony-desc {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
    text-align: center;
}

.symphony-media-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.symphony-media-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--color-gold);
    letter-spacing: 0.25em;
    margin-bottom: 30px;
    text-align: center;
}

.symphony-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .symphony-media-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* ----------------------------------------------------
   Prologue: Destiny - Prose Reading Styles
   ---------------------------------------------------- */
.prologue-section {
    margin: 60px auto 60px auto;
    max-width: 780px;
    padding: 50px 40px;
    border: 1px solid rgba(188, 0, 255, 0.08);
    border-radius: 16px;
    background-color: rgba(13, 12, 21, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.prologue-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(188, 0, 255, 0.1);
}

.prologue-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-gold);
    letter-spacing: 0.25em;
    display: block;
    margin-bottom: 16px;
}

.prologue-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(188, 0, 255, 0.2);
}

.prologue-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.prologue-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.prologue-author {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
}

.prologue-chapter {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.prologue-chapter:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.chapter-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-cyan);
    margin-bottom: 24px;
    letter-spacing: 0.03em;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.prose {
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    text-indent: 0;
}

.prose-dialogue {
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    line-height: 1.9;
    color: #e0d8f0;
    margin-bottom: 16px;
    padding-left: 20px;
    border-left: 2px solid rgba(188, 0, 255, 0.2);
}

.prose-thought {
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--color-cyan);
    margin-bottom: 16px;
    padding-left: 20px;
    border-left: 2px solid rgba(0, 240, 255, 0.15);
    opacity: 0.9;
}

@media (max-width: 600px) {
    .prologue-section {
        padding: 30px 20px;
        margin: 40px auto 40px auto;
    }
    .prologue-title {
        font-size: 1.5rem;
    }
    .chapter-heading {
        font-size: 1.15rem;
    }
    .prose, .prose-dialogue, .prose-thought {
        font-size: 0.95rem;
    }
}

/* ----------------------------------------------------
   Symphony Sub-View System
   ---------------------------------------------------- */
.symphony-stage {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.symphony-stage.active {
    display: block;
    opacity: 1;
}

/* Back button positioned in spellbook landing */
.symphony-back-home {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
}

/* ----------------------------------------------------
   Stage 1: Floating Spellbook Landing
   ---------------------------------------------------- */
#symphony-spellbook {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#symphony-spellbook.active {
    display: flex;
}

#spellbook-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.spellbook-scene {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.spellbook-wrapper {
    position: relative;
    perspective: 1200px;
    cursor: pointer;
}

/* 3D Book */
.book-3d {
    position: relative;
    width: 260px;
    height: 360px;
    transform-style: preserve-3d;
    animation: bookFloat 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}
.spellbook-wrapper:hover .book-3d {
    transform: scale(1.03);
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0) rotateY(-8deg) rotateX(3deg); }
    50% { transform: translateY(-18px) rotateY(-8deg) rotateX(3deg); }
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px 12px 12px 4px;
    transform-origin: left center;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.book-front {
    z-index: 3;
    background: linear-gradient(145deg, #1a0a2e, #0d0515);
    border: 2px solid rgba(188, 0, 255, 0.3);
    box-shadow:
        0 0 30px rgba(188, 0, 255, 0.15),
        0 0 60px rgba(188, 0, 255, 0.05),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.book-front.opened {
    transform: rotateY(-160deg);
}

.book-cover-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 30px;
    position: relative;
}

.book-rune-border {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(188, 0, 255, 0.15);
    border-radius: 2px 10px 10px 2px;
    pointer-events: none;
}
.book-rune-border::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 2px 8px 8px 2px;
}

.book-cover-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    color: #e8dff5;
    text-shadow: 0 0 20px rgba(188, 0, 255, 0.4), 0 0 40px rgba(188, 0, 255, 0.15);
    letter-spacing: 0.06em;
    line-height: 1.3;
    margin-bottom: 24px;
}

.book-cover-sigil {
    font-size: 3rem;
    color: rgba(0, 240, 255, 0.6);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    margin-bottom: 16px;
    animation: sigilPulse 3s ease-in-out infinite;
}

@keyframes sigilPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.book-cover-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: rgba(188, 0, 255, 0.5);
    letter-spacing: 0.2em;
}

.book-spine {
    position: absolute;
    left: -6px;
    top: 0;
    width: 12px;
    height: 100%;
    background: linear-gradient(180deg, #1a0a2e, #0d0515);
    transform: rotateY(90deg) translateZ(-6px);
    z-index: 2;
    border-radius: 2px;
}

.book-back {
    z-index: 1;
    background: linear-gradient(145deg, #120822, #0a0410);
    border: 1px solid rgba(188, 0, 255, 0.1);
}

.book-pages {
    position: absolute;
    left: 6px;
    top: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    z-index: 2;
    transform-style: preserve-3d;
}

.book-page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f0e8, #e8e0d4);
    border-radius: 0 8px 8px 0;
    transform-origin: left center;
    box-shadow: -1px 0 3px rgba(0,0,0,0.1);
}
.book-page:nth-child(1) { transform: translateZ(1px); }
.book-page:nth-child(2) { transform: translateZ(2px); }
.book-page:nth-child(3) { transform: translateZ(3px); }

.spellbook-cta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: rgba(188, 0, 255, 0.5);
    letter-spacing: 0.3em;
    animation: ctaPulse 2.5s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Rune burst particles */
.rune-burst-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 10;
    pointer-events: none;
}

.rune-particle {
    position: absolute;
    font-size: 1.2rem;
    pointer-events: none;
    animation: runeBurst 1.8s ease-out forwards;
    text-shadow: 0 0 10px currentColor;
}

@keyframes runeBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--rx), var(--ry)) scale(0.3) rotate(360deg);
    }
}

/* Light flash overlay */
.book-flash {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(188,0,255,0.4) 0%, rgba(0,240,255,0.1) 40%, transparent 70%);
    z-index: 50;
    pointer-events: none;
    animation: flashBurst 0.8s ease-out forwards;
}
@keyframes flashBurst {
    0% { opacity: 0; transform: scale(0.5); }
    20% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(2); }
}

/* ----------------------------------------------------
   Stage 2: Quote Page + Navigation Cards
   ---------------------------------------------------- */
.symphony-quote-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 80px 30px 60px 30px;
    text-align: center;
}

.symphony-pathway-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.symphony-card {
    background: rgba(13, 12, 21, 0.6);
    border: 1px solid rgba(188, 0, 255, 0.1);
    border-radius: 16px;
    padding: 40px 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.symphony-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(188, 0, 255, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.symphony-card:hover {
    border-color: rgba(188, 0, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(188, 0, 255, 0.1);
}
.symphony-card:hover::before {
    opacity: 1;
}

.symphony-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px auto;
}
.symphony-card-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--color-cyan);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

.symphony-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.symphony-card-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.symphony-card-link {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
}
.symphony-card:hover .symphony-card-link {
    color: var(--color-cyan);
}

@media (max-width: 600px) {
    .symphony-pathway-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .symphony-card {
        padding: 30px 20px;
    }
}




