 /* --- CORE VARIABLES --- */
 :root {
    --bg-deep: #000000;
    --bg-sidebar: #0f172a;
    --accent-primary: #38bdf8;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --accent-purple: #8b5cf6;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(56, 189, 248, 0.15);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* --- 3-COLUMN LAYOUT FRAMEWORK --- */
.app-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

/* COL 1: LEFT SIDEBAR */
.app-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 20;
}

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

.logo-area {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area i {
    color: var(--accent-primary);
}

.sidebar-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Progress List Styles */
.progress-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 4px;
    opacity: 0.6;
}

.progress-item.active {
    opacity: 1;
    background: rgba(56, 189, 248, 0.1);
    color: #fff;
    font-weight: 600;
}

.progress-item.completed {
    opacity: 1;
    color: var(--accent-success);
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-family: var(--font-mono);
}

.progress-item.active .step-circle {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: #000;
}

.progress-item.completed .step-circle {
    border-color: var(--accent-success);
    background: var(--accent-success);
    color: #000;
}

/* Vibe Filter Styles */
.vibe-filter-btn {
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    width: 100%;
}

.vibe-filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.vibe-filter-btn.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    border-color: rgba(56, 189, 248, 0.2);
    font-weight: 600;
}

.help-btn-wistia {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-warning);
    margin-bottom: 1.5rem;
}

.help-btn-wistia:hover {
    border-color: var(--accent-warning);
    color: #fff;
}

/* COL 2: CENTER WORKSPACE */
.app-workspace {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top right, #1e293b 0%, #020617 100%);
    position: relative;
    overflow: hidden;
}

.workspace-header {
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    height: 70px;
    flex-shrink: 0;
}

.workspace-title h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.workspace-title p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.workspace-content {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* --- STEP CONSTRAINTS --- */
.constrained-view-small {
    max-width: 550px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.constrained-view {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.full-view {
    width: 100%;
    height: 100%;
    padding: 2rem;
}

/* COL 3: RIGHT PANEL (Persistent) */
.app-panel {
    width: 400px;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    display: flex;
    /* IMPORTANT */
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

/* Ensure mobile rules don't hide it on desktop if you resized window */
@media (min-width: 1100px) {
    .app-panel {
        display: flex !important;
    }
}

.app-panel.wide {
    width: 45vw;
}

.panel-content {
    padding: 2rem;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* --- COMPONENT STYLES --- */
.wizard-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.wizard-input:focus {
    border-color: var(--accent-primary);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--accent-primary);
}

.btn-primary.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-ghost:hover {
    color: #fff;
    border-color: #fff;
}

/* Role Cards */
.role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.role-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.role-card:hover {
    border-color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.05);
    transform: translateY(-5px);
}

.role-card.selected {
    border-color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

/* Template Grid */
.cockpit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-bottom: 4rem;
}

/* Laptop / 1440-class screens: force 3 cards per row and shrink card size
   so the 280px min doesn't force a 2-column wrap once the sidebar + paddings
   (and OS display scaling) eat into the usable width. */
@media (min-width: 1101px) and (max-width: 1500px) {
    .cockpit-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .t-card {
        min-height: 250px;
    }

    /* !important so it also overrides the inline height:220px on theme-card
       thumbnails (inline styles otherwise win over media queries). */
    .t-card .t-thumb,
    .t-thumb {
        height: 150px !important;
    }
}

.t-card {
    display: flex;             /* Enables flexible layout */
    flex-direction: column;    /* Stacks Image top, Info bottom */
    height: 100%;              /* Fills the grid cell */
    min-height: 295px;         /* Forces a minimum height so it doesn't collapse */
    background: #1e293b;       /* Dark background color */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;          /* Keeps content inside rounded corners */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.t-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary, #38bdf8);
}

.t-card.selected {
    border-color: var(--accent-success);
    box-shadow: 0 0 0 2px var(--accent-success);
}

.t-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.t-card .t-thumb {
    width: 100%;
    height: 180px;             /* Fixed height for uniformity */
    object-fit: cover;         /* Ensures image crops nicely without stretching */
    flex-shrink: 0;            /* Prevents image from shrinking */
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.t-card-info {
    padding: 15px;
    flex-grow: 1;              /* Pushes this section to fill remaining height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Spaces out title and tags */
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 100px;         /* Ensure text area is never squashed */
}

.t-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.t-card:hover img {
    opacity: 1;
}

/* Plans */
.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.plan-card.selected {
    border-color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
}

.plan-card.popular::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 20px;
    right: -40px;
    background: var(--accent-purple);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 5px 40px;
    transform: rotate(45deg);
}

/* Password Meter */
.password-strength {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    height: 4px;
}

.strength-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: all 0.3s;
}

#password-requirements {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
}

.req-item {
    display: flex;
    align-items: center;
}

.req-item i {
    margin-right: 8px;
}

/* Terminal */
.term-line {
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 6px;
    color: #64748b;
    animation: fadeIn 0.3s ease;
}

.term-line.success {
    color: #10b981 !important;
    font-weight: 700;
}

.term-line.error {
    color: #ef4444 !important;
}

.term-line.highlight {
    color: #38bdf8 !important;
}

.term-time {
    color: #334155;
    font-size: 0.75rem;
    margin-right: 15px;
    min-width: 80px;
    flex-shrink: 0;
    padding-top: 2px;
}

.term-spinner {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #38bdf8;
    animation: term-spin 0.8s linear infinite;
    margin-left: 10px;
    margin-top: 4px;
}

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

/* Utilities */
.hidden {
    display: none !important;
}

/* Summary Row Styling */
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.summary-val {
    text-align: right;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.5;
    }
}

/* Mobile */
@media (max-width: 1100px) {
    .app-layout {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0.5rem;
    }

    .sidebar-content {
        padding: 0.5rem;
        flex-direction: row;
        overflow-x: auto;
    }

    .app-panel {
        display: none;
    }

    .app-panel.wide {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 50;
    }

    .constrained-view,
    .constrained-view-small {
        padding: 1rem;
    }

    .role-grid {
        grid-template-columns: 1fr;
    }
}

.workspace-actions {
    display: flex;
    gap: 1rem;
}

.grecaptcha-badge {
    visibility: hidden;
}

/* Guide Panel Enhancements */
.guide-feature {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.guide-feature:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
    border-color: var(--accent-primary);
}

.guide-feature i {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-top: 2px;
}

.guide-feature h4 {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 0.95rem;
}

.guide-feature p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* --- LEVEL 2: ASSET TABS --- */
.asset-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;

    /* [FIX] Enable Horizontal Scroll for long tab lists */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* Optional: Hide scrollbar Firefox */
}

/* Optional: Hide scrollbar Chrome/Safari */
.asset-tabs::-webkit-scrollbar {
    display: none;
}

.asset-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 12px;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.asset-tab:hover {
    color: #fff;
}

.asset-tab.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.asset-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
}

/* --- LEVEL 3: THEME SELECTOR (PREVIEW PANEL) --- */
.theme-selector-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- THEME GRID (Right Panel List) --- */
.theme-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Force 1 Column */
    gap: 15px;
    margin-top: 10px;

    /* Scrollable Logic (Max 2 items) */
    /* Assuming card height ~220px. Adjust 450px if needed based on image height */
    max-height: 480px;
    overflow-y: auto;
    padding-right: 5px;
    /* Space for scrollbar */

    /* Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(255, 255, 255, 0.05);
}

.theme-grid::-webkit-scrollbar {
    width: 6px;
}

.theme-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.theme-grid::-webkit-scrollbar-thumb {
    background-color: var(--accent-primary);
    border-radius: 10px;
}

.theme-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.theme-option:hover,
.theme-option.active {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

.theme-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-name {
    font-size: 0.85rem;
    color: #fff;
}

/* --- STEP 3 LAYOUT --- */
.template-container {
    display: flex;
    height: 100%;
    gap: 0;
}

/* LEFT SIDEBAR (Identity Filters) */
.filter-sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.6);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-shrink: 0;
}

.filter-group h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* MAIN CONTENT (Tabs + Grid) */
.template-main {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    background: radial-gradient(circle at top right, #1e293b 0%, #020617 100%);
}

/* --- RIGHT PANEL PREVIEW STYLING --- */
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.preview-scroller {
    flex-grow: 1;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
    background: #000;
}

.sticky-badge {
    position: absolute;
    top: 15px;
    right: 30px;
    z-index: 20;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* THEME CARD STYLING */
.theme-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.theme-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.theme-card.selected {
    border-color: var(--accent-success);
    box-shadow: 0 0 0 2px var(--accent-success);
}

.theme-preview-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-card-body {
    padding: 1.2rem;
}

.color-swatch-large {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-right: 10px;
}

/* PREVIEW BUTTON OVERLAY */
.card-preview-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-preview-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
    transform: scale(1.05);
}

/* --- CLEAN SIDEBAR FILTER ROW --- */
/* Replaces the bulky cards with a clean list */
.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    margin-bottom: 6px;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

.filter-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.filter-row.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}

.filter-row.active .filter-label {
    color: #fff;
    font-weight: 600;
}

.filter-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    flex-grow: 1;
    pointer-events: none;
}

.filter-checkbox {
    accent-color: var(--accent-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* --- DYNAMIC GUIDE BOX --- */
.sidebar-guide-box {
    margin-top: auto;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 180px;
    animation: fadeIn 0.3s ease;
}

.guide-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #94a3b8;
}

/* --- FILTER CHIPS (Replaces Scrollable Tabs) --- */
.asset-tabs {
    display: flex;
    flex-wrap: wrap;
    /* Allows items to wrap to next line */
    gap: 10px;
    /* Spacing between chips */
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.asset-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    /* Fully rounded 'Pill' shape */
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
}

.asset-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.asset-tab.active {
    background: rgba(56, 189, 248, 0.15);
    /* Blue tint */
    border-color: var(--accent-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

/* Remove the old underline style */
.asset-tab.active::after {
    display: none;
}

.asset-tab i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.asset-tab.active i {
    opacity: 1;
    color: var(--accent-primary);
}

/* SIDEBAR SECTIONS */
.sidebar-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h4 {
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* RADIO ROW (For Single Select Markets) */
.filter-row.radio .filter-checkbox {
    border-radius: 50%;
    /* Circle for Radio */
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 16px;
    height: 16px;
    outline: none;
    position: relative;
    cursor: pointer;
}

.filter-row.radio .filter-checkbox:checked {
    border-color: var(--accent-primary);
    background: transparent;
}

.filter-row.radio .filter-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* --- NEW CARD INFO BUTTON --- */
.card-info-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    /* Opposite side of Preview button */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    font-size: 0.9rem;
}

.card-info-btn:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

/* --- NEW SMALL CARD FOOTER BUTTONS --- */
.btn-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    /* Subtle background initially */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-icon-small:hover {
    /* Highlight on hover */
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Ensure the card footer has enough padding for the new layout */
.t-card-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* gap: 0.8rem;  <-- Optional: Adjust spacing between title row and tags row */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}