/* ============================================================
   GPU Compare — Frontend Styles
   Mirrors Flavor Component Filters design tokens.
   ============================================================ */

.gwc-compare-page {
    --accent:       #2962ff;
    --accent-hover: #0034c2;
    --accent-soft:  rgba(41, 98, 255, 0.08);
    --panel:        #ffffff;
    --panel-alt:    #f8f9fa;
    --text:         #111111;
    --text-muted:   #6c6f72;
    --line:         #e0e0e0;
    --radius:       6px;
    --radius-lg:    10px;
    --shadow:       0 2px 12px rgba(0,0,0,0.07);
    --shadow-lg:    0 6px 24px rgba(0,0,0,0.10);
    --nvidia:       #76b900;
    --amd:          #ed1c24;
    --intel:        #0071c5;

    font-family: 'Roboto', sans-serif;
    color: var(--text);
    box-sizing: border-box;
}
.gwc-compare-page * { box-sizing: border-box; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.gwc-empty-state {
    text-align: center;
    padding: 0 24px 40px;
}
.gwc-empty-state svg { color: #ccc; margin-bottom: 16px; }
.gwc-empty-state h2  { font-size: 22px; margin-bottom: 10px; }
.gwc-empty-state p   { color: var(--text-muted); margin-bottom: 0; }

/* ============================================================
   SECTION
   ============================================================ */
.gwc-section { margin-bottom: 40px; }
.gwc-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line);
}

/* ============================================================
   GPU HEADER CARDS
   ============================================================ */
.gwc-gpu-headers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.gwc-gpu-header {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}
.gwc-gpu-header:hover { box-shadow: var(--shadow-lg); }

/* Brand accent top bar */
.gwc-gpu-header[data-brand="nvidia"] { border-top: 3px solid var(--nvidia); }
.gwc-gpu-header[data-brand="amd"]    { border-top: 3px solid var(--amd); }
.gwc-gpu-header[data-brand="intel"]  { border-top: 3px solid var(--intel); }

.gwc-gpu-header-img {
    background: var(--panel-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 140px;
}
.gwc-gpu-header-img img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    display: block;
}
.gwc-gpu-header-placeholder {
    width: 80px;
    height: 80px;
    background: var(--line);
    border-radius: 6px;
}

.gwc-gpu-header-info {
    padding: 14px 16px 16px;
}
.gwc-gpu-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}
.gwc-gpu-title a { color: var(--text); text-decoration: none; }
.gwc-gpu-title a:hover { color: var(--accent); }

.gwc-gpu-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.gwc-rating-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.gwc-rating-value { font-size: 14px; font-weight: 700; color: var(--accent); }

.gwc-gpu-review-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gwc-gpu-review-link:hover { color: var(--accent-hover); }

/* ============================================================
   SPEC TABLE
   ============================================================ */
.gwc-spec-section { margin-bottom: 40px; }

.gwc-spec-table-wrap {
    overflow: hidden;          /* clips table corners — no white gap */
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.gwc-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--panel);
}
.gwc-spec-table th {
    background: var(--accent, #2962ff);
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
    font-size: 13px;
}
.gwc-spec-table th.gwc-spec-label-col { width: 160px; min-width: 140px; }

.gwc-spec-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: 13px;
}
.gwc-spec-table tr:last-child td { border-bottom: none; }
.gwc-spec-table tr:nth-child(even) td { background: var(--panel-alt); }
.gwc-spec-table tr:hover td { background: var(--accent-soft); }

.gwc-spec-label { color: var(--text-muted); font-weight: 500; }
.gwc-muted { color: #bbb; }

/* ============================================================
   BENCHMARK SECTION
   ============================================================ */
.gwc-benchmark-section { }

/* Loading spinner */
.gwc-benchmark-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-muted);
}
.gwc-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: gwc-spin 0.7s linear infinite;
}
@keyframes gwc-spin { to { transform: rotate(360deg); } }

/* ============================================================
   CONTROLS
   ============================================================ */
.gwc-benchmark-controls {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.gwc-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}
.gwc-controls-row-secondary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.gwc-control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
    flex: 1;
}
.gwc-control-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.gwc-select {
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 10px;
    font-size: 14px;
    color: var(--text);
    background: var(--panel);
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
}
.gwc-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================================================
   NO DATA
   ============================================================ */
.gwc-no-data {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-muted);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

/* ============================================================
   CHARTS
   ============================================================ */
.gwc-charts-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gwc-chart-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 24px 24px;
    box-shadow: var(--shadow);
}

.gwc-chart-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.gwc-chart-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}
.gwc-chart-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.gwc-chart-wrap {
    position: relative;
    min-height: 180px;
}
.gwc-chart-wrap canvas {
    display: block;
    width: 100% !important;
}

/* Sweep chart */
#gwc-chart-sweep { min-height: 200px; }

/* ============================================================
   BUTTONS (frontend)
   ============================================================ */
.gwc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
}
.gwc-btn:active { transform: scale(0.98); }
.gwc-btn-primary  { background: var(--accent); color: #fff; }
.gwc-btn-primary:hover { background: var(--accent-hover); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .gwc-gpu-headers {
        grid-template-columns: 1fr 1fr;
    }
    .gwc-controls-row { flex-direction: column; gap: 12px; }
    .gwc-control-group { min-width: 100%; }
    .gwc-chart-header  { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
    .gwc-gpu-headers { grid-template-columns: 1fr; }
    .gwc-spec-table  { font-size: 12px; }
    .gwc-spec-table td, .gwc-spec-table th { padding: 8px 10px; }
}

/* ============================================================
   GPU SEARCH PANEL
   ============================================================ */
.gwc-search-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.gwc-search-panel-inner { display: flex; flex-direction: column; gap: 14px; }

.gwc-search-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.gwc-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.gwc-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.gwc-search-input {
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 0 36px 0 38px;
    font-size: 14px;
    color: var(--text);
    background: var(--panel);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gwc-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.gwc-search-input::placeholder { color: var(--text-muted); }

.gwc-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.gwc-search-clear svg { width: 14px; height: 14px; }
.gwc-search-clear:hover { color: var(--text); }

.gwc-search-hint {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Search results dropdown */
.gwc-search-results {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 320px;
    overflow-y: auto;
}

.gwc-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
}
.gwc-search-result:hover,
.gwc-search-result:focus { background: var(--accent-soft); outline: none; }

.gwc-search-result--loading,
.gwc-search-result--empty {
    color: var(--text-muted);
    cursor: default;
    font-style: italic;
}
.gwc-search-result--loading:hover,
.gwc-search-result--empty:hover { background: none; }

.gwc-result-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--panel-alt);
    flex-shrink: 0;
}
.gwc-result-thumb--empty {
    background: var(--line);
    border-radius: 4px;
}

.gwc-result-name { flex: 1; font-weight: 500; }

.gwc-result-add {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.15s;
}
.gwc-search-result:hover .gwc-result-add { opacity: 1; }

/* Current GPU chips */
.gwc-current-gpus {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gwc-current-gpu-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px 6px 8px;
    background: var(--accent-soft);
    border: 1.5px solid var(--accent);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}

.gwc-chip-thumb {
    width: 36px;
    height: 28px;
    object-fit: contain;
    object-position: center;
    border-radius: 5px;
    background: #f4f6fa;
    flex-shrink: 0;
    display: block;
}

.gwc-chip-name { color: var(--text); font-weight: 600; }

.gwc-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: color 0.15s;
    margin-left: 2px;
}
.gwc-chip-remove svg { width: 13px; height: 13px; }
.gwc-chip-remove:hover { color: #dc3545; }

.gwc-add-gpu-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: none;
    border: 1.5px dashed var(--line);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.gwc-add-gpu-chip svg { width: 13px; height: 13px; }
.gwc-add-gpu-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Full Comparison button disabled state */
.flavor-cf-full-compare-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 600px) {
    .gwc-search-row { flex-direction: column; align-items: stretch; }
    .gwc-search-hint { text-align: right; }
}

/* Search panel empty prompt */
.gwc-chips-prompt {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    padding: 4px 0;
}

/* Empty state below search panel — less dramatic than full-page version */
.gwc-empty-state {
    text-align: center;
    padding: 40px 24px 24px;
    color: var(--text-muted);
}
.gwc-empty-state h2 {
    font-size: 20px;
    color: var(--text);
    margin: 14px 0 8px;
}
.gwc-empty-state p { font-size: 14px; margin: 0; }
.gwc-empty-state a { color: var(--accent); text-decoration: none; }
.gwc-empty-state a:hover { text-decoration: underline; }

/* ============================================================
   ACCORDIONS
   ============================================================ */
.gwc-accordion {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    overflow: hidden;
}

#gwc-pricing-accordion {
    margin-top: 0;
}

.gwc-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    gap: 12px;
}
.gwc-accordion-header::-webkit-details-marker { display: none; }
.gwc-accordion-header:hover { background: var(--panel-alt); }

.gwc-accordion-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.gwc-accordion-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
details[open] .gwc-accordion-arrow {
    transform: rotate(180deg);
}

.gwc-accordion-body {
    padding: 0 22px 22px;
    border-top: 1px solid var(--line);
}

/* Benchmarks accordion — no extra padding since controls have their own */
#gwc-benchmarks-accordion .gwc-accordion-body {
    padding: 20px 22px 22px;
}

/* ============================================================
   COLOUR PICKER
   ============================================================ */
.gwc-gpu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.gwc-color-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.gwc-color-picker {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.gwc-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    display: block;
    cursor: pointer;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.gwc-color-wrap:hover .gwc-color-swatch {
    transform: scale(1.2);
    border-color: rgba(0,0,0,0.3);
}

/* Make the colour swatch clickable by overlaying the input */
.gwc-color-wrap input[type="color"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
}

/* ============================================================
   TEST SETTINGS INFO BOX
   ============================================================ */
.gwc-test-settings {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 14px;
    background: var(--panel-alt);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.gwc-test-settings-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent);
}
#gwc-test-settings-text {
    flex: 1;
}

/* ============================================================
   VERDICT SECTION
   ============================================================ */
.gwc-verdict-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding-top: 4px;
}

.gwc-verdict-card {
    background: var(--panel-alt);
    border-radius: var(--radius);
    border-top: 3px solid var(--accent);
    padding: 16px;
}

.gwc-verdict-gpu {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text);
}

.gwc-verdict-placeholder {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}
.gwc-verdict-placeholder a {
    color: var(--accent);
    text-decoration: none;
}
.gwc-verdict-placeholder a:hover { text-decoration: underline; }

/* ============================================================
   GREYED OUT SELECT OPTIONS
   ============================================================ */
.gwc-select option:disabled {
    color: #bbb;
}

/* Remove old section title style — accordions replace it */
.gwc-section-title { display: none; }

/* Combined chart — taller to accommodate grouped bars */
.gwc-chart-wrap--combined {
    min-height: 220px;
}

/* Legend note explaining solid vs faded */
.gwc-chart-legend-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: -8px 0 14px;
    padding-left: 2px;
}

/* ============================================================
   GPU HEADER — PRICING
   ============================================================ */
.gwc-gpu-pricing {
    margin: 8px 0 6px;
    transform: scale(0.7);
    transform-origin: left center;
    /* Compensate for scale so it doesn't take up full space */
    max-height: 60px;
    overflow: hidden;
}
/* Ensure links inside pricing inherit correctly */
.gwc-gpu-pricing a {
    font-size: inherit;
}

/* ============================================================
   DATA TABLES (debug / results)
   ============================================================ */
.gwc-debug-wrap {
    margin-top: 24px;
    border-top: 2px solid var(--line);
    padding-top: 20px;
}

/* Query meta bar — hidden, kept for future use */
.gwc-dt-meta {
    display: none;
}

/* Section wrapper */
.gwc-dt-section {
    margin-bottom: 20px;
}
.gwc-dt-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
}
.gwc-dt-section-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gwc-dt-section-toggle:hover { color: var(--accent); }
.gwc-dt-toggle-hint {
    font-size: 11px;
    font-weight: 400;
    color: var(--accent);
    text-transform: none;
    letter-spacing: 0;
}

/* Scroll wrapper so wide tables don't break layout */
.gwc-dt-scroll {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

/* Table base */
.gwc-dt {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 400px;
}
.gwc-dt thead tr {
    background: var(--accent);
}
.gwc-dt th {
    padding: 9px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.gwc-dt th:last-child { border-right: none; }
.gwc-dt td {
    padding: 8px 14px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    white-space: nowrap;
    color: var(--text);
}
.gwc-dt td:last-child { border-right: none; }
.gwc-dt tr:last-child td { border-bottom: none; }
.gwc-dt-even td { background: var(--panel); }
.gwc-dt-odd  td { background: var(--panel-alt); }
.gwc-dt tr:hover td { background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }

/* Detail table — monospace for IDs/dates */
.gwc-dt-detail td { font-family: ui-monospace, 'SF Mono', monospace; font-size: 12px; }
.gwc-dt-detail th { background: #1e293b; }

/* Null/empty cell */
.gwc-dt-null { color: var(--text-muted); opacity: 0.45; }

.gwc-debug-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 13px;
    padding: 12px 0;
}

/* Core settings note — inline after main settings text */
.gwc-core-settings-note {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
}

/* ============================================================
   CHART HEADER — two-column layout for title + winner pill
   ============================================================ */
.gwc-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.gwc-chart-header-left {
    flex: 1;
    min-width: 0;
}

/* ============================================================
   WINNER PILL + EXPANDABLE PANEL
   ============================================================ */
.gwc-winner-wrap {
    flex-shrink: 0;
    position: relative;
}

.gwc-winner-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 10px;
    background: var(--accent, #2962ff);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    white-space: nowrap;
}
.gwc-winner-pill:hover { background: #1a4fd6; }

.gwc-winner-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    fill: rgba(255,255,255,0.3);
    stroke: #fff;
}

.gwc-winner-chevron {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Expanded panel — slides down below the pill */
.gwc-winner-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 100;
    width: 380px;
    background: var(--panel-alt, #f5f7ff);
    border: 1px solid var(--line, #e0e4ef);
    border-radius: var(--radius, 8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    overflow: hidden;
    /* slide animation */
    transform-origin: top right;
    animation: gwc-panel-in 0.2s ease forwards;
}

@keyframes gwc-panel-in {
    from { opacity: 0; transform: scaleY(0.85) translateY(-6px); }
    to   { opacity: 1; transform: scaleY(1)    translateY(0); }
}

.gwc-winner-panel.is-closing {
    animation: gwc-panel-out 0.16s ease forwards;
}

@keyframes gwc-panel-out {
    from { opacity: 1; transform: scaleY(1)    translateY(0); }
    to   { opacity: 0; transform: scaleY(0.85) translateY(-6px); }
}

.gwc-winner-panel-inner {
    padding: 14px 16px;
}

.gwc-wp-heading {
    font-size: 12px;
    color: var(--text-muted, #888);
    margin: 0 0 10px;
}
.gwc-wp-heading strong { color: var(--text, #1a1a2e); }

.gwc-wp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gwc-wp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: var(--panel, #fff);
    border-radius: 6px;
    font-size: 13px;
}

/* Left side: GPU name only — no tag here */
.gwc-wp-gpu {
    font-weight: 600;
    color: var(--text, #1a1a2e);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Right side: tag + FPS + % all grouped together */
.gwc-wp-right {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.gwc-wp-fps {
    font-size: 12px;
    color: var(--text-muted, #888);
}

/* Tags */
.gwc-wp-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.gwc-wp-ref    { background: var(--line, #e0e4ef); color: var(--text-muted, #777); }
.gwc-wp-winner { background: var(--accent, #2962ff); color: #fff; }

/* % faster/slower */
.gwc-wp-pos { color: #2e7d32; font-weight: 700; font-size: 12px; }
.gwc-wp-neg { color: #c62828; font-weight: 700; font-size: 12px; }

/* ============================================================
   SET AS REFERENCE BUTTON + REFERENCE BADGE
   ============================================================ */
.gwc-gpu-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwc-reference-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent, #2962ff);
    background: rgba(41,98,255,0.09);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.gwc-set-reference-btn {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #888);
    background: none;
    border: 1px solid var(--line, #e0e4ef);
    border-radius: 10px;
    padding: 2px 8px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.gwc-set-reference-btn:hover {
    color: var(--accent, #2962ff);
    border-color: var(--accent, #2962ff);
}

/* ============================================================
   PRICING & AVAILABILITY ACCORDION
   ============================================================ */
.gwc-gpu-headers {
    margin-bottom: 10px;
}

.gwc-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.gwc-pricing-col {}

.gwc-pricing-gpu-label {
    display: none;
}

.gwc-pricing-buttons {
    transform: scale(0.85);
    transform-origin: left center;
}

.gwc-pricing-unavailable {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

/* Chart legend note — update to reflect new two-dataset structure */
.gwc-chart-legend-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

/* ============================================================
   #4 CHART LOADING OVERLAY
   ============================================================ */
.gwc-charts-area {
    position: relative;
}

.gwc-chart-loading-overlay { display: none !important; }

/* ============================================================
   #7 NO BENCHMARK DATA BADGE ON GPU HEADER CARD
   ============================================================ */
.gwc-gpu-header--no-data {
    opacity: 0.75;
}

.gwc-no-data-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 4px 9px;
    margin-bottom: 10px;
}

/* ============================================================
   VERDICT CARDS — full data-driven layout
   ============================================================ */
.gwc-verdict-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.gwc-verdict-card {
    background: var(--panel-alt, #f5f7ff);
    border-radius: var(--radius, 8px);
    border-top: 3px solid var(--accent, #2962ff);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Full verdict card — white bg since it has more content */
.gwc-verdict-card--full {
    background: var(--panel, #fff);
    border: 1px solid var(--line, #e0e4ef);
    border-top: 3px solid var(--accent, #2962ff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Header: title on top, score below — compact for 4-card layout */
.gwc-vd-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gwc-vd-title-col {
    min-width: 0;
}

.gwc-vd-gpu-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text, #1a1a2e);
    margin: 0;
    line-height: 1.3;
}

.gwc-vd-summary {
    display: none; /* hidden in compact mode */
}

/* Score card — compact inline */
.gwc-vd-score {
    background: #f7faff;
    border: 1px solid #dbe7ff;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gwc-vd-score-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #1f4f98;
    margin: 0;
}

.gwc-vd-score-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwc-vd-score-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent, #2962ff);
    line-height: 1;
    white-space: nowrap;
}

/* Stars using the same CSS trick as the original widget */
.gwc-vd-stars {
    --s-rating: 5;
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
    color: #d0d5dd;
}
.gwc-vd-stars::after {
    content: "★★★★★";
    color: var(--accent, #2962ff);
    position: absolute;
    left: 0;
    top: 0;
    width: calc((var(--s-rating) / 5) * 100%);
    overflow: hidden;
    white-space: nowrap;
}

.gwc-vd-score-note {
    font-size: 11px;
    color: var(--text-muted, #666);
    line-height: 1.35;
    margin: 2px 0 0;
}

/* Metric bars — 2x2 grid so labels never overflow */
.gwc-vd-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gwc-vd-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gwc-vd-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px;
}

.gwc-vd-metric-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gwc-vd-metric-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text, #1a1a2e);
    line-height: 1.2;
}

.gwc-vd-metric-bar {
    height: 4px;
    background: var(--line, #e0e4ef);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 2px;
}

.gwc-vd-metric-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--accent, #2962ff);
    transition: width 0.5s ease;
}

/* Pros & Cons — bordered panels matching original */
.gwc-vd-pc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gwc-vd-pros,
.gwc-vd-cons {
    background: #f8f9fa;
    border: 1px solid var(--line, #e0e4ef);
    border-radius: 8px;
    padding: 12px;
}

.gwc-vd-pc-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
}
.gwc-vd-pc-title--pro { color: #057a3f; }
.gwc-vd-pc-title--con { color: #b42318; }

.gwc-vd-pc-list {
    list-style: disc;
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gwc-vd-pc-list li {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text, #1a1a2e);
    padding-left: 0;
}
.gwc-vd-pros .gwc-vd-pc-list li::before,
.gwc-vd-cons .gwc-vd-pc-list li::before {
    content: none;
}

/* Footer: reviewer + full review link */
.gwc-vd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line, #e0e4ef);
    flex-wrap: wrap;
}

.gwc-vd-reviewer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted, #666);
}
.gwc-vd-reviewer a,
.gwc-vd-reviewer strong {
    color: var(--text, #1a1a2e);
    font-weight: 600;
    text-decoration: none;
}
.gwc-vd-reviewer a:hover { text-decoration: underline; }

.gwc-vd-review-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent, #2962ff);
    text-decoration: none;
    white-space: nowrap;
}
.gwc-vd-review-link:hover { text-decoration: underline; }

/* Placeholder state */
.gwc-verdict-gpu {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text, #1a1a2e);
}
.gwc-verdict-placeholder {
    font-size: 13px;
    color: var(--text-muted, #888);
    margin: 0;
}
.gwc-verdict-placeholder a { color: var(--accent, #2962ff); text-decoration: none; }

/* Responsive */
@media (max-width: 600px) {
    .gwc-vd-header    { flex-direction: column; }
    .gwc-vd-score     { min-width: 0; width: 100%; }
    .gwc-vd-metrics   { grid-template-columns: 1fr 1fr; }
    .gwc-vd-pc        { grid-template-columns: 1fr; }
}

/* ============================================================
   RESOLUTION ARROWS
   ============================================================ */
.gwc-res-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}
.gwc-res-wrap .gwc-res-select {
    flex: 1;
    min-width: 0;
}
.gwc-res-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    padding: 0;
}
.gwc-res-arrow:hover:not(.is-disabled) {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}
.gwc-res-arrow.is-disabled,
.gwc-res-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.gwc-res-arrow svg { width: 14px; height: 14px; pointer-events: none; }

/* ============================================================
   CHART HEADER — right side buttons
   ============================================================ */
.gwc-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.gwc-chart-header-left  { flex: 1; min-width: 0; }
.gwc-chart-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ============================================================
   EXPORT BUTTON
   ============================================================ */
.gwc-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.gwc-export-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ============================================================
   UPSCALING COMPARE BUTTON
   ============================================================ */
.gwc-usc-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.gwc-usc-compare-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.gwc-usc-compare-btn.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============================================================
   POWER / TEMP PILLS
   ============================================================ */
.gwc-power-temp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.gwc-pt-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--panel-alt);
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 12px;
}
.gwc-pt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gwc-pt-gpu {
    font-weight: 600;
    color: var(--text);
}
.gwc-pt-stats {
    color: var(--text-muted);
}
.gwc-pt-icon {
    font-style: normal;
}

/* ============================================================
   GAME AVERAGES ACCORDION
   ============================================================ */
.gwc-averages-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-top: 8px;
    flex-wrap: wrap;
}
.gwc-averages-res-tabs {
    display: flex;
    gap: 4px;
}
.gwc-avg-res-tab {
    padding: 5px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.gwc-avg-res-tab.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.gwc-avg-res-tab:hover:not(.is-active) {
    border-color: var(--accent);
    color: var(--accent);
}
.gwc-averages-note {
    font-size: 11px;
    color: var(--text-muted);
}
.gwc-averages-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.gwc-averages-empty {
    color: var(--text-muted);
    font-size: 13px;
    padding: 12px 0;
}
.gwc-avg-table-wrap {
    overflow-x: auto;
}
.gwc-avg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.gwc-avg-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--line);
    white-space: nowrap;
}
.gwc-avg-table th:first-child { width: 180px; }
.gwc-avg-gpu-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.gwc-avg-table td {
    padding: 8px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.gwc-avg-even { background: var(--panel); }
.gwc-avg-odd  { background: var(--panel-alt); }
.gwc-avg-total td {
    border-top: 2px solid var(--line);
    border-bottom: none;
    background: var(--panel);
    padding-top: 12px;
    padding-bottom: 12px;
}
.gwc-avg-game {
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.gwc-avg-cell { min-width: 120px; }
.gwc-avg-fps {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 14px;
}
.gwc-avg-fps-unit {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}
.gwc-avg-bar {
    height: 3px;
    background: var(--line);
    border-radius: 99px;
    overflow: hidden;
}
.gwc-avg-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}
.gwc-avg-winner .gwc-avg-fps {
    color: var(--accent);
}
.gwc-avg-winner .gwc-avg-fps::after {
    content: ' ★';
    font-size: 10px;
    color: var(--accent);
}
.gwc-avg-nodata {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================================
   SEARCH REPLACE MODE
   ============================================================ */
.gwc-search-result--replace {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    cursor: default;
}
.gwc-search-result--replace:hover {
    background: var(--panel);
}
.gwc-result-replace-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 40px;
}
.gwc-result-replace-btn {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.gwc-result-replace-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ============================================================
   NO-DATA BADGE IMPROVEMENTS
   ============================================================ */
.gwc-no-data-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 4px 9px;
    margin-bottom: 10px;
}
.gwc-no-data-badge a {
    color: #92400e;
    text-decoration: underline;
    font-weight: 700;
}
.gwc-no-data-badge a:hover { opacity: 0.8; }

/* ============================================================
   ADMIN IMPORT LOG TABLE
   ============================================================ */
.gwc-import-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}
.gwc-import-log-table th {
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}
.gwc-import-log-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    vertical-align: middle;
}
.gwc-log-latest td { background: #f0f7ff; }
.gwc-log-badge {
    display: inline-block;
    padding: 1px 7px;
    background: #2962ff;
    color: #fff;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}
.gwc-log-inserted { color: #057a3f; font-weight: 600; }
.gwc-log-updated  { color: #2962ff; font-weight: 600; }
.gwc-log-skipped  { color: #888; }
.gwc-log-errors   { color: #888; }
.gwc-log-errors.has-errors { color: #b42318; font-weight: 700; }

/* ============================================================
   MOBILE RESPONSIVE PASS
   ============================================================ */
@media (max-width: 768px) {

    /* GPU header cards — stack to single column */
    .gwc-gpu-headers {
        grid-template-columns: 1fr !important;
    }

    /* Controls — stack all rows */
    .gwc-controls-row {
        flex-direction: column;
        gap: 10px;
    }
    .gwc-controls-row .gwc-control-group {
        width: 100%;
    }

    /* Resolution arrows wrap */
    .gwc-res-wrap { width: 100%; }
    .gwc-res-wrap .gwc-res-select { flex: 1; }

    /* Chart header — stack winner pill below title */
    .gwc-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .gwc-chart-header-right {
        width: 100%;
        justify-content: flex-start;
    }

    /* Winner panel full width */
    .gwc-winner-panel {
        right: 0;
        left: 0;
        min-width: 0;
    }

    /* Power/temp pills wrap */
    .gwc-power-temp-row {
        gap: 6px;
    }
    .gwc-pt-pill {
        font-size: 11px;
    }

    /* Pricing grid single column */
    .gwc-pricing-grid {
        grid-template-columns: 1fr !important;
    }

    /* Spec table — allow horizontal scroll */
    .gwc-spec-table-wrap {
        overflow-x: auto;
    }

    /* Search results — replace buttons stack */
    .gwc-result-replace-wrap {
        padding-left: 0;
    }

    /* Averages table — horizontal scroll */
    .gwc-avg-table-wrap {
        overflow-x: auto;
    }

    /* Verdict grid single column */
    .gwc-verdict-grid {
        grid-template-columns: 1fr !important;
    }
    .gwc-vd-metrics {
        grid-template-columns: 1fr 1fr !important;
    }
    .gwc-vd-pc {
        grid-template-columns: 1fr !important;
    }

    /* Accordion header text */
    .gwc-accordion-title {
        font-size: 15px;
    }

    /* Search panel */
    .gwc-search-row {
        flex-direction: column;
        align-items: stretch;
    }
    .gwc-search-hint {
        text-align: right;
    }
}

@media (max-width: 480px) {
    /* Even tighter — single column for all grids */
    .gwc-averages-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    .gwc-avg-table th:first-child,
    .gwc-avg-game {
        max-width: 100px;
    }
    .gwc-chart-header-right {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ============================================================
   SEARCH ROW RIGHT — hint + BETA pill
   ============================================================ */
.gwc-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.gwc-search-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ============================================================
   BETA PILL
   ============================================================ */
.gwc-beta-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: 4px;
    cursor: default;
    user-select: none;
    position: relative;
    flex-shrink: 0;
}
.gwc-beta-pill:hover,
.gwc-beta-pill:focus {
    background: var(--accent-hover, #0034c2);
    outline: none;
}

.gwc-beta-tooltip {
    display: none;
    position: absolute;
    z-index: 9999;
    max-width: 300px;
    background: #1a1a2e;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    pointer-events: none;
}

/* ============================================================
   RESET FILTERS BUTTON
   ============================================================ */
.gwc-control-group--reset {
    flex-shrink: 0;
}
.gwc-reset-filters-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    height: 40px;
    width: 100%;
    transition: all 0.15s;
    white-space: nowrap;
}
.gwc-reset-filters-btn:hover {
    background: var(--accent-hover, #0034c2);
    border-color: var(--accent-hover, #0034c2);
}

/* ============================================================
   RESOLUTION NAV BAR
   ============================================================ */
.gwc-res-nav-bar {
    display: flex;
    align-items: stretch;
    background: var(--accent);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    margin-bottom: 0;
    min-height: 42px;
    position: relative;
    z-index: 1;
}

.gwc-res-nav-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    background: rgba(0,0,0,0.15);
    color: rgba(255,255,255,0.9);
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
}
.gwc-res-nav-btn:hover:not(.is-disabled) {
    background: rgba(0,0,0,0.28);
    color: #fff;
}
.gwc-res-nav-btn.is-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.gwc-res-nav-btn.no-data {
    opacity: 0.5;
}
.gwc-res-nav-btn.no-data .gwc-res-nav-label::after {
    content: ' (no data)';
    font-weight: 400;
    font-size: 11px;
    opacity: 0.8;
}

.gwc-res-nav-current {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Connect nav bar to chart card below it — zero out the gap */
.gwc-res-nav-bar + .gwc-chart-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
    margin-top: calc(-24px); /* cancel parent gap */
}

/* ============================================================
   SORT BAR — below winner pill
   ============================================================ */
.gwc-sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6px 0 10px;
    border-bottom: none;
    margin-bottom: 0;
}
.gwc-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    padding: 0;
}
.gwc-sort-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 7px 10px 7px 14px;
    border-right: 1px solid var(--line);
    background: var(--panel-alt);
}
.gwc-sort-select {
    padding: 7px 30px 7px 12px;
    border: none;
    border-radius: 0 20px 20px 0;
    background: var(--panel);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-color: var(--panel);
    min-width: 200px;
    transition: background 0.15s;
}
.gwc-sort-select:focus {
    outline: none;
    background-color: var(--accent-soft);
}

/* ============================================================
   SHARE BUTTON
   ============================================================ */
.gwc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.gwc-share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.gwc-share-btn.is-copied {
    border-color: #057a3f;
    color: #057a3f;
    background: #f0faf5;
}

/* ============================================================
   SPEC TABLE WINNER HIGHLIGHT
   ============================================================ */
/* Spec winner highlight removed — no winner declared in specs */
.gwc-spec-winner { font-weight: normal; color: inherit; }
.gwc-spec-star   { display: none; }

/* ============================================================
   SUGGESTED COMPARISONS
   ============================================================ */
.gwc-suggested-wrap {
    margin: 16px 0 0;
    width: 100%;
    text-align: left;
}
.gwc-suggested-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 10px;
    text-align: left;
}
.gwc-suggested-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.gwc-suggested-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-decoration: none;
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
    cursor: pointer;
}
.gwc-suggested-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(41,98,255,0.13);
    transform: translateY(-1px);
    text-decoration: none;
}
.gwc-suggested-gpus {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.gwc-suggested-gpu {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.gwc-suggested-vs {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: var(--panel-alt);
    border-radius: 4px;
    padding: 1px 5px;
}
.gwc-suggested-cta {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .gwc-suggested-grid {
        grid-template-columns: 1fr;
    }
}

/* Spacing above the icon in the empty state */
.gwc-empty-state .gwc-empty-icon {
    padding-top: 0;
}

/* ============================================================
   SKIP LOG PANEL (admin)
   ============================================================ */
.gwc-skip-log {
    border: 1px solid #f0c36d;
    border-radius: 8px;
    background: #fffbeb;
    overflow: hidden;
}
.gwc-skip-log-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #92400e;
    user-select: none;
}
.gwc-skip-log-header:hover { background: #fef3c7; }
.gwc-skip-log-header svg { flex-shrink: 0; color: #d97706; }
.gwc-skip-log-toggle-hint { color: #b45309; font-weight: 400; font-size: 12px; }
.gwc-skip-log-body { padding: 0 14px 14px; }
.gwc-skip-group { margin-top: 12px; }
.gwc-skip-reason {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.gwc-skip-reason-label { font-weight: 700; font-size: 12px; color: #92400e; }
.gwc-skip-reason-count {
    font-size: 11px;
    background: #fed7aa;
    color: #92400e;
    border-radius: 20px;
    padding: 1px 8px;
    font-weight: 600;
}
.gwc-skip-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gwc-skip-table th {
    text-align: left;
    padding: 4px 8px;
    border-bottom: 1px solid #fcd34d;
    color: #92400e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gwc-skip-table td { padding: 4px 8px; border-bottom: 1px solid #fef3c7; color: #78350f; }
.gwc-skip-table tbody tr:last-child td { border-bottom: none; }
.gwc-skip-line { color: #b45309; font-weight: 600; width: 50px; }
.gwc-summary-card--warn .gwc-summary-num { color: #d97706; }

/* ============================================================
   MOBILE GPU CARDS — collapse to chip strip at 600px
   ============================================================ */
@media (max-width: 600px) {

    /* Wrapper becomes a scroll container with a right-fade scroll hint */
    .gwc-gpu-headers {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 10px !important;
        padding: 4px 40px 16px 4px !important;  /* right pad leaves room for fade */
        grid-template-columns: unset !important;
        scrollbar-width: none;
        /* Fade hint on right edge so it's obvious there's more */
        -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
        mask-image: linear-gradient(to right, black 80%, transparent 100%);
        position: relative;
    }
    .gwc-gpu-headers::-webkit-scrollbar { display: none; }

    /* Each card: fixed size, flex column, space-between so name and button
       are always at the same Y regardless of name length */
    .gwc-gpu-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-shrink: 0 !important;
        width: 120px !important;
        min-height: 190px !important;
        background: var(--panel) !important;
        border: 1.5px solid var(--line) !important;
        border-top-width: 3px !important;
        border-radius: 12px !important;
        padding: 10px 8px 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
        gap: 0 !important;
        overflow: hidden !important;
    }

    /* Hide clutter */
    .gwc-gpu-header .gwc-no-data-badge,
    .gwc-gpu-header .gwc-gpu-rating,
    .gwc-gpu-header .gwc-gpu-review-link,
    .gwc-gpu-header .gwc-color-wrap {
        display: none !important;
    }

    /* Image zone: fixed height, no extra margin, vertically centred */
    .gwc-gpu-header-img {
        width: 100% !important;
        height: 64px !important;
        min-height: 64px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 0 8px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }
    .gwc-gpu-header-img img {
        max-width: 100% !important;
        max-height: 60px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }
    /* Placeholder: same height as image zone, no background colour */
    .gwc-gpu-header-placeholder {
        width: 60px !important;
        height: 44px !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    /* Info section fills remaining space, stacks name then footer at bottom */
    .gwc-gpu-header-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex: 1 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
    }

    /* GPU name: fixed line-clamp so all names take 2 lines regardless */
    .gwc-gpu-title {
        font-size: 11px !important;
        font-weight: 700 !important;
        text-align: center !important;
        line-height: 1.35 !important;
        margin: 0 0 8px !important;
        /* Always reserve 2 lines worth of height */
        min-height: calc(11px * 1.35 * 2) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        width: 100% !important;
    }
    .gwc-gpu-title a { color: var(--text) !important; text-decoration: none !important; }

    /* Footer pinned to bottom of info section */
    .gwc-gpu-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
    }
    .gwc-gpu-footer-right {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Reference badge and button: same fixed height so they align across cards */
    .gwc-reference-badge {
        font-size: 9px !important;
        padding: 3px 8px !important;
        line-height: 16px !important;
        height: 22px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    .gwc-set-reference-btn {
        font-size: 9px !important;
        padding: 3px 7px !important;
        height: 22px !important;
        line-height: 16px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* Hide pricing/spec accordions on mobile */
    #gwc-pricing-accordion,
    #gwc-specs-accordion {
        display: none;
    }
}

/* ============================================================
   ACCORDION ANIMATION SUPPORT
   — body must not clip content at rest, only during animation
   ============================================================ */
.gwc-accordion-body {
    /* JS animation uses max-height; ensure it's unrestricted at rest */
    max-height: none;
    overflow: visible;
}
.gwc-accordion[style*="overflow: hidden"] .gwc-accordion-body {
    overflow: hidden;
}

/* ============================================================
   CHECK PRICES LINK
   ============================================================ */
.gwc-check-prices-row {
    display: flex;
    justify-content: center;
    padding-top: 14px;
}
.gwc-check-prices-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    padding-bottom: 1px;
    transition: opacity 0.15s;
    cursor: pointer;
}
.gwc-check-prices-link:hover { opacity: 0.7; }

/* ============================================================
   INNER ACCORDION (Performance Across Resolutions)
   — sits inside the benchmarks accordion, no card styling
   ============================================================ */
.gwc-inner-accordion {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    margin-top: 16px;
    overflow: hidden;
}
.gwc-inner-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    gap: 12px;
}
.gwc-inner-accordion-header::-webkit-details-marker { display: none; }
.gwc-inner-accordion-header:hover { background: var(--panel-alt); }

.gwc-inner-accordion-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}
.gwc-inner-accordion-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.gwc-inner-accordion-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
details.gwc-inner-accordion[open] .gwc-inner-accordion-arrow {
    transform: rotate(180deg);
}
.gwc-inner-accordion-body {
    padding: 0 20px 20px;
    border-top: 1px solid var(--line);
}
