:root {
    --bg-main: #0b0c0e;
    --bg-card: #141518;
    --bg-surface: #1a1b20;
    --border-color: #26282e;
    --border-hover: #3f424c;
    --neon-yellow: #d8ff00;
    --neon-yellow-hover: #ebff4d;
    --text-primary: #ffffff;
    --text-secondary: #9ea3b0;
    --text-muted: #646875;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.dark-theme {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-nav {
    height: 56px;
    background: #0e0f12;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.neon-icon {
    color: var(--neon-yellow);
    font-size: 20px;
}

.logo-text {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.badge-lite {
    background: rgba(216, 255, 0, 0.15);
    color: var(--neon-yellow);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding: 6px 4px;
}

.nav-item:hover {
    color: #fff;
}

.nav-item.active {
    color: var(--neon-yellow);
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-yellow);
    border-radius: 2px;
}

.nav-divider {
    color: var(--border-color);
    font-size: 13px;
}

.pill-tag {
    background: #1c1d22;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
}

.tag-hot {
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 4px;
}

.tag-free {
    background: var(--neon-yellow);
    color: #111;
    font-weight: 700;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 4px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-token {
    background: #191b20;
    border: 1px solid var(--border-color);
    color: var(--neon-yellow);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #23252d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* Workspace Layout */
.workspace-container {
    display: flex;
    flex: 1;
    height: calc(100vh - 56px);
    overflow: hidden;
}

/* Controller Left Panel */
.controller-panel {
    width: 440px;
    min-width: 440px;
    max-width: 440px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

/* Subtabs */
.subtabs {
    display: flex;
    gap: 8px;
    background: #0f1013;
    padding: 4px;
    border-radius: 10px;
}

.subtab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.subtab-btn.active {
    background: #22242b;
    color: #fff;
}

/* Model Banner Card */
.model-banner-card {
    height: 68px;
    background: linear-gradient(135deg, #181c24, #241c22);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.model-banner-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--neon-yellow);
}

.banner-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--neon-yellow);
    letter-spacing: 0.5px;
}

.banner-subtitle {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.banner-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #4cd137;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mode Tabs */
.input-mode-tabs {
    display: flex;
    background: #0f1013;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.mode-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-tab-btn.active {
    background: #282a33;
    color: #fff;
}

/* Frame Dropzones */
.frame-dropzones-row {
    display: flex;
    gap: 12px;
}

.dropzone-card {
    flex: 1;
    height: 110px;
    background: #15161c;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
}

.dropzone-card:hover {
    border-color: var(--border-hover);
    background: #1b1c23;
}

.dz-icon {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.dz-label {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.dz-sublabel {
    font-size: 11px;
    color: var(--text-muted);
}

.dz-preview {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
}

.dz-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-dz {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.75);
    border: none;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* FLUX Quick Bar */
.flux-quick-bar {
    margin-top: 8px;
}

.btn-flux-generate {
    width: 100%;
    background: rgba(216, 255, 0, 0.1);
    border: 1px solid rgba(216, 255, 0, 0.4);
    color: var(--neon-yellow);
    font-size: 12px;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.btn-flux-generate:hover {
    background: var(--neon-yellow);
    color: #0b0c0e;
    box-shadow: 0 0 14px rgba(216, 255, 0, 0.5);
    transform: translateY(-1px);
}

.btn-flux-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    box-shadow: none;
    transform: none;
}

/* Reference Dropzone */
.ref-dz {
    height: 140px;
    width: 100%;
}

.ref-dz video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Prompt Section */
.prompt-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prompt-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.quick-preset-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chip-btn {
    background: #1a1c22;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chip-btn:hover {
    color: #fff;
    border-color: var(--neon-yellow);
    background: rgba(216, 255, 0, 0.08);
}

/* PROMPT TEXTAREA WRAPPER (FIXED) */
.prompt-textarea-wrapper {
    background: #14151a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    transition: border-color 0.2s;
}

.prompt-textarea-wrapper:focus-within {
    border-color: #4b4e5c;
}

.prompt-textarea-wrapper textarea {
    width: 100%;
    min-height: 80px;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 13px;
    line-height: 1.55;
    resize: vertical;
    outline: none !important;
    font-family: inherit;
}

.prompt-textarea-wrapper textarea::placeholder {
    color: #555966;
}

.prompt-controls {
    display: flex;
    justify-content: flex-start;
}

.btn-audio-toggle {
    background: #1e2028;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-audio-toggle.active {
    color: #fff;
    border-color: #3b3d4d;
    background: #272935;
}

/* Parameters */
.params-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pill-dropdown {
    background: #16171d;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.pill-dropdown:hover {
    border-color: #3b3d4d;
    color: #fff;
    background: #1c1d25;
}

/* Action Button */
.action-btn-container {
    margin-top: 4px;
}

.btn-generate-neon {
    width: 100%;
    background: var(--neon-yellow);
    border: none;
    border-radius: 12px;
    padding: 14px 0;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 4px 14px rgba(216, 255, 0, 0.25);
}

.btn-generate-neon:hover {
    background: var(--neon-yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(216, 255, 0, 0.4);
}

.btn-generate-neon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #0b0c0e;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.credit-badge {
    background: rgba(0, 0, 0, 0.15);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
}

/* Progress Box */
.generation-progress-box {
    background: #14151a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.progress-bar-track {
    height: 6px;
    background: #232530;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--neon-yellow);
    transition: width 0.3s;
}

/* Feed Right Panel */
.feed-panel {
    flex: 1;
    background: #09090b;
    padding: 20px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #181920;
}

.feed-actions-left {
    display: flex;
    gap: 10px;
}

.btn-feed-action {
    background: #14151a;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-feed-action.active {
    background: #22242e;
    color: #fff;
    border-color: #3b3d4d;
}

.feed-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.neon-text {
    color: var(--neon-yellow);
}

/* Stage Container */
.stage-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Main Player Card */
.main-player-card {
    background: #121318;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.player-wrapper {
    position: relative;
    width: 100%;
    min-height: 420px;
    background: #08090b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-wrapper video {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #000;
    display: block;
}

.player-floating-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(9, 10, 12, 0.95), rgba(9, 10, 12, 0.6) 70%, transparent);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.player-tag {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
}

.player-actions {
    display: flex;
    gap: 8px;
}

.btn-player-tool {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-player-tool:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* History Grid */
.history-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.history-card {
    background: #14151a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.history-card:hover {
    transform: translateY(-2px);
    border-color: var(--neon-yellow);
}

.history-thumb-wrapper {
    position: relative;
    height: 140px;
    background: #000;
}

.history-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-duration-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 4px;
}

.history-card-body {
    padding: 10px 12px;
}

.card-title {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.card-date {
    font-size: 11px;
    color: var(--text-muted);
}


/* ===================================================
   UNIFIED STUDIO TABS & EXTRA VIEWS
   =================================================== */

.tab-view {
    width: 100%;
}

/* --- TAB 2: Image Studio Styling --- */
.image-studio-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 140px 20px;
    position: relative;
    min-height: calc(100vh - 70px);
}

.image-hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.cards-fan-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    height: 190px;
    position: relative;
    width: 440px;
}

.fan-card {
    position: absolute;
    width: 125px;
    height: 165px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
    background: #1a1a20;
    transition: transform 0.3s ease;
}

.fan-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-1 { transform: translateX(-120px) translateY(8px) rotate(-10deg); z-index: 1; }
.card-2 { transform: translateX(-40px) translateY(-4px) rotate(-3deg); z-index: 2; }
.card-3 { transform: translateX(40px) translateY(-2px) rotate(4deg); z-index: 3; }
.card-4 { transform: translateX(120px) translateY(10px) rotate(11deg); z-index: 4; }

.cards-fan-container:hover .card-1 { transform: translateX(-135px) translateY(10px) rotate(-14deg); }
.cards-fan-container:hover .card-4 { transform: translateX(135px) translateY(12px) rotate(15deg); }

.image-hero-title {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.image-hero-sub {
    font-size: 26px;
    font-weight: 900;
    color: var(--neon-yellow);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.image-hero-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.image-preset-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.im-chip {
    background: #1c1d24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #bbb;
    cursor: pointer;
    transition: all 0.15s;
}

.im-chip:hover {
    background: #272834;
    color: var(--neon-yellow);
    border-color: rgba(226, 255, 60, 0.4);
}

.image-results-grid {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.im-card-box {
    background: #181920;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: transform 0.2s, border-color 0.2s;
}

.im-card-box:hover {
    transform: translateY(-4px);
    border-color: var(--neon-yellow);
}

.im-card-thumb {
    width: 100%;
    height: 380px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.im-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.im-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.92), transparent);
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.im-card-box:hover .im-card-overlay {
    opacity: 1;
}

.btn-to-video {
    background: var(--neon-yellow);
    color: #000000;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(226, 255, 60, 0.45);
}

.im-card-info {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #13141a;
}

.im-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.image-floating-dock {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 920px;
    z-index: 200;
}

.dock-box {
    background: #1c1d22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 16px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 1px rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#imagePromptInput {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    resize: none;
    font-family: inherit;
    min-height: 40px;
}

#imagePromptInput::placeholder {
    color: #6a6c78;
}

.dock-tools-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.dock-tools-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dock-circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #26272e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
}

.dock-pill {
    background: #26272e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-dock-generate {
    background: var(--neon-yellow);
    color: #000000;
    border: none;
    border-radius: 14px;
    padding: 10px 22px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(226, 255, 60, 0.35);
    flex-shrink: 0;
}

.dock-gen-title {
    font-size: 14px;
    font-weight: 900;
}

.dock-gen-sub {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.85;
}

/* --- TAB 3: Audio Studio Styling --- */
.audio-studio-container {
    flex: 1;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px 80px 20px;
    width: 100%;
}

.audio-workspace-card {
    background: #16171d;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.audio-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.audio-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.audio-form-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

@media (max-width: 800px) {
    .audio-form-grid { grid-template-columns: 1fr; }
}

.audio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ddd;
    margin-bottom: 8px;
}

#audioScriptInput {
    width: 100%;
    background: #0f1014;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    min-height: 130px;
    outline: none;
}

#audioScriptInput:focus {
    border-color: var(--neon-yellow);
}

.audio-preset-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.au-chip {
    background: #22232c;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    color: #bbb;
    cursor: pointer;
}

.au-chip:hover {
    color: var(--neon-yellow);
    border-color: rgba(226,255,60,0.4);
}

.opt-group {
    margin-bottom: 16px;
}

.audio-select {
    width: 100%;
    background: #0f1014;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.audio-badge-info {
    font-size: 12px;
    color: var(--neon-yellow);
    background: rgba(226, 255, 60, 0.08);
    border: 1px solid rgba(226, 255, 60, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
}

.btn-generate-audio {
    width: 100%;
    background: var(--neon-yellow);
    color: #000;
    font-weight: 800;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(226, 255, 60, 0.35);
    margin-top: 8px;
}

.audio-result-card {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.audio-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.active-tool {
    background: var(--neon-yellow) !important;
    color: #000 !important;
    font-weight: 700 !important;
}

/* --- TAB 4: Browse All Styling --- */
.browse-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px 80px 20px;
}

.browse-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.browse-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
