/* Sports Card Checklists - Shared Styles */
/* Fonts loaded via <link> tags in HTML for parallel loading */

/* Smooth page load - fade in after fonts/styles settle */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

html {
    animation: pageFadeIn 0.3s ease-out 0.1s both;
}

/* ============================================
   CSS Custom Properties (Theme Variables)
   Override these in page-specific styles
   ============================================ */
:root {
    /* Colors - defaults (Jayden Daniels theme) */
    --color-primary: #667eea;
    --color-primary-dark: #764ba2;
    --color-accent: #f39c12;
    --color-background: #f5f5f5;
    --color-surface: white;
    --color-text: #333;
    --color-text-muted: #666;
    --color-text-light: #999;

    /* Auth bar */
    --auth-bg: #1a1a2e;
    --auth-link-color: #aaa;
    --auth-link-hover: #fff;

    /* Stats */
    --stat-bg: #1a1a2e;
    --stat-value-color: #667eea;
    --stat-label-color: #aaa;

    /* Cards */
    --card-border: #e0e0e0;
    --card-hover-color: #667eea;
    --card-owned-bg: #e8f5e9;
    --card-owned-border: #4caf50;

    /* Common colors */
    --color-success: #4caf50;
    --color-warning: #ff9800;
    --color-error: #f44336;
    --color-sync-syncing: #f1c40f;
    --color-sync-synced: #2ecc71;
    --color-sync-error: #e74c3c;

    /* Border radius */
    --radius-sm: 3px;
    --radius-md: 4px;
}

/* ============================================
   Base Styles
   ============================================ */
* { box-sizing: border-box; }

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-background);
    margin: 0;
    padding: 0;
    color: var(--color-text);
    overflow-x: hidden;
}

/* ============================================
   Page Header (Scoreboard Style)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px 20px 24px;
    margin-bottom: 24px;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    text-align: center;
    font-size: 2.8em;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0 0 6px 0;
    background: linear-gradient(180deg, #d0d0d0 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-family: 'Barlow', sans-serif;
    text-align: center;
    color: #555;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Content area below header */
.page-content {
    padding: 0 20px 20px;
}

/* ============================================
   Broadcast Ticker Nav Bar
   ============================================ */
.nav-bar {
    background: var(--nav-bg, linear-gradient(180deg, #1a1a2e 0%, #12121f 100%));
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.nav-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(243, 156, 18, 0.3) 20%,
        var(--color-accent, #f39c12) 50%,
        rgba(243, 156, 18, 0.3) 80%,
        transparent 100%
    );
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 52px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #888;
    transition: color 0.2s;
}

.nav-brand:hover { color: var(--color-accent, #f39c12); }

.nav-brand svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.nav-brand-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1em;
    letter-spacing: 0.1em;
    color: #666;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    margin: 0 16px;
}

.nav-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1em;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: #777;
    padding: 8px 14px;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ccc;
    background: rgba(255,255,255,0.05);
}

.nav-link.active {
    color: var(--color-accent, #f39c12);
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.15) 0%, rgba(243, 156, 18, 0.05) 100%);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--color-accent, #f39c12);
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.6);
    border-radius: 2px 2px 0 0;
}

/* Auth section - avatar with dropdown menu */
.nav-auth {
    display: flex;
    align-items: center;
    position: relative;
}

#auth-content {
    position: relative;
}

/* Avatar trigger button */
.nav-avatar-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-avatar-btn img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.15s ease;
}

.nav-avatar-btn:hover img {
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-avatar-btn.menu-open img {
    border-color: var(--color-accent, #f39c12);
}

/* Dropdown menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(165deg, #1a1a2e 0%, #12121f 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Gold accent line at top */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent, #f39c12), transparent);
}

/* User info header */
.nav-dropdown-header {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-dropdown-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown-header span {
    font-family: 'Barlow', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    color: #ccc;
}

/* Menu items */
.nav-dropdown-item {
    font-family: 'Barlow', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: #888;
    font-size: 0.8em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.nav-dropdown-item svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.6;
}

.nav-dropdown-item:hover svg {
    opacity: 1;
}

.nav-dropdown-item.active {
    color: var(--color-accent, #f39c12);
}

.nav-dropdown-item.active svg {
    opacity: 1;
}

.nav-dropdown-item.danger {
    color: #888;
}

.nav-dropdown-item.danger:hover {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 0;
}

.nav-dropdown-footer {
    padding: 8px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Barlow', sans-serif;
    font-size: 0.7em;
    color: #444;
    text-align: right;
}

.nav-dropdown-footer a {
    color: #555;
    text-decoration: none;
}

.nav-dropdown-footer a:hover {
    color: var(--color-accent, #f39c12);
}

/* Hamburger button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #888;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-hamburger:hover span {
    background: #ccc;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Compact nav mode (JS-toggled when links overflow) */
.nav-bar.nav-compact .nav-inner {
    height: auto;
    flex-wrap: wrap;
    gap: 0;
}

.nav-bar.nav-compact .nav-hamburger {
    display: flex;
    order: 1;
}

.nav-bar.nav-compact .nav-auth {
    order: 3;
    margin-left: auto;
}

.nav-bar.nav-compact .nav-links {
    order: 4;
    flex: 0 0 100%;
    flex-direction: column;
    margin: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-bar.nav-compact .nav-links.open {
    max-height: 500px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-bar.nav-compact .nav-link {
    width: 100%;
    font-size: 0.85em;
    padding: 10px 16px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    box-sizing: border-box;
}

.nav-bar.nav-compact .nav-link.active {
    border-left: 3px solid var(--color-accent, #f39c12);
    padding-left: 13px;
    background: linear-gradient(90deg, rgba(243, 156, 18, 0.1) 0%, transparent 100%);
}

.nav-bar.nav-compact .nav-link.active::after {
    display: none;
}

/* Small screen tweaks */
@media (max-width: 768px) {
    .nav-inner {
        padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
    }

    .nav-brand-text { display: none; }

    .nav-dropdown {
        right: -8px;
    }
}

.sync-status {
    font-family: 'Barlow', sans-serif;
    font-size: 0.75em;
    font-weight: 500;
    color: #888;
    min-width: 50px;
    text-align: right;
}

.sync-status.syncing { color: var(--color-sync-syncing); }
.sync-status.synced { color: var(--color-sync-synced); }
.sync-status.error { color: var(--color-sync-error); }

.save-error-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #d32f2f;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.save-error-banner button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4em;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.8;
}

.save-error-banner button:hover {
    opacity: 1;
}

.save-error-banner .save-error-action {
    font-size: 0.9em;
    font-weight: 600;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    white-space: nowrap;
}


/* ============================================
   Stats Section (Scoreboard Style)
   ============================================ */
.stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: rgba(0,0,0,0.3);
    padding: 16px 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 100px;
}

.stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3em;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #c8c8c8;
    line-height: 1;
    margin-bottom: 4px;
}

/* Larger size for owned/total count stats to fill their boxes */
#owned-count,
#total-count {
    font-size: 3.5em;
}

.stat-value.highlight {
    color: var(--color-accent);
}

.stat-label {
    font-family: 'Barlow', sans-serif;
    font-size: 0.65em;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #666;
}

.stat-breakdown {
    font-family: 'Barlow', sans-serif;
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.7em;
    font-weight: 500;
    margin-top: 6px;
}

.stat-breakdown .needed-value { color: var(--color-warning); }

/* ============================================
   Filters
   ============================================ */
.filters {
    font-family: 'Barlow', sans-serif;
    background: var(--color-surface);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

select, input[type="text"] {
    font-family: 'Barlow', sans-serif;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid #ddd;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
}

.filter-btn {
    font-family: 'Barlow', sans-serif;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: var(--color-surface);
    color: var(--color-text);
}

.filter-btn:hover {
    background: #f0f0f0;
}

/* ============================================
   Sections & Headers
   ============================================ */
.section {
    margin-bottom: 28px;
}

.group-header {
    font-family: 'Bebas Neue', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    padding: 14px 20px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 1.5em;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    border-bottom: 2px solid var(--color-accent);
}

.section-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-bottom: 28px;
}

.section-group .section {
    margin-bottom: 20px;
}

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

.section-header {
    font-family: 'Bebas Neue', sans-serif;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-header-text, white);
    padding: 14px 20px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 1.3em;
    font-weight: 400;
    letter-spacing: 0.06em;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.section-progress {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: inherit;
    font-size: 0.65em;
    font-weight: inherit;
    letter-spacing: inherit;
    opacity: 0.5;
}
.section-progress.complete {
    opacity: 0.85;
}

.inserts-note {
    padding: 10px 15px;
    font-size: 12px;
    font-family: 'Barlow', sans-serif;
    color: var(--color-accent, #b36b00);
    background: color-mix(in srgb, var(--color-accent, #f39c12) 10%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--color-accent, #f39c12) 20%, transparent);
}

/* ============================================
   Card Grid
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    background: var(--color-surface);
    padding: 18px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================================
   Empty State Placeholder
   ============================================ */
.empty-state-card {
    border: 2px dashed var(--color-text-light);
    border-radius: var(--radius-md);
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    max-width: 220px;
}

.empty-state-card:hover {
    border-color: var(--color-text-light);
    background: var(--color-surface-alt, rgba(0, 0, 0, 0.02));
}

.empty-state-card.empty-state-readonly {
    cursor: default;
}

.empty-state-card.empty-state-readonly:hover {
    border-color: var(--color-text-light);
    background: none;
}

.empty-state-icon {
    font-size: 32px;
    color: var(--color-text-light);
    margin-bottom: 8px;
    line-height: 1;
}

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

/* ============================================
   Card Component
   ============================================ */
.card.filter-hidden {
    display: none;
}

.card {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
    transition: all 0.2s;
    background: var(--color-surface);
    position: relative;
    display: flex;
    flex-direction: column;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.card * {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.card:hover {
    border-color: var(--card-hover-color);
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
    transform: translateY(-2px);
}

.card.owned {
    background: var(--card-owned-bg);
    border-color: var(--card-owned-border);
}

/* Collection link cards (cross-checklist promo cards) */
.card.collection-link { cursor: pointer; }
.card.collection-link .card-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card.collection-link .card-stack img {
    position: absolute;
    width: 70%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.card.collection-link .card-stack img:nth-child(1) { transform: rotate(-8deg) translateX(-15%); opacity: 0.7; }
.card.collection-link .card-stack img:nth-child(2) { transform: rotate(5deg) translateX(15%); opacity: 0.85; }
.card.collection-link .card-stack img:nth-child(3) { transform: rotate(0deg); z-index: 2; }
.collection-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--color-accent, #667eea), var(--color-primary, #667eea));
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 3;
}
.collection-cta {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--color-accent, #667eea), var(--color-primary, #667eea));
    color: #000;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85em;
    margin-top: 8px;
    text-decoration: none;
    transition: transform 0.2s;
}
.collection-cta:hover { transform: scale(1.02); }

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 140%;
    margin-bottom: 8px;
    background: transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    cursor: pointer;
}

.card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    text-decoration: none;
    border: 1px dashed #ccc;
}

.card-image.placeholder:hover {
    background: #f0f0f0;
    color: var(--color-link, var(--color-primary));
}

.card-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 13px;
    margin: 8px 0 4px;
    color: var(--color-text);
}

.card-number {
    font-weight: 400;
    color: var(--color-text-muted);
}

.card-variant {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.card-type {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-light);
    margin-top: 4px;
}

.card-subtitle-line {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
}

.card-subtitle-line.pill {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    margin-top: 3px;
}

/* ============================================
   Price Badge
   ============================================ */
.price-badge {
    font-family: 'Barlow', sans-serif;
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--color-success);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.price-badge.mid { background: var(--color-warning); }
.price-badge.high { background: var(--color-error); }

/* Left-side attribute badges container */
.card-badges-left {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

/* Auto Badge (autographed cards) - gold */
.auto-badge {
    font-family: 'Barlow', sans-serif;
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #d4af37 0%, #c4a030 100%);
    color: #1a1a2e;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Patch Badge (relic/patch cards) - purple */
.patch-badge {
    font-family: 'Barlow', sans-serif;
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Serial Badge (numbered cards) - dark with border */
.serial-badge {
    font-family: 'Barlow', sans-serif;
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* When auto + patch both present, stack them */
.auto-badge + .patch-badge {
    top: 30px;
}

.price-link {
    font-family: 'Barlow', sans-serif;
    display: inline-block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
}

.price-link:hover {
    color: var(--color-link, var(--color-primary));
    text-decoration: underline;
}

/* ============================================
   Card Actions (bottom of card)
   ============================================ */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

.card-actions.links-only {
    justify-content: center;
}

/* ============================================
   Checkbox & Owned
   ============================================ */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkbox-wrapper input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.checkbox-wrapper label {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
}

.owned-badge {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
}

/* ============================================
   Links
   ============================================ */
.search-link {
    font-family: 'Barlow', sans-serif;
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-link, var(--color-primary));
    text-decoration: none;
}

.search-link:hover {
    text-decoration: underline;
}

/* ============================================
   Achievement Pills
   ============================================ */
.achievement {
    font-family: 'Barlow', sans-serif;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 6px;
    align-self: center;
}

/* ============================================
   Clear Button
   ============================================ */
.clear-btn {
    font-family: 'Barlow', sans-serif;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff5252;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.clear-btn:hover { background: #ff1744; }

/* ============================================
   Collapsible Sections
   ============================================ */
.section-header.collapsible,
.group-header.collapsible {
    cursor: pointer;
    user-select: none;
    padding-left: 36px;
    position: relative;
}

/* Disclosure triangle - use ::before since ::after is used for accent bar */
.section-header.collapsible::before,
.group-header.collapsible::before {
    content: '▼';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.15s ease;
}

.section-header.collapsible.collapsed::before,
.group-header.collapsible.collapsed::before {
    transform: translateY(-50%) rotate(-90deg);
}

/* Collapsed state styling */
.section-header.collapsible.collapsed,
.group-header.collapsible.collapsed {
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.group-header.collapsible.collapsed {
    margin-bottom: 24px;
}

/* Slide animation for collapsible content */
.collapsible-content {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.25s ease-out;
}

.collapsible-content > * {
    overflow: hidden;
}

.collapsible-content.collapsed {
    grid-template-rows: 0fr;
}

/* ============================================
   Notes (for inserts, premium, extras)
   ============================================ */
.section-note {
    font-family: 'Barlow', sans-serif;
    background: rgba(243, 156, 18, 0.1);
    color: #b36b00;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid rgba(243, 156, 18, 0.2);
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .card { break-inside: avoid; }
    .search-link { display: none; }
    .filters { display: none; }
    .clear-btn { display: none; }
    body { background: white; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }

    h1 { font-size: 1.8em; }

    .card { padding: 8px; }

    .stats { gap: 12px; }

    .stat {
        padding: 12px 14px;
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .stat-value { font-size: 2em; }

    .stat-breakdown {
        flex-wrap: wrap;
        gap: 2px 8px;
        font-size: 0.6em;
    }
}

/* ============================================
   Edit Mode
   ============================================ */

/* Edit button in nav */
.nav-btn.edit-btn {
    color: #666;
}

.nav-btn.edit-btn:hover {
    color: #999;
}

.nav-btn.edit-btn.active {
    background: rgba(243, 156, 18, 0.1);
    color: var(--color-accent, #f39c12);
}

.nav-btn.edit-btn.active svg {
    opacity: 1;
}

/* Card Context Menu - right-click menu for editing cards */
.card-context-menu {
    position: fixed;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
}

.card-context-menu.visible {
    opacity: 1;
    visibility: visible;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    color: #e0e0e0;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.context-menu-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.context-menu-item:hover svg {
    opacity: 1;
}

.context-menu-item.danger {
    color: #e74c3c;
}

.context-menu-item.danger:hover {
    background: rgba(231, 76, 60, 0.15);
}

/* ============================================
   Card Editor Modal - Broadcast Style
   ============================================ */

/* Backdrop with broadcast static effect */
.card-editor-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.card-editor-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.card-editor-backdrop.active .card-editor-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Modal container */
.card-editor-modal {
    background: linear-gradient(165deg, #1a1a2e 0%, #12121f 50%, #1a1a2e 100%);
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(102, 126, 234, 0.15);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glowing top accent bar */
.card-editor-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        #667eea 20%,
        #f39c12 50%,
        #667eea 80%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

/* Corner accent decorations */
.card-editor-modal::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(243, 156, 18, 0.1) 50%);
    pointer-events: none;
}

/* Header */
.card-editor-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.card-editor-header-left {
    flex: 1;
    min-width: 0;
}

.card-editor-header-price {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
}

.card-editor-header-price label {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #888;
}

.card-editor-header-price .card-editor-input {
    width: 60px;
    padding: 6px 8px !important;
    font-size: 14px !important;
    text-align: right;
}

.card-editor-owned-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    height: 32px;
    -webkit-user-select: none;
    user-select: none;
}

.card-editor-owned-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #27ae60;
    cursor: pointer;
    margin: 0;
}

.card-editor-owned-toggle .owned-toggle-label {
    font-family: 'Barlow', sans-serif;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888;
    transition: color 0.15s;
}

.card-editor-owned-toggle input:checked + .owned-toggle-label {
    color: #27ae60;
}

.card-editor-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6em;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin: 0;
    background: linear-gradient(180deg, #e0e0e0 0%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-editor-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 0.75em;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    margin-top: 4px;
}

.card-editor-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-editor-close:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Form body */
.card-editor-body {
    padding: 20px 24px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.card-editor-body::-webkit-scrollbar {
    width: 6px;
}

.card-editor-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.card-editor-body::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

/* Form grid */
.card-editor-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 16px;
}

.card-editor-row {
    grid-column: 1 / -1;
    display: grid;
    gap: 16px;
}

.card-editor-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.card-editor-field.full-width {
    grid-column: 1 / -1;
}

.card-editor-advanced-toggle {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
}

.card-editor-advanced-toggle .card-editor-toggle-btn {
    padding: 12px 14px;
    text-align: center;
}

.card-editor-advanced-fields {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-editor-label {
    font-family: 'Barlow', sans-serif;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-editor-color-hint {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-editor-modal .card-editor-input,
.card-editor-modal .card-editor-select {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 14px;
    background: rgba(30, 30, 50, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #fff !important;
    transition: all 0.2s;
}

.card-editor-modal .card-editor-input:focus,
.card-editor-modal .card-editor-select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: rgba(40, 40, 70, 0.95) !important;
}

.card-editor-modal .card-editor-input::placeholder {
    color: #666 !important;
    font-style: italic;
    opacity: 0.7;
}

.card-editor-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.card-editor-select option {
    background: #1a1a2e;
    color: #e0e0e0;
}

/* Checkbox styling */
.card-editor-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.card-editor-checkbox:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.card-editor-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.card-editor-checkbox span {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
}

/* Legacy separator class - no longer used */

/* Card Attributes Row (compact horizontal checkboxes + text fields) */
.card-editor-attributes {
    margin-top: -4px;
}

.card-editor-attr-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.card-editor-attr-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.card-editor-attr-checkbox:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.card-editor-attr-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

.card-editor-attr-checkbox span {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
    white-space: nowrap;
}

.card-editor-attr-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-editor-attr-text label {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    white-space: nowrap;
}

.card-editor-modal .card-editor-attr-text .card-editor-input {
    width: 60px;
    padding: 8px 10px !important;
    font-size: 13px !important;
}


/* Advanced toggle for eBay field */
.card-editor-toggle-btn {
    background: none;
    border: none;
    color: rgba(102, 126, 234, 0.8);
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.15s;
}

.card-editor-toggle-btn:hover {
    color: #667eea;
}

.card-editor-ebay-field {
    margin-top: -8px;
}

/* Image preview section */
.card-editor-image-section {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 0;
    overflow: hidden;
}

/* Image tabs */
.card-editor-image-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 3px;
    gap: 2px;
    margin-bottom: 8px;
}

.card-editor-image-tab {
    flex: 1;
    padding: 6px 0;
    background: none;
    border: none;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.card-editor-image-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.card-editor-image-tab.active {
    background: rgba(102, 126, 234, 0.25);
    color: #a8b4f0;
}

/* URL tab row */
.card-editor-image-url-row {
    display: flex;
    gap: 8px;
}

.card-editor-image-url-row .card-editor-input {
    flex: 1;
    min-width: 0;
}

/* Upload zone */
.card-editor-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 16px;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-user-select: none;
}

.card-editor-upload-zone:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
}

.card-editor-upload-zone.dragover {
    border-color: #43e97b;
    background: rgba(67, 233, 123, 0.08);
}

.card-editor-upload-zone .upload-zone-icon {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
}

.card-editor-upload-zone .upload-zone-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.card-editor-upload-zone .upload-zone-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: #a8b4f0;
    border-radius: 50%;
    animation: processSpinner 0.8s linear infinite;
}

.card-editor-upload-zone.processing {
    pointer-events: none;
    opacity: 0.7;
}

.card-editor-upload-zone.processing .upload-zone-icon,
.card-editor-upload-zone.processing .upload-zone-text {
    display: none;
}

.card-editor-upload-zone.processing .upload-zone-spinner {
    display: block;
}

/* Process button - conditionally visible */
.card-editor-process-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 4px;
    color: white;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 80px;
}

.card-editor-process-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.card-editor-process-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.card-editor-process-btn .process-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: processSpinner 0.8s linear infinite;
}

.card-editor-process-btn.processing .process-text {
    display: none;
}

.card-editor-process-btn.processing .process-spinner {
    display: block;
}

@keyframes processSpinner {
    to { transform: rotate(360deg); }
}

/* Image actions row - below preview */
.card-editor-image-actions {
    display: none;
    gap: 8px;
    margin-top: 8px;
}

/* Edit button */
.card-editor-edit-btn {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border: none;
    border-radius: 4px;
    color: #1a1a2e;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

/* Remove button */
.card-editor-remove-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e94343 0%, #f95c38 100%);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.card-editor-remove-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 67, 67, 0.4);
}

.card-editor-edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 233, 123, 0.4);
}

.card-editor-edit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.card-editor-edit-btn .edit-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(26, 26, 46, 0.3);
    border-top-color: #1a1a2e;
    border-radius: 50%;
    animation: processSpinner 0.8s linear infinite;
}

.card-editor-edit-btn.processing .edit-text {
    display: none;
}

.card-editor-edit-btn.processing .edit-spinner {
    display: block;
}

.card-editor-image-preview {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 8px;
}

.card-editor-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-editor-image-preview .placeholder {
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

.card-editor-image-preview.dragover {
    border-color: #43e97b;
    background: rgba(67, 233, 123, 0.1);
}

/* Footer with actions */
.card-editor-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.2);
}

.card-editor-btn {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.card-editor-btn.cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #888;
}

.card-editor-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.card-editor-btn.save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.card-editor-btn.save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.card-editor-btn.save:active {
    transform: translateY(0);
}

.card-editor-btn.delete {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    margin-right: auto;
}

.card-editor-btn.delete:hover {
    background: rgba(244, 67, 54, 0.25);
}

/* Dirty state indicator */
.card-editor-modal.dirty .card-editor-title::after {
    content: ' •';
    color: #f39c12;
}

/* Mobile responsive */
@media (max-width: 500px) {
    .card-editor-backdrop {
        align-items: flex-start;
    }

    .card-editor-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .card-editor-header {
        padding: 16px 20px 12px;
        flex-shrink: 0;
    }

    .card-editor-title {
        font-size: 1.3em;
    }

    .card-editor-grid {
        grid-template-columns: 1fr;
    }

    .card-editor-row {
        grid-template-columns: 1fr !important;
    }

    .card-editor-body {
        flex: 1;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px 20px;
    }

    .card-editor-attr-row {
        flex-wrap: wrap;
    }

    .checklist-creator-modal .card-editor-body {
        padding: 20px;
    }

    .card-editor-footer {
        flex-wrap: wrap;
        flex-shrink: 0;
        padding: 16px 20px;
    }

    .card-editor-btn {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
    }

    .card-editor-btn.cancel { order: 1; }
    .card-editor-btn.save { order: 2; }

    .card-editor-btn.delete {
        order: 3;
        flex: 0 0 100%;
        margin-right: 0;
        margin-top: 8px;
        margin-bottom: 0;
        background: none;
        color: #666;
        font-size: 0.85em;
        padding: 8px;
    }

    .card-editor-btn.delete:hover {
        background: none;
    }

    /* Prevent iOS Safari zoom on input focus (requires >= 16px) */
    .card-editor-modal .card-editor-input,
    .card-editor-modal .card-editor-select,
    .card-editor-modal select {
        font-size: 16px;
    }

    .card-editor-image-tab {
        font-size: 16px;
    }
}

/* ============================================
   Add Card Button (sticky below nav)
   ============================================ */
.add-card-btn {
    position: fixed;
    top: 68px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-primary, #667eea) 0%, var(--color-primary-dark, #764ba2) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.add-card-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.add-card-btn:active {
    transform: translateY(0);
}

@media (max-width: 500px) {
    .add-card-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

/* ============================================
   Image Editor Modal (crop/rotate)
   ============================================ */
.image-editor-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-editor-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.image-editor-modal {
    background: #1a1a2e;
    border-radius: 12px;
    width: 90vw;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.image-editor-backdrop.active .image-editor-modal {
    transform: scale(1);
}

.image-editor-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.image-editor-title {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 0.1em;
    color: white;
}

.image-editor-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.image-editor-close:hover {
    color: white;
}

.image-editor-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.image-editor-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 3px;
    gap: 2px;
    margin-bottom: 12px;
}

.image-editor-tab {
    flex: 1;
    padding: 6px 0;
    background: none;
    border: none;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.image-editor-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.image-editor-tab.active {
    background: rgba(102, 126, 234, 0.25);
    color: #a8b4f0;
}

.image-editor-canvas {
    flex: 1;
    min-height: 300px;
    max-height: 60vh;
    background: #0d0d1a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-editor-canvas img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Two-row toolbar: tools on top, text input below */
.image-editor-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
}

.image-editor-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.image-editor-tool {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.image-editor-tool svg {
    width: 18px;
    height: 18px;
}

.image-editor-tool:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.image-editor-tool:active {
    transform: scale(0.95);
}

.image-editor-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.image-editor-footer-spacer {
    flex: 1;
}

.image-editor-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.image-editor-btn.cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.image-editor-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.image-editor-btn.confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.image-editor-btn.confirm:hover {
    filter: brightness(1.1);
}

/* Rotation slider and input in center zone */
.image-editor-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.image-editor-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.image-editor-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.image-editor-rotation-input {
    width: 72px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    font-size: 13px;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    text-align: center;
    -webkit-text-fill-color: #fff;
}

.image-editor-rotation-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.image-editor-step-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.image-editor-step-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.image-editor-step-btn:active {
    transform: scale(0.95);
}

/* ============================================
   Image Editor - Perspective Mode
   ============================================ */

.image-editor-canvas {
    position: relative;
}

.perspective-canvas {
    max-width: 100%;
    max-height: 60vh;
    display: block;
}

.perspective-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.perspective-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: grab;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    touch-action: none;
    transition: background 0.15s, transform 0.1s;
}

.perspective-handle:hover {
    background: rgba(102, 126, 234, 0.4);
    transform: translate(-50%, -50%) scale(1.15);
}

.perspective-handle:active,
.perspective-handle.dragging {
    cursor: grabbing;
    background: rgba(102, 126, 234, 0.5);
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.perspective-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

@media (max-width: 600px) {
    .image-editor-modal {
        width: 100%;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .image-editor-canvas {
        max-height: none;
        flex: 1;
    }

    .image-editor-controls {
        padding: 12px 16px;
    }

    .image-editor-controls-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .image-editor-slider {
        width: 80px;
    }

    .perspective-canvas {
        max-height: none;
    }

    .perspective-handle {
        width: 24px;
        height: 24px;
    }

    .image-editor-tab {
        font-size: 16px;
    }
}

/* ========================================
   Creator Modal & Settings
   ======================================== */
.checklist-creator-modal {
    max-width: 540px;
}

.checklist-creator-modal .card-editor-body {
    padding: 24px 28px;
}

/* Section divider - generous breathing room between sections */
.creator-section-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 20px 0 0;
}

/* Section headers with left accent bar */
.creator-section-label {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(102, 126, 234, 0.7);
    margin-bottom: 14px;
    margin-top: 18px;
    padding-left: 10px;
    border-left: 2px solid rgba(102, 126, 234, 0.35);
}

/* First section header at top of form */
.card-editor-body > .creator-section-label:first-child {
    margin-top: 0;
}

/* Theme row: colors + dark toggle inline */
.creator-theme-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.creator-color-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.creator-color-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 6px 10px;
    transition: border-color 0.2s;
}

.creator-color-picker:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.creator-color-picker input[type="color"] {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.creator-color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.creator-color-picker input[type="color"]::-webkit-color-swatch {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.creator-color-hex {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.02em;
}

.creator-dark-toggle {
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 500px) {
    .creator-dark-toggle {
        margin-left: 0;
    }
}

.creator-hint {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    color: #555;
    margin-top: 2px;
}

/* Textarea */
.creator-textarea {
    width: 100%;
    min-height: 50px;
    resize: vertical;
    font-family: 'Barlow', monospace;
    font-size: 13px;
    line-height: 1.6;
    box-sizing: border-box;
}

/* Options row (checkboxes) */
.creator-options-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.creator-options-row .card-editor-checkbox {
    flex: 1;
    min-width: 0;
}

@media (max-width: 500px) {
    .creator-options-row .card-editor-checkbox {
        flex-basis: calc(50% - 4px);
    }
}

/* Category / subtitle row list */
.creator-row-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Shared row input styles - match modal's dark input theme */
.creator-row input[type="text"],
.creator-row-wrap input[type="text"] {
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    padding: 6px 10px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.creator-row input[type="text"]:focus,
.creator-row-wrap input[type="text"]:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.creator-row input[type="text"]::placeholder,
.creator-row-wrap input[type="text"]::placeholder {
    color: #555;
    font-style: italic;
}

/* Shared color swatch styles */
.creator-row input[type="color"],
.creator-row-wrap input[type="color"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background: none;
    flex-shrink: 0;
}

.creator-row input[type="color"]::-webkit-color-swatch-wrapper,
.creator-row-wrap input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }

.creator-row input[type="color"]::-webkit-color-swatch,
.creator-row-wrap input[type="color"]::-webkit-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Pill toggle button in subtitle rows */
.creator-pill-toggle {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #666;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.creator-pill-toggle:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #999;
}

.creator-pill-toggle.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: #8b9cf7;
}

/* Price threshold inputs */
.creator-price-thresholds {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.creator-price-thresholds label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #ccc;
}

.creator-threshold-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.creator-threshold-input {
    width: 42px !important;
    padding: 4px 6px !important;
    font-size: 13px !important;
    text-align: center;
}

.creator-threshold-hint {
    font-size: 11px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Simple row (subtitle lines) */
.creator-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 15, 35, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 8px 12px;
    transition: border-color 0.2s;
}

.creator-row:hover {
    border-color: rgba(102, 126, 234, 0.15);
}

.creator-row .creator-row-label {
    flex: 1;
    min-width: 0;
}

.creator-row .creator-row-label input {
    width: 100%;
}

.creator-row .creator-row-id,
.creator-row-wrap .creator-row-id {
    display: none;
}

.creator-row-extra,
.creator-row-index {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
    flex-shrink: 0;
    cursor: pointer;
}

.creator-row-extra input,
.creator-row-index input { cursor: pointer; }

.creator-row-index input:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.creator-row-index:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.5;
}

.creator-row-index.hidden {
    visibility: hidden;
    pointer-events: none;
}

.creator-row-arrows {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-shrink: 0;
}

.creator-row-arrows button {
    background: none;
    border: none;
    color: #555;
    font-size: 8px;
    cursor: pointer;
    padding: 1px 4px;
    line-height: 1;
    transition: color 0.15s;
    border-radius: 2px;
}

@media (max-width: 500px) {
    .creator-row-arrows {
        flex-direction: row;
        gap: 4px;
    }

    .creator-row-arrows button {
        font-size: 12px;
        padding: 8px 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .creator-row-remove {
        font-size: 18px;
        padding: 6px 8px;
    }

    /* Prevent iOS Safari zoom on input focus */
    .creator-row input[type="text"],
    .creator-row-wrap input[type="text"],
    .checklist-creator-modal select,
    .checklist-creator-modal input[type="text"] {
        font-size: 16px;
    }
}

.creator-row-arrows button:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.creator-row-flash {
    animation: row-flash 0.4s ease-out;
}

@keyframes card-highlight-pulse {
    0% { box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.6); }
    100% { box-shadow: none; }
}

.card-highlight {
    animation: card-highlight-pulse 1.5s ease-out forwards;
}

@keyframes row-flash {
    0% { border-color: rgba(102, 126, 234, 0.5); }
    100% { border-color: rgba(255, 255, 255, 0.06); }
}

.creator-row-remove {
    background: none;
    border: none;
    color: #444;
    font-size: 15px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
    border-radius: 3px;
}

.creator-row-remove:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

/* Wrap row (categories - has note underneath) */
.creator-row-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 15, 35, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 10px 12px;
    transition: border-color 0.2s;
}

.creator-row-wrap:hover {
    border-color: rgba(102, 126, 234, 0.15);
}

.creator-row-wrap .creator-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.creator-row-wrap .creator-row-main .creator-row-label {
    flex: 1;
    min-width: 0;
}

.creator-row-wrap .creator-row-main .creator-row-label input {
    width: 100%;
}

@media (max-width: 500px) {
    .creator-row-wrap .creator-row-main .creator-row-label {
        order: -1;
        flex: 0 0 100%;
        margin-bottom: 4px;
    }
}

/* Note field inside wrap row */
.creator-row-note {
    margin-top: 6px;
    padding-left: 48px;
}

.creator-row-note input[type="text"] {
    width: 100%;
    font-size: 11px !important;
    padding: 4px 8px !important;
    color: #888 !important;
    background: rgba(20, 20, 40, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Subcategory rows nested inside a parent */
.creator-subcategory-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    padding-left: 48px;
}

.creator-subcategory-list .creator-row-wrap {
    padding: 6px 10px;
    background: rgba(10, 10, 30, 0.4);
    border-color: rgba(255, 255, 255, 0.04);
}

.creator-subcategory-list .creator-row-wrap:hover {
    border-color: rgba(102, 126, 234, 0.12);
}

/* Add subcategory button inside a category row */
.creator-add-subcategory {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: rgba(102, 126, 234, 0.4);
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 0;
    margin-top: 4px;
    margin-left: 48px;
    cursor: pointer;
    transition: color 0.15s;
}

.creator-add-subcategory:hover {
    color: rgba(102, 126, 234, 0.7);
}

/* Add row button */
.creator-add-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: rgba(102, 126, 234, 0.5);
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 6px;
}

.creator-add-row:hover {
    border-color: rgba(102, 126, 234, 0.25);
    color: rgba(102, 126, 234, 0.85);
    background: rgba(102, 126, 234, 0.04);
}

/* Display section grid */
.creator-display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

/* Sort option chips */
.creator-sort-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.creator-sort-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 10px;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 15, 35, 0.5);
    color: #4a4a6a;
    transition: all 0.15s;
    user-select: none;
}

.creator-sort-chip:hover {
    border-color: rgba(102, 126, 234, 0.2);
    color: #6a6a9a;
}

.creator-sort-chip.active {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
    color: #9aa8e0;
}

/* Card fields subsection label */
.creator-subsection-label {
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4a4a6a;
    margin-top: 18px;
    margin-bottom: 8px;
}

.creator-subsection-label:first-child {
    margin-top: 0;
}

/* Standard fields note */
.creator-preset-note {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    color: #4a4a6a;
    font-style: italic;
}



/* Intro text block (used by dynamic checklists) */
.intro-text {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
    text-align: center;
}
