/* 
 * The News Catcher - Creator Studio Design System
 * Aesthetic: Deep obsidian (#0A0A0A), GlassPanels, Outfit typography,
 * ambient glowing cyan orbs, refined micro-spacings, and translucent neon cyan accents.
 */

/* ==========================================
   1. VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
    /* Colors */
    --color-bg: #0A0A0A;
    --color-surface-1: #121318;
    --color-surface-2: #181922;
    --color-surface-3: #222430;
    --color-widget: #1A1B22;
    
    --color-accent: #00FFFF;
    --color-accent-rgb: 0, 255, 255;
    --color-accent-translucent: rgba(0, 255, 255, 0.59);
    --color-accent-hover: rgba(0, 255, 255, 0.78);
    --color-accent-subtle: rgba(0, 255, 255, 0.08);
    --color-accent-glow: rgba(0, 255, 255, 0.25);
    
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #9E9EA8;
    --color-text-muted: #626470;
    --color-text-button: rgba(255, 255, 255, 0.95);
    --color-border: rgba(255, 255, 255, 0.07);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    /* Fonts */
    --font-heading: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Glass Panel styling */
    --glass-bg: rgba(255, 255, 255, 0.025);
    --glass-card-bg: rgba(18, 19, 24, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    --glass-blur: blur(16px);

    /* Spacing scale */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Transitions & Radii */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   2. RESET & BASE LAYOUT
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

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

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hidden {
    display: none !important;
}

.text-cyan {
    color: var(--color-accent) !important;
}

/* ==========================================
   3. BACKGROUND AMBIENT GLOWS
   ========================================== */
.bg-glow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(140px);
    opacity: 0.08;
}

.glow-orb-1 {
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 500px;
    background-color: var(--color-accent);
}

.glow-orb-2 {
    top: 45%;
    left: 8%;
    width: 450px;
    height: 450px;
    background-color: #0077FF;
}

.glow-orb-3 {
    bottom: 5%;
    right: 10%;
    width: 400px;
    height: 400px;
    background-color: #8A2BE2;
    opacity: 0.05;
}

/* ==========================================
   4. NAVIGATION / HEADER
   ========================================== */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.logo-image-wrapper {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-surface-1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.badge-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: rgba(0, 255, 255, 0.08);
    color: var(--color-accent);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
    cursor: pointer;
    background: none;
    border: 1px solid transparent;
    padding: 6px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

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

.nav-link.active {
    color: var(--color-accent);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.25);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.12);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* ==========================================
   5. BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
    gap: var(--space-xs);
    box-sizing: border-box;
    text-decoration: none;
    user-select: none;
}

.btn-primary {
    background-color: var(--color-accent-translucent);
    color: var(--color-text-button);
    border-radius: var(--radius-md);
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: #FFFFFF;
    box-shadow: 0 6px 24px rgba(0, 255, 255, 0.35);
    border-color: var(--color-accent);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-weight: 600;
}

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

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-danger {
    background: rgba(255, 74, 74, 0.1);
    color: #FF6B6B;
    border: 1px solid rgba(255, 74, 74, 0.25);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-danger:hover {
    background: rgba(255, 74, 74, 0.2);
    color: #FFA0A0;
}

.btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 0.84rem;
}

.btn-md {
    height: 44px;
    padding: 0 20px;
    font-size: 0.92rem;
}

.btn-lg {
    height: 50px;
    padding: 0 26px;
    font-size: 1rem;
}

/* ==========================================
   6. CARDS & GLASS CONTAINERS
   ========================================== */
.glass-card {
    background: var(--glass-card-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
    margin: 0 auto;
}

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

/* Channel Overview Banner */
.channel-hero-card {
    background: linear-gradient(135deg, rgba(26, 27, 36, 0.7) 0%, rgba(14, 16, 22, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
}

.channel-identity {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.channel-logo-frame {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.25);
    background: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-info h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.channel-info p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    max-width: 520px;
    line-height: 1.45;
}

.channel-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-shrink: 0;
}

.stat-item {
    text-align: right;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================
   7. FORM ELEMENTS & CONTROLS
   ========================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.15);
    background: rgba(0, 255, 255, 0.02);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* ==========================================
   8. STATS & TABLES
   ========================================== */
.stats-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: rgba(255, 255, 255, 0.015);
}

.stats-table th {
    padding: 14px 18px;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.92rem;
    vertical-align: middle;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

/* ==========================================
   9. MODALS
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal-content {
    background: var(--color-surface-1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 440px;
    width: 100%;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.85);
    position: relative;
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: #FFF;
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================
   10. ASSET GALLERY & DROPZONE
   ========================================== */
.upload-dropzone {
    border: 2px dashed rgba(0, 255, 255, 0.22);
    background: rgba(0, 255, 255, 0.015);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--color-accent);
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.12);
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.asset-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.asset-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.asset-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.asset-info {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.asset-title {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Status Badges */
.badge-verified {
    background: rgba(0, 255, 255, 0.12) !important;
    color: var(--color-accent) !important;
    border-color: rgba(0, 255, 255, 0.3) !important;
}

.badge-pending {
    background: rgba(255, 180, 0, 0.12) !important;
    color: #FFB400 !important;
    border-color: rgba(255, 180, 0, 0.3) !important;
}

/* ==========================================
   11. UNAUTHENTICATED LANDING HERO & FEATURES
   ========================================== */
.hero-landing {
    text-align: center;
    max-width: 900px;
    margin: 40px auto 80px auto;
}

.hero-landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.hero-landing-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-landing-subtitle {
    font-size: 1.12rem;
    color: var(--color-text-secondary);
    max-width: 680px;
    margin: 0 auto var(--space-xl) auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    text-align: left;
}

.feature-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: rgba(0, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.feature-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

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

/* ==========================================
   12. RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    .channel-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .channel-stats {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: var(--space-md);
    }

    .stat-item {
        text-align: left;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        overflow-x: auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-landing-title {
        font-size: 2.2rem;
    }
    .main-header {
        height: auto;
        padding: 12px 0;
    }
    .header-container {
        flex-wrap: wrap;
    }
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }
}

/* ==========================================
   13. STUDIO SPLIT-SCREEN & MOBILE SIMULATOR
   ========================================== */
.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 390px);
    gap: 36px;
    align-items: start;
}

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

.simulator-sticky-wrapper {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-mockup {
    width: 375px;
    height: 720px;
    background: #0A0A0A;
    border-radius: 48px;
    border: 10px solid #232530;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.9),
                0 0 0 1px rgba(255, 255, 255, 0.12),
                inset 0 0 0 2px #121318;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.phone-speaker-notch {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: #181922;
    border-radius: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phone-camera-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #090a0f;
    box-shadow: inset 0 0 2px rgba(0, 255, 255, 0.4);
}

.sim-status-bar {
    height: 38px;
    padding: 10px 22px 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFFFFF;
    z-index: 30;
    flex-shrink: 0;
}

.sim-status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-screen-content {
    flex: 1;
    padding: 6px 14px 10px 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Card flip in simulator */
.sim-card-container {
    perspective: 1000px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 70px; /* Space for the floating bottom navbar */
}

.sim-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.sim-card-inner.is-flipped {
    transform: rotateY(180deg);
}

.sim-card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    background: #0A0A0A; /* Opaque background so front/back don't bleed */
    border-radius: 18px;
    overflow: hidden;
}

.sim-card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.sim-card-back {
    transform: rotateY(180deg);
    z-index: 1;
    background: #0A0A0A;
}

.sim-channel-border {
    border: 2px solid transparent;
    background: linear-gradient(#0A0A0A, #0A0A0A) padding-box,
                linear-gradient(135deg, #a855f7, #3b82f6, #ec4899) border-box;
    border-radius: 18px;
    padding: 10px 10px 12px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.sim-glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.sim-tag-pill {
    width: 86px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
}

/* Floating Bottom Navigation Bar (Exact AppScaffold & BottomNav replication) */
.sim-bottom-nav {
    position: absolute;
    bottom: 14px;
    left: 18px;
    right: 18px;
    height: 56px;
    background: rgba(26, 27, 34, 0.95);
    border: 1.5px solid #00FFFF;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    z-index: 35;
}

.sim-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #A0A0A0;
    gap: 3px;
    cursor: pointer;
    flex: 1;
}

.sim-nav-btn svg {
    width: 22px;
    height: 22px;
}

.sim-nav-btn span {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    line-height: 1;
}

.sim-nav-btn.active {
    color: #00FFFF;
    font-weight: 700;
}

.view-toggle-pill {
    display: flex;
    background: #181922;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3px;
    gap: 4px;
    margin-bottom: 12px;
}

.view-toggle-btn {
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.view-toggle-btn.active {
    background: rgba(0, 255, 255, 0.15);
    color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
}

/* ==========================================
   14. TOAST NOTIFICATIONS & TAB ANIMATIONS
   ========================================== */
.toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: rgba(22, 24, 34, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.12);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

section.glass-card:not(.hidden) {
    animation: tabFadeIn 0.22s ease-out forwards;
}

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