/* Root Colors & Variables */
:root {
    --bg-dark: #05070f;
    --panel-dark: rgba(12, 16, 30, 0.75);
    --panel-border: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    
    /* Neon Colors */
    --neon-cyan: #00f0ff;
    --neon-cyan-glow: rgba(0, 240, 255, 0.25);
    --neon-violet: #bd00ff;
    --neon-violet-glow: rgba(189, 0, 255, 0.25);
    
    --color-green: #10b981;
    --color-green-glow: rgba(16, 185, 129, 0.25);
    
    /* Multi-layered 3D deep shadows */
    --shadow-3d: 
        0 10px 20px rgba(0, 0, 0, 0.45),
        0 20px 40px rgba(0, 0, 0, 0.55),
        0 30px 60px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

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

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    min-height: 100vh;
}

/* Background Neon Blur Spheres */
.glow-sphere-cyan {
    position: fixed;
    top: -200px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-cyan-glow) 0%, rgba(0,240,255,0) 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    animation: rotateSphere 20s infinite alternate ease-in-out;
}

.glow-sphere-violet {
    position: fixed;
    bottom: -250px;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--neon-violet-glow) 0%, rgba(189,0,255,0) 70%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    animation: rotateSphere 25s infinite alternate-reverse ease-in-out;
}

@keyframes rotateSphere {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.08); }
}

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

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: rgba(6, 9, 19, 0.92);
    border-right: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.sidebar-brand {
    padding: 2rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid var(--panel-border);
}

.brand-logo svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px var(--neon-cyan-glow));
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    background: linear-gradient(90deg, #fff 50%, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-menu {
    flex: 1;
    padding: 1.5rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

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

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

.menu-item.active {
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 240, 255, 0.01) 100%);
    border-left: 3px solid var(--neon-cyan);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.02);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--panel-border);
}

.version-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Main Content area */
.main-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 2.5rem 3.5rem 7rem 3.5rem; /* Large bottom padding for fixed bar */
    position: relative;
}

/* View Sections Routing */
.view-panel {
    display: none;
    animation: slideUpView 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding-bottom: 2rem;
}

.view-panel.active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#view-creative-creator::after {
    content: "";
    display: block;
    height: 10rem;
    width: 100%;
    flex-shrink: 0;
}

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

.view-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.view-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

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

/* Dashboard View Stats */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background-color: var(--panel-dark);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-3d);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #fff 50%, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trend-up {
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 600;
}

.trend-ok {
    color: var(--neon-cyan);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Creator Workspace Layout */
.creator-workspace {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

/* Floating 3D Cards */
.workspace-card {
    background-color: var(--panel-dark);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 2.25rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-3d);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.workspace-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

/* Input Fields & Forms */
.input-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.input-section label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.url-input-wrapper {
    display: flex;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 0.4rem;
    gap: 0.5rem;
}

.url-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    padding-left: 0.75rem;
}

.url-input-wrapper input::placeholder {
    color: var(--text-muted);
}

/* Uploader Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--neon-cyan);
    background-color: rgba(0, 240, 255, 0.02);
}

.drop-icon {
    font-size: 2.25rem;
}

.drop-zone p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.highlight-link {
    color: var(--neon-cyan);
    font-weight: 600;
}

/* Pill Selectors */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.settings-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pill-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.pill-btn.active {
    color: var(--text-primary);
    background-color: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.pill-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Button UI */
.btn {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cyan {
    background-color: var(--neon-cyan);
    color: #000;
}

.btn-cyan:hover {
    background-color: #55f5ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-full {
    width: 100%;
    padding: 0.85rem;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Miniature Preview Product Card */
.preview-product-card {
    display: none;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    align-items: center;
    gap: 1rem;
    position: relative;
    animation: fadeInPreview 0.3s ease-out;
}

@keyframes fadeInPreview {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.preview-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.preview-close:hover {
    color: var(--text-primary);
}

.preview-image-box {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--panel-border);
}

.preview-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-img-placeholder {
    font-size: 1.5rem;
}

.preview-details {
    flex: 1;
    min-width: 0;
}

.preview-details h4 {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-top: 0.15rem;
}

.preview-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
}

/* Bottom Fixed Bar */
.bottom-fixed-bar {
    position: fixed;
    bottom: 0;
    left: 260px; /* offset sidebar */
    right: 0;
    background: transparent;
    backdrop-filter: none;
    border-top: none;
    padding: 1.25rem 3.5rem;
    display: flex;
    justify-content: flex-end;
    z-index: 99;
    pointer-events: none; /* Let clicks pass through empty space */
}

.bottom-fixed-bar .btn-generate-creative {
    pointer-events: auto; /* Enable clicks on the button itself */
}

.btn-generate-creative {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 100%);
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 3rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-generate-creative:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(189, 0, 255, 0.4);
}

/* Loading Overlay View */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-box {
    background-color: rgba(14, 20, 36, 0.8);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 3.5rem;
    width: 90%;
    max-width: 550px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-3d);
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.loading-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-violet), transparent);
    box-shadow: 0 0 15px 1px var(--neon-violet);
}

.loading-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #fff 50%, var(--neon-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.loading-step {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    opacity: 0.4;
    transition: all 0.4s ease;
}

.loading-step.active {
    opacity: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.loading-step.done {
    opacity: 1;
    color: var(--neon-cyan);
}

.loading-step .step-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: transparent;
    transition: all 0.3s;
}

.loading-step.active .step-icon {
    border-color: var(--neon-violet);
    box-shadow: 0 0 8px var(--neon-violet);
    animation: rotateIcon 1.5s infinite linear;
    color: var(--neon-violet);
    background: transparent;
}

.loading-step.done .step-icon {
    background-color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 8px var(--neon-cyan);
}

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

/* Creative Output View Grid */
.output-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.output-card {
    background-color: var(--panel-dark);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-3d);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.full-width-card {
    grid-column: span 2;
}

.output-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.output-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
}

.output-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.output-list li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.01);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.output-list li strong {
    color: var(--neon-cyan);
}

/* Script timeline style */
.script-viewer {
    background-color: #03050a;
    border-radius: 12px;
    padding: 1.25rem;
    max-height: 300px;
    overflow-y: auto;
}

.script-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.script-scene {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.script-scene:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.scene-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-violet);
    letter-spacing: 0.05em;
}

.scene-video {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.scene-audio {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-primary);
}

.footer-actions {
    display: flex;
    margin-top: 1rem;
}

/* Market Reports View Styles */
.sticky-filter-bar {
    position: sticky;
    top: 0;
    background-color: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--panel-border);
    padding: 1rem 1.75rem;
    border-radius: 16px;
    z-index: 100;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.filter-controls {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 150px;
}

.select-wrapper label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.select-wrapper select {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--panel-border);
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.select-wrapper select:focus {
    border-color: var(--neon-cyan);
}

/* Report Cards Grid & Card Styles */
.report-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.report-card {
    background-color: var(--panel-dark);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-3d);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Floating Elevation */
.report-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.5),
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 240, 255, 0.05);
}

.report-card-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.report-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.tag-free {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-paid {
    background-color: rgba(189, 0, 255, 0.15);
    color: #df7eff;
    border: 1px solid rgba(189, 0, 255, 0.3);
}

.report-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.report-sector {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-cyan);
    letter-spacing: 0.05em;
}

.report-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.report-meta-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.report-price-tag {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.text-purple { color: #df7eff; }

.report-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.report-actions-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.report-actions-footer .btn {
    flex: 1;
}

/* Free vs Paid premium styling separation */
.report-card.card-paid-style {
    border-color: rgba(189, 0, 255, 0.18);
}

.report-card.card-paid-style:hover {
    border-color: var(--neon-violet);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.5),
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(189, 0, 255, 0.1);
}

.report-card.card-paid-style .report-card-glow {
    background: linear-gradient(90deg, transparent, var(--neon-violet), transparent);
}

.btn-paid-action {
    background: linear-gradient(135deg, var(--neon-violet), #9a00d0);
    color: white;
}

.btn-paid-action:hover {
    background: linear-gradient(135deg, #df3bff, var(--neon-violet));
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.4);
    transform: translateY(-1px);
}

/* Settings & Connections Styles */
.settings-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.account-connection-row {
    background-color: rgba(255,255,255,0.01);
    border: 1px solid var(--panel-border);
    padding: 1.25rem;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
}

.account-connection-row:hover {
    background-color: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.12);
}

.account-connection-row.disconnected {
    opacity: 0.55;
}

.account-connection-row.coming-soon {
    opacity: 0.35;
}

.account-profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.account-avatar-placeholder.fb { background-color: #1877f2; color: white; }
.account-avatar-placeholder.ig { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; }
.account-avatar-placeholder.tt { background-color: #000; color: white; border: 1px solid rgba(255,255,255,0.2); }
.account-avatar-placeholder.yt { background-color: #ff0000; color: white; }

.account-name-details {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.platform-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.connection-status-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.connected-badge {
    font-size: 0.75rem;
    color: var(--color-green);
    background-color: var(--color-green-glow);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.connected-badge .pulse-dot {
    width: 5px;
    height: 5px;
    background-color: var(--color-green);
    box-shadow: 0 0 6px var(--color-green);
}

.disconnected-badge {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--panel-border);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-weight: 600;
}

.coming-soon-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Publish Modal Pop-up */
.publish-modal-content {
    max-width: 550px;
}

.publish-steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publish-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.publish-form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.publish-form-group select, .publish-form-group textarea, .publish-form-group input {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.publish-form-group select:focus, .publish-form-group textarea:focus, .publish-form-group input:focus {
    border-color: var(--neon-cyan);
}

.pub-media-preview-box {
    background-color: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pub-media-icon {
    font-size: 1.75rem;
}

.pub-media-details {
    display: flex;
    flex-direction: column;
}

.pub-media-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.pub-media-size {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.schedule-toggle-group {
    display: flex;
    gap: 2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.schedule-datetime-picker {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    animation: slideUpView 0.25s ease-out;
}

.btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Button Loading State Spinner */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spinButton 0.8s linear infinite;
}

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

/* Modal Component */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 6, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #0b0e17;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 51, 68, 0.05);
    width: 90%;
    border-radius: 24px;
    overflow: hidden;
    animation: scaleInModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleInModal {
    from { transform: scale(0.9) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

/* Status Badges */
.badge-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.status-scheduled {
    background-color: rgba(0,240,255,0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0,240,255,0.2);
}

.status-published {
    background-color: var(--color-green-glow);
    color: var(--color-green);
    border: 1px solid rgba(16,185,129,0.2);
}

/* Toast Alerts */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #080b17;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    transform: translateY(150px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
}

.toast-icon {
    font-size: 1.1rem;
}

.toast-message {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Table formatting */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.opti-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.opti-table th {
    background-color: rgba(255,255,255,0.01);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--panel-border);
}

.opti-table td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--panel-border);
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.code-font {
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive layout adjustments */
@media (max-width: 1100px) {
    .creator-workspace {
        grid-template-columns: 1fr;
    }
    .output-grid {
        grid-template-columns: 1fr;
    }
    .full-width-card {
        grid-column: span 1;
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--panel-border);
    }
    .main-content {
        padding: 1.5rem 1.5rem 8rem 1.5rem;
    }
    .bottom-fixed-bar {
        left: 0;
        padding: 1rem;
    }
    .stats-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================== */
/* OMNI INBOX WORKSPACE STYLES */
/* ==================================================== */

.inbox-container {
    display: flex;
    height: calc(100vh - 10rem);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    background-color: rgba(6, 9, 20, 0.7);
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: var(--shadow-3d);
}

.inbox-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Column 1: Channels & Filters */
.inbox-channels-panel {
    width: 240px;
    min-width: 240px;
    background-color: rgba(10, 14, 28, 0.45);
    border-right: 1px solid var(--panel-border);
}

.inbox-panel-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.inbox-panel-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.inbox-platforms-list, .inbox-filters-list {
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.inbox-platform-btn, .inbox-filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.inbox-platform-btn:hover, .inbox-filter-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.inbox-platform-btn.active, .inbox-filter-btn.active {
    color: var(--text-primary);
    background-color: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.15);
    box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.02);
}

.platform-icon {
    margin-right: 0.75rem;
    font-size: 1.05rem;
}

.badge-glow {
    background-color: var(--neon-cyan);
    color: #000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* Column 2: Conversation list */
.inbox-list-panel {
    width: 330px;
    min-width: 330px;
    background-color: rgba(8, 11, 22, 0.6);
    border-right: 1px solid var(--panel-border);
}

.inbox-search-box {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.inbox-search-box input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    outline: none;
    transition: all 0.25s ease;
}

.inbox-search-box input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.inbox-cards-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inbox-loading-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Conversation Cards */
.inbox-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.inbox-card:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.inbox-card.active {
    background-color: rgba(0, 240, 255, 0.03);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.inbox-card-avatar-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.inbox-card-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.inbox-card-platform-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #080b16;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    border: 1px solid var(--panel-border);
}

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

.inbox-card-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.inbox-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.inbox-card-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-card-status-row {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.tag-status-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.05rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.tag-status-facebook { background-color: rgba(24, 119, 242, 0.15); color: #1877f2; }
.tag-status-instagram { background-color: rgba(225, 48, 108, 0.15); color: #e1306c; }
.tag-status-zalo { background-color: rgba(0, 104, 224, 0.15); color: #0068e0; }

.tag-status-hot { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.tag-status-pending { background-color: rgba(234, 179, 8, 0.15); color: #eab308; }

.inbox-card-unread-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    margin-left: auto;
}

/* Column 3: Conversation details */
.inbox-chat-panel {
    flex: 1;
    background-color: rgba(4, 6, 12, 0.85);
    position: relative;
}

.chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 3rem;
}

.placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.35;
    filter: drop-shadow(0 0 15px var(--neon-cyan-glow));
}

.chat-placeholder h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.chat-placeholder p {
    max-width: 350px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Chat Wrapper */
.chat-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(8, 12, 24, 0.4);
    backdrop-filter: blur(10px);
}

.chat-client-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-client-meta h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chat-status {
    font-size: 0.75rem;
    color: var(--color-green);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-green);
    box-shadow: 0 0 8px var(--color-green);
}

.chat-header-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-action-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-action-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Source Post Context frame */
.source-post-banner {
    background-color: rgba(0, 240, 255, 0.02);
    border-bottom: 1px solid rgba(0, 240, 255, 0.06);
    padding: 0.85rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.source-post-icon {
    font-size: 1.25rem;
    opacity: 0.8;
}

.source-post-details {
    display: flex;
    flex-direction: column;
}

.source-post-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neon-cyan);
}

.source-post-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat Timeline */
.chat-timeline {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-image: radial-gradient(circle at top left, rgba(0,240,255,0.01) 0%, transparent 60%);
}

.chat-bubble-wrapper {
    display: flex;
    width: 100%;
}

.chat-bubble-wrapper.received { justify-content: flex-start; }
.chat-bubble-wrapper.sent { justify-content: flex-end; }
.chat-bubble-wrapper.system { justify-content: center; }

.chat-bubble {
    max-width: 70%;
    padding: 0.85rem 1.15rem;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
    box-shadow: var(--shadow-3d);
}

.received .chat-bubble {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-top-left-radius: 4px;
}

.sent .chat-bubble {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(189, 0, 255, 0.15) 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--text-primary);
    border-top-right-radius: 4px;
}

.system .chat-bubble {
    max-width: 90%;
    background-color: rgba(189, 0, 255, 0.03);
    border: 1px dashed rgba(189, 0, 255, 0.2);
    color: #bd9bff;
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
}

.chat-bubble-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

.received .chat-bubble-meta { text-align: left; }

.chat-bubble-author {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--neon-cyan);
}

.system .chat-bubble-author {
    color: var(--neon-violet);
    text-align: center;
}

/* Chat Composer Panel */
.chat-composer-panel {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--panel-border);
    background-color: rgba(8, 12, 24, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
}

.composer-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.composer-action-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.composer-action-icon:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.btn-ai-suggest {
    margin-left: auto;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 50%, var(--neon-cyan) 100%);
    background-size: 200% auto;
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45rem 1.15rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: suggestionGradientShift 4s infinite linear;
}

.btn-ai-suggest:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.4);
}

@keyframes suggestionGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.composer-input-area {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.composer-input-area textarea {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    outline: none;
    resize: none;
    transition: all 0.25s ease;
}

.composer-input-area textarea:focus {
    border-color: var(--neon-cyan);
    background-color: rgba(255, 255, 255, 0.02);
}

.composer-input-area .btn {
    align-self: stretch;
    border-radius: 12px;
}

/* AI Suggestions Popup Card Overlay */
.ai-suggestions-overlay {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 1.75rem;
    right: 1.75rem;
    background-color: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow-3d);
    z-index: 10;
    display: none;
    flex-direction: column;
    gap: 0.85rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-suggestions-overlay.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.ai-suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.ai-suggestions-header span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.ai-suggestions-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.ai-suggestions-close:hover {
    color: var(--text-primary);
}

.ai-suggestions-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ai-suggestion-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.ai-suggestion-item:hover {
    background-color: rgba(0, 240, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.15);
    color: var(--text-primary);
}

.ai-suggestion-insert-btn {
    background-color: var(--neon-cyan);
    color: #000;
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-suggestion-item:hover .ai-suggestion-insert-btn {
    opacity: 1;
    transform: translateX(0);
}

/* ==================================================== */
/* CHAT CENTER LAYOUT & AI ASSISTANT STYLES EXTENSION */
/* ==================================================== */

/* Active sidebar icon glow */
.menu-item.active .menu-icon {
    filter: drop-shadow(0 0 5px var(--neon-cyan));
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Chat Sub-header filter tabs */
.chat-sub-header {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 1.75rem;
    border-bottom: 1px solid var(--panel-border);
    background-color: rgba(8, 12, 24, 0.45);
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid var(--panel-border);
}

.sub-header-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 0.25rem;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
}

.sub-header-tab:hover {
    color: var(--text-primary);
}

.sub-header-tab.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.sub-header-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* Spring hover animation for conversation list cards */
.inbox-cards-container .inbox-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.inbox-cards-container .inbox-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.02);
}

/* Composer action buttons */
.composer-action-btn-pill {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.composer-action-btn-pill:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* AI Suggestions card shimmer effect */
.ai-suggestions-overlay {
    border: 1px solid rgba(189, 0, 255, 0.25) !important;
    box-shadow: 0 0 25px rgba(189, 0, 255, 0.15), var(--shadow-3d) !important;
    overflow: hidden;
}

.ai-suggestions-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(189, 0, 255, 0.12),
        transparent
    );
    transform: skewX(-25deg);
    pointer-events: none;
    animation: aiShimmer 3s infinite linear;
}

@keyframes aiShimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Source Video Thumbnail Box */
.source-post-img-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.12);
}

.source-post-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quick Replies Modal specific layouts */
.quick-replies-modal-content {
    max-width: 550px !important;
    background: rgba(10, 15, 30, 0.96) !important;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: var(--shadow-3d) !important;
    border-radius: 24px;
}

.quick-reply-template-item {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.quick-reply-template-item:hover {
    background-color: rgba(0, 240, 255, 0.03);
    border-color: var(--neon-cyan);
    box-shadow: 0 6px 16px rgba(0, 240, 255, 0.12);
    transform: translateY(-2.5px);
}

.quick-reply-shortcut {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--neon-cyan);
    font-weight: 700;
    text-transform: uppercase;
}

.quick-reply-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ==================================================== */
/* SVG ICON & GUIDE VIEW STYLES */
/* ==================================================== */

.menu-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: all 0.25s ease;
}

.menu-item.active .menu-svg {
    stroke: var(--neon-cyan);
    filter: drop-shadow(0 0 5px var(--neon-cyan-glow));
}

.menu-item:hover .menu-svg {
    stroke: var(--text-primary);
}

.btn-icon {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: all 0.2s ease;
}

.svg-glow-cyan {
    filter: drop-shadow(0 0 8px var(--neon-cyan-glow));
}

.guide-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
}

.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    flex-wrap: wrap;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.workflow-step .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.workflow-step.active .step-num {
    background-color: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.workflow-step .step-txt {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.workflow-step.active .step-txt {
    color: var(--text-primary);
}

.workflow-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.guide-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.guide-step-card {
    gap: 1.25rem;
}

.guide-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.guide-step-badge {
    background-color: rgba(189, 0, 255, 0.15);
    color: #df7eff;
    border: 1px solid rgba(189, 0, 255, 0.3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.guide-step-card:nth-child(even) .guide-step-badge {
    background-color: rgba(0, 240, 255, 0.15);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.guide-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.guide-bullet-list li {
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.4;
}

.guide-bullet-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-size: 0.8rem;
}

.guide-step-card:nth-child(even) .guide-bullet-list li::before {
    color: var(--neon-violet);
}

.guide-screenshot-box {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    background-color: rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.guide-screenshot-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.guide-screenshot-box img:hover {
    opacity: 1;
}

@media (max-width: 900px) {
    .guide-steps-grid {
        grid-template-columns: 1fr;
    }
    .workflow-diagram {
        flex-direction: column;
        gap: 1.5rem;
    }
    .workflow-arrow {
        transform: rotate(90deg);
    }
}

/* Customer Guide Styles */
.guide-content-card {
    background-color: var(--panel-dark);
    border: 1px solid var(--panel-border);
}

.customer-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.guide-step-item-new {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.guide-step-item-new:hover {
    background-color: rgba(0, 240, 255, 0.02);
    border-color: rgba(0, 240, 255, 0.12);
    transform: translateX(4px);
}

.step-number-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.step-content-box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.step-content-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.step-content-box p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==================================================== */
/* PASSCODE OVERLAY STYLES */
/* ==================================================== */
.passcode-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 7, 15, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.passcode-box {
    background-color: #0b0e17;
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 240, 255, 0.1);
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    animation: scaleInModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.passcode-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.passcode-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.passcode-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.passcode-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.passcode-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.passcode-input-wrapper {
    margin-bottom: 1.25rem;
}

.passcode-input-wrapper input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.25em;
    outline: none;
    transition: all 0.25s ease;
}

.passcode-input-wrapper input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.passcode-error-text {
    font-size: 0.8rem;
    color: #ff3344;
    margin-bottom: 1.25rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 51, 68, 0.1);
}

/* ==================================================== */
/* PROGRESS BAR STYLES */
/* ==================================================== */
.loading-progress-bar-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.loading-progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.loading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
    border-radius: 4px;
    box-shadow: 0 0 10px var(--neon-cyan-glow);
    transition: width 0.4s ease;
}

.loading-progress-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan-glow);
    text-align: right;
}

/* ==================================================== */
/* REAL-TIME UPLOAD PROGRESS BAR */
/* ==================================================== */
.upload-progress-container {
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem 0;
}
.upload-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.02);
}
.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f0ff, #7000ff);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    transition: width 0.2s ease;
}
.upload-progress-text {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--neon-cyan);
    text-shadow: 0 0 4px var(--neon-cyan-glow);
    text-align: right;
}

/* ==================================================== */
/* VIDEO LIBRARY & CARDS STYLES */
/* ==================================================== */
.video-grid {
    margin-bottom: 2rem;
}
.video-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.05);
}
.video-thumb-box {
    width: 100%;
    height: 160px;
    background-color: #070a13;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.video-thumb-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.video-card:hover .video-thumb-box video {
    opacity: 1;
}
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.video-card:hover .video-play-overlay {
    background: rgba(0,0,0,0.1);
}
.play-btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.2);
    border: 1.5px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    transition: all 0.3s ease;
}
.video-card:hover .play-btn-circle {
    transform: scale(1.1);
    background: var(--neon-cyan);
    color: #000;
}
.video-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}
.tag-video-upload {
    background-color: rgba(0, 240, 255, 0.15);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.25);
}
.tag-video-generated {
    background-color: rgba(189, 0, 255, 0.15);
    color: var(--neon-violet);
    border: 1px solid rgba(189, 0, 255, 0.25);
}
.video-details-box {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}
.video-title-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    word-break: break-all;
}
.video-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.video-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    gap: 0.5rem;
}
.video-card-footer .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.4rem;
}

/* ==================================================== */
/* VIDEO CONFIGURATION VIEW STYLES (SaaS Futuristic) */
/* ==================================================== */
.config-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .config-layout {
        grid-template-columns: 1fr;
    }
}

.config-controls-card {
    gap: 1.5rem;
}

.styled-select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.styled-select:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.styled-select option {
    background-color: #0b0e17;
    color: var(--text-primary);
}

.styled-textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    resize: vertical;
    transition: all 0.25s ease;
}

.styled-textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.styled-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.styled-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.settings-group-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    animation: fadeInSlide 0.3s ease;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sales Intensity Slider */
.intensity-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.intensity-value-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
    background-color: rgba(0, 240, 255, 0.1);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    text-shadow: 0 0 4px var(--neon-cyan-glow);
}

.intensity-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.intensity-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan-glow);
    transition: transform 0.1s ease;
    margin-top: -6px;
}

.intensity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.intensity-slider-ticks {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    margin-top: 0.35rem;
}

.intensity-slider-ticks span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.intensity-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
}

.intensity-slider-labels span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    width: 20%;
}

/* Script selection cards */
.section-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: -1rem;
    line-height: 1.4;
}

.script-variants-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.loading-variants-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid var(--neon-cyan);
    border-radius: 50%;
    animation: rotateIcon 1s infinite linear;
}

.script-variant-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.script-variant-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.02);
    transform: translateX(4px);
}

.script-variant-card.active {
    border-color: var(--neon-cyan);
    background-color: rgba(0, 240, 255, 0.02);
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.03), 0 4px 20px rgba(0, 240, 255, 0.05);
}

.script-variant-card.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--neon-cyan);
}

.variant-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.variant-title-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.variant-title-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.compliance-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.compliance-badge.pass {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.compliance-badge.warn {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.compliance-badge.fail {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.variant-hooks-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    padding-left: 0.75rem;
    margin-top: 0.25rem;
}

.variant-hooks-preview em {
    color: var(--text-primary);
    font-style: normal;
}

.compliance-warning-box {
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px dashed rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #fca5a5;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.compliance-warning-box strong {
    color: #ef4444;
}

.compliance-warning-box ul {
    padding-left: 1rem;
    margin-top: 0.15rem;
}

.compliance-action-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.compliance-checkbox {
    cursor: pointer;
    accent-color: var(--neon-cyan);
}

.compliance-checkbox-label {
    font-size: 0.8rem;
    color: var(--neon-cyan);
    font-weight: 600;
    cursor: pointer;
}

/* ==================================================== */
/* 10-STEP PIPELINE STYLES */
/* ==================================================== */
.pipeline-flow-wrapper {
    position: relative;
    padding: 1rem 0 2rem 0;
    width: 100%;
}

.pipeline-progress-bar {
    position: absolute;
    top: 28px;
    left: 4%;
    right: 4%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: 1;
    border-radius: 2px;
}

.pipeline-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-cyan-glow);
    transition: width 0.3s ease;
}

.pipeline-steps-grid {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 8%;
}

.node-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #0b0e17;
    border: 2px solid var(--text-muted);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    white-space: nowrap;
    transition: color 0.4s;
}

.pipeline-node.active .node-dot {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4), inset 0 0 5px rgba(0, 240, 255, 0.2);
    transform: scale(1.15);
}

.pipeline-node.active .node-label {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan-glow);
}

.pipeline-node.done .node-dot {
    background-color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.pipeline-node.done .node-label {
    color: var(--text-primary);
}

/* ==================================================== */
/* TERMINAL LOG CONSOLE STYLES */
/* ==================================================== */
.terminal-container {
    background-color: #03050a;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--panel-border);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

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

.terminal-dot.red { background-color: #ef4444; }
.terminal-dot.yellow { background-color: #f59e0b; }
.terminal-dot.green { background-color: #10b981; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    font-weight: 500;
}

.terminal-body {
    padding: 1rem 1.25rem;
    height: 200px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #10b981; /* Classic hacker green */
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.log-line {
    word-break: break-all;
    animation: fadeInLog 0.15s ease-out forwards;
}

.log-line.system {
    color: var(--text-secondary);
}

.log-line.error {
    color: #ef4444;
}

.log-line.warning {
    color: #f59e0b;
}

.log-line.highlight {
    color: var(--neon-cyan);
    text-shadow: 0 0 4px var(--neon-cyan-glow);
}

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

/* Edit Script & Spell Check Styles */
.scene-edit-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.field-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.field-row label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.edit-visual, .edit-audio {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.5rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.edit-visual:focus, .edit-audio:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}

/* Spell check popup styles */
.spell-error-item {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.spell-error-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.spell-error-original {
    color: #ef4444;
    text-decoration: line-through;
}

.spell-error-corrected {
    color: #10b981;
}

.spell-error-reason {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.spell-no-error {
    text-align: center;
    padding: 1.5rem;
    color: #10b981;
}

/* Custom Avatar Manager Styles */
.avatar-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.avatar-list-item:hover {
    background: rgba(0, 240, 255, 0.03);
    border-color: rgba(0, 240, 255, 0.15);
}

.avatar-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-width: 80%;
}

.avatar-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.avatar-item-id {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.avatar-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.1);
}

/* ==================================================== */
/* HOME HUB & TIMELINE CANVAS STYLES */
/* ==================================================== */

/* Color Variables */
:root {
    --neon-violet: #8b5cf6;
    --neon-violet-glow: rgba(139, 92, 246, 0.35);
    --neon-pink: #ec4899;
    --neon-pink-glow: rgba(236, 72, 153, 0.35);
    --neon-emerald: #10b981;
    --neon-emerald-glow: rgba(16, 185, 129, 0.35);
}

/* Home Hub Navigation */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hub-card {
    background-color: rgba(6, 9, 20, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

#hub-card-wizard:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.1), 0 0 30px rgba(0, 240, 255, 0.05);
}

#hub-card-canvas:hover {
    border-color: var(--neon-violet);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1), 0 0 30px rgba(139, 92, 246, 0.05);
}

#hub-card-url:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.1), 0 0 30px rgba(236, 72, 153, 0.05);
}

.hub-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: radial-gradient(circle at top left, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hub-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 1px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.hub-card:hover .hub-icon {
    transform: scale(1.1) rotate(5deg);
}

.hub-icon svg {
    width: 32px;
    height: 32px;
}

.hub-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

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

/* Timeline Canvas Workspace Layout */
.canvas-workspace {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}

.timeline-track {
    background-color: rgba(6, 9, 20, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 1.5rem;
    min-height: 500px;
}

.timeline-track h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.75rem;
}

.scenes-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timeline-placeholder {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bg-preview-placeholder {
    width: 100%;
    height: 120px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 10px;
}

.timeline-settings-panel {
    position: sticky;
    top: 2rem;
}

@media (max-width: 1024px) {
    .canvas-workspace {
        grid-template-columns: 1fr;
    }
    .timeline-settings-panel {
        position: relative;
        top: 0;
    }
}

/* Timeline Scene Cards */
.scene-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scene-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 0.5rem;
}

.scene-num-badge {
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.scene-duration-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.scene-card-body {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .scene-card-body {
        grid-template-columns: 1fr;
    }
}

.scene-script-edit-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scene-script-edit-box label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.scene-media-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scene-media-box label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.scene-media-preview {
    width: 100%;
    height: 110px;
    border-radius: 10px;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-media-preview img, .scene-media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-media-actions {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    display: flex;
    gap: 0.35rem;
}

.scene-mini-btn {
    flex: 1;
    background-color: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.scene-mini-btn:hover {
    background-color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: black;
}

.progress-status-log {
    max-height: 80px;
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 6px;
    padding: 8px;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.4;
}

/* Violet and Pink Themes Button Variants */
.btn-violet {
    background: linear-gradient(135deg, var(--neon-violet), #6d28d9);
    color: white;
}

.btn-violet:hover {
    background: linear-gradient(135deg, #a78bfa, var(--neon-violet));
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.btn-pink {
    background: linear-gradient(135deg, var(--neon-pink), #be185d);
    color: white;
}

.btn-pink:hover {
    background: linear-gradient(135deg, #f472b6, var(--neon-pink));
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
    transform: translateY(-1px);
}

.btn-emerald {
    background: linear-gradient(135deg, var(--neon-emerald), #047857);
    color: white;
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #34d399, var(--neon-emerald));
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* Drag and Drop Timeline Styles */
.scene-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.scene-card.dragging {
    opacity: 0.4;
    border: 1px dashed var(--neon-cyan) !important;
    transform: scale(0.98);
}
.scene-card.drag-over {
    border: 2px dashed var(--neon-cyan) !important;
    background: rgba(0, 240, 255, 0.03) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}
.scene-drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 1.1rem;
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.scene-drag-handle:hover {
    opacity: 1;
    color: var(--neon-cyan);
}
.scene-drag-handle:active {
    cursor: grabbing;
}
.scene-title-wrapper {
    padding-left: 20px;
}

/* ==========================================================================
   VIDEO-TO-SHORTS (LONG-TO-SHORTS) STYLES
   ========================================================================== */

.shorts-drop-zone:hover, .shorts-drop-zone.drag-over {
    border-color: var(--neon-cyan) !important;
    background: rgba(0, 240, 255, 0.05) !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.shorts-drop-zone.has-file {
    border-color: var(--neon-pink) !important;
    background: rgba(255, 0, 128, 0.02) !important;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.highlight-card {
    position: relative;
    background-color: var(--panel-dark);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-3d);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.1);
}

.highlight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.highlight-score-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 0 10px currentColor;
}

.highlight-score-high {
    color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid var(--neon-pink);
}

.highlight-score-medium {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
}

.highlight-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-self: flex-start;
}

.highlight-reason {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.highlight-action-btn {
    margin-top: 0.5rem;
}

.highlight-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.7;
}

.highlight-card:hover .highlight-glow {
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    width: 80%;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Spinner Rotate Keyframes if not defined */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================================================= */
/* PREMIUM MARKDOWN STYLING (GUIDE SECTION) */
/* ========================================================================= */
.markdown-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.markdown-body h1 {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    border-bottom: 2px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.markdown-body h2 {
    font-size: 1.8rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.markdown-body h3 {
    font-size: 1.4rem;
    color: var(--neon-cyan);
}

.markdown-body p {
    margin-bottom: 1.2rem;
}

.markdown-body a {
    color: var(--neon-cyan);
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

.markdown-body a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

.markdown-body ul, .markdown-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body li::marker {
    color: var(--neon-cyan);
}

.markdown-body code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 255, 0.2);
}

.markdown-body pre {
    background: #04060b !important;
    padding: 1.2rem !important;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.markdown-body pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: #a0aec0;
    font-size: 0.95em;
}

.markdown-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--neon-cyan);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.05), transparent);
    color: #cbd5e1;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.markdown-body blockquote p:last-child {
    margin-bottom: 0;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.markdown-body th, .markdown-body td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.markdown-body th {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    font-weight: 600;
}

.markdown-body tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.markdown-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    margin: 2rem 0;
}

/* ========================================================================= */
/* GUIDE CARDS & MODAL STYLING */
/* ========================================================================= */

#view-guide .view-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.guide-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
    width: 100%;
    justify-content: center;
}

/* Card Themes mapping color tokens */
.guide-card.theme-cyan {
    --theme-color: var(--neon-cyan);
    --theme-color-glow: var(--neon-cyan-glow);
}
.guide-card.theme-violet {
    --theme-color: var(--neon-violet);
    --theme-color-glow: var(--neon-violet-glow);
}
.guide-card.theme-pink {
    --theme-color: var(--neon-pink);
    --theme-color-glow: var(--neon-pink-glow);
}
.guide-card.theme-emerald {
    --theme-color: var(--neon-emerald);
    --theme-color-glow: var(--neon-emerald-glow);
}

.guide-card {
    background: rgba(6, 9, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: 100%;
    
    /* Animation settings */
    opacity: 0;
    transform: translateY(30px);
    
    /* GPU Hardware Acceleration */
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Staggered card variables */
.guide-card:nth-child(1) { --card-delay: 0.1s; --float-dur: 5s; }
.guide-card:nth-child(2) { --card-delay: 0.2s; --float-dur: 6s; }
.guide-card:nth-child(3) { --card-delay: 0.3s; --float-dur: 5.5s; }
.guide-card:nth-child(4) { --card-delay: 0.4s; --float-dur: 6.5s; }

/* Staggered Entrance + Organic Floating */
.view-panel.active .guide-card {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatCard var(--float-dur) ease-in-out infinite;
    animation-delay: var(--card-delay), calc(var(--card-delay) + 0.8s);
}

.guide-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: radial-gradient(circle at top left, var(--theme-color-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.guide-card:hover {
    animation-play-state: paused;
    transform: translateY(-12px) scale(1.03) !important;
    border-color: var(--theme-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px var(--theme-color-glow);
}

.guide-card:hover .guide-card-glow {
    opacity: 0.8;
}

/* Keyframes for entrance and float animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatCard {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

.guide-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid var(--theme-color);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-card-icon svg {
    width: 24px;
    height: 24px;
}

.guide-card:hover .guide-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px var(--theme-color-glow);
}

.guide-card h3 {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.guide-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.guide-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.guide-card-footer svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.guide-card:hover .guide-card-footer svg {
    transform: translateX(6px);
}

/* Modal styling */
.guide-modal-container {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: rgba(6, 9, 20, 0.96);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.08);
}

#close-guide-modal:hover {
    color: #fff !important;
}

/* ========================================================================= */
/* SMART SECURITY WARNING OVERLAY */
/* ========================================================================= */
#security-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(25px) saturate(160%);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.3s ease forwards;
}

.security-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 50px rgba(236, 72, 153, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(20px);
    animation: slideUpCard 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.security-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid var(--neon-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-pink);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.2);
    animation: pulseLock 2s infinite ease-in-out;
}

.security-icon svg {
    width: 40px;
    height: 40px;
}

.security-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
    margin: 0;
}

.security-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.security-card p.sub-warning {
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

@keyframes slideUpCard {
    to { transform: translateY(0); }
}

@keyframes pulseLock {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(236, 72, 153, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(236, 72, 153, 0.4);
    }
}

/* ========================================================================= */
/* DYNAMIC LOGO ANIMATION (5AI) */
/* ========================================================================= */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.brand-logo-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.logo-path {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: drawStroke 4s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.logo-pulse {
    animation: pulseCore 2s infinite ease-in-out;
    transform-origin: 55px 68px;
}

@keyframes drawStroke {
    0% {
        stroke-dashoffset: 240;
    }
    40%, 60% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -240;
    }
}

@keyframes pulseCore {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
        fill: var(--neon-cyan);
        filter: drop-shadow(0 0 4px var(--neon-cyan-glow));
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        fill: var(--neon-pink);
        filter: drop-shadow(0 0 12px var(--neon-pink-glow));
    }
}
