/* --- Design System & Variables --- */
:root {
    --bg-dark: #0F0F0F;
    --bg-darker: #0A0A0A;
    --bg-panel: #1A1A1A;
    --bg-hover: #252525;
    --bg-input: #141414;

    --primary-lime: #CCFF00;
    --primary-lime-dim: rgba(204, 255, 0, 0.1);
    --primary-lime-hover: #b3e600;
    --secondary-purple: #8E44AD;
    --secondary-purple-gradient: linear-gradient(135deg, #3366aa 0%, #4488cc 100%);

    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --text-disabled: #555555;

    --border-color: #333333;
    --border-focus: #555555;

    --sidebar-width: 220px;
    --header-height: 64px;
    /* Increased from 48px to move content down */

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 15px rgba(204, 255, 0, 0.2);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #050510 100%);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    border: none;
}

button {
    cursor: pointer;
}

/* --- Utility Classes --- */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.4s var(--ease-out);
}

/* --- Tooltip --- */
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    animation: fadeIn 0.2s;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 12px 12px 12px;
    position: fixed;
    height: 100%;
    z-index: 2000;
    transition: transform 0.3s var(--ease-out);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

.logo {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-group-title {
    color: var(--text-disabled);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    margin-top: 24px;
}

.nav-group-title:first-of-type {
    margin-top: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 4px;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: white;
}

.nav-item.active {
    background: var(--primary-lime-dim);
    color: var(--primary-lime);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* --- Main Layout --- */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

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

/* NUCLEAR FIX: Remove any potential yellow header decorations */
.header::after,
.header::before,
.header-right::after,
.header-right::before,
.hero-banner::after,
.hero-banner::before {
    display: none !important;
    content: none !important;
    border: none !important;
    background: transparent !important;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb span {
    color: white;
    font-weight: 500;
}

.breadcrumb i {
    font-size: 10px;
    margin: 0 8px;
    opacity: 0.5;
}

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

.credit-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    /* Neutral text */
    border: 1px solid var(--border-color);
    /* Neutral border */
    cursor: pointer;
    transition: all 0.2s;
}

.credit-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
    color: white;
}

.profile-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    /* Removed gradient */
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 16px;
}

.profile-trigger:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
    transform: rotate(90deg);
    /* Playful interaction */
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-right: 16px;
}

/* --- Content Area --- */
.content {
    flex: 1;
    padding: 0px 20px 12px 20px;
    /* Reduced top padding for tighter layout */
    overflow-y: auto;
    position: relative;
}

.page-container {
    max-width: 1600px;
    /* Expanded from 1000px */
    margin: 0;
    /* Remove auto centering to align left-ish or fill */
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.section-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.panel {
    background: var(--bg-panel);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    position: relative;
}

.panel-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- DASHBOARD WIDGETS --- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--bg-panel);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.stat-change {
    font-size: 12px;
    color: var(--primary-lime);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.negative {
    color: #ff4b4b;
}

.chart-dummy {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding-top: 20px;
}

.bar {
    flex: 1;
    background: #333;
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: height 1s;
}

.bar:hover {
    background: var(--primary-lime);
}

.bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--text-muted);
}

/* --- BRAND DNA --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
}

.color-picker-row {
    display: flex;
    gap: 16px;
}

.color-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.color-box input[type="color"] {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    opacity: 0;
    cursor: pointer;
}

/* --- TRENDS GRID --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Force 5 columns as requested */
    gap: 20px;
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #2a2a2a;
    border: 1px solid #333;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #333;
    color: white;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.page-number:hover,
.page-number.active {
    background: var(--accent-color);
    color: white;
    font-weight: bold;
}

.video-card {
    aspect-ratio: 9/16;
    background: #222;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-lime);
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.badge {
    background: var(--primary-lime);
    color: black;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}


/* --- ASSET GRID STYLES --- */
.asset-grid {
    display: grid;
    gap: 12px;
    padding-top: 8px;
}

.asset-grid.vertical {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.asset-grid.horizontal {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.asset-grid.square {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.asset-section-label {
    grid-column: 1 / -1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 24px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.asset-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.asset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--text-muted);
}

.asset-thumb {
    width: 100%;
    height: 0 !important;
    /* Force height to 0, use padding for ratio */
    padding-bottom: 56.25%;
    /* Default 16:9 */
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Aspect Ratio Modifiers */
.asset-thumb.ratio-9-16 {
    padding-bottom: 177.78% !important;
}

/* 16/9 * 100 */
.asset-thumb.ratio-16-9 {
    padding-bottom: 56.25% !important;
}

/* 9/16 * 100 */
.asset-thumb.ratio-1-1 {
    padding-bottom: 100% !important;
}

.asset-thumb.ratio-3-4 {
    padding-bottom: 133.33% !important;
}

/* 4/3 * 100 */
.asset-thumb.ratio-4-3 {
    padding-bottom: 75% !important;
}

/* 3/4 * 100 */

.asset-thumb.video-bg {
    background: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);
}

.asset-thumb.dm-bg {
    background: linear-gradient(135deg, #1fa2ff 0%, #12d8fa 100%);
}

.asset-thumb i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s;
    z-index: 1;
}

.asset-card:hover .asset-thumb i {
    transform: translate(-50%, -50%) scale(1.1);
}

.asset-info {
    padding: 12px;
    flex: 1;
}

.asset-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.asset-more {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.asset-more:hover {
    color: white;
}

/* --- ASSETS TABLE --- */
.asset-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.asset-table-row:hover {
    background: var(--bg-hover);
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 20px;
}

/* --- STUDIO SPECIFIC --- */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-dark);
    padding: 4px;
    border-radius: 10px;
    width: fit-content;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--bg-panel);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* New UI Elements Global */
.input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-btn {
    white-space: nowrap;
    padding: 12px 24px;
    background: var(--primary-lime);
    color: black;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.2);
}

.action-btn:hover {
    background: var(--primary-lime-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(204, 255, 0, 0.4);
}

.page-container {
    animation: fadeIn 0.4s ease-out;
    padding-bottom: 120px;
    /* Ensure content clears the Chat FAB */
}

.tab-content {
    animation: fadeIn 0.3s var(--ease-out);
}

.magic-textarea {
    width: 100%;
    height: 80px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    resize: none;
    transition: 0.2s;
}

.magic-textarea:focus {
    border-color: var(--text-muted);
}

.magic-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--secondary-purple-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(114, 40, 203, 0.4);
}

.magic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(114, 40, 203, 0.6);
}

.chips {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.chip {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    background: var(--bg-input);
    cursor: pointer;
    transition: 0.2s;
}

.chip:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.chip.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
    color: var(--text-main);
    font-weight: 500;
}

.ratio-grid {
    display: flex;
    gap: 16px;
    width: 100%;
}

.ratio-card {
    flex: 1;
    min-width: 0;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}

.ratio-card:hover {
    border-color: var(--text-muted);
}

.ratio-card.active {
    border-color: var(--primary-lime);
    background: rgba(204, 255, 0, 0.05);
}

.ratio-card.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary-lime);
    font-weight: bold;
}

.ratio-preview {
    border: 2px solid #555;
    border-radius: 4px;
}

.ratio-9-16 {
    width: 24px;
    height: 42px;
}

.ratio-16-9 {
    width: 42px;
    height: 24px;
}

.ratio-1-1 {
    width: 32px;
    height: 32px;
}

.ratio-3-4 {
    width: 30px;
    height: 40px;
}

.ratio-4-3 {
    width: 40px;
    height: 30px;
}

.ratio-card.active .ratio-preview {
    border-color: var(--primary-lime);
}

.generate-btn {
    width: 100%;
    height: 60px;
    background: var(--primary-lime);
    color: black;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.1);
}

.generate-btn:hover {
    background: var(--primary-lime-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.3);
}

/* --- FOOTER & MODALS --- */
.footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-disabled);
    font-size: 12px;
}

.footer span {
    margin: 0 10px;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    /* Ensure it's hidden from layout/clicks */
    transition: opacity 0.3s, visibility 0.3s;
}

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

.modal {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 20px;
    width: 400px;
    max-width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s var(--ease-out);
    position: relative;
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* New UI Elements */
    .input-row {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .action-btn {
        white-space: nowrap;
        padding: 12px 24px;
        background: var(--primary-lime);
        color: black;
        border-radius: 8px;
        font-weight: 700;
        font-size: 14px;
        border: none;
        transition: all 0.2s;
        box-shadow: 0 4px 12px rgba(204, 255, 0, 0.2);
    }

    .action-btn:hover {
        background: var(--primary-lime-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(204, 255, 0, 0.4);
    }

    .tab-content {
        animation: fadeIn 0.3s var(--ease-out);
    }

    .magic-writer-btn {
        margin-left: 0;
    }

    .main-wrapper {
        margin-left: 0;
    }



    /* --- MOBILE MENU BTN --- */
    .mobile-menu-btn {
        display: block;
    }

    .header,
    .content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ratio-grid {
        flex-wrap: wrap;
    }

    .ratio-card {
        min-width: 45%;
    }
}

/* --- AD LIBRARY STYLES --- */
.ad-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-select {
    background: var(--bg-panel);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    cursor: pointer;
    min-width: 120px;
}

.filter-select:focus {
    border-color: var(--primary-lime);
}

.ad-card {
    position: relative;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-lime);
}

.ad-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.ad-card:hover .ad-thumb {
    opacity: 0.4;
}

.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.ad-card:hover .ad-overlay {
    opacity: 1;
}

.ad-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    line-height: 1.4;
}

.ad-metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ad-metric-val {
    color: var(--primary-lime);
    font-weight: 600;
}

.ad-disclaimer {
    margin-top: 40px;
    font-size: 11px;
    color: var(--text-disabled);
    text-align: center;
    opacity: 0.6;
}

/* --- TRENDING TAB STYLES --- */
.sub-nav {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.sub-nav-item {
    padding-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.sub-nav-item:hover {
    color: white;
}

.sub-nav-item.active {
    color: white;
    font-weight: 700;
}

/* Removed yellow underline */

.tag-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
    scrollbar-width: none;
}

.tag-scroll-container::-webkit-scrollbar {
    display: none;
}

.tag-chip {
    padding: 8px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
}

.tag-chip:hover {
    border-color: var(--text-main);
    color: white;
}

.tag-chip.active {
    background: linear-gradient(135deg, #FF0080, #7928CA);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(121, 40, 202, 0.4);
}

/* --- UPLOAD AREA --- */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: var(--bg-input);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--text-muted);
    background: var(--bg-hover);
}

/* --- PRICING GRID --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.pricing-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-lime);
}

.pricing-card.best-value {
    border: 2px solid var(--primary-lime);
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.05), transparent);
}

.best-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-lime);
    color: black;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.price-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.price-amount {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.price-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
    flex-grow: 1;
    /* Push button down */
}

.feature-list {
    list-style: none;
    margin-bottom: 24px;
    padding: 0;
}

.feature-item {
    font-size: 13px;
    color: #ddd;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item i {
    color: var(--primary-lime);
    font-size: 12px;
}

.pricing-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.pricing-btn:hover {
    border-color: var(--primary-lime);
    color: var(--primary-lime);
}

.pricing-btn.highlight {
    background: var(--primary-lime);
    color: black;
    border: none;
}

.pricing-btn.highlight:hover {
    background: var(--primary-lime-hover);
    color: black;
}


/* --- YOUTUBE VIRAL BADGES --- */
.viral-badge-red {
    background: #ff4b4b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.4);
}

.viral-badge-orange {
    background: #ff9800;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.viral-badge-blue {
    background: #2196F3;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.winning-video-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.winning-video-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-lime);
}

/* --- YOUTUBE DASHBOARD STYLES --- */
.yt-filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 11px;
    color: #2196F3;
    font-weight: 600;
}

.filter-group select {
    background: #222;
    color: white;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
    cursor: pointer;
}

.filter-group select:focus {
    border-color: #2196F3;
    outline: none;
}

.yt-search-row {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.yt-search-row .search-icon {
    color: #666;
    margin-left: 12px;
}

.yt-search-row input {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    flex: 1;
    outline: none;
}

.yt-search-row input:-webkit-autofill,
.yt-search-row input:-webkit-autofill:hover,
.yt-search-row input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #222 inset !important;
    -webkit-text-fill-color: white !important;
    background-color: transparent !important;
}

.deep-search-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.deep-search-btn:hover {
    background: #1976D2;
}

.yt-sort-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #333;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.sort-tab {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -13px;
    /* visual alignment with border */
    transition: 0.2s;
}

.sort-tab:hover {
    color: white;
}

.sort-tab.active {
    color: #2196F3;
    font-weight: 700;
    border-bottom: 2px solid #2196F3;
}

.sort-toggle {
    cursor: pointer;
    color: #2196F3;
    font-weight: 600;
}

/* --- SETTINGS MODAL STYLES --- */
.settings-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.setting-group {
    margin-bottom: 24px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-label {
    font-size: 12px;
    color: #2196F3;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
}

.button-group-row {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    flex: 1;
    background: #222;
    border: 1px solid #333;
    color: #888;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
}

.toggle-btn:hover {
    background: #2a2a2a;
    color: white;
}

.toggle-btn.active {
    background: transparent;
    border: 2px solid #2196F3;
    color: white;
}

.toggle-btn.active.option-blue {
    background: #2196F3;
    border-color: #2196F3;
    color: white;
}

.dark-select {
    width: 100%;
    background: #222;
    color: white;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.save-settings-btn {
    width: 100%;
    background: #2196F3;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.save-settings-btn:hover {
    background: #1976D2;
}

.settings-btn-blue {
    background: #2196F3;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn-dark {
    background: #222;
    color: #888;
    border: 1px solid #333;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-dark:hover {
    color: white;
    border-color: #555;
}

/* --- CHAT WIDGET --- */
.chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    /* Ensure container doesn't block clicks */
}

.chat-fab {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    /* Dark Gray */
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
    pointer-events: auto;
    border: 1px solid var(--border-color);
}

.chat-fab:hover {
    transform: translateY(-2px);
    background: #444;
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.chat-modal {
    width: 380px;
    height: 600px;
    background: #FFFFFF;
    /* Light theme specific for chat as per screenshots */
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

.chat-modal.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(135deg, #A044FF, #6A3093);
    padding: 30px 24px;
    color: white;
    position: relative;
}

.chat-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.chat-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
}

.chat-close-btn:hover {
    opacity: 1;
}

.chat-body {
    flex: 1;
    background: #F8F9FA;
    overflow-y: auto;
    position: relative;
}

.chat-tab-content {
    display: none;
    padding: 24px;
    animation: fadeIn 0.3s;
    height: 100%;
}

.chat-tab-content.active {
    display: block;
}

.search-bar {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    color: #333;
}

.search-bar i {
    color: #999;
}

.chat-menu-list {
    background: white;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    overflow: hidden;
}

.chat-menu-Item {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F0F0F0;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-menu-Item:last-child {
    border-bottom: none;
}

.chat-menu-Item:hover {
    background: #F8F9FA;
}

.chat-menu-Item i {
    color: #CCC;
    font-size: 12px;
}

.menu-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.menu-desc {
    font-size: 12px;
    color: #888;
}

/* Messages Tab */
.chat-header-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 60%;
    color: #333;
}

.empty-state i.fa-comments {
    font-size: 48px;
    color: #DDD;
    margin-bottom: 16px;
}

.empty-state div {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.empty-state .sub {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    margin-bottom: 24px;
}

.send-msg-btn {
    background: #8E44AD;
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.send-msg-btn:hover {
    background: #763595;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

/* Help Tab Specifics */
.collection-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* Chat Navigation */
.chat-nav {
    background: white;
    border-top: 1px solid #E0E0E0;
    padding: 0 16px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.chat-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
    cursor: pointer;
    font-size: 10px;
    transition: 0.2s;
}

.chat-nav-item i {
    font-size: 20px;
}

.chat-nav-item.active {
    color: #8E44AD;
}

.chat-nav-item:hover {
    color: #666;
}

.chat-nav-item.active:hover {
    color: #8E44AD;
}

@media (max-width: 480px) {
    .chat-modal {
        width: 100vw;
        height: 100vh;
        margin-bottom: 0;
        border-radius: 0;
        right: 0;
        bottom: 0;
        position: fixed;
    }

    .chat-widget-container {
        right: 0;
        bottom: 0;
        z-index: 9999;
    }

    .chat-fab {
        margin-right: 20px;
        margin-bottom: 20px;
    }
}

/* --- PROFILE DROPDOWN --- */
/* (Previous Profile CSS...) */

/* --- ASSET CONTEXT MENU --- */
.context-menu {
    position: absolute;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    min-width: 150px;
    padding: 6px 0;
    overflow: hidden;
}

.context-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.context-item:hover {
    background: #333;
    color: white;
}

.context-item i {
    width: 16px;
    text-align: center;
    color: var(--text-muted);
}

.context-item:hover i {
    color: white;
}

.profile-dropdown {
    position: absolute;
    top: 70px;
    right: 24px;
    width: 280px;
    max-height: 80vh;
    overflow-y: auto;
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 8px 0;
    animation: fadeIn 0.2s ease-out;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    padding-bottom: 20px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #333;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
}

.profile-email {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-menu-list {
    display: flex;
    flex-direction: column;
}

.profile-menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ddd;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-menu-item:hover {
    background: var(--bg-hover);
    color: white;
}

.profile-menu-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.profile-menu-item:hover i {
    color: white;
}

.profile-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.profile-menu-item.logout {
    color: var(--text-muted);
}

.profile-menu-item.logout:hover {
    color: #ff4b4b;
}

.profile-menu-item.logout:hover i {
    color: #ff4b4b;
}

/* Settings Modal Styles */
.setting-chip {
    padding: 12px;
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 8px;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.setting-chip:hover {
    background: #252525;
    color: white;
}

.setting-chip.active {
    background: rgba(204, 255, 0, 0.1);
    border-color: var(--primary-lime);
    color: var(--primary-lime);
}

.setting-chip.blue.active {
    background: rgba(33, 150, 243, 0.1);
    border-color: #2196F3;
    color: #2196F3;
}

/* --- TITAN HERO BANNER (COMPACT) --- */
.hero-banner {
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Sharper */
    padding: 20px 16px;
    /* Tighter padding */
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    /* Uniform tight spacing */
}

.hero-title {
    font-size: 18px;
    /* Smaller */
    font-weight: 700;
    margin: 0;
    /* Use gap */
    color: white;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    /* Use gap */
    line-height: 1.4;
    max-width: 80%;
}

.hero-ratio-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* Tighter buttons */
    margin: 0;
}

.ratio-option {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    font-size: 11px;
    /* Smaller text */
    color: var(--text-muted);
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    /* Fixed small height */
}

.ratio-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.ratio-option.active {
    background: rgba(204, 255, 0, 0.08);
    border-color: var(--primary-lime);
    color: var(--primary-lime);
}

.hero-input-wrapper {
    width: 100%;
    max-width: 500px;
    /* Narrower active area */
    position: relative;
    margin: 0;
}

.hero-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    /* Slimmer input */
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    /* Sharper */
    color: white;
    font-size: 13px;
    height: 40px;
    /* Fixed height */
    transition: 0.2s;
}

.hero-input:focus {
    border-color: var(--primary-lime);
    background: black;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.1);
}

.hero-submit-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    /* Square-ish */
    background: var(--primary-lime);
    color: black;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.2s;
}

.hero-submit-btn:hover {
    background: var(--primary-lime-hover);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

/* Phase 2: System Activation Styles */
@keyframes systemOnlineFlash {
    0% {
        background: rgba(0, 0, 0, 0);
    }

    10% {
        background: rgba(204, 255, 0, 0.8);
    }

    /* Neon Green Flash */
    100% {
        background: rgba(0, 0, 0, 0);
    }
}

.system-online-active {
    animation: systemOnlineFlash 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 99999;
}

.locked-feature {
    filter: grayscale(100%);
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.locked-feature::after {
    content: '\f023';
    /* Fa-lock */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #444;
}

/* Realistic Sidebar Banners (Phase 2 & 3 Revamp) */
.realistic-banner {
    position: relative;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 10px 24px 10px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    /* Glassmorphism Base */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.realistic-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.realistic-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

/* API Banner Specifics (Tall & Impactful) */
.banner-api {
    height: 180px;
    /* Increased Height */
    background: linear-gradient(180deg, #151515 0%, #050505 100%);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.banner-api .banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
}

.banner-api.active {
    border-color: var(--primary-lime);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.1);
}

.banner-chip {
    width: 44px;
    height: 32px;
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    border-radius: 6px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #B8860B;
}

/* Telegram Banner Specifics */
.banner-telegram {
    height: 120px;
    /* Increased Height */
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
    border: 1px solid rgba(0, 136, 204, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.banner-telegram.active {
    border-color: #00FF00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.15);
}

/* ARMADA Key Button */
.armada-key-btn {
    margin-top: auto;
    /* Push to bottom */
    margin: 20px 10px;
    background: transparent;
    border: 1px solid #333;
    color: #444;
    border-radius: 50px;
    padding: 10px;
    font-size: 10px;
    font-weight: 700;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.armada-key-btn:hover {
    border-color: #666;
    color: white;
}

/* ============================================
   GHOST MODE SYSTEM (Unauthorized State)
   ============================================ */

/* Main Ghost Mode Container Effect */
.ghost-mode .main-wrapper {
    filter: grayscale(90%) brightness(0.7);
    transition: filter 0.8s ease-out;
}

.ghost-mode .main-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px);
    pointer-events: none;
    z-index: 9000;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100px);
    }
}

/* Scanline Flicker Effect */
.ghost-mode .main-wrapper::after {
    content: '';
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    background: rgba(255, 59, 48, 0.03);
    pointer-events: none;
    z-index: 9001;
    animation: ghostFlicker 4s ease-in-out infinite;
}

@keyframes ghostFlicker {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Unauthorized Shake Animation */
@keyframes unauthorizedShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.unauthorized-shake {
    animation: unauthorizedShake 0.5s ease-in-out;
}

/* System Toast Message */
.system-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(5, 5, 5, 0.98) 100%);
    border: 1px solid #ff3b30;
    border-left: 4px solid #ff3b30;
    padding: 16px 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    max-width: 500px;
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(255, 59, 48, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.system-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.system-toast .toast-title {
    color: #ff3b30;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-toast .toast-message {
    color: #ccc;
    line-height: 1.5;
}

/* Power Critical Status */
.power-critical {
    color: #ff3b30 !important;
    animation: powerPulse 1.5s ease-in-out infinite;
}

@keyframes powerPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Ghost Tooltip for Locked Items */
.ghost-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--primary-lime);
    color: var(--primary-lime);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(204, 255, 0, 0.2);
}

.ghost-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Unauthorized Warning Overlay */
.unauthorized-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #ff3b30;
    padding: 40px 60px;
    border-radius: 12px;
    text-align: center;
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 100px rgba(255, 59, 48, 0.5);
}

.unauthorized-warning.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.unauthorized-warning i {
    font-size: 48px;
    color: #ff3b30;
    margin-bottom: 16px;
    animation: warningPulse 0.5s ease-in-out;
}

@keyframes warningPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.unauthorized-warning h3 {
    color: #ff3b30;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.unauthorized-warning p {
    color: #888;
    font-size: 13px;
}

/* Boot Sequence Animation */
@keyframes bootSequence {
    0% {
        filter: grayscale(90%) brightness(0.7);
    }

    50% {
        filter: grayscale(50%) brightness(1.2) saturate(1.5);
    }

    100% {
        filter: grayscale(0%) brightness(1) saturate(1);
    }
}

.boot-active .main-wrapper {
    animation: bootSequence 1.5s ease-out forwards;
}

/* Power Online Status */
.power-online {
    color: var(--primary-lime) !important;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

/* ============================================
   GHOST MODE WELCOME SYSTEM ANIMATIONS
   ============================================ */

/* Radar Ping Animation */
@keyframes radarPing {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Scan Line Move Animation */
@keyframes scanMove {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* Blink Animation */
@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.3;
    }
}

/* Status Pulse Animation */
@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
    }
}

/* ============================================
   TACTICAL SUPPORT WIDGET
   ============================================ */

#tactical-support-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99000;
    cursor: pointer;
}

.support-widget-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 65, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}

.support-widget-btn i {
    font-size: 20px;
    color: #00FF41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    transition: all 0.3s ease;
}

.support-widget-btn:hover {
    transform: scale(1.1);
    border-color: rgba(0, 255, 65, 0.6);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.support-widget-btn:hover i {
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    transform: rotate(15deg);
}

/* Pulse Ring Animation */
.support-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 65, 0.4);
    animation: supportPulse 3s ease-out infinite;
    pointer-events: none;
}

.support-pulse-ring.delay {
    animation-delay: 1.5s;
}

@keyframes supportPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Ghost Mode Label */
#support-ghost-label {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    animation: ghostLabelFloat 2s ease-in-out infinite;
}

#support-ghost-label span {
    font-size: 9px;
    font-weight: 700;
    color: #ff3b30;
    letter-spacing: 1px;
}

@keyframes ghostLabelFloat {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Ghost Mode Alert State */
.ghost-mode #tactical-support-widget .support-pulse-ring {
    border-color: rgba(255, 59, 48, 0.4);
    animation-duration: 1.5s;
}

.ghost-mode #tactical-support-widget .support-widget-btn {
    border-color: rgba(255, 59, 48, 0.4);
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.2);
}

.ghost-mode #tactical-support-widget .support-widget-btn i {
    color: #ff6b5b;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
    animation: ghostIconBlink 1s ease-in-out infinite;
}

@keyframes ghostIconBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Menu Open State - Icon Morph */
#tactical-support-widget.menu-open .support-widget-btn i {
    transform: rotate(45deg);
}

#tactical-support-widget.menu-open .support-pulse-ring {
    animation: none;
    opacity: 0;
}

/* Support Menu Hover Scan Animation */
.support-menu-hover {
    position: relative;
    overflow: hidden;
}

.support-menu-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 170, 65, 0.08), transparent);
    transition: none;
}

.support-menu-hover:hover::before {
    animation: menuScan 0.6s ease-out;
}

.support-menu-hover:hover {
    background: rgba(0, 170, 65, 0.05);
    border-color: rgba(0, 170, 65, 0.2) !important;
}

@keyframes menuScan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ============================================
   ACCESSIBILITY: TECHNICAL TERM TOOLTIPS
   ============================================ */

.term-tooltip {
    position: relative;
    border-bottom: 1px dotted #888;
    cursor: help;
}

.term-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    width: max-content;
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    pointer-events: none;
    text-align: left;
}

.term-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* ============================================
   GHOST MODE (OFFLINE) VISUAL EFFECTS
   ============================================ */

.ghost-mode .main-content {
    filter: saturate(0.7);
}

.ghost-mode .feature-card,
.ghost-mode .tool-card {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.ghost-mode .hero-banner {
    filter: saturate(0.5);
}

/* ============================================
   SYSTEM ONLINE ACTIVATION EFFECTS
   ============================================ */

body:not(.ghost-mode) .main-content {
    animation: systemOnline 1s ease-out;
}

@keyframes systemOnline {
    0% {
        filter: saturate(0.5);
    }

    100% {
        filter: saturate(1);
    }
}

body:not(.ghost-mode) #system-activation-banner {
    background: rgba(0, 170, 65, 0.1) !important;
    border-color: rgba(0, 170, 65, 0.3) !important;
    color: #00AA41 !important;
}

body:not(.ghost-mode) #system-activation-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 170, 65, 0.2);
    pointer-events: none;
}

/* System Online - Neon Glow on Primary Elements */
body:not(.ghost-mode) .nav-item.active {
    box-shadow: 0 0 15px rgba(0, 170, 65, 0.2);
}

body:not(.ghost-mode) .action-btn:hover {
    box-shadow: 0 0 25px rgba(0, 170, 65, 0.4);
}

body:not(.ghost-mode) .feature-card:hover {
    border-color: rgba(0, 170, 65, 0.3);
    box-shadow: 0 8px 30px rgba(0, 170, 65, 0.15);
}

/* ============================================
   SPECIAL OPS WEAPON CARDS
   ============================================ */

.weapon-card-active:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.25);
    border-color: rgba(0, 255, 65, 0.6) !important;
}

.weapon-card-locked:hover {
    transform: scale(1.01);
}

.ops-category {
    transition: all 0.3s ease;
}

.ops-category:hover {
    transform: translateY(-2px);
}

/* Pulse animation for HOT badge */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes auroraGlow {

    0%,
    100% {
        box-shadow: 0 0 25px rgba(0, 255, 65, 0.4), inset 0 0 20px rgba(0, 255, 65, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 255, 65, 0.6), inset 0 0 30px rgba(0, 255, 65, 0.15);
    }
}

/* ============================================
   ELITE WEAPON CARDS - GOLDEN LOCK EFFECTS
   ============================================ */

.weapon-card-elite:hover {
    transform: scale(1.02);
    border-color: rgba(255, 215, 0, 0.5) !important;
}

.weapon-card-elite:hover .golden-lock-overlay {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.15) 50%, rgba(255, 215, 0, 0.2) 100%);
}

.weapon-card-elite:hover .unlock-hint {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Golden glow for elite badge */
.weapon-card-elite:hover .golden-lock-overlay i {
    animation: goldenGlow 1s infinite;
}

@keyframes goldenGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 165, 0, 0.5);
    }
}

/* ============================================
   PHASE 2: OPAL AI AGENT MARKETPLACE
   ============================================ */

.opal-market {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9), rgba(20, 20, 30, 0.95));
    border: 1px solid rgba(147, 112, 219, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(147, 112, 219, 0.1);
}

.opal-header {
    text-align: center;
    margin-bottom: 24px;
}

.opal-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.opal-logo {
    font-size: 32px;
}

.opal-title h2 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #e0e0ff, #b8a9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.opal-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: rgba(147, 112, 219, 0.8);
    padding: 4px 10px;
    background: rgba(147, 112, 219, 0.15);
    border-radius: 12px;
}

.opal-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* Agent Grid */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Agent Card */
.agent-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(147, 112, 219, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.agent-card.premium {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 165, 0, 0.02));
}

.agent-card.premium:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.15);
}

.premium-crown {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.5));
}

.agent-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

.agent-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.agent-badge {
    padding: 3px 8px;
    background: rgba(147, 112, 219, 0.15);
    border: 1px solid rgba(147, 112, 219, 0.3);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #b8a9ff;
}

.agent-badge.premium {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.agent-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0;
}

/* Agent Briefing Modal */
.agent-briefing-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.briefing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.briefing-content {
    position: relative;
    width: 480px;
    max-width: 90vw;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.98), rgba(20, 20, 30, 0.98));
    border: 1px solid rgba(147, 112, 219, 0.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.briefing-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(147, 112, 219, 0.1);
    border-bottom: 1px solid rgba(147, 112, 219, 0.2);
}

.briefing-agent-avatar {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.briefing-agent-info {
    flex: 1;
}

.briefing-agent-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
}

.briefing-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.briefing-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.briefing-close:hover {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

.briefing-message {
    padding: 28px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.briefing-actions {
    padding: 20px 24px;
    display: flex;
    gap: 12px;
}

.briefing-asset-btn {
    flex: 1;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.briefing-hire-btn {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #b8a9ff, #9370db);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.briefing-hire-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 112, 219, 0.4);
}

/* ============================================
   PHASE 1: TACTICAL BAR (Redesigned)
   ============================================ */

/* Hero Tagline */
.hero-tagline {
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.hero-tagline .highlight-lime {
    color: var(--primary-lime);
    font-weight: 600;
}

.hero-tagline .brand-bold {
    font-weight: 800;
    color: white;
}

.hero-subcopy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    font-weight: 400;
}

/* Tactical Container - Inline, not floating */
.tactical-container {
    margin-bottom: 16px;
}

/* Mode Toggle Buttons (Videos / Images) */
.tactical-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tactical-mode-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

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

.tactical-mode-btn.active {
    background: rgba(204, 255, 0, 0.15);
    border-color: rgba(204, 255, 0, 0.4);
    color: var(--primary-lime);
}

/* Main Prompt Box */
.tactical-prompt-box {
    background: rgba(25, 25, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
    position: relative;
}

.tactical-prompt-box:focus-within {
    border-color: rgba(204, 255, 0, 0.3);
}

/* Mode Label (Top Left) */
.tactical-mode-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.tactical-mode-label:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Style Badge */
.style-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.2), rgba(204, 255, 0, 0.1));
    border: 1px solid rgba(204, 255, 0, 0.4);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-lime);
}

.style-badge-text {
    white-space: nowrap;
}

/* Model Version Selector */
.model-version-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
}

.model-version-selector:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.model-version-selector i {
    font-size: 10px;
    opacity: 0.5;
}

.model-audio-badge {
    padding: 2px 8px;
    background: rgba(204, 255, 0, 0.15);
    border: 1px solid rgba(204, 255, 0, 0.3);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-lime);
}

/* Model Dropdown */
.model-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    background: rgba(40, 40, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.model-dropdown.show {
    display: block;
}

.model-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.model-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.model-option.selected {
    background: rgba(255, 255, 255, 0.08);
}

.model-radio {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.model-option.selected .model-radio {
    border-color: white;
}

.model-radio-inner {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
}

.model-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.model-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.model-badge.beta {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.model-badge.no-audio {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

/* Upload Buttons Container - Centered */
.tactical-upload-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 16px;
    z-index: 100;
}

.tactical-upload-btn,
.tactical-assets-btn {
    width: 100px;
    height: 100px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: auto;
}

.tactical-upload-btn i,
.tactical-assets-btn i {
    font-size: 28px;
    pointer-events: none;
}

.upload-label {
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.tactical-upload-btn:hover,
.tactical-assets-btn:hover {
    background: rgba(204, 255, 0, 0.1);
    border-color: rgba(204, 255, 0, 0.4);
    border-style: solid;
    color: var(--primary-lime);
}

/* Frame Upload Container (Frame-to-Video mode) */
.frame-upload-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.frame-upload-btn {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: auto;
}

.frame-upload-btn i {
    font-size: 24px;
    pointer-events: none;
}

.frame-upload-btn:hover {
    background: rgba(204, 255, 0, 0.1);
    border-color: rgba(204, 255, 0, 0.4);
    color: var(--primary-lime);
}

.frame-upload-btn.has-image {
    border-style: solid;
    border-color: rgba(204, 255, 0, 0.5);
    background-size: cover;
    background-position: center;
}

.frame-upload-btn.has-image i {
    display: none;
}

.frame-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
}

/* My Assets Modal */
.my-assets-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-assets-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.my-assets-content {
    position: relative;
    width: 600px;
    max-width: 90vw;
    max-height: 80vh;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.my-assets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.my-assets-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.my-assets-header h3 i {
    color: var(--primary-lime);
}

.my-assets-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.my-assets-close:hover {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

/* Retention Warning */
.retention-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.05));
    border-bottom: 1px solid rgba(255, 152, 0, 0.2);
    color: #ffa726;
    font-size: 13px;
}

.retention-warning i {
    font-size: 16px;
}

.retention-warning .pro-badge {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    transition: transform 0.2s;
}

.retention-warning .pro-badge:hover {
    transform: scale(1.05);
}

/* Assets Grid */
.my-assets-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    overflow-y: auto;
    max-height: 400px;
}

.my-asset-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.my-asset-card:hover {
    border-color: rgba(204, 255, 0, 0.4);
    transform: translateY(-2px);
}

.asset-thumbnail {
    height: 100px;
    background-size: cover;
    background-position: center;
}

.asset-info {
    padding: 10px 12px;
}

.asset-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.asset-expire {
    padding: 6px 12px;
    background: rgba(255, 152, 0, 0.1);
    font-size: 11px;
    color: #ffa726;
    text-align: center;
}

/* Empty State */
.my-assets-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.3);
}

.my-assets-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.my-assets-empty p {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.my-assets-empty span {
    font-size: 13px;
}


/* Prompt Textarea */
.tactical-prompt {
    width: 100%;
    min-height: 80px;
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    resize: none;
    outline: none;
    font-family: inherit;
}

.tactical-prompt::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Bottom Row - Icons on RIGHT side */
.tactical-bottom-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tactical Icons Row */
.tactical-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tactical-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

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

.tactical-icon-btn.active {
    background: rgba(204, 255, 0, 0.1);
    color: var(--primary-lime);
    border-color: rgba(204, 255, 0, 0.3);
}

.tactical-icon-btn.ai-expand {
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.15), rgba(204, 255, 0, 0.05));
    color: var(--primary-lime);
    border-color: rgba(204, 255, 0, 0.3);
}

.tactical-icon-btn.ai-expand:hover {
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.25), rgba(204, 255, 0, 0.1));
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
}

/* Generate Button */
.tactical-generate-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-lime), #a8cc00);
    color: black;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tactical-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(204, 255, 0, 0.4);
}

/* Dropdown Layer - Bottom-left aligned with icon's bottom-left */
.tactical-dropdown {
    position: absolute;
    bottom: 0;
    right: calc(100% + 8px);
    min-width: 220px;
    max-height: 350px;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    box-shadow: -10px 5px 40px rgba(0, 0, 0, 0.5);
}

.tactical-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.tactical-dropdown-item {
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
}

.tactical-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.tactical-dropdown-item.selected {
    background: rgba(204, 255, 0, 0.1);
    color: var(--primary-lime);
}

/* Premium Crown - Larger with Glow Animation */
.tactical-dropdown-item .crown {
    font-size: 16px;
    animation: crownGlow 2s ease-in-out infinite;
    margin-left: auto;
}

@keyframes crownGlow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 25px rgba(255, 165, 0, 0.6), 0 0 35px rgba(255, 215, 0, 0.4);
        transform: scale(1.15);
    }
}

/* Divider */
.tactical-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* AI Storm Engine Panel - Positioned same as dropdowns */
.storm-engine-panel {
    position: absolute;
    bottom: 0;
    right: calc(100% + 8px);
    width: 480px;
    max-height: 350px;
    overflow-y: auto;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 16px;
    padding: 16px;
    z-index: 2000;
    box-shadow: -10px 5px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(204, 255, 0, 0.1);
    display: none;
}

.storm-engine-panel.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

.storm-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-lime);
    display: flex;
    align-items: center;
    gap: 8px;
}

.storm-mode-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
}

.storm-mode-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.storm-mode-btn.active {
    background: rgba(204, 255, 0, 0.2);
    color: var(--primary-lime);
}

/* Preset Grid - 5 columns */
.storm-presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.storm-preset {
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.storm-preset:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.storm-preset-icon,
.storm-preset-name {
    pointer-events: none;
}

/* Custom Tooltip */
.storm-preset {
    position: relative;
}

.storm-preset::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 6px;
    z-index: 100;
}

.storm-preset:hover::after {
    opacity: 1;
    visibility: visible;
}

.storm-preset.selected {
    background: rgba(204, 255, 0, 0.08);
    border-color: rgba(204, 255, 0, 0.4);
}

.storm-preset.premium {
    position: relative;
    border-color: rgba(255, 215, 0, 0.3);
    animation: premiumGlow 2.5s ease-in-out infinite;
}

@keyframes premiumGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), 0 0 25px rgba(255, 165, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.6);
    }
}

.storm-preset.premium::after {
    content: '👑';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    animation: crownGlow 2s ease-in-out infinite;
}

.storm-preset-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.storm-preset-name {
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.storm-preset-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Expanded Prompt Preview */
.storm-preview {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-height: 120px;
    overflow-y: auto;
}

.storm-preview .tag {
    color: var(--primary-lime);
    font-weight: 600;
}

/* Canvas Preview Area - Removed (content now visible below Tactical Bar) */