/* ==========================================================================
   CB Book-Flip Catalog - Dedicated Proposal Studio Dashboard
   ========================================================================== */

:root {
    --cb-dash-primary: #3c744c;
    --cb-dash-primary-hover: #2f5c3c;
    --cb-dash-secondary: #8b5cf6;
    --cb-dash-bg: #0b0f19;
    --cb-dash-surface: #111827;
    --cb-dash-surface-2: #1e293b;
    --cb-dash-surface-3: #293548;
    --cb-dash-border: #334155;
    --cb-dash-border-subtle: rgba(255, 255, 255, 0.08);
    --cb-dash-text: #f8fafc;
    --cb-dash-text-muted: #94a3b8;
    --cb-dash-text-dim: #64748b;
    --cb-dash-success: #10b981;
    --cb-dash-danger: #ef4444;
    --cb-dash-radius-sm: 6px;
    --cb-dash-radius-md: 10px;
    --cb-dash-radius-lg: 14px;
    --cb-dash-font-title: 'Gotham Book', 'Gotham', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --cb-dash-font-body: 'Gotham Book', 'Gotham', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.cb-dashboard-body {
    margin: 0;
    padding: 0;
    background-color: var(--cb-dash-bg);
    color: var(--cb-dash-text);
    font-family: var(--cb-dash-font-body);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Top Navigation Bar
   -------------------------------------------------------------------------- */
.cb-dash-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cb-dash-border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cb-dash-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cb-dash-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--cb-dash-radius-sm);
    background: linear-gradient(135deg, var(--cb-dash-primary), var(--cb-dash-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cb-dash-topbar-title-wrap {
    min-width: 0;
}

.cb-dash-topbar-title-wrap h1 {
    margin: 0;
    font-family: var(--cb-dash-font-title);
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.cb-dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(60, 116, 76, 0.25);
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.25);
    margin-left: 8px;
    vertical-align: middle;
}

.cb-dash-topbar-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--cb-dash-text-muted);
}

.cb-dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Buttons */
.cb-dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--cb-dash-radius-sm);
    font-family: var(--cb-dash-font-body);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.cb-dash-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.cb-dash-btn-ghost {
    background: transparent;
    color: var(--cb-dash-text-muted);
    border-color: var(--cb-dash-border);
}

.cb-dash-btn-ghost:hover {
    background: var(--cb-dash-surface-2);
    color: #ffffff;
    border-color: var(--cb-dash-border);
}

.cb-dash-btn-outline {
    background: var(--cb-dash-surface);
    color: var(--cb-dash-text);
    border-color: var(--cb-dash-border);
}

.cb-dash-btn-outline:hover {
    background: var(--cb-dash-surface-2);
    color: #ffffff;
    border-color: #64748b;
}

.cb-dash-btn-primary {
    background: var(--cb-dash-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(60, 116, 76, 0.4);
}

.cb-dash-btn-primary:hover {
    background: var(--cb-dash-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(60, 116, 76, 0.5);
    transform: translateY(-1px);
}

.cb-dash-btn-primary:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Dashboard Layout Structure
   -------------------------------------------------------------------------- */
.cb-dash-layout {
    display: flex;
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 100px;
    gap: 28px;
}

/* Sidebar Navigation */
.cb-dash-sidebar {
    width: 270px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cb-dash-nav-card {
    background: var(--cb-dash-surface);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-lg);
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Section Mode Switcher */
.cb-dash-section-switch {
    display: flex;
    background: var(--cb-dash-surface-2);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-md);
    padding: 3px;
    gap: 4px;
    margin-bottom: 12px;
}

.cb-dash-switch-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--cb-dash-radius-sm);
    background: transparent;
    border: none;
    color: var(--cb-dash-text-muted);
    font-family: var(--cb-dash-font-body);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cb-dash-switch-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    line-height: 15px;
}

.cb-dash-switch-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.cb-dash-switch-btn.active {
    background: var(--cb-dash-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.cb-dash-switch-btn[data-section="advance"].active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

/* Nav Groups (Basic vs Advance) */
.cb-dash-nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--cb-dash-border-subtle);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cb-dash-nav-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Advance Options nav group hidden by default */
.cb-dash-nav-group[data-group="advance"] {
    display: none;
}

/* Display Advance Options when active section is advance */
.cb-dash-nav-card[data-active-section="advance"] .cb-dash-nav-group[data-group="advance"],
.cb-dash-nav-group[data-group="advance"].is-active-group {
    display: flex;
}

.cb-dash-nav-card[data-active-section="advance"] .cb-dash-nav-group[data-group="basic"] {
    display: none;
}

.cb-dash-nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 4px;
    margin-bottom: 2px;
}

.cb-dash-nav-group-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cb-dash-text-dim);
}

.cb-dash-nav-group-title .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    color: var(--cb-dash-text-dim);
}

.cb-dash-nav-group.is-active-group .cb-dash-nav-group-title {
    color: #ffffff;
}

.cb-dash-nav-group.is-active-group[data-group="basic"] .cb-dash-nav-group-title .dashicons {
    color: #34d399;
}

.cb-dash-nav-group.is-active-group[data-group="advance"] .cb-dash-nav-group-title .dashicons {
    color: #a78bfa;
}

.cb-dash-group-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 7px;
    border-radius: 9999px;
    background: var(--cb-dash-surface-3);
    color: var(--cb-dash-text-muted);
}

.cb-dash-group-badge.cb-badge-adv {
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.cb-dash-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cb-dash-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--cb-dash-radius-sm);
    background: transparent;
    border: none;
    color: var(--cb-dash-text-muted);
    font-family: var(--cb-dash-font-body);
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.16s ease;
}

.cb-dash-nav-item:hover {
    background: var(--cb-dash-surface-2);
    color: var(--cb-dash-text);
}

.cb-dash-nav-item.active {
    background: var(--cb-dash-surface-2);
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--cb-dash-primary);
}

.cb-dash-nav-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb-dash-nav-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    color: var(--cb-dash-text-dim);
    transition: color 0.16s ease;
}

.cb-dash-nav-item.active .dashicons,
.cb-dash-nav-item:hover .dashicons {
    color: var(--cb-dash-primary);
}

.cb-dash-nav-badge {
    background: var(--cb-dash-surface-3);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    border: 1px solid var(--cb-dash-border);
}

/* Quick Summary / Status Widget in Sidebar */
.cb-dash-summary-card {
    background: var(--cb-dash-surface);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cb-dash-summary-title {
    font-family: var(--cb-dash-font-title);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cb-dash-text-dim);
    margin: 0;
}

.cb-dash-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    border-bottom: 1px solid var(--cb-dash-border-subtle);
    padding-bottom: 8px;
}

.cb-dash-summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cb-dash-summary-label {
    color: var(--cb-dash-text-muted);
}

.cb-dash-summary-val {
    font-weight: 600;
    color: #ffffff;
}

.cb-dash-color-pill {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    vertical-align: middle;
    margin-right: 4px;
}

/* Main Studio Workspace */
.cb-dash-main {
    flex: 1;
    min-width: 0;
}

.cb-dash-tab-pane {
    display: none;
    animation: cbFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cb-dash-tab-pane.active {
    display: block;
}

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

/* Section Badges in Card Headers */
.cb-dash-section-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
    width: fit-content;
}

.cb-dash-section-pill .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
}

.cb-dash-section-pill.pill-basic {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cb-dash-section-pill.pill-advance {
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Advance Section Bar */
.cb-dash-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 9px 16px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: var(--cb-dash-radius-md);
}

.cb-dash-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #c4b5fd;
}

.cb-dash-section-tag .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Callout to Advance Section at end of Basic */
.cb-dash-next-section-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(26, 33, 50, 0.98));
    border: 1px solid var(--cb-dash-border);
    border-left: 4px solid var(--cb-dash-secondary);
    border-radius: var(--cb-dash-radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.cb-dash-next-text {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cb-dash-next-text .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    color: #a78bfa;
    flex-shrink: 0;
}

.cb-dash-next-text strong {
    font-size: 14px;
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.cb-dash-next-text p {
    margin: 0;
    font-size: 12.5px;
    color: var(--cb-dash-text-muted);
}

.cb-goto-advance-btn {
    flex-shrink: 0;
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
}

.cb-goto-advance-btn:hover {
    background: var(--cb-dash-secondary);
    border-color: var(--cb-dash-secondary);
    color: #ffffff;
}

/* Card Containers */
.cb-dash-card {
    background: var(--cb-dash-surface);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cb-dash-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cb-dash-border-subtle);
}

.cb-dash-card-title-group h2 {
    margin: 0;
    font-family: var(--cb-dash-font-title);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-dash-card-title-group h2 .dashicons {
    color: var(--cb-dash-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.cb-dash-card-title-group p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--cb-dash-text-muted);
}

/* Form Controls & Inputs */
.cb-dash-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.cb-dash-field {
    margin-bottom: 18px;
}

.cb-dash-field:last-child {
    margin-bottom: 0;
}

.cb-dash-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.cb-dash-field-hint {
    display: block;
    font-size: 12px;
    color: var(--cb-dash-text-dim);
    margin-top: 5px;
    line-height: 1.4;
}

.cb-dash-input,
.cb-dash-select,
.cb-dash-textarea {
    width: 100%;
    background: var(--cb-dash-surface-2);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-sm);
    padding: 10px 14px;
    color: #ffffff;
    font-family: var(--cb-dash-font-body);
    font-size: 13.5px;
    transition: all 0.16s ease;
    box-sizing: border-box;
}

.cb-dash-input:focus,
.cb-dash-select:focus,
.cb-dash-textarea:focus {
    outline: none;
    border-color: var(--cb-dash-primary);
    box-shadow: 0 0 0 3px rgba(60, 116, 76, 0.25);
    background: var(--cb-dash-surface-3);
}

.cb-dash-input::placeholder,
.cb-dash-textarea::placeholder {
    color: var(--cb-dash-text-dim);
}

.cb-dash-color-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cb-dash-surface-2);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-sm);
    padding: 6px 12px;
}

.cb-dash-color-input {
    -webkit-appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    padding: 0;
}

.cb-dash-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.cb-dash-color-input::-webkit-color-swatch {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.cb-dash-color-code {
    font-family: monospace;
    font-size: 13px;
    color: var(--cb-dash-text-muted);
}

/* File Uploaders & Status Cards */
.cb-dash-file-drop {
    border: 2px dashed var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-md);
    padding: 20px;
    text-align: center;
    background: rgba(30, 41, 59, 0.4);
    transition: all 0.18s ease;
    cursor: pointer;
    position: relative;
}

.cb-dash-file-drop:hover {
    border-color: var(--cb-dash-primary);
    background: rgba(60, 116, 76, 0.08);
}

.cb-dash-file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.cb-dash-file-drop-icon {
    font-size: 32px;
    color: var(--cb-dash-text-dim);
    margin-bottom: 8px;
    display: inline-block;
}

.cb-dash-file-drop-text {
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
}

.cb-dash-file-drop-sub {
    font-size: 11.5px;
    color: var(--cb-dash-text-dim);
    margin-top: 4px;
}

/* Uploaded Status Cards */
.cb-dash-status-card {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--cb-dash-surface-2);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-sm);
    padding: 10px 14px;
    gap: 12px;
}

.cb-dash-status-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cb-dash-status-icon {
    font-size: 22px;
    color: var(--cb-dash-primary);
}

.cb-dash-status-info {
    min-width: 0;
}

.cb-dash-status-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-dash-status-badge {
    font-size: 11px;
    color: var(--cb-dash-text-dim);
}

.cb-dash-status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cb-dash-btn-icon-danger {
    background: transparent;
    border: none;
    color: var(--cb-dash-text-dim);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.cb-dash-btn-icon-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--cb-dash-danger);
}

.cb-dash-preview-thumb {
    max-height: 54px;
    max-width: 140px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border: 1px solid var(--cb-dash-border);
}

/* --------------------------------------------------------------------------
   TAB 1: Curate Bags (Studio Grid / List)
   -------------------------------------------------------------------------- */
.cb-dash-curate-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    background: var(--cb-dash-surface-2);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-md);
    padding: 12px 16px;
}

.cb-dash-curate-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.cb-dash-search-wrap {
    position: relative;
    flex: 1;
}

.cb-dash-search-wrap .dashicons {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cb-dash-text-dim);
    font-size: 17px;
}

.cb-dash-search-input {
    padding-left: 34px !important;
}

.cb-dash-curate-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cb-dash-link-btn {
    background: none;
    border: none;
    color: #60a5fa;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.cb-dash-link-btn:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.cb-dash-counter-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
}

/* Curate Product List */
.cb-dash-bag-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 640px;
    overflow-y: auto;
    padding-right: 6px;
}

.cb-dash-bag-list::-webkit-scrollbar {
    width: 6px;
}

.cb-dash-bag-list::-webkit-scrollbar-thumb {
    background: var(--cb-dash-border);
    border-radius: 4px;
}

.cb-dash-bag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    background: var(--cb-dash-surface-2);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-sm);
    transition: all 0.15s ease;
    user-select: none;
}

.cb-dash-bag-item:hover {
    border-color: #64748b;
    background: var(--cb-dash-surface-3);
}

.cb-dash-bag-item.is-selected {
    border-color: rgba(60, 116, 76, 0.6);
    background: rgba(60, 116, 76, 0.1);
}

.cb-dash-bag-item.cb-dragging {
    opacity: 0.4;
    border-style: dashed;
}

.cb-dash-bag-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cb-dash-drag-handle {
    cursor: grab;
    color: var(--cb-dash-text-dim);
    font-size: 16px;
    padding: 0 4px;
    letter-spacing: -2px;
}

.cb-dash-drag-handle:active {
    cursor: grabbing;
}

.cb-dash-bag-checkbox {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--cb-dash-primary);
}

.cb-dash-bag-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--cb-dash-border);
}

.cb-dash-bag-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cb-dash-bag-info {
    min-width: 0;
}

.cb-dash-bag-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-dash-bag-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--cb-dash-text-muted);
    margin-top: 2px;
}

.cb-dash-bag-sku {
    color: #38bdf8;
    font-family: monospace;
    font-weight: 600;
}

.cb-dash-bag-cat-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.cb-dash-bag-arrows {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.cb-dash-arrow-btn {
    background: var(--cb-dash-surface-3);
    border: 1px solid var(--cb-dash-border);
    border-radius: 4px;
    color: var(--cb-dash-text-muted);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.12s ease;
}

.cb-dash-arrow-btn:hover {
    background: #334155;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   TAB 3: Pricing Mode Cards & Footer
   -------------------------------------------------------------------------- */
.cb-dash-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.cb-dash-price-card {
    border: 2px solid var(--cb-dash-border);
    background: var(--cb-dash-surface-2);
    border-radius: var(--cb-dash-radius-md);
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.18s ease;
}

.cb-dash-price-card:hover {
    border-color: #64748b;
    background: var(--cb-dash-surface-3);
}

.cb-dash-price-card.active {
    border-color: var(--cb-dash-primary);
    background: rgba(60, 116, 76, 0.12);
    box-shadow: 0 0 0 1px var(--cb-dash-primary);
}

.cb-dash-price-card input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--cb-dash-primary);
    cursor: pointer;
}

.cb-dash-price-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 3px;
}

.cb-dash-price-card-desc {
    font-size: 12px;
    color: var(--cb-dash-text-muted);
    line-height: 1.4;
    display: block;
}

.cb-dash-markup-panel {
    background: var(--cb-dash-surface-2);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-md);
    padding: 16px;
    margin-bottom: 22px;
}

.cb-dash-calc-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cb-dash-surface);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-sm);
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
}

.cb-dash-calc-result {
    font-size: 15px;
    font-weight: 700;
    color: #34d399;
}

/* Merge Tags Chips */
.cb-dash-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.cb-dash-tag-chip {
    background: var(--cb-dash-surface-3);
    border: 1px solid var(--cb-dash-border);
    border-radius: 9999px;
    color: #38bdf8;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cb-dash-tag-chip:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.cb-dash-live-preview-box {
    margin-top: 12px;
    background: var(--cb-dash-surface);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-sm);
    padding: 12px 14px;
}

.cb-dash-preview-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cb-dash-text-dim);
    margin-bottom: 6px;
}

.cb-dash-preview-content {
    font-size: 12.5px;
    color: #cbd5e1;
    font-style: italic;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   TAB 4: Pages, Inserts & Source PDF
   -------------------------------------------------------------------------- */
.cb-dash-check-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.cb-dash-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--cb-dash-surface-2);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-sm);
    padding: 10px 14px;
}

.cb-dash-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
}

.cb-dash-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--cb-dash-primary);
}

.cb-dash-range-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--cb-dash-surface-2);
    border: 1px solid var(--cb-dash-border);
    border-radius: var(--cb-dash-radius-sm);
    padding: 10px 14px;
    margin-top: 10px;
}

.cb-dash-range-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-dash-range-inline label {
    margin: 0 !important;
    font-size: 12px !important;
    color: var(--cb-dash-text-muted) !important;
}

.cb-dash-range-input {
    width: 80px !important;
    text-align: center;
    padding: 6px 8px !important;
}

/* --------------------------------------------------------------------------
   Sticky Bottom Action Bar
   -------------------------------------------------------------------------- */
.cb-dash-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--cb-dash-border);
    padding: 14px 24px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.cb-dash-bottom-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cb-dash-bottom-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cb-dash-bottom-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Share Link Box */
.cb-dash-share-banner {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--cb-dash-radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    animation: cbFadeIn 0.25s ease;
}

.cb-dash-share-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cb-dash-share-icon {
    font-size: 26px;
    color: #34d399;
    flex-shrink: 0;
}

.cb-dash-share-content {
    min-width: 0;
}

.cb-dash-share-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.cb-dash-share-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-dash-share-input {
    background: var(--cb-dash-surface-2);
    border: 1px solid var(--cb-dash-border);
    border-radius: 6px;
    padding: 6px 12px;
    color: #a7f3d0;
    font-family: monospace;
    font-size: 12.5px;
    width: 320px;
    max-width: 100%;
}

.cb-dash-copy-feedback {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
}

.cb-dash-copy-feedback.visible {
    display: inline-block;
}

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

.cb-spinner-icon {
    display: inline-block;
    animation: cbSpin 0.8s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 960px) {
    .cb-dash-layout {
        flex-direction: column;
        padding: 16px 16px 100px;
    }
    .cb-dash-sidebar {
        width: 100%;
    }
    .cb-dash-nav-list {
        flex-direction: column;
    }
    .cb-dash-nav-item {
        width: 100%;
    }
    .cb-dash-grid-2 {
        grid-template-columns: 1fr;
    }
    .cb-dash-pricing-grid {
        grid-template-columns: 1fr;
    }
    .cb-dash-next-section-callout {
        flex-direction: column;
        align-items: flex-start;
    }
    .cb-goto-advance-btn {
        width: 100%;
        text-align: center;
    }
}
