/* CSS Variables for Premium Theme */
:root {
    --bg-dark: #0a0a16;
    --card-bg: rgba(20, 20, 45, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a1a1b5;
    --text-muted: #6b6b7c;
    --accent-glow: #ec4899;
    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

/* Background Ambient Glows */
.glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

.glow-1 {
    background: radial-gradient(circle, #a855f7 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    left: -10%;
}

.glow-2 {
    background: radial-gradient(circle, #3b82f6 0%, rgba(0,0,0,0) 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(5%, 5%);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    padding: 100px 20px 40px; /* clear navbar */
    z-index: 10;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 50px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #f87171;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #ef4444;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 40%, #e0e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Station Grid */
.station-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 50px;
}

.featured-broadcast-section {
    margin-bottom: 36px;
}

.featured-station-grid {
    margin-bottom: 0;
}

.admin-console-container {
    width: 100%;
}

.admin-toolbar,
.admin-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(18px);
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.admin-toolbar h3,
.admin-panel h3 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 1.05rem;
}

.admin-toolbar p {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

#admin-station-select {
    min-width: 260px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    outline: none;
    font: inherit;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.admin-panel {
    padding: 18px;
    min-height: 220px;
}

.admin-panel-wide {
    min-height: 280px;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-refresh-btn,
.admin-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-action-btn.retry { color: #60a5fa; }
.admin-action-btn.promote { color: #facc15; }
.admin-action-btn.cancel { color: #fb7185; }

.admin-list-state {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.admin-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-row:last-child {
    border-bottom: 0;
}

.admin-row-title {
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
}

.admin-row-meta {
    color: var(--text-secondary);
    font-size: 0.76rem;
    margin-top: 3px;
    line-height: 1.35;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.admin-status-pill.ok,
.admin-status-pill.played,
.admin-status-pill.fulfilled {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
}

.admin-status-pill.error,
.admin-status-pill.failed,
.admin-status-pill.stale {
    color: #fb7185;
    background: rgba(244, 63, 94, 0.12);
}

.admin-status-pill.pending {
    color: #facc15;
    background: rgba(250, 204, 21, 0.12);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

/* Dynamic Themes for Cards */
.station-card.theme-1 {
    --accent-color: #a855f7; /* Purple */
    --accent-glow-color: rgba(168, 85, 247, 0.15);
    --badge-color: #c084fc;
}
.station-card.theme-2 {
    --accent-color: #3b82f6; /* Blue */
    --accent-glow-color: rgba(59, 130, 246, 0.15);
    --badge-color: #60a5fa;
}
.station-card.theme-3 {
    --accent-color: #f97316; /* Orange */
    --accent-glow-color: rgba(249, 115, 22, 0.15);
    --badge-color: #fdba74;
}
.station-card.theme-4 {
    --accent-color: #10b981; /* Green */
    --accent-glow-color: rgba(16, 185, 129, 0.15);
    --badge-color: #6ee7b7;
}
.station-card.theme-5 {
    --accent-color: #ec4899; /* Pink */
    --accent-glow-color: rgba(236, 72, 153, 0.15);
    --badge-color: #f472b6;
}
.station-card.theme-6 {
    --accent-color: #facc15; /* Neon Yellow/Gold */
    --accent-glow-color: rgba(250, 204, 21, 0.15);
    --badge-color: #fef08a;
}

/* Station Card (Horizontal Layout) */
.station-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
}

.station-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--accent-glow-color), inset 0 0 20px rgba(255,255,255,0.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.art-section {
    flex-shrink: 0;
}

.card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    top: -50px;
    pointer-events: none;
    z-index: 1;
    background-color: var(--accent-color);
    left: -50px;
}

/* Left Section: Cover Art & Vinyl disk */
.art-section {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.art-container {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.vinyl-record {
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    width: 85px;
    height: 85px;
    background: radial-gradient(circle, #0d0d0d 30%, #222 31%, #111 40%, #333 55%, #111 60%, #0d0d0d 70%);
    border-radius: 50%;
    z-index: 8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), left 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.station-card.playing .vinyl-record {
    left: 24px;
    animation: rotateVinyl 3s linear infinite;
}

.station-card.playing .album-art {
    animation: rotateVinyl 12s linear infinite;
}

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

/* Center Section: Info & Metadata */
.info-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    flex: 1.5;
    min-width: 0;
    z-index: 5;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    position: relative;
    z-index: 5;
    background: var(--accent-glow-color);
    border: 1px solid var(--accent-color);
    color: var(--badge-color);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.listeners-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.icon-user {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.now-playing-container {
    text-align: left;
    width: 100%;
    overflow: hidden;
    min-width: 0;
}

.track-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.track-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Micro-visualizer waves */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

.station-card.playing .visualizer {
    opacity: 1;
}

.bar {
    width: 2px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.station-card.playing .bar:nth-child(1) { animation: bounceBar 0.9s ease-in-out infinite alternate; }
.station-card.playing .bar:nth-child(2) { animation: bounceBar 1.2s ease-in-out infinite alternate 0.1s; }
.station-card.playing .bar:nth-child(3) { animation: bounceBar 0.8s ease-in-out infinite alternate 0.2s; }
.station-card.playing .bar:nth-child(4) { animation: bounceBar 1.1s ease-in-out infinite alternate 0.3s; }
.station-card.playing .bar:nth-child(5) { animation: bounceBar 0.9s ease-in-out infinite alternate 0.1s; }
.station-card.playing .bar:nth-child(6) { animation: bounceBar 1.3s ease-in-out infinite alternate 0.4s; }
.station-card.playing .bar:nth-child(7) { animation: bounceBar 0.7s ease-in-out infinite alternate 0.2s; }
.station-card.playing .bar:nth-child(8) { animation: bounceBar 1.0s ease-in-out infinite alternate 0.3s; }

@keyframes bounceBar {
    0% { height: 3px; }
    100% { height: 15px; }
}

/* Controls Section: Playback & Volume */
.controls-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    width: 140px;
    z-index: 5;
}

.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8ff 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.2s ease, 
                background-color 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.08);
}

.play-btn:active {
    transform: scale(0.95);
}

.station-card.playing .play-btn {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 0 15px var(--accent-color);
}

.play-btn svg {
    width: 18px;
    height: 18px;
}

.play-btn svg.hidden {
    display: none;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: var(--text-secondary);
}

.icon-volume {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    transition: background 0.1s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    transition: transform 0.1s ease;
}

/* Right Section: Requests & Details Link */
.request-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    width: 220px;
    z-index: 5;
}

.request-container {
    display: flex;
    width: 100%;
    gap: 8px;
    margin-bottom: 0;
}

.request-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 0.8rem;
    outline: none;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
}

.request-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.request-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, transform 0.1s;
}

.request-btn:hover {
    background: var(--accent-color);
}

.request-btn:active {
    transform: scale(0.95);
}

.request-btn svg {
    width: 14px;
    height: 14px;
}

.request-status {
    font-size: 0.7rem;
    min-height: 14px;
    margin-bottom: 0;
    z-index: 5;
    transition: color 0.3s;
    text-align: right;
    width: 100%;
}

.request-status.loading {
    color: var(--text-secondary);
}

.request-status.success {
    color: #10b981;
}

.request-status.error {
    color: #f43f5e;
}

.details-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.details-link:hover {
    color: var(--badge-color);
}

.icon-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.details-link:hover .icon-arrow {
    transform: translateX(3px);
}

/* Offline state styling */
.station-card.offline {
    opacity: 0.65;
}

.station-card.offline .badge {
    background: rgba(107, 114, 128, 0.15);
    border-color: rgba(107, 114, 128, 0.3);
    color: var(--text-muted);
}

.station-card.offline .play-btn {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* Vertical Card Layout for grid to prevent smushing */
#page-home .station-grid .station-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    gap: 16px;
}

#page-home .station-grid .station-card .art-section {
    order: 1;
    margin-bottom: 5px;
}

#page-home .station-grid .station-card .info-section {
    order: 2;
    width: 100%;
    align-items: center;
    text-align: center;
}

#page-home .station-grid .station-card .now-playing-container {
    text-align: center;
}

#page-home .station-grid .station-card .controls-section {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin: 5px 0;
}

#page-home .station-grid .station-card .volume-container {
    justify-content: center;
    max-width: 180px;
    margin: 0 auto;
}

#page-home .station-grid .station-card .request-section {
    order: 4;
    width: 100%;
    max-width: 100%;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

#page-home .station-grid .station-card .request-status {
    text-align: center;
}

#page-home .station-grid .station-card .meta-row {
    justify-content: center;
}

#page-home .station-grid .station-card .visualizer {
    justify-content: center;
    margin: 5px auto 0;
}

/* Loading state and spinner */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    gap: 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border-top-color: var(--accent-glow);
    animation: spin 1s linear infinite;
}

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

/* Footer Section */
footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 18px;
    border-radius: 100px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.admin-link svg {
    width: 14px;
    height: 14px;
}

/* Responsive adjustments are consolidated under the layout upgrades at the bottom of the file */

/* ==========================================================================
   Enterprise Professional Layout Upgrades
   ========================================================================== */

/* Navbar Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 10, 22, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s;
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    animation: rotateLogo 20s linear infinite;
}

@keyframes rotateLogo {
    to { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 100px;
    transition: background 0.2s, border-color 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    margin-top: 100px;
    text-align: center;
    padding: 60px 20px 40px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 18px 28px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 170px;
    text-align: center;
    transition: border-color var(--transition-speed), transform var(--transition-speed);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
    font-weight: 600;
}

/* ==========================================================================
   Enterprise Layout Grid & Sidebar
   ========================================================================== */

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 80px; /* Space for persistent bottom player */
    margin-top: 40px;
}

.broadcast-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header {
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.sidebar-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Live Request Tracker inside Sidebar */
.recent-requests-widget h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for Request List */
.requests-list::-webkit-scrollbar {
    width: 4px;
}
.requests-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.requests-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.request-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s;
}

.request-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.req-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.req-station-tag {
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.03em;
}

/* Map station theme classes for request tags */
.req-station-tag.theme-1 { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.req-station-tag.theme-2 { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.req-station-tag.theme-3 { background: rgba(249, 115, 22, 0.15); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.3); }
.req-station-tag.theme-4 { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.req-station-tag.theme-5 { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.req-station-tag.theme-6 { background: rgba(250, 204, 21, 0.15); color: #fef08a; border: 1px solid rgba(250, 204, 21, 0.3); }

.req-time {
    color: var(--text-muted);
}

.req-query {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    word-break: break-word;
}

.req-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-badge.fulfilled {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.status-badge.failed {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
}

.status-badge.pending {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.req-message {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex: 1;
}

.no-requests {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 20px 0;
}

/* System Status List Inside Sidebar */
.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8px;
}

.info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    color: #ffffff;
    font-weight: 600;
}

.info-value.status-online {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-value.status-online::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.info-value.status-offline {
    color: #f43f5e;
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-value.status-offline::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #f43f5e;
    border-radius: 50%;
    box-shadow: 0 0 6px #f43f5e;
}

/* ==========================================================================
   Global Bottom Persistent Media Player
   ========================================================================== */

.bottom-player {
    position: fixed;
    bottom: -110px; /* Hidden initially, slides up */
    left: 0;
    right: 0;
    height: 90px;
    background: rgba(10, 10, 22, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-speed);
}

.bottom-player.active {
    bottom: 0;
}

/* Match theme highlight colors for the player border bottom */
.bottom-player.theme-1 { border-top-color: rgba(168, 85, 247, 0.4); }
.bottom-player.theme-2 { border-top-color: rgba(59, 130, 246, 0.4); }
.bottom-player.theme-3 { border-top-color: rgba(249, 115, 22, 0.4); }
.bottom-player.theme-4 { border-top-color: rgba(16, 185, 129, 0.4); }
.bottom-player.theme-5 { border-top-color: rgba(236, 72, 153, 0.4); }
.bottom-player.theme-6 { border-top-color: rgba(250, 204, 21, 0.4); }

.player-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 30%;
    min-width: 200px;
}

.player-art-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.player-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
    position: relative;
}

/* Vinyl record spinning animation behind cover art in player bar */
.player-vinyl-animation {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 46px;
    height: 46px;
    background: radial-gradient(circle, #0d0d0d 30%, #222 31%, #111 40%, #333 55%, #111 60%, #0d0d0d 70%);
    border-radius: 50%;
    z-index: 1;
    transition: left 0.5s ease;
}

.bottom-player.active .player-vinyl-animation {
    left: 12px;
    animation: rotateVinyl 3s linear infinite;
}

.player-text {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.player-track-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.player-track-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.player-station-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-left: 5px;
    text-transform: uppercase;
}

/* Player Center Controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: center;
    width: 40%;
}

.player-feedback-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
    padding: 8px;
}

.player-feedback-btn:hover {
    color: #ffffff;
    opacity: 1;
    transform: scale(1.15);
}

.player-feedback-btn:active {
    transform: scale(0.95);
}

.player-feedback-btn.active-like {
    color: #10b981 !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.4));
}

.player-feedback-btn.active-dislike {
    color: #ef4444 !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.4));
}

.player-feedback-btn svg {
    width: 20px;
    height: 20px;
}

.player-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, background var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
}

.player-play-btn:hover {
    transform: scale(1.08);
}

.player-play-btn:active {
    transform: scale(0.95);
}

/* Dynamic theme styles for bottom player play button */
.bottom-player.theme-1 .player-play-btn { background: #a855f7; color: #ffffff; box-shadow: 0 0 15px rgba(168,85,247,0.5); }
.bottom-player.theme-2 .player-play-btn { background: #3b82f6; color: #ffffff; box-shadow: 0 0 15px rgba(59,130,246,0.5); }
.bottom-player.theme-3 .player-play-btn { background: #f97316; color: #ffffff; box-shadow: 0 0 15px rgba(249,115,22,0.5); }
.bottom-player.theme-4 .player-play-btn { background: #10b981; color: #ffffff; box-shadow: 0 0 15px rgba(16,185,129,0.5); }
.bottom-player.theme-5 .player-play-btn { background: #ec4899; color: #ffffff; box-shadow: 0 0 15px rgba(236,72,153,0.5); }
.bottom-player.theme-6 .player-play-btn { background: #facc15; color: #ffffff; box-shadow: 0 0 15px rgba(250,204,21,0.5); }

.player-play-btn svg {
    width: 20px;
    height: 20px;
}

.player-play-btn svg.hidden {
    display: none;
}

.player-visualizer-container {
    width: 220px;
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
}

.player-visualizer-container::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.05);
    z-index: 1;
}

#player-canvas {
    width: 100%;
    height: 100%;
    z-index: 2;
    position: relative;
}

/* Player Right Volume */
.player-volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 20%;
    min-width: 120px;
    justify-content: flex-end;
}

.player-mute-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed);
    opacity: 0.7;
}

.player-mute-btn:hover {
    color: #ffffff;
    opacity: 1;
}

.player-mute-btn svg {
    width: 18px;
    height: 18px;
}

.player-mute-btn svg.hidden {
    display: none;
}

.player-volume-slider {
    width: 100px !important;
}

/* Responsive Main Layout overrides */
@media (min-width: 992px) {
    .container {
        max-width: 1400px;
        padding: 110px 30px 40px; /* clear navbar */
    }

    .main-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
        gap: 24px;
        margin-top: 40px;
    }
    
    .station-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .main-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 24px;
        margin-top: 40px;
    }
    
    .console-col-1 {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    
    .console-col-2 {
        grid-column: 2;
        grid-row: 1;
    }
    
    .console-col-3 {
        grid-column: 2;
        grid-row: 2;
    }
    
    .station-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 20px;
    }
    
    .console-col-1, .console-col-2, .console-col-3 {
        grid-column: 1;
        grid-row: auto;
    }
    
    .station-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 95px 10px 20px; /* clear mobile navbar */
    }
    
    .section-header {
        text-align: center;
    }
}

@media (max-width: 650px) {
    .player-volume-control {
        display: none; /* Hide volume controls on mobile */
    }
    
    .player-visualizer-container {
        display: none; /* Hide visualizer container on mobile */
    }
    
    .player-track-info {
        flex: 1;
        min-width: 0;
    }
    
    .player-controls {
        width: auto;
        gap: 15px;
        flex-shrink: 0;
    }
    
    .player-content {
        padding: 0 15px;
    }
    
    .bottom-player {
        height: 80px;
    }
}

/* Modal Dialog Overlay Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 5, 12, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(18, 18, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    margin: 10% auto;
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255,255,255,0.02);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ffffff;
}

/* Auth Tabs toggle */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.auth-tab.active {
    color: #ffffff;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
}

/* Auth and Pro creator Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-submit-btn:hover {
    background: #2563eb;
}

/* User Profile Card in Sidebar */
.user-profile-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    font-size: 2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profile-email {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.profile-tier-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: #a1a1b5;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 2px 8px;
    border-radius: 4px;
    width: max-content;
    text-transform: uppercase;
}

.profile-tier-badge.premium {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.profile-tier-badge.pro {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.profile-action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
}

.upgrade-btn {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
}

.upgrade-btn:hover {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Custom Station creator form styles */
.pro-creator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pro-creator-submit-btn {
    padding: 12px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.pro-creator-submit-btn:hover {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.deploy-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 10px;
    text-align: center;
}

/* Custom station item in list */
.custom-station-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-station-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-station-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.custom-station-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.custom-station-status-badge.provisioning {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.custom-station-status-badge.live {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.custom-station-status-badge.failed {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
}

.custom-station-query {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Mobile wrap styling for horizontal card layout */
@media (max-width: 991px) {
    .station-card {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .art-section {
        order: 1;
    }
    
    .info-section {
        order: 2;
        flex: 1;
        min-width: 0;
    }
    
    .controls-section {
        order: 3;
        width: 140px;
    }
    
    .request-section {
        order: 4;
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 15px;
    }
    
    .request-section .request-status {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .station-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
        gap: 15px;
    }
    
    .art-section {
        margin-bottom: 5px;
        order: 1;
    }
    
    .info-section {
        align-items: center;
        order: 2;
        width: 100%;
    }
    
    .now-playing-container {
        text-align: center;
    }
    
    .controls-section {
        max-width: 100%;
        width: 100%;
        margin: 10px 0;
        order: 3;
    }
    
    .request-section {
        order: 4;
        width: 100%;
        max-width: 100%;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 15px;
    }
}

/* Global Auth Promo Banner Styling */
.auth-promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(59, 130, 246, 0.12) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    gap: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

@media (max-width: 768px) {
    .auth-promo-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .auth-promo-banner div {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .auth-promo-banner button {
        width: 100%;
    }
    
    /* Navbar responsiveness: Brand + Login on top row, Swipeable Tabs on bottom row */
    .navbar {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .nav-brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }
    
    .user-nav-widget {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    
    .nav-links {
        grid-column: 1 / span 2;
        grid-row: 2;
        display: flex !important;
        overflow-x: auto;
        white-space: nowrap;
        gap: 16px;
        padding: 4px 0 8px;
        justify-content: flex-start;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 10px;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none; /* Hide scrollbar for native app feel */
    }
    
    .nav-links a {
        display: inline-block !important; /* Force show the tab links */
        font-size: 0.85rem;
        flex-shrink: 0;
        padding: 4px 8px;
    }
    
    /* Tighten layout spacing on mobile */
    .container {
        padding: 95px 10px 15px; /* clear mobile navbar */
    }
    
    .main-layout {
        gap: 20px;
        margin-top: 15px;
    }
    
    .sidebar-card, .station-card, .price-card {
        padding: 16px !important;
        border-radius: 16px !important;
    }
    
    /* Input field min-width safety */
    .request-input {
        min-width: 0;
    }
    
    /* Force Analytics charts to stack vertically on mobile */
    .analytics-charts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ==========================================================================
   Tab Navigation & Multi-Section Visibility
   ========================================================================== */

/* Navigation Tabs Active State */
.nav-links a.nav-tab-link.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    position: relative;
}

.nav-links a.nav-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
    box-shadow: 0 0 8px #3b82f6;
}

/* App Section Visibility Controls */
.app-section {
    display: none;
    animation: fadeInSection 0.3s ease-out forwards;
}

.app-section.active {
    display: block;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Guide & Interactive FAQ Styles
   ========================================================================== */

.guide-container, .benefits-container {
    padding: 20px 0 50px;
    animation: fadeInSection 0.4s ease-out forwards;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.guide-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.1);
}

.guide-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.guide-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.guide-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Accordion Styles */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-answer ul {
    margin-top: 10px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-answer li {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Benefits & Pricing Cards Matrix
   ========================================================================== */

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

.benefit-feature-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease;
}

.benefit-feature-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.02);
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.benefit-feature-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.benefit-feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.price-card.premium-card {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.05);
}

.price-card.premium-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.price-card.pro-card {
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.05);
}

.price-card.pro-card:hover {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
}

.price-tier-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
}

.price-amount .period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-period {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: -10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.price-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.price-list li.muted {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.55;
}

/* ==========================================================================
   Bottom Player Pop Out PiP Button
   ========================================================================== */

.player-pip-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed), transform 0.2s ease, background 0.2s ease;
    opacity: 0.7;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.player-pip-btn:hover {
    color: #ffffff;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.player-pip-btn:active {
    transform: scale(0.95);
}

.player-pip-btn.active {
    color: #3b82f6;
    opacity: 1;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   Advanced Premium & Pro Features (Chat, Visualizer, Scheduling, Voting)
   ========================================================================== */

/* WebGL Visualizer Card */
.webgl-visualizer-card {
    height: 180px;
    padding: 0 !important;
    overflow: hidden;
}

/* Chat messages scrollbar */
.chat-messages-container::-webkit-scrollbar {
    width: 4px;
}
.chat-messages-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Chat bubble types */
.chat-msg {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    word-break: break-word;
}
.ai-msg {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
}
.user-msg {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: right;
}

/* Vibe schedule slot list item */
.schedule-item-node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: background 0.2s;
}
.schedule-item-node:hover {
    background: rgba(255, 255, 255, 0.02);
}
.schedule-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.schedule-item-time {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #a855f7;
}
.schedule-item-title {
    color: #fff;
    font-weight: 500;
}
.schedule-item-vibe {
    font-size: 0.7rem;
    color: var(--text-secondary);
}
.delete-schedule-btn {
    background: none;
    border: none;
    color: #f43f5e;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.delete-schedule-btn:hover {
    background: rgba(244, 63, 94, 0.1);
}

/* Upvote/Downvote actions on live request tracker items */
.request-item {
    position: relative;
    padding-right: 70px !important;
}
.request-vote-actions {
    display: flex;
    gap: 6px;
    position: absolute;
    top: 10px;
    right: 10px;
}
.vote-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.vote-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.vote-action-btn.up.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}
.vote-action-btn.down.active {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.12);
}
.vote-count-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 100px;
    color: #fff;
    margin-left: 4px;
}

/* Analytics Container Layout */
.analytics-container {
    padding: 0 10px;
}
.analytics-selector-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.analytics-charts-grid canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Table styles */
.popular-tracks-card table {
    width: 100%;
}
.popular-tracks-card th {
    padding: 12px;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.popular-tracks-card td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}
.popular-tracks-card tr:last-child td {
    border-bottom: none;
}

/* Fullscreen Visualizer Background & Enhanced Layout */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.18; /* Ambient background mode */
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.5s ease;
}

#webgl-canvas.immersive {
    opacity: 0.96;
    z-index: 999; /* overlay everything except visualizer control pill and persistent player */
    pointer-events: auto;
}

/* Home view station grid layout expansion (3 columns on desktop, 2 on tablet, 1 on mobile) */
@media (min-width: 992px) {
    #page-home .station-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #page-home .station-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    #page-home .station-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Console main layout - two columns on desktop */
.console-main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 80px;
}

@media (min-width: 992px) {
    .console-main-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 24px;
    }
}
@media (max-width: 768px) {
    #visualizer-control-pill {
        right: 15px !important;
        bottom: 95px !important;
        padding: 4px 12px !important;
    }
    #visualizer-control-pill span {
        font-size: 0.65rem !important;
    }
    #visualizer-control-pill select {
        font-size: 0.65rem !important;
        padding: 1px 4px !important;
    }
    #visualizer-toggle-immersive {
        font-size: 0.65rem !important;
        padding: 2px 8px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   CREATOR STATION WIZARD — Full Styles
═══════════════════════════════════════════════════════════ */

/* Overlay backdrop */
.wizard-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(5, 5, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wizFadeIn 0.25s ease;
    padding: 16px;
}

@keyframes wizFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal container */
.wizard-modal {
    position: relative;
    background: linear-gradient(145deg, rgba(18,18,45,0.97) 0%, rgba(10,10,28,0.99) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 24px;
    width: 100%;
    max-width: 660px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(168,85,247,0.1),
        0 32px 80px rgba(0,0,0,0.7),
        0 0 60px rgba(139,92,246,0.12) inset;
    animation: wizSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wizSlideUp {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Ambient glows inside modal */
.wizard-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    opacity: 0.18;
}
.wizard-glow-a {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    top: -80px; left: -60px;
    animation: wizGlowDrift 12s ease-in-out infinite alternate;
}
.wizard-glow-b {
    width: 250px; height: 250px;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    bottom: -60px; right: -40px;
    animation: wizGlowDrift 10s ease-in-out infinite alternate-reverse;
}
@keyframes wizGlowDrift {
    from { transform: translate(0,0); }
    to   { transform: translate(20px, 15px); }
}

/* Header */
.wizard-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.wizard-logo-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(168,85,247,0.4);
}
.wizard-logo-mark svg {
    width: 22px;
    height: 22px;
    color: #fff;
}
.wizard-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e2e8f0, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0;
}
.wizard-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}
.wizard-close-btn {
    margin-left: auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wizard-close-btn:hover {
    background: rgba(244,63,94,0.2);
    color: #f43f5e;
    transform: rotate(90deg);
}

/* Progress bar */
.wizard-progress-track {
    height: 3px;
    background: rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #6366f1, #3b82f6);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(168,85,247,0.6);
}

/* Step nav pills */
.wizard-steps-nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 14px 20px 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 4px;
}
.wstep-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: default;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.wstep-pill.active  { opacity: 1; }
.wstep-pill.done    { opacity: 0.75; }
.wstep-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(168,85,247,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
}
.wstep-pill.active .wstep-num {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border-color: #a855f7;
    color: #fff;
    box-shadow: 0 0 14px rgba(168,85,247,0.5);
}
.wstep-pill.done .wstep-num {
    background: rgba(168,85,247,0.2);
    border-color: rgba(168,85,247,0.5);
    color: #a855f7;
}
.wstep-pill.done .wstep-num::after { content: '✓'; }
.wstep-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.wstep-pill.active .wstep-label { color: #a855f7; }
.wstep-connector {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(168,85,247,0.2), rgba(99,102,241,0.2));
    min-width: 12px;
    max-width: 40px;
    margin-bottom: 18px;
}

/* Body scroll area */
.wizard-body {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 28px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(168,85,247,0.3) transparent;
}
.wizard-body::-webkit-scrollbar { width: 4px; }
.wizard-body::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 4px; }

/* Individual step */
.wizard-step {
    display: none;
    animation: wizStepIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.wizard-step.active { display: block; }

@keyframes wizStepIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wstep-icon-wrap {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 12px rgba(168,85,247,0.5));
}
.wstep-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    color: #fff;
    margin-bottom: 6px;
}
.wstep-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Form fields */
.wfield {
    margin-bottom: 16px;
}
.wfield label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.wfield-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}
.wfield-input:focus {
    border-color: rgba(168,85,247,0.6);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
}
.wfield-input::placeholder { color: rgba(255,255,255,0.25); }
.wfield-textarea { min-height: 80px; }
.wfield-hint {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 5px;
}
.wfield-badge {
    font-size: 0.6rem;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    padding: 2px 6px;
    border-radius: 100px;
    font-weight: 700;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Toggle switch */
.wfield-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wfield-toggle input[type="checkbox"] { display: none; }
.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    user-select: none;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    margin: 0;
}
.toggle-track {
    width: 40px;
    height: 22px;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.12);
}
.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: transform 0.25s, background 0.25s;
}
#wiz-requests-enabled:checked + .toggle-label .toggle-track {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border-color: transparent;
}
#wiz-requests-enabled:checked + .toggle-label .toggle-thumb {
    transform: translateX(18px);
    background: #fff;
}

/* Visibility radio cards */
.wiz-radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.wiz-radio-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.wiz-radio-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.wiz-radio-card:hover { border-color: rgba(168,85,247,0.35); background: rgba(168,85,247,0.06); }
.wiz-radio-card.selected {
    border-color: rgba(168,85,247,0.6);
    background: rgba(168,85,247,0.1);
    box-shadow: 0 0 0 1px rgba(168,85,247,0.3), 0 4px 16px rgba(168,85,247,0.12);
}
.wrc-icon { font-size: 1.4rem; }
.wrc-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}
.wrc-desc {
    font-size: 0.64rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Vibe chips grid */
.wiz-vibe-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wiz-vibe-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    border-radius: 100px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.wiz-vibe-chip:hover {
    border-color: rgba(168,85,247,0.4);
    color: #fff;
    background: rgba(168,85,247,0.08);
}
.wiz-vibe-chip.selected {
    background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(99,102,241,0.2));
    border-color: #a855f7;
    color: #fff;
    box-shadow: 0 0 12px rgba(168,85,247,0.2);
}

/* Voice cards */
.wiz-voice-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.wiz-voice-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.wiz-voice-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.wiz-voice-card:hover { border-color: rgba(168,85,247,0.35); transform: translateY(-2px); }
.wiz-voice-card.selected {
    border-color: rgba(168,85,247,0.65);
    background: rgba(168,85,247,0.1);
    box-shadow: 0 0 0 1px rgba(168,85,247,0.3), 0 6px 20px rgba(168,85,247,0.15);
    transform: translateY(-2px);
}
.wvc-avatar { font-size: 1.6rem; }
.wvc-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}
.wvc-desc {
    font-size: 0.62rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.wvc-preview-btn {
    margin-top: 4px;
    background: rgba(168,85,247,0.15);
    border: 1px solid rgba(168,85,247,0.3);
    color: #a855f7;
    border-radius: 100px;
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wvc-preview-btn:hover {
    background: rgba(168,85,247,0.3);
    transform: scale(1.1);
}
.wvc-preview-btn.playing {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    animation: pulseBtn 1s ease-in-out infinite;
}
@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(168,85,247,0); }
}

/* Visualizer grid */
.wiz-viz-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.wiz-viz-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 10px 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    overflow: hidden;
}
.wiz-viz-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.wiz-viz-card:hover { border-color: rgba(168,85,247,0.35); transform: translateY(-2px); }
.wiz-viz-card.selected {
    border-color: rgba(168,85,247,0.65);
    background: rgba(168,85,247,0.1);
    box-shadow: 0 0 0 1px rgba(168,85,247,0.3), 0 6px 20px rgba(168,85,247,0.15);
    transform: translateY(-2px);
}
.wvc-viz-preview {
    width: 100%;
    height: 54px;
    border-radius: 8px;
    background-size: 200% 200%;
    animation: vizPreviewShift 4s ease-in-out infinite alternate;
}
.neon-pulse-preview    { background: radial-gradient(ellipse at 50% 100%, #ec4899 0%, #8b5cf6 50%, #0a0a16 100%); }
.vortex-aura-preview   { background: conic-gradient(from 180deg, #f97316, #f59e0b, #f97316); animation-duration: 2s; }
.cyber-horizon-preview { background: linear-gradient(180deg, #f97316 0%, #1e1b4b 50%, #312e81 100%); }
.quantum-nebula-preview{ background: radial-gradient(ellipse at 30% 70%, #7c3aed 0%, #1e3a5f 50%, #0a0a16 100%); }
.hyperspace-preview    { background: radial-gradient(ellipse at 50% 50%, #fff 0%, #6366f1 30%, #0a0a16 80%); }

@keyframes vizPreviewShift {
    from { background-position: 0% 0%; filter: brightness(0.8); }
    to   { background-position: 100% 100%; filter: brightness(1.2); }
}

.wvc-badge {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.free-badge    { background: rgba(16,185,129,0.2); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.premium-badge { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.pro-badge     { background: rgba(168,85,247,0.2); color: #a855f7; border: 1px solid rgba(168,85,247,0.35); }

/* Summary card (Step 6) */
.wiz-summary-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    margin: 12px 0;
}
.wsummary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 11px 16px;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.wsummary-row:last-child { border-bottom: none; }
.wsummary-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 600;
}
.wsummary-val {
    font-size: 0.8rem;
    color: #fff;
    text-align: right;
    font-weight: 500;
    max-width: 70%;
    word-break: break-word;
}

/* Deploy status */
.wiz-deploy-status {
    text-align: center;
    font-size: 0.82rem;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s;
    min-height: 20px;
}

/* Success screen */
.wiz-success-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 10px auto 0;
}
.wiz-success-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(168,85,247,0.4);
    animation: successRingPulse 1.6s ease-out infinite;
}
@keyframes successRingPulse {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
.wiz-success-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    animation: successBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes successBounce {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Share box */
.wiz-share-box {
    background: rgba(168,85,247,0.07);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0 12px;
}
.wiz-share-box label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}
.wiz-share-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.wiz-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: 'Inter', sans-serif;
}
.wiz-copy-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(168,85,247,0.4); }
.wiz-copy-btn.copied { background: linear-gradient(135deg, #10b981, #059669); }

/* Success action buttons */
.wiz-success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.wiz-launch-btn {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(168,85,247,0.35);
}
.wiz-launch-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(168,85,247,0.5); }
.wiz-secondary-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
}
.wiz-secondary-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Footer navigation */
.wizard-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 26px 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    gap: 12px;
}
.wiz-step-counter {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}
.wiz-back-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.wiz-back-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.wiz-next-btn {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    color: #fff;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 3px 14px rgba(168,85,247,0.35);
}
.wiz-next-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(1‍68,85,247,0.5); }
.wiz-next-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.wiz-next-btn.launching {
    background: linear-gradient(135deg, #f97316, #ec4899);
    animation: launchPulse 0.8s ease-in-out infinite alternate;
}
@keyframes launchPulse {
    from { box-shadow: 0 3px 14px rgba(249,115,22,0.4); }
    to   { box-shadow: 0 6px 28px rgba(249,115,22,0.7); }
}

/* Trigger button for opening wizard (inside sidebar card) */
.wiz-open-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    color: #fff;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(168,85,247,0.35);
    margin-top: 8px;
}
.wiz-open-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(168,85,247,0.5);
}
.wiz-open-trigger-btn .wiz-btn-sparkle {
    font-size: 1.1rem;
    animation: spinSparkle 3s linear infinite;
}
@keyframes spinSparkle {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .wizard-modal { max-height: 98vh; border-radius: 16px; }
    .wizard-header { padding: 16px 18px 12px; gap: 10px; }
    .wizard-body { padding: 6px 16px 16px; }
    .wizard-footer { padding: 12px 18px 16px; }
    .wiz-voice-grid { grid-template-columns: repeat(3, 1fr); }
    .wiz-viz-grid { grid-template-columns: repeat(3, 1fr); }
    .wiz-radio-group { grid-template-columns: 1fr 1fr; }
    .wstep-label { display: none; }
    .wstep-connector { min-width: 8px; }
}

/* BygHeart Console Tabs CSS */
.console-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none; /* Firefox */
}
.console-tabs-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.console-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.console-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}
.console-tab-btn.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.console-tab-panel {
    display: none;
}
.console-tab-panel.active {
    display: block;
    animation: fadeInSection 0.3s ease-out forwards;
}

/* Analytics Metrics Grid */
.analytics-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(18px);
}
.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
}
.metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

/* Station Details Form in panel */
.admin-station-edit-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 768px) {
    .admin-station-edit-form {
        grid-template-columns: 1fr;
    }
}
.admin-stations-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.admin-station-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}
.admin-station-edit-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.admin-station-edit-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}
.admin-station-save-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.admin-station-save-btn:hover {
    background: #2563eb;
}
.admin-station-cancel-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 8px 16px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.admin-station-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}
.station-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-form-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.admin-form-group input,
.admin-form-group select {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 6px;
    padding: 8px 10px;
    outline: none;
    font: inherit;
    font-size: 0.85rem;
}
.admin-form-group input:focus,
.admin-form-group select:focus {
    border-color: #3b82f6;
}

