﻿:root{
  --input-bg: #ffffff;
  --input-text: #000000;
  --modal-bg: #ffffff;
  --modal-text: #000000;
  --glass: rgba(255,255,255,0.03);
  --radius:12px;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color-scheme: dark;
  color: #e7f2fb;
}

body.dark {
  --input-bg: #1f1f1f;
  --input-text: #e0e0e0;
  --modal-bg: #1c1c1c;
  --modal-text: #f5f5f5;
}

.modal-content {
  background-color: var(--modal-bg) !important;
  color: var(--modal-text) !important;
}

.modal-right input {
  background-color: var(--input-bg) !important;
  color: var(--input-text) !important;
}

.modal-right a,
.modal-right p,
.modal-right h3,
.modal-right button {
  color: var(--modal-text) !important;
}

.app{display:flex;min-height:100vh}
.sidebar{width:500px;padding:20px;border-right:1px solid rgba(255,255,255,0.03);background:linear-gradient(180deg,rgba(255,255,255,0.01),transparent)}
.sidebar-header{display:flex;flex-direction:column;gap:10px}
.sidebar-header h2{margin:0;font-size:1.1rem}
#search{padding:10px;border-radius:10px;border:1px solid rgba(255,255,255,0.04);background:var(--glass);color:inherit}
.brand-filter{display:flex;flex-direction:column;gap:8px}
.brand-label{font-size:0.75rem;color:var(--muted);font-weight:600}
.brand-select{padding:10px;border-radius:10px;border:1px solid rgba(255,255,255,0.04);background:var(--glass);color:inherit;width:100%}
.brand-select--hidden{display:none}
body.dark .brand-select{background:#1a1f2b;color:#eaf0ff;border-color:#2a2f3b}
body.dark .brand-select option{background:#12151d;color:#eaf0ff}
.brand-symbol-bar{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(54px,1fr));
  gap:8px;
  max-height:176px;
  overflow:auto;
  padding:2px;
}
.brand-symbol-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.06);
  background:linear-gradient(180deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02));
  color:inherit;
  cursor:pointer;
  padding:6px;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
  box-shadow:0 10px 24px rgba(0,0,0,0.18);
}
.brand-symbol-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(0,195,255,0.38);
}
.brand-symbol-btn.active{
  border-color:rgba(0,195,255,0.38);
  box-shadow:0 12px 28px rgba(0,195,255,0.12);
  background:linear-gradient(180deg,rgba(255,255,255,0.06),rgba(255,255,255,0.03));
}
.brand-symbol-mark{
  position:relative;
  width:36px;
  height:36px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.06);
  color:#fff;
  font-size:0.78rem;
  font-weight:800;
  letter-spacing:0.04em;
  text-transform:uppercase;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 18px rgba(0,0,0,0.14);
  overflow:hidden;
}
.brand-symbol-fallback{
  transition:opacity .16s ease;
}
.brand-symbol-logo{
  position:absolute;
  inset:0;
  width:72%;
  height:72%;
  margin:auto;
  object-fit:contain;
  opacity:0;
  transition:opacity .16s ease;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,0.22));
}
.brand-symbol-mark--has-logo .brand-symbol-fallback{
  opacity:0;
}
.brand-symbol-mark--has-logo .brand-symbol-logo{
  opacity:1;
}
.brand-symbol-btn.active .brand-symbol-mark{
  transform:scale(1.04);
}
body.dark .brand-symbol-btn{
  border-color:rgba(255,255,255,0.08);
  background:linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.02));
}
body:not(.dark) .brand-symbol-btn{
  border-color:rgba(0,0,0,0.08);
  background:linear-gradient(180deg,rgba(255,255,255,0.96),rgba(243,246,255,0.92));
  box-shadow:0 10px 24px rgba(15,23,42,0.08);
}
body:not(.dark) .brand-symbol-btn.active{
  background:linear-gradient(180deg,rgba(248,250,255,1),rgba(255,255,255,0.98));
}
body:not(.dark) .brand-symbol-mark{
  border-color:rgba(15,23,42,0.08);
  background:rgba(241,245,249,0.9);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.5), 0 8px 18px rgba(15,23,42,0.08);
}
.catalog-toggle{display:flex;gap:10px;margin-top:4px}
.catalog-toggle button{flex:1;padding:9px 12px;border-radius:10px;border:1px solid rgba(255,255,255,0.05);background:var(--glass);color:inherit;font-weight:700;cursor:pointer;transition:all .18s ease}
.catalog-toggle button.active{background:linear-gradient(135deg,#007bff,#00c3ff);color:#fff;border-color:transparent;box-shadow:0 10px 24px rgba(0,123,255,0.35)}
body.dark .catalog-toggle button{border-color:rgba(255,255,255,0.08)}

.list{margin-top:12px;display:flex;flex-direction:column;gap:12px;overflow:auto;padding-bottom:20px;max-height:78vh}
.brand-divider{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:0.1em;
  font-size:12px;
  padding:4px 4px 0;
}
.brand-divider::before,
.brand-divider::after{
  content:'';
  flex:1;
  height:1px;
  background:linear-gradient(to right, transparent, rgba(0,0,0,0.18));
}
body.dark .brand-divider::before,
body.dark .brand-divider::after{
  background:linear-gradient(to right, transparent, rgba(255,255,255,0.22));
}
.brand-divider span{
  white-space:nowrap;
  padding:0 6px;
  font-weight:700;
}
.item{display:flex;gap:12px;align-items:center;padding:10px;border-radius:10px;background:linear-gradient(180deg,rgba(255,255,255,0.01),transparent);border:1px solid rgba(255,255,255,0.02)}
.thumb{width:88px;height:56px;border-radius:8px;background-size:cover;background-position:center;flex-shrink:0;box-shadow:0 6px 18px rgba(0,0,0,0.5);object-fit:cover;display:block;background:#0b0f18}
.info{flex:1}
.info h3{margin:0;font-size:0.98rem}
.info p{margin:6px 0 0;color:var(--muted);font-size:0.85rem}
.add-btn{padding:8px 10px;border-radius:8px;border:none;background:var(--accent);color:#021;cursor:pointer;font-weight:600}

.main{flex:1;padding:20px;display:flex;flex-direction:column}
.main-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.hero-copy{display:flex;flex-direction:column;gap:6px;max-width:720px}
.main-title{margin:0;font-size:1.6rem;line-height:1.25}
.hero-description{margin:0;color:var(--muted);font-size:0.98rem;line-height:1.5}
.actions{display:flex;gap:8px}
.main-header .actions{margin-top:47px}
.btn{padding:8px 12px;border-radius:8px;border:none;cursor:pointer;font-weight:600}
.btn.muted{background:transparent;color:var(--muted);border:1px solid rgba(255,255,255,0.03)}
.btn.primary{background:var(--accent);color:#021}

.compare-area{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}
.fuel-calculator{margin-top:18px}
.fuel-card{
  background:var(--card);
  border-radius:12px;
  padding:12px;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 10px 22px rgba(0,0,0,0.18);
  display:flex;
  flex-direction:column;
  gap:10px;
  position:relative;
  overflow:hidden;
}
.fuel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.fuel-header h2{margin:0;font-size:1rem}
.premium-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:999px;
  background:linear-gradient(135deg,#ffcc66,#ff9f1a);
  color:#1a1403;
  font-size:0.72rem;
  font-weight:700;
  letter-spacing:0.2px;
}
.fuel-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:8px;
}
.fuel-field{display:flex;flex-direction:column;gap:5px;font-size:0.8rem;color:var(--muted)}
.fuel-field input{
  padding:8px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.06);
  background:var(--glass);
  color:inherit;
}
.fuel-field select{
  padding:8px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.06);
  background:var(--glass);
  color:inherit;
}
.fuel-result{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(135deg, rgba(0,119,255,0.16), rgba(0,0,0,0));
}
.fuel-result strong{font-size:1rem;color:var(--accent)}
.fuel-card.is-locked .fuel-grid,
.fuel-card.is-locked .fuel-result{
  filter: blur(1.5px);
  opacity:0.45;
  pointer-events:none;
  user-select:none;
}
.fuel-premium-lock{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px;
  background:rgba(5,10,20,0.74);
  z-index:3;
  text-align:center;
}
.fuel-premium-lock p{
  margin:0;
  color:#f7f9ff;
  font-size:0.96rem;
  font-weight:600;
}
.fuel-premium-lock.hidden{
  display:none;
}
.favorites-area{margin-top:18px;display:flex;flex-direction:column;gap:10px}
.favorites-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.favorites-header h2{margin:0;font-size:1.1rem}
.favorites-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.favorite-card{
  background:var(--card);
  border:1px solid rgba(255,255,255,0.03);
  border-radius:12px;
  padding:10px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
}
.favorite-card .thumb{width:84px;height:56px;border-radius:8px}
.favorite-card .info h3{margin:0;font-size:0.95rem}
.favorite-card .info p{margin:4px 0 0;color:var(--muted);font-size:0.82rem}
.item-actions,.fav-actions,.card-actions{display:flex;gap:8px;align-items:center}
.fav-btn{
  background:transparent;
  border:1px solid rgba(255,255,255,0.08);
  color:var(--muted);
  border-radius:8px;
  padding:8px 10px;
  cursor:pointer;
  min-width:40px;
  font-size:16px;
}
.fav-btn.active{
  color:#ffb400;
  border-color:rgba(255,180,0,0.45);
  box-shadow:0 6px 16px rgba(255,180,0,0.18);
}
.compare-card{
  width:320px;
  background:var(--card);
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.03);
  display:flex;
  flex-direction:column;
  gap:12px;
  box-shadow:0 10px 24px rgba(0,0,0,0.14);
  --card-accent: var(--accent);
  --card-accent-strong: var(--accent);
  --card-accent-soft: rgba(0,122,255,0.16);
}
.compare-card .thumb-frame{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;
  box-shadow:none;
  background:transparent;
  border:none;
}
.compare-card img.thumb-img{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  border-radius:12px;
  background:transparent;
}
.compare-card img.thumb-img.fit-cover{
  object-fit:cover;
}
.compare-card .thumb-frame::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,0.65) 100%);
}
.compare-card .thumb-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(7,12,20,0.72);
  border:1px solid rgba(255,255,255,0.18);
  color:#fff;
  font-size:0.78rem;
  font-weight:800;
  letter-spacing:0.03em;
  text-shadow:0 2px 8px rgba(0,0,0,0.45);
  backdrop-filter:blur(8px);
}
.compare-card .card-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:3;
  padding:16px 18px 14px;
  color:#fff;
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.compare-card .card-overlay h4{
  margin:0;
  font-size:1.1rem;
  font-weight:800;
  text-shadow:0 6px 18px rgba(0,0,0,0.6);
}
.compare-card .card-overlay .spec-line{
  font-size:0.95rem;
  opacity:0.95;
  text-shadow:0 6px 18px rgba(0,0,0,0.6);
}
.compare-card .card-overlay .price-pill{
  align-self:center;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(0,0,0,0.45);
  border:1px solid rgba(255,255,255,0.22);
  font-weight:700;
}
.title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.title-row h4{margin:0;flex:1}
.type-pill{padding:4px 10px;border-radius:999px;border:1px solid rgba(255,255,255,0.08);background:var(--glass);color:var(--accent);font-size:12px;font-weight:700;white-space:nowrap}
.meta-line{margin:6px 0 0;color:var(--muted);font-size:0.9rem}
.compare-card .thumb-row{
  display:flex;
  gap:10px;
}
.compare-card .thumb-row.dual .thumb{
  flex-basis:50%;
}
.compare-card .thumb-row.single .thumb{
  flex-basis:100%;
}
.compare-card .meta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-align:center;
}
.compare-card .meta h4{
  margin:0;
  font-size:1.15rem;
  font-weight:800;
  color:var(--card-accent);
}
.compare-card .meta .spec-line{
  color:var(--card-accent);
  font-size:0.95rem;
}
.compare-card .meta .origin-line{
  color:var(--card-accent);
  font-size:0.8rem;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--card-accent-strong) 65%, rgba(255,255,255,0.16));
  background:color-mix(in srgb, var(--card-accent-soft) 55%, rgba(10,12,18,0.78));
}
.compare-card .meta .price-wrapper{
  position: relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 22px;
  border-radius:30px;
  font-weight:600;
  color:#fff;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  overflow:hidden;
  border:1px solid color-mix(in srgb, var(--card-accent-strong) 65%, rgba(255,255,255,0.2));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 10px 24px var(--card-accent-soft),
    0 0 22px color-mix(in srgb, var(--card-accent-strong) 55%, transparent);
}
.compare-card .meta .price-wrapper::before{
  content:"";
  position:absolute;
  bottom:-15px;
  left:50%;
  transform:translateX(-50%);
  width:120%;
  height:40px;
  background: radial-gradient(circle, var(--card-accent-soft) 0%, rgba(0,0,0,0) 70%);
  filter: blur(12px);
  z-index:0;
  pointer-events:none;
}
.compare-card .meta .price-wrapper span{
  position:relative;
  z-index:1;
}
.compare-card .meta .price-wrapper .price-value{
  color:var(--card-accent-strong);
  text-shadow:0 6px 18px rgba(0,0,0,0.6);
}
.compare-card .meta .price-wrapper .resale-btn{
  position:relative;
  z-index:1;
  border:1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color:#fff;
  font-size:0.7rem;
  font-weight:700;
  padding:4px 8px;
  border-radius:999px;
  cursor:pointer;
  letter-spacing:0.3px;
}
.compare-card .meta .price-wrapper .resale-btn.locked{
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.compare-card .meta .price-wrapper .resale-btn:hover{
  background: rgba(255,255,255,0.22);
}
.compare-card .meta .price-wrapper .resale-btn:active{
  transform: translateY(1px);
}
.compare-card .meta .resale-panel{
  width:100%;
  background: rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:12px;
  padding:10px 12px;
  color:#fff;
  font-size:0.75rem;
}
.compare-card .meta .resale-panel.hidden{
  display:none;
}
.compare-card .meta .resale-title{
  font-weight:700;
  margin-bottom:4px;
}
.compare-card .meta .resale-meta{
  color:rgba(255,255,255,0.8);
  margin-bottom:6px;
}
.compare-card .meta .resale-values{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
}
.compare-card .meta .resale-values span{
  background: rgba(255,255,255,0.12);
  padding:4px 8px;
  border-radius:8px;
  font-weight:600;
}
.compare-card .meta .stat-line{
  color:var(--card-accent);
  font-size:0.95rem;
}
body:not(.dark) .compare-card .meta h4,
body:not(.dark) .compare-card .meta .spec-line,
body:not(.dark) .compare-card .meta .origin-line,
body:not(.dark) .compare-card .meta .stat-line,
body:not(.dark) .compare-card .meta-line{
  color:#1b2430;
}
.card-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}
.compare-card .meta.compact{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.compare-card .meta.compact .meta-line{
  margin:0;
}
.remove-btn{
  background:transparent;
  border:1px solid rgba(255,255,255,0.03);
  color:var(--muted);
  padding:6px;
  border-radius:8px;
  cursor:pointer;
}
.detail-btn{
  text-decoration:none;
  padding:6px 10px;
  border-radius:8px;
  font-weight:600;
  color:#cfeaff;
  border:1px solid rgba(0,195,255,0.35);
  background:linear-gradient(135deg, rgba(0,157,255,0.18), rgba(0,195,255,0.12));
  box-shadow:0 6px 16px rgba(0,120,255,0.18);
}
.detail-btn:hover{
  border-color:rgba(0,195,255,0.6);
  box-shadow:0 10px 22px rgba(0,120,255,0.28);
}

.empty{color:var(--muted);background:rgba(255,255,255,0.01);padding:22px;border-radius:10px;border:1px dashed rgba(255,255,255,0.03)}
.empty-block{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}
.empty-note{
  color:var(--muted);
  background:rgba(255,255,255,0.01);
  border:1px dashed rgba(255,255,255,0.03);
  border-radius:10px;
  padding:14px 18px;
  margin-top:4px;
  font-size:0.9rem;
  text-align:left;
}

.table-area{margin-top:22px}
.compare-decision{
  margin-top:22px;
  padding:20px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.06);
  background:var(--card);
  box-shadow:0 14px 30px rgba(0,0,0,0.16);
}
.compare-decision-head h2{
  margin:6px 0 0;
}
.compare-decision-head p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.55;
}
.section-kicker{
  font-size:0.76rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
}
.compare-decision-verdicts{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.compare-decision-verdict{
  padding:16px;
  border-radius:14px;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 10px 22px rgba(0,0,0,0.16);
}
.compare-decision-verdict .section-kicker{
  color:rgba(226,232,240,0.78);
}
.compare-decision-verdict strong{
  display:block;
  margin-top:6px;
  color:#f8fbff;
  font-size:1.02rem;
}
.compare-decision-verdict p{
  margin:8px 0 0;
  color:rgba(232,241,255,0.78);
  line-height:1.55;
}
.compare-decision-tradeoffs{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:16px;
}
.decision-tradeoff-card{
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.06);
  background:rgba(255,255,255,0.02);
  box-shadow:0 12px 24px rgba(0,0,0,0.12);
}
.decision-tradeoff-card h3{
  margin:0 0 14px;
}
.decision-tradeoff-group + .decision-tradeoff-group{
  margin-top:14px;
}
.decision-tradeoff-group h4{
  margin:0 0 10px;
  font-size:0.8rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--muted);
}
.decision-tradeoff-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}
.decision-tradeoff-list li{
  display:flex;
  align-items:center;
  gap:10px;
  line-height:1.5;
}
.decision-tradeoff-list li::before{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:999px;
  flex:0 0 22px;
  font-size:0.9rem;
  font-weight:700;
}
.decision-tradeoff-list.pros li::before{
  content:"+";
  background:rgba(78,214,122,0.16);
  color:#7ee08a;
}
.decision-tradeoff-list.cons li::before{
  content:"-";
  background:rgba(255,92,92,0.14);
  color:#ff8b8b;
}
body:not(.dark) .compare-decision{
  border-color:rgba(15,23,42,0.08);
  background:linear-gradient(180deg,#ffffff,#f8fafc);
}
body:not(.dark) .compare-decision-head h2,
body:not(.dark) .decision-tradeoff-card h3{
  color:#0f172a;
}
body:not(.dark) .compare-decision-head p,
body:not(.dark) .section-kicker,
body:not(.dark) .decision-tradeoff-group h4{
  color:#64748b;
}
body:not(.dark) .decision-tradeoff-card{
  border-color:rgba(15,23,42,0.08);
  background:#ffffff;
}
body:not(.dark) .decision-tradeoff-list li{
  color:#334155;
}

.table-wrap{overflow:auto;border-radius:10px;background:rgba(255,255,255,0.01);padding:6px}
table{width:100%;border-collapse:collapse;min-width:720px}
th,td{padding:12px 14px;text-align:left;border-bottom:1px solid rgba(255,255,255,0.03)}
th{color:var(--muted);font-weight:600}
.race-links{
  margin-top:18px;
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.06);
  background:var(--card);
  box-shadow:0 14px 30px rgba(0,0,0,0.16);
}
.race-links-header h2{
  margin:0;
}
.race-links-header p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.5;
}
.race-links-list{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:10px;
}
.race-link-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:8px;
  min-height:94px;
  padding:14px 16px;
  border-radius:14px;
  text-decoration:none;
  color:var(--text);
  border:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(135deg, rgba(255,0,87,0.16), rgba(255,90,55,0.08));
  box-shadow:0 10px 24px rgba(0,0,0,0.14);
  transition:transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.race-link-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,100,100,0.3);
  box-shadow:0 16px 28px rgba(0,0,0,0.2);
}
.race-link-label{
  font-weight:700;
  line-height:1.35;
}
.race-link-meta{
  color:var(--muted);
  font-size:0.88rem;
}
.hidden{display:none}

/* highlight for maxima */
.highlight {
  color: var(--accent);
  font-weight: 700;
  background: rgba(24, 47, 178, 0.06);
  border-radius: 6px;
  padding: 2px 6px;
}

/* responsive */
@media (max-width:920px){
  .sidebar{width:260px}
  .compare-card{width:100%}
}
@media (max-width:700px){
  .app{flex-direction:column}
  .sidebar{width:100%;order:2}
  .main{order:1}
  .main-header .actions{margin-top:40px}
}

/* Mobile navigation / sidebar toggle */
.header-hamburger{
  display:none;
  background:transparent;
  border:1px solid rgba(255,255,255,0.03);
  color:var(--muted);
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
}

/* Improve touch targets */
.add-btn, .remove-btn, .btn {
  min-height:40px;
  padding:10px 14px;
}

/* Tablet adjustments */
@media (max-width:920px){
  .sidebar{width:240px}
  .compare-card{width:48%}
  .header-hamburger{display:inline-block}
}

/* Small screens / mobile */
@media (max-width:700px){
  .app{flex-direction:column}
  .sidebar{
    position:fixed;
    inset:0 0 0 auto;
    width:78%;
    max-width:380px;
    transform:translateX(106%);
    transition:transform .28s ease;
    z-index:1200;
    box-shadow: -8px 0 30px rgba(2,6,23,0.6);
    background:linear-gradient(180deg,rgba(255,255,255,0.01),transparent);
  }
  .sidebar.open{ transform:translateX(0); }
  /* overlay to close sidebar */
  .overlay{
    position:fixed; inset:0; background:rgba(0,0,0,0.45); z-index:1100; display:none;
  }
  .overlay.show{ display:block; }
  .main{padding:14px}
  .compare-card{width:100%}
  .thumb{width:100%; height:140px; border-radius:8px}
  .compare-card .thumb{
    height:auto;
    aspect-ratio:16/9;
  }
  .compare-card .thumb-row{
    gap:8px;
  }
  #search{width:100%}
}
/*                         Dark Mode Light Mode                         */
:root {
  --bg: #f9f9f9;
  --text: #1a1a1a;
  --card: #ffffff;
  --accent: #0077ff;
  --muted: #666;
}

body.dark {
  --bg: #121212;
  --text: #e0e0e0;
  --card: #1e1e1e;
  --accent: #66aaff;
  --muted: #aaa;
}

/*                         Uygulama                         */
body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

.item, .compare-card {
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

h1, h2, h3, p, button {
  color: var(--text);
}

.add-btn, .compare-btn {
  background: linear-gradient(135deg, #007bff, #00c3ff);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-btn:hover, .compare-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #009dff, #00aaff);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
}


.footer p {
  color: var(--muted);
}

/* Site footer */
.site-footer {
  margin-top: 40px;
  padding: 0 20px 18px;
  background: var(--card, #111827);
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--text);
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer .footer-logo {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-footer .footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer .footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer .footer-links a:hover {
  color: var(--accent);
}

.site-footer .footer-social {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer .footer-social-title {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer .footer-social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-social .social-link,
.site-footer .footer-social-link {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #eaf0ff;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.contact-social .social-link svg,
.site-footer .footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-social .social-link:hover,
.site-footer .footer-social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

.contact-social .social-link:focus-visible,
.site-footer .footer-social-link:focus-visible {
  outline: 2px solid #6cc3ff;
  outline-offset: 3px;
}

.contact-social .social-link.instagram:hover,
.site-footer .footer-social-link.instagram:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-color: transparent;
}

.contact-social .social-link.tiktok:hover,
.site-footer .footer-social-link.tiktok:hover {
  background: #121212;
  border-color: #3b3b3b;
}

.contact-social .social-link.facebook:hover,
.site-footer .footer-social-link.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

body.dark .site-footer,
.about-page .site-footer,
.privacy-page .site-footer {
  border-top-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
}

@media (max-width: 700px) {
  .site-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-social {
    align-items: flex-start;
  }

  .site-footer .footer-social-links {
    justify-content: flex-start;
  }
}

/* SEO links */
.seo-content {
  color: var(--text);
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.seo-links--dense {
  max-height: 240px;
  overflow: auto;
  padding-right: 6px;
}

.seo-links--comparisons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.seo-links a {
  text-decoration: none;
  color: var(--accent);
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.seo-links--comparisons a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-radius: 16px;
  line-height: 1.35;
  white-space: normal;
}

.seo-links--dense a {
  padding: 6px 10px;
  font-size: 0.82rem;
}

.seo-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(0,119,255,0.35);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

body.dark .seo-links a {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #b9d8ff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

@media (max-width: 1400px) {
  .seo-links--comparisons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .seo-links--comparisons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .seo-links--comparisons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .seo-links--comparisons {
    grid-template-columns: 1fr;
  }
}

/*                         Comment                         */     
.comment-section {
    max-width: 1900px;
    margin: 5px auto;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 12px;
}
.comment {
    background: #fff;
    padding: 12px;
    margin-top: 16px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eceef3;
}
.comment-section h3 {
    margin: 0;
    font-weight: 600;
}

.comment-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.comments-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #d9dce3;
    border-radius: 999px;
    background: #fff;
    color: #1f2430;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.comments-toggle::after {
    content: "\25BE";
    font-size: 12px;
    transition: transform 0.2s ease;
}

.comment-section.is-collapsed .comments-toggle::after {
    transform: rotate(-90deg);
}

.comments-toggle:hover {
    background: #eef4ff;
    border-color: #b7caef;
}

.comments-content[hidden] {
    display: none !important;
}

#commentForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#commentForm input,
#commentForm textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d9dce3;
    background: #fff;
}

#commentForm button {
    align-self: flex-end;
    padding: 10px 18px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.comment-section {
    background: #f8f9fb;
}

.comment {
    background: #fff;
    padding: 12px;
    margin-top: 16px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eceef3;
}

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

.comment-body {
    font-size: 16px;
    margin-bottom: 8px;
}

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

.icon-btn {
    background: transparent;
    border: none;
  color: #0077cc;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.icon-btn:hover {
  background: rgba(0,0,0,0.05);
}

.reply-list {
  margin-top: 8px;
  padding-left: 16px;
  border-left: 2px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reply {
  background: #fafafa;
  padding: 8px;
  border-radius: 8px;
}

.comment-rating {
    color: #f5a623;
    font-size: 18px;
    margin-bottom: 6px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8a8f9b;
    font-size: 13px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #4ea1ff);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.comment-name {
    color: #1f2430;
    font-weight: 600;
}

.icon-btn[data-action="like"]::before {
    content: "\1F44D";
    margin-right: 6px;
}

/* Dark mode surface tuning */
body.dark .comment-section {
    background: #0f1116;
}

body.dark #commentForm input,
body.dark #commentForm textarea {
    background: #161922;
    border: 1px solid #2a2f3b;
    color: var(--text);
}

body.dark #commentForm button {
    background: #4ea1ff;
    color: #0a0c12;
}

body.dark .comment {
    background: #161922;
    border: 1px solid #222836;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.dark .comments-toggle {
    background: #161922;
    border-color: #2a2f3b;
    color: #eef2ff;
}

body.dark .comments-toggle:hover {
    background: #1c2230;
    border-color: #4ea1ff;
}

body.dark .comment-meta {
    color: #b3b7c2;
}

body.dark .comment-name {
    color: #eef2ff;
}

body.dark .comment-actions .icon-btn {
    color: #7ab7ff;
}

body.dark .comment-section p,
body.dark .comment-body,
body.dark .comment-header,
body.dark .reply .comment-body,
body.dark .reply .comment-header {
    color: #eaf0ff;
}

body.dark .reply-list {
    border-left-color: #2a2f3b;
}

body.dark .reply {
    background: #141823;
    border: 1px solid #222836;
    color: #eaf0ff;
}

body.dark .comment-section input,
body.dark .comment-section textarea,
body.dark .comment-section select {
    background: #161922;
    border: 1px solid #2a2f3b;
    color: #eaf0ff;
}

body.dark .comment-section input::placeholder,
body.dark .comment-section textarea::placeholder {
    color: #b3b7c2;
}

/* Privacy policy page */
.privacy-page {
  background: #0b0f18;
  color: #eaf0ff;
  --text: #eaf0ff;
  --card: rgba(255,255,255,0.03);
  --muted: #aeb8d1;
  margin: 0;
}

.privacy-page h1,
.privacy-page h2,
.privacy-page h3,
.privacy-page p,
.privacy-page li {
  color: #eaf0ff;
}

.privacy-wrap {
  width: min(1400px, 94vw);
  margin: 28px auto 50px;
}

.privacy-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.privacy-header p {
  margin: 8px 0 0;
  color: #aeb8d1;
  font-weight: 600;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.privacy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 16px;
  align-items: start;
  aspect-ratio: 1 / 1;
  min-height: 420px;
}

.privacy-content {
  min-width: 0;
  overflow: auto;
  padding-right: 4px;
}

.privacy-content h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.privacy-content p {
  margin: 8px 0;
  line-height: 1.55;
}

.privacy-content ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.privacy-content li {
  margin: 4px 0;
}

.privacy-image-slot {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 0 12px 12px 0;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  color: #9bb0df;
  font-weight: 700;
  align-self: stretch;
  overflow: hidden;
  margin: -16px -16px -16px 0;
}

.privacy-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 12px 12px 0;
}

@media (max-width: 1200px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .privacy-card {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    min-height: 0;
  }

  .privacy-image-slot {
    width: 100%;
    min-height: 260px;
    height: auto;
    margin: 0;
    border-radius: 12px;
  }

  .privacy-image-slot img {
    border-radius: 12px;
  }
}

/* About page */
.about-page {
  background: #0b0f18;
  color: #eaf0ff;
  margin: 0;
  --text: #eaf0ff;
  --card: rgba(255,255,255,0.03);
  --muted: #aeb8d1;
}

.about-wrap {
  width: min(980px, 94vw);
  margin: 30px auto 60px;
}

.about-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 24px;
}

.about-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
}

.about-card h2 {
  margin: 22px 0 8px;
  font-size: 26px;
}

.about-card p {
  margin: 10px 0;
  line-height: 1.6;
}

.about-home-link a {
  color: #7ec2ff;
  text-decoration: none;
  font-weight: 600;
}

.about-home-link a:hover {
  text-decoration: underline;
}

.about-card ul {
  margin: 10px 0 0 22px;
}

.about-card li {
  margin: 6px 0;
}

.contact-social {
  display: flex;
  gap: 10px;
  margin: 12px 0 6px;
  flex-wrap: wrap;
}

.news-page .about-wrap {
  width: min(1120px, 94vw);
}

.news-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.news-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(126,255,194,0.12);
  border: 1px solid rgba(126,255,194,0.24);
  color: #a7ffd8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-verified {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.news-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  padding: 20px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.news-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #dfe8ff;
  font-size: 12px;
  font-weight: 700;
}

.news-date {
  color: var(--muted);
  font-size: 13px;
}

.news-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.news-card p {
  margin: 0 0 14px;
}

.news-facts {
  margin: 0 0 16px 18px;
  padding: 0;
  color: #d7def3;
}

.news-facts li {
  margin: 7px 0;
  line-height: 1.5;
}

.news-source-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.news-source-label {
  color: var(--muted);
  font-size: 14px;
}

.news-source-link {
  color: #7ec2ff;
  text-decoration: none;
  font-weight: 600;
}

.news-source-link:hover {
  text-decoration: underline;
}

.news-note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.content-page .about-wrap {
  width: min(1120px, 94vw);
}

.content-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.content-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(126, 194, 255, 0.12);
  border: 1px solid rgba(126, 194, 255, 0.24);
  color: #9fd4ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.content-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  padding: 20px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.16);
}

.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.content-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #dfe8ff;
  font-size: 12px;
  font-weight: 700;
}

.content-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.content-card p {
  margin: 0 0 14px;
}

.content-points {
  margin: 0 0 2px 18px;
  padding: 0;
  color: #d7def3;
}

.content-points li {
  margin: 7px 0;
  line-height: 1.5;
}

.content-note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 700px) {
  .news-card {
    padding: 18px;
  }

  .news-card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-card {
    padding: 18px;
  }

  .content-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Image lightbox */
.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  padding: 20px;
}
.img-lightbox.show {
  display: flex;
}
.img-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.img-lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.scroll-comments {
  max-height: 400px; /* Ä°steÄŸe gÃ¶re 300â€“600px arasÄ± ayarlanabilir */
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

.scroll-comments::-webkit-scrollbar {
  width: 6px;
}
.scroll-comments::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 4px;
}
.scroll-comments::-webkit-scrollbar-track {
  background-color: #eee;
}

/*                         Filtre                         */
#filterBar {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}

#filterBar button {
  padding: 8px 16px;
  background: linear-gradient(135deg, #007bff, #00c3ff);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#filterBar button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #009dff, #00aaff);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
}

#filterBar button.active {
  box-shadow: 0 0 0 2px rgba(0,123,255,0.35);
  transform: translateY(-1px);
}

/*                         Login / Profile                          */
/* Login butonunu Ã¼stte saÄŸ kÃ¶ÅŸeye taÅŸÄ±ma ve kÃ¼Ã§Ã¼ltme */
input {
  background-color: var(--input-bg);
  color: var(--input-text);
  border: 1px solid #ccc;
}

.modal-content {
  background-color: var(--modal-bg);
  color: var(--text-color);
}

#loginBtn,
.auth-btn {
  background: linear-gradient(135deg, #007bff, #00c3ff);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 15px 23px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto; /* tÃ¼m satÄ±rÄ± kaplamasÄ±n */
}

#loginBtn:hover,
.auth-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #009dff, #00aaff);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(20,22,27,0.96), rgba(20,22,27,0.9));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1300;
}

.brand-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.3px;
  color: #fff;
}

.brand-copy {
  color: #c8d2ea;
  font-weight: 600;
  font-size: 14px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.favorites-nav-wrap {
  position: relative;
}

.favorites-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  max-width: min(90vw, 360px);
  margin-top: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--card);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  display: none;
  z-index: 1450;
}

.favorites-popover.open {
  display: flex;
}

.favorites-popover .favorites-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.favorites-popover .favorite-card {
  padding: 8px;
  gap: 8px;
}

.favorites-popover .favorite-card .thumb {
  width: 64px;
  height: 42px;
}

.favorites-popover .favorite-card .info h3 {
  font-size: 0.85rem;
}

.favorites-popover .favorite-card .info p {
  font-size: 0.74rem;
}

.favorites-popover .fav-actions .add-btn,
.favorites-popover .fav-actions .fav-btn {
  padding: 6px 8px;
  min-width: 34px;
  font-size: 0.82rem;
}

.favorites-popover #clearFavoritesBtn {
  padding: 6px 8px;
  font-size: 0.76rem;
}

.top-link {
  color: #eaf0ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.96;
}

.top-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.auth-area {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-switch {
  color: #eaf0ff;
  font-size: 14px;
}

.notifications-wrap {
  position: relative;
}

.top-icon-btn {
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--card);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-icon-btn.has-unread {
  border-color: rgba(229,57,53,0.55);
  box-shadow: 0 0 0 1px rgba(229,57,53,0.14), 0 12px 28px rgba(229,57,53,0.16);
}

.top-icon-glyph {
  font-size: 18px;
}

.notifications-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}

.notifications-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 320px;
  max-width: calc(100vw - 20px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #12151d;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  padding: 10px;
  z-index: 1400;
}

.notifications-menu.open {
  display: block;
}

.notifications-title {
  font-size: 13px;
  font-weight: 700;
  color: #cfd5e3;
  padding: 2px 4px 8px;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.notice-empty {
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed rgba(229,57,53,0.28);
  background: rgba(229,57,53,0.06);
  color: #ffc6c4;
  font-size: 13px;
}

.notice-item {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(229,57,53,0.22);
  background: linear-gradient(180deg, rgba(229,57,53,0.16), rgba(229,57,53,0.07));
}

.notice-item.is-unread {
  border-color: rgba(255,110,104,0.62);
  box-shadow: inset 3px 0 0 #e53935;
}

.notice-kicker {
  color: #ff8a80;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.notice-item .notice-text {
  color: #fff2f2;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.notice-item .notice-date {
  color: #ffc6c4;
  font-size: 11px;
  margin-top: 5px;
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand-name {
    font-size: 26px;
  }

  .brand-copy {
    font-size: 12px;
  }

  .auth-area {
    width: 100%;
    justify-content: flex-end;
  }

  .top-links {
    gap: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .favorites-popover {
    left: 0;
    transform: none;
  }

  .notifications-menu {
    right: -6px;
  }
}

.theme-toggle {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

.avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  padding: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-sidebar {
  align-self: flex-start;
  margin-bottom: 30px;
  margin-left: 12px;
}

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

body.dark .lang-toggle {
  border-color: rgba(255,255,255,0.08);
}

.mobile-panel-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

body.dark .mobile-panel-toggle {
  border-color: rgba(255,255,255,0.08);
}

.mobile-panel-toggle .panel-toggle-icon {
  font-size: 14px;
  line-height: 1;
}

.lang-caret {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.lang-toggle.open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  background: var(--card);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  z-index: 1300;
}

body.dark .lang-menu {
  border-color: rgba(255,255,255,0.08);
}

.lang-menu.open {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.lang-option:hover {
  background: rgba(0,0,0,0.05);
}

body.dark .lang-option:hover {
  background: rgba(255,255,255,0.08);
}

.lang-option .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

.lang-option.active {
  background: rgba(0,119,255,0.12);
  font-weight: 700;
}

body.dark .lang-option.active {
  background: rgba(102,170,255,0.14);
}

.profile-menu {
  position: absolute;
  top: 60px;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
}

.profile-menu.open {
  display: flex;
}

.profile-name {
  font-weight: 600;
  font-size: 14px;
  word-break: break-word;
}

.profile-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.profile-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.profile-plan-badge.premium {
  color: #0b2f1a;
  background: linear-gradient(135deg, #f7d36b, #caa642);
}

.profile-plan-badge.free {
  color: #0f1a2b;
  background: rgba(0,123,255,0.15);
}

.menu-action {
  background: linear-gradient(135deg, #007bff, #00c3ff);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #007bff, #00c3ff);
}

.profile-menu .favorites-area {
  margin-top: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.profile-menu .favorites-header h2 {
  font-size: 1rem;
}

.profile-menu .favorites-toggle {
  cursor: pointer;
  user-select: none;
}

.profile-menu .favorites-toggle::after {
  content: 'â–¼';
  display: inline-block;
  margin-left: 8px;
  font-size: 0.72rem;
  transform: translateY(-1px);
}

.profile-menu .favorites-area.collapsed .favorites-toggle::after {
  content: 'â–º';
}

.profile-menu .favorites-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.profile-menu .favorite-card {
  padding: 8px;
  gap: 8px;
}

.profile-menu .favorite-card .thumb {
  width: 64px;
  height: 42px;
}

.profile-menu .favorite-card .info h3 {
  font-size: 0.85rem;
}

.profile-menu .favorite-card .info p {
  font-size: 0.74rem;
}

.profile-menu .fav-actions {
  gap: 6px;
}

.profile-menu .fav-actions .add-btn,
.profile-menu .fav-actions .fav-btn {
  padding: 6px 8px;
  min-width: 34px;
  font-size: 0.82rem;
}

.profile-menu #clearFavoritesBtn {
  padding: 6px 8px;
  font-size: 0.76rem;
}

.profile-menu #favoritesEmpty {
  padding: 10px;
  font-size: 0.8rem;
}

.profile-menu .favorites-area.collapsed .favorites-list,
.profile-menu .favorites-area.collapsed #clearFavoritesBtn {
  display: none;
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  display: flex;
  width: 700px;
  margin: 100px auto;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.modal-left {
  flex: 1;
  padding: 0;
  color: #f5f5f5;
  background: #0b0f1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}

.modal-left h2 {
  margin: 0;
}

.modal-left p {
  margin: 0;
  color: #d8e4ff;
  font-size: 15px;
}

.promo-video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  background: #000;
}

.modal-right {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-right input {
  padding: 10px;
  font-size: 16px;
}

.password-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-row input {
  flex: 1;
}

/* Hide built-in password reveal button (Edge/IE) */
.password-row input[type="password"]::-ms-reveal,
.password-row input[type="password"]::-ms-clear {
  display: none;
}

/* Hide WebKit credentials/autofill icon */
.password-row input[type="password"]::-webkit-credentials-auto-fill-button,
.password-row input[type="password"]::-webkit-textfield-decoration-container {
  visibility: hidden;
  display: none !important;
}

#togglePassword {
  border: 1px solid #ccc;
  background: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.dark #togglePassword {
  background: #161922;
  border-color: #2a2f3b;
  color: #eaf0ff;
}

#togglePassword .eye-icon {
  width: 18px;
  height: 18px;
  display: block;
}

#togglePassword .eye-closed {
  display: none;
}

#togglePassword.showing .eye-open {
  display: none;
}

#togglePassword.showing .eye-closed {
  display: block;
}

.strength-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
}

#strengthLabel {
  font-weight: 600;
}

.strength-weak { color: #d9534f; }
.strength-medium { color: #f0ad4e; }
.strength-strong { color: #5cb85c; }

.modal-right form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.form-error {
  color: #d9534f;
  font-size: 13px;
}

.modal-right .primary {
  background: linear-gradient(135deg, #009dff, #00aaff);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.modal-right .social button {
  margin-top: 5px;
  padding: 10px;
  width: 100%;
  background: linear-gradient(135deg, #009dff, #00aaff);
  border: none;
  cursor: pointer;
}

/* Touch devices fallback (handles desktop-viewport mobile) */
@media (max-width: 1100px) and (pointer: coarse) {
  .app { flex-direction: column; }
  .header-hamburger { display: inline-block; }

  .sidebar{
    position:fixed;
    inset:0 0 0 auto;
    width:78%;
    max-width:380px;
    transform:translateX(106%);
    transition:transform .28s ease;
    z-index:1200;
    box-shadow: -8px 0 30px rgba(2,6,23,0.6);
    background:linear-gradient(180deg,rgba(255,255,255,0.01),transparent);
  }
  .sidebar.open{ transform:translateX(0); }

  .overlay{
    position:fixed; inset:0; background:rgba(0,0,0,0.45); z-index:1100; display:none;
  }
  .overlay.show{ display:block; }

  .main{padding:14px}
  .compare-card{width:100%}
  .thumb{width:100%; height:140px; border-radius:8px}
  .compare-card .thumb{
    height:auto;
    aspect-ratio:16/9;
  }
  .compare-card .thumb-row{ gap:8px; }
  #search{width:100%}
}

/* mobile-fix-v8 */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }

@media (max-width: 760px) {
  .mobile-panel-toggle {
    display: inline-flex;
    padding: 7px 9px;
    font-size: 11px;
  }

  .app {
    display: grid;
    grid-template-columns: clamp(204px, 58vw, 258px) minmax(0, 1fr);
    align-items: stretch;
    height: calc(100dvh - var(--mobile-topbar-height, 88px));
    min-height: calc(100dvh - var(--mobile-topbar-height, 88px));
    overflow: hidden;
  }

  .sidebar {
    position: static;
    inset: auto;
    order: 1;
    top: auto;
    width: auto;
    max-width: none;
    margin: 0;
    transform: none !important;
    transition: none;
    z-index: auto;
    box-shadow: none;
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 0;
    padding: 12px 10px 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .sidebar.open { transform: none !important; }

  body.mobile-sidebar-collapsed .app {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  body.mobile-sidebar-collapsed .sidebar {
    width: 0;
    min-width: 0;
    padding: 0;
    border-right: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  body.mobile-sidebar-collapsed .mobile-panel-toggle {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
  }

  .overlay,
  .overlay.show { display: none !important; }
  .header-hamburger {
    display: none !important;
  }

  /* Mobile topbar layout: brand + icons row, links row */
  .topbar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "brand auth"
      "links links";
    align-items: center;
    gap: 6px 8px;
    padding: 8px 10px;
  }

  .brand-block { grid-area: brand; }
  .auth-area { grid-area: auth; justify-content: flex-end; gap: 10px; }
  .top-links {
    grid-area: links;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .brand-name { font-size: 22px; }
  .brand-copy { font-size: 11px; }

  .top-link {
    font-size: 11px;
    padding: 0;
    background: transparent;
  }

  .auth-area {
    width: auto;
    flex-wrap: nowrap;
  }

  .top-switch { font-size: 11px; }
  .top-switch span { display: none; }

  .switch { width: 36px; height: 20px; }
  .slider:before { width: 14px; height: 14px; left: 3px; bottom: 3px; }

  #loginBtn,
  .auth-btn {
    padding: 7px 10px;
    font-size: 11px;
  }

  .top-icon-btn,
  .avatar-btn {
    width: 36px;
    height: 36px;
  }

  /* Split mobile layout with compact comparison rail */
  .main {
    order: 2;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 8px 18px;
  }
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
  }
  .main-title {
    margin: 0;
    font-size: 0;
    line-height: 1;
  }
  .main-title::before {
    content: "Comparison";
    display: block;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
  }
  .main-header .actions {
    width: 100%;
    margin-top: 0 !important;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 5px;
    flex-shrink: 1;
  }
  .main-header .actions .btn {
    width: 100%;
    min-width: 0;
    padding: 7px 8px;
    font-size: 10px;
  }

  /* Language menu stays on screen */
  .lang-menu {
    left: 0;
    right: auto;
    min-width: 160px;
    max-width: 80vw;
  }

  /* Filters + catalog tighter */
  #filterBar { flex-wrap: wrap; gap: 5px; margin: 8px 0 10px; }
  #filterBar button { padding: 6px 8px; font-size: 10px; }
  .catalog-toggle button { padding: 7px 8px; font-size: 11px; }
  .sidebar-header,
  #catalogToggle,
  #filterBar,
  .list {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  /* Compact left-side vehicle cards */
  .list {
    gap: 10px;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    padding-right: 4px;
  }
  .item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 7px;
    align-items: center;
  }
  .item .thumb { width: 68px; height: 44px; border-radius: 7px; }
  .item .info { min-width: 0; }
  .item .info h3 {
    font-size: 0.78rem;
    line-height: 1.2;
  }
  .item .info p {
    font-size: 0.68rem;
    margin-top: 3px;
    line-height: 1.3;
  }
  .item-actions {
    gap: 5px;
    flex-shrink: 0;
  }
  .add-btn,
  .fav-btn {
    padding: 5px 7px;
    min-height: 30px;
    border-radius: 6px;
  }
  .add-btn {
    min-width: 44px;
    font-size: 0.82rem;
  }
  .fav-btn {
    min-width: 28px;
    font-size: 12px;
  }
  .empty {
    font-size: 0.74rem;
    line-height: 1.4;
    padding: 12px;
  }
  .empty-note {
    font-size: 0.72rem;
    line-height: 1.45;
    padding: 10px 12px;
  }

  /* Narrow compare rail */
  .compare-area,
  #compareArea.compare-area {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
  }
  #compareArea.compare-area {
    width: 100%;
  }
  .compare-area > .empty-block,
  #compareArea.compare-area > .empty-block {
    grid-column: 1 / -1;
  }
  .compare-card,
  #compareArea.compare-area .compare-card {
    padding: 7px;
    border-radius: 10px;
    gap: 6px;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    margin-inline: 0;
    align-self: start;
  }
  #compareArea.compare-area {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  #compareArea.compare-area[data-count="1"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #compareArea.compare-area .compare-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  #compareArea.compare-area[data-count="1"] .compare-card {
    max-width: min(100%, 440px) !important;
    margin-inline: auto !important;
  }
  .compare-card .thumb-frame {
    height: auto;
    aspect-ratio: 6 / 5;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 7px;
    background-color: #0b0f18;
    background-image: var(--thumb-bg);
    background-size: cover;
    background-position: center;
  }
  .compare-card .thumb-frame::before {
    display: none;
  }
  .compare-card img.thumb-img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    background: transparent;
    padding: 0;
  }
  .compare-card img.thumb-img.fit-cover {
    object-fit: cover;
  }
  #compareArea.compare-area:not([data-count="1"]) .compare-card .thumb-frame {
    aspect-ratio: 4 / 3;
  }
  #compareArea.compare-area:not([data-count="1"]) .compare-card img.thumb-img,
  #compareArea.compare-area:not([data-count="1"]) .compare-card img.thumb-img.fit-cover {
    object-fit: contain;
  }
  .compare-card .thumb-badge {
    top: 5px;
    left: 5px;
    padding: 2px 5px;
    font-size: 0.55rem;
  }
  .compare-card .card-overlay {
    padding: 7px 7px 5px;
    gap: 2px;
  }
  .compare-card .card-overlay h4 { font-size: 0.7rem; }
  .compare-card .card-overlay .spec-line { font-size: 0.58rem; }
  .compare-card .card-overlay .price-pill {
    padding: 2px 6px;
    font-size: 0.54rem;
  }
  .compare-card .meta {
    gap: 4px;
  }
  .compare-card .meta h4 {
    font-size: 0.8rem;
    line-height: 1.18;
  }
  .compare-card .meta .origin-line {
    font-size: 0.52rem;
    padding: 2px 5px;
  }
  .compare-card .meta .spec-line,
  .compare-card .meta .stat-line {
    font-size: 0.66rem;
    line-height: 1.25;
  }
  .compare-card .meta .price-wrapper {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    padding: 5px 6px;
    font-size: 0.62rem;
    border-radius: 18px;
  }
  .compare-card .meta .price-wrapper::before { height: 14px; bottom: -4px; }
  .compare-card .meta .price-wrapper .price-value { font-size: 0.62rem; }
  .compare-card .meta .price-wrapper .resale-btn {
    font-size: 0.5rem;
    padding: 2px 4px;
  }
  .title-row {
    gap: 4px;
    flex-direction: column;
    align-items: stretch;
  }
  .title-row h4 { font-size: 0.7rem; }
  .type-pill {
    align-self: center;
    font-size: 0.5rem;
    padding: 2px 4px;
  }
  .meta-line { font-size: 0.54rem; }
  .card-actions {
    gap: 5px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .remove-btn {
    width: calc(50% - 3px);
    min-width: 0;
    min-height: 28px;
    padding: 4px 5px;
    font-size: 0.62rem;
    border-radius: 7px;
  }
  .detail-btn {
    width: calc(50% - 3px);
    min-width: 0;
    min-height: 28px;
    padding: 4px 6px;
    font-size: 0.66rem;
    border-radius: 7px;
  }

  /* Login modal more compact + password visibility fix */
  .modal-content {
    width: min(90vw, 340px);
    margin: 6vh auto;
    flex-direction: column;
    max-height: 74vh;
    overflow: auto;
  }
  .modal-left { height: 130px; }
  .promo-video { height: 130px; }
  .modal-right { padding: 10px; gap: 8px; }
  .modal-right h3 { font-size: 16px; }
  .modal-right input { padding: 7px; font-size: 13px; color: var(--input-text); -webkit-text-fill-color: var(--input-text); }
  .password-row input { color: var(--input-text); -webkit-text-fill-color: var(--input-text); }
  .modal-right .primary { padding: 8px; font-size: 13px; }
  .modal-right .social button { padding: 7px; font-size: 12px; }
  .strength-row { font-size: 10px; }
  #togglePassword { padding: 6px 8px; }
}

