/* ── One Piece — Logo & Sister Link ─────────── */
.logo-op-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: var(--glow);
    flex-shrink: 0;
}

.op-sister-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-secondary);
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: 20px;
    padding: 5px 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.op-sister-link:hover {
    background: rgba(245, 197, 24, 0.2);
    text-decoration: none;
}

/* One Piece — Manga Rare badge */
.manga-rare-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8B2FC9, #CC2222);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 4px;
}

/* One Piece — Color pip */
.op-color-pip {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

/* ── Header ───────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35em;
    color: var(--heading);
    text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo-pokeball {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow);
}
.logo-pokeball::before {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--header-bg);
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}
.logo-pokeball::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--header-bg);
    transform: translateY(-50%);
}

.logo-text span {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme switcher */
.theme-switcher {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: var(--bg-alt);
    border-radius: 20px;
    border: 1px solid var(--border);
}
.theme-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}
.theme-dot:hover,
.theme-dot.active {
    border-color: var(--heading);
    transform: scale(1.15);
}
.theme-dot[data-theme="pokeball"] { background: #E3350D; }
.theme-dot[data-theme="midnight"] { background: #F5C518; }
.theme-dot[data-theme="retro"] { background: #3DDC84; }

/* ── Tab Navigation ──────────────────────────── */
.tab-nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-nav-inner {
    display: flex;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    gap: 4px;
}

.tab-btn {
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--tab-text);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}
.tab-btn:hover {
    color: var(--heading);
    background: var(--tab-bg);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.tab-btn .tab-icon {
    margin-right: 6px;
}

/* ── Tab Content ─────────────────────────────── */
.tab-content {
    display: none;
    padding: 32px 0;
    min-height: 60vh;
    animation: fadeIn 0.3s ease;
}
.tab-content.active { display: block; }

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

/* ── Hero Section (per tab) ──────────────────── */
.tab-hero {
    background: var(--hero-gradient);
    padding: 40px 0;
    margin: -32px 0 32px 0;
    border-bottom: 1px solid var(--border);
}
.tab-hero h1 {
    color: #FFFFFF;
    margin-bottom: 8px;
}
.tab-hero p {
    color: #AAB4C7;
    font-size: 1.05em;
}

/* ── Sets Layout ─────────────────────────────── */
.sets-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.sets-sidebar {
    width: 360px;
    flex-shrink: 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    position: sticky;
    top: 130px;
}
.sets-sidebar::-webkit-scrollbar { width: 6px; }
.sets-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Set List ────────────────────────────────── */
.set-list { display: flex; flex-direction: column; gap: 12px; }

.set-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}
.set-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}
.set-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.set-logo {
    width: 120px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.set-info { flex: 1; min-width: 0; }
.set-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--heading);
    font-size: 1em;
}
.set-meta {
    font-size: 0.85em;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    margin-top: 2px;
}

.set-detail { flex: 1; }

/* ── Set Detail Panel ────────────────────────── */
.set-detail-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.set-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.set-detail-logo {
    width: 180px;
    height: 60px;
    object-fit: contain;
}
.set-detail-title h2 {
    color: var(--heading);
    margin-bottom: 4px;
}

/* ── Cards Grid ──────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.pokemon-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    cursor: pointer;
}
.pokemon-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-lg), var(--glow);
    border-color: var(--accent);
    z-index: 2;
}

/* Rank badge */
.pokemon-card-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-heading);
    z-index: 1;
}

.pokemon-card-img {
    width: 100%;
    aspect-ratio: 63/88;
    object-fit: cover;
    display: block;
}

.pokemon-card-info {
    padding: 10px 12px 4px;
}
.pokemon-card-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82em;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pokemon-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}
.pokemon-card-rarity {
    font-size: 0.68em;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}
.graded-badge {
    display: inline-block;
    font-size: 0.68em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--accent);
    border: 1px solid var(--accent);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.pokemon-card-price {
    font-weight: 800;
    color: var(--accent);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.price-label {
    font-size: 0.7em;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pokemon-card-avg {
    font-size: 0.68em;
    color: var(--text-muted);
    margin-top: 2px;
}
.card-trend {
    font-size: 0.72em;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}
.card-trend.trend-up   { color: #3DDC84; background: rgba(61,220,132,0.12); }
.card-trend.trend-down { color: #FF5555; background: rgba(255,85,85,0.12); }
.card-trend.trend-flat { color: var(--text-muted); }

.pokemon-card-link {
    display: block;
    text-align: center;
    padding: 7px;
    font-size: 0.72em;
    font-weight: 600;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    transition: all var(--transition);
    letter-spacing: 0.2px;
}
.pokemon-card-link:hover {
    background: var(--stat-bg);
    color: var(--accent);
    text-decoration: none;
}

/* ── Rarity Colors ───────────────────────────── */
.rarity-common           { background: #2A2A2A; color: #888; }
.rarity-uncommon         { background: #1A2A1A; color: #5A9A5A; }
.rarity-rare             { background: #1A1A2A; color: #6A7ACA; }
.rarity-rare-holo        { background: #1A1A2A; color: #8A9AEA; }
.rarity-double-rare      { background: #1E2040; color: #A0AAFF; }
.rarity-ultra-rare       { background: #201830; color: #C080FF; }
.rarity-illustration-rare{ background: #202830; color: #60C0E0; }
.rarity-sir              { background: #2A1820; color: #FF80B0; }
.rarity-hyper-rare       { background: #2A2010; color: #FFD060; }
.rarity-ace-spec         { background: #202010; color: #E0C040; }
.rarity-shiny-rare       { background: #201E10; color: #D4C428; }
.rarity-shiny-ultra-rare { background: #281828; color: #E090D0; }

/* ── Sealed Products Table ───────────────────── */
.sealed-table td:first-child {
    font-weight: 600;
    color: var(--heading);
}

.product-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    background: var(--tab-bg);
    color: var(--text);
}

/* ── Collection ──────────────────────────────── */
.collection-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.collection-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.collection-filters select,
.collection-filters input {
    padding: 8px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
}
.collection-filters select:focus,
.collection-filters input:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── Portfolio Sub-tabs ──────────────────────── */
.portfolio-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.portfolio-tab-btn {
    padding: 10px 22px;
    border: 1.5px solid var(--border);
    background: var(--stat-bg);
    color: var(--text-muted);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.85em;
    letter-spacing: 0.3px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}
.portfolio-tab-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(245, 197, 24, 0.07);
    box-shadow: 0 0 16px rgba(245, 197, 24, 0.12);
}
.portfolio-tab-btn:hover:not(.active) {
    color: var(--heading);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
}
.portfolio-tab-count {
    font-size: 0.75em;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(255,255,255,0.07);
    color: var(--text-muted);
}
.portfolio-tab-btn.active .portfolio-tab-count {
    background: rgba(245, 197, 24, 0.18);
    color: var(--accent);
}
.portfolio-tab-rename {
    margin-left: 4px;
    padding: 9px 14px;
    background: none;
    border: 1.5px solid transparent;
    color: var(--text-muted);
    font-size: 0.8em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-heading);
    font-weight: 600;
}
.portfolio-tab-rename:hover {
    color: var(--heading);
    border-color: var(--border);
    background: var(--stat-bg);
}

/* ── Kaart Toevoegen Formulier ───────────────── */
.add-card-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95em;
    color: var(--heading);
    user-select: none;
    padding: 2px 0;
}
.add-card-toggle:hover { color: var(--accent); }

.add-card-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--stat-bg);
    color: var(--heading);
    font-size: 0.9em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.add-card-input:focus {
    outline: none;
    border-color: var(--accent);
}

.add-card-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.add-card-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.add-card-result:last-child { border-bottom: none; }
.add-card-result:hover { background: rgba(245,197,24,0.07); }
.add-card-result-img {
    width: 32px; height: 45px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--stat-bg);
}
.add-card-result-info { min-width: 0; }
.add-card-result-name {
    font-weight: 600;
    font-size: 0.88em;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.add-card-result-meta {
    font-size: 0.75em;
    color: var(--text-muted);
}

.add-card-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(245,197,24,0.06);
    border: 1px solid rgba(245,197,24,0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.add-card-fields {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: end;
}
@media (max-width: 600px) {
    .add-card-fields { grid-template-columns: 1fr; }
}
.add-card-field { display: flex; flex-direction: column; gap: 5px; }
.add-card-label {
    font-size: 0.78em;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.add-card-select {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--stat-bg);
    color: var(--heading);
    font-size: 0.9em;
    cursor: pointer;
}
.add-card-select:focus { outline: none; border-color: var(--accent); }

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--stat-bg);
}
.qty-btn {
    padding: 8px 14px;
    background: none;
    border: none;
    color: var(--heading);
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.15s;
    font-weight: 700;
}
.qty-btn:hover { background: rgba(245,197,24,0.1); color: var(--accent); }
.qty-input {
    width: 50px;
    text-align: center;
    background: none;
    border: none;
    color: var(--heading);
    font-size: 0.95em;
    font-weight: 600;
    padding: 8px 0;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Delete knop op collectie-kaart */
.pokemon-card-delete {
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: rgba(255,255,255,0.5);
    border-radius: 50%;
    width: 22px; height: 22px;
    font-size: 0.7em;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    line-height: 1;
}
.pokemon-card:hover .pokemon-card-delete { display: flex; }
.pokemon-card-delete:hover { background: rgba(220,50,50,0.8); color: #fff; }

.pokemon-card-edit {
    position: absolute;
    top: 6px; left: 34px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: rgba(255,255,255,0.7);
    border-radius: 50%;
    width: 22px; height: 22px;
    font-size: 0.65em;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    line-height: 1;
}
.pokemon-card:hover .pokemon-card-edit { display: flex; }
.pokemon-card-edit:hover { background: rgba(80,140,220,0.8); }

/* ── Prijsstatus balk ─────────────────────────── */
.price-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    gap: 12px;
}
.price-status-label {
    color: var(--text-muted);
    flex: 1;
}
.price-status-label.updating {
    color: var(--accent);
}
.price-update-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s, color .2s;
}
.price-update-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.price-update-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ── Prijsgrafiek Modal ───────────────────────── */
.price-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.price-modal-overlay.open {
    display: flex;
}
.price-modal {
    background: var(--bg-alt, #252525);
    border: 1px solid var(--border, #333);
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 0;
}
.price-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    color: var(--text-muted, #888);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}
.price-modal-close:hover { color: var(--text, #eee); }

.price-modal-header {
    display: flex;
    gap: 16px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border, #333);
    align-items: flex-start;
}
.price-modal-img-wrap {
    flex-shrink: 0;
    width: 80px;
}
.price-modal-img {
    width: 80px;
    border-radius: 6px;
    display: block;
}
.price-modal-meta { flex: 1; min-width: 0; }
.price-modal-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading, #fff);
    margin-bottom: 3px;
}
.price-modal-set  { font-size: 12px; color: var(--text-muted, #888); margin-bottom: 2px; }
.price-modal-number { font-size: 11px; color: var(--text-muted, #888); margin-bottom: 8px; }
.price-modal-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent, #F5C518);
}
.price-modal-trend {
    font-size: 12px;
    margin-top: 2px;
}
.price-modal-trend.up   { color: #4caf50; }
.price-modal-trend.down { color: #f44336; }
.price-modal-trend.flat { color: var(--text-muted, #888); }

.price-modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border, #333);
    padding: 0 20px;
}
.pm-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted, #888);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
    margin-bottom: -1px;
}
.pm-tab.active { color: var(--accent, #F5C518); border-bottom-color: var(--accent, #F5C518); }
.pm-tab:hover:not(.active) { color: var(--text, #eee); }

.pm-tab-content { display: none; padding: 16px 20px 20px; }
.pm-tab-content.active { display: block; }

.pm-timebtns {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.pm-tbtn {
    background: none;
    border: 1px solid var(--border, #444);
    color: var(--text-muted, #888);
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.pm-tbtn.active, .pm-tbtn:hover {
    background: var(--accent, #F5C518);
    color: #111;
    border-color: var(--accent, #F5C518);
}
.pm-chart-wrap {
    position: relative;
    height: 200px;
}
.pm-chart-wrap canvas {
    width: 100% !important;
    height: 200px !important;
}
.pm-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted, #888);
    padding: 20px;
}

.pm-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.pm-info-item { background: var(--bg, #1b1b1b); border-radius: 8px; padding: 10px 12px; }
.pm-info-label { font-size: 10px; color: var(--text-muted, #888); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.pm-info-value { font-size: 14px; font-weight: 600; color: var(--heading, #fff); }
.pm-cm-btn {
    display: block;
    text-align: center;
    background: none;
    border: 1px solid var(--border, #444);
    color: var(--text, #eee);
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.pm-cm-btn:hover { border-color: var(--accent, #F5C518); color: var(--accent, #F5C518); }

/* Trend badge op collectie-kaartjes */
.card-trend-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}
.card-trend-badge.up   { background: rgba(76,175,80,.15); color: #4caf50; }
.card-trend-badge.down { background: rgba(244,67,54,.15); color: #f44336; }
.card-trend-badge.flat { background: rgba(255,255,255,.07); color: #888; }

/* Klikbaar collectiekaartje */
.pokemon-card.clickable { cursor: pointer; }
.pokemon-card.clickable:hover { border-color: var(--accent, #F5C518); transform: translateY(-2px); }

/* ── Import Portfolio Selector ───────────────── */
.portfolio-import-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.portfolio-import-label {
    font-weight: 700;
    font-size: 0.9em;
    color: var(--text-muted);
    white-space: nowrap;
}
.portfolio-import-header select {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--stat-bg);
    color: var(--heading);
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
}

/* ── Import Section ──────────────────────────── */
.import-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    background: var(--bg-alt);
    transition: all var(--transition);
    cursor: pointer;
}
.import-zone:hover,
.import-zone.dragover {
    border-color: var(--accent);
    background: rgba(var(--accent), 0.05);
}
.import-zone-icon {
    font-size: 3em;
    margin-bottom: 12px;
}
.import-zone-text {
    color: var(--text-muted);
    font-size: 1em;
}
.import-zone-text strong {
    color: var(--accent);
}

/* ── Calculator Sections ─────────────────────── */
.calc-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.calc-card h3 {
    color: #E6EDF3;
}

.calc-result {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
    margin: 20px 0;
}

.calc-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ── Watchlist ───────────────────────────────── */
.watchlist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.watchlist-item-img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}
.watchlist-progress {
    flex: 1;
}

/* ── Section Headers ─────────────────────────── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-header h2 {
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ── Loading ─────────────────────────────────── */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty State ─────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 3em; margin-bottom: 12px; opacity: 0.5; }

/* ── Toast / Notifications ───────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    color: var(--heading);
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Marktanalyse — Movers ───────────────────── */
.movers-period-btns { display:flex; gap:6px; }
.mover-period-btn {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all .15s;
}
.mover-period-btn.active,
.mover-period-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}
.movers-list { display: flex; flex-direction: column; gap: 8px; }
.movers-empty { color: var(--text-muted); font-size: 0.87rem; padding: 12px 0; }
.mover-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg-alt);
    cursor: pointer;
    transition: background .15s;
}
.mover-row:hover { background: var(--border); }
.mover-rank {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.mover-img {
    width: 38px;
    height: 52px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    background: #111;
}
.mover-img-placeholder {
    width: 38px;
    height: 52px;
    border-radius: 4px;
    background: var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.mover-info { flex: 1; min-width: 0; }
.mover-name {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mover-set {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mover-prices { text-align: right; flex-shrink: 0; }
.mover-pct {
    font-size: 0.95rem;
    font-weight: 700;
}
.mover-pct.up   { color: #3DDC84; }
.mover-pct.down { color: #E3350D; }
.mover-price-range {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
    .sets-layout { flex-direction: column; }
    .sets-sidebar { width: 100%; max-height: 300px; position: static; }
    .collection-stats { grid-template-columns: repeat(2, 1fr); }
    .set-detail-panel { padding: 20px; }
}
@media (max-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .header-inner { height: 60px; }
    .logo { font-size: 1.1em; }
    .logo-pokeball { width: 30px; height: 30px; }
    .set-detail-header { flex-direction: column; text-align: center; }
    .tab-btn { padding: 12px 14px; font-size: 12px; }
    .calc-breakdown { grid-template-columns: 1fr; }
}
/* ── Grading Real Prices ─────────────────────── */
.grading-real-prices {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.grading-real-header {
    background: var(--stat-bg);
    padding: 8px 12px;
    font-size: 0.82em;
    font-weight: 600;
    color: var(--text-muted);
}
.grading-real-list { padding: 4px 0; }
.grading-real-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 12px;
    font-size: 0.87em;
    border-bottom: 1px solid var(--border);
}
.grading-real-row:last-child { border-bottom: none; }
.grading-real-grade {
    font-weight: 700;
    color: var(--heading);
    min-width: 80px;
}
.grading-real-price { color: var(--accent); font-weight: 600; }

/* ── Watchlist ────────────────────────────────── */
.pm-watchlist-btn {
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.82em;
    cursor: pointer;
    transition: all 0.15s;
}
.pm-watchlist-btn:hover { border-color: var(--accent); color: var(--accent); }

.pm-watchlist-form {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.pm-watchlist-input {
    flex: 1;
    background: var(--input-bg, var(--body-bg));
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 6px 10px;
    font-size: 0.85em;
}
.pm-watchlist-input:focus { outline: none; border-color: var(--accent); }

.btn-sm { padding: 6px 14px; font-size: 0.82em; }

.watchlist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}
.watchlist-item-img {
    width: 46px;
    height: 64px;
    object-fit: contain;
    border-radius: 5px;
    flex-shrink: 0;
}
.watchlist-item-img-placeholder {
    background: var(--border);
}
.watchlist-item-body { flex: 1; min-width: 0; }
.watchlist-item-name {
    font-weight: 600;
    color: var(--heading);
    font-size: 0.95em;
    margin-bottom: 5px;
}
.watchlist-item-prices {
    display: flex;
    gap: 16px;
    font-size: 0.85em;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-bottom: 7px;
}
.watchlist-reached {
    color: #3DDC84;
    font-weight: 600;
}
.watchlist-progress {
    background: var(--border);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}
.watchlist-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.watchlist-progress-fill.reached { background: #3DDC84; }

/* ── Bulk Toevoegen ───────────────────────────── */
.bulk-result-added { opacity: 0.55; }
.bulk-added-badge {
    display: inline-block;
    font-size: 0.75em;
    color: var(--accent);
    font-weight: 600;
    margin-left: 6px;
}

.bulk-basket {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.bulk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
.bulk-item:last-child { border-bottom: none; }

.bulk-item-img {
    width: 36px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.bulk-item-img-placeholder {
    width: 36px; height: 50px;
    background: var(--border);
    border-radius: 4px;
    flex-shrink: 0;
}

.bulk-item-info { flex: 1; min-width: 0; }
.bulk-item-name {
    font-weight: 600;
    font-size: 0.88em;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bulk-item-set {
    font-size: 0.76em;
    color: var(--text-muted);
    margin-top: 2px;
}

.bulk-item-condition {
    background: var(--input-bg, var(--body-bg));
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 5px 8px;
    font-size: 0.83em;
    flex-shrink: 0;
    width: 90px;
}

.bulk-item-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.bulk-item-qty-val {
    min-width: 22px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
}

.bulk-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85em;
    padding: 4px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.bulk-item-remove:hover { color: #e33; }

.bulk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 2px;
}
.bulk-count {
    font-size: 0.85em;
    color: var(--text-muted);
}

/* ── Edit Modal ───────────────────────────────── */
.edit-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.edit-modal-overlay.open { display: flex; }

.edit-modal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.edit-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}
.edit-modal-close:hover { color: var(--text); }

.edit-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.edit-modal-img {
    width: 64px;
    height: 90px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}
.edit-modal-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05em;
    color: var(--heading);
    margin-bottom: 4px;
}
.edit-modal-set {
    font-size: 0.85em;
    color: var(--text-muted);
}

.edit-modal-form { display: flex; flex-direction: column; gap: 14px; }

.edit-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.edit-form-row label {
    width: 130px;
    flex-shrink: 0;
    font-size: 0.88em;
    color: var(--text-muted);
    font-weight: 500;
}
.edit-form-row select,
.edit-form-row input {
    flex: 1;
    background: var(--input-bg, var(--body-bg));
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 8px 12px;
    font-size: 0.9em;
}
.edit-form-row select:focus,
.edit-form-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.edit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* ── Set Schaarste Monitor ─────────────────────── */
.set-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.set-status-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.set-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.set-status-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.set-status-logo-placeholder {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.set-status-info {
    flex: 1;
    min-width: 0;
}

.set-status-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.set-status-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.set-status-age {
    margin-left: 4px;
}

.set-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.set-status-signals {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.set-status-signal { margin-bottom: 1px; }

.set-status-trend {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--bg-alt);
}

.set-status-trend.up { color: #2ecc71; }
.set-status-trend.down { color: #e74c3c; }

/* ── PSA Pop Report ────────────────────────────── */
.grading-pop-report {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
}

.pop-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pop-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--heading);
}

.pop-scarcity-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    color: #fff;
}

.pop-cached {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

.pop-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.pop-stat {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
}

.pop-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--heading);
}

.pop-stat-lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.pop-link {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

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

.pop-unavailable {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 4px 0 10px;
}

.pop-loading {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Inkoopkansen ──────────────────────────────── */
.opp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.opp-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.opp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.opp-card-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    background: var(--bg-alt);
}

.opp-card-img-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--bg-alt);
}

.opp-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #E3350D;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.opp-card-body {
    padding: 10px 10px 6px;
    flex: 1;
}

.opp-card-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.opp-card-set {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.opp-card-prices {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.opp-now {
    font-size: 0.78rem;
    font-weight: 700;
    color: #2ecc71;
}

.opp-avg {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.opp-saving {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
}

.opp-cm-btn {
    display: block;
    text-align: center;
    padding: 7px;
    background: var(--accent);
    color: var(--accent-text, #1A2744);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}

.opp-cm-btn:hover { opacity: 0.85; }

@media (max-width: 480px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .collection-stats { grid-template-columns: 1fr; }
    .set-item { flex-direction: column; text-align: center; }
    .set-logo { width: 100px; }
    .opp-grid { grid-template-columns: repeat(2, 1fr); }
}
