/* ===================================================
   OWNER'S HISTORY — Luxury Design System
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Noto+Sans+JP:wght@300;400;500;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Core palette */
  --primary:      #050505;
  --secondary:    #090909;
  --accent:       #c4a45a;   /* warm antique gold  */
  --accent-light: #dbbf7a;
  --accent-dark:  #967a38;
  --accent-dim:   rgba(196,164,90,0.15);

  /* Surface */
  --bg:       #060606;
  --bg-card:  #0d0d0d;
  --bg-card2: #111111;
  --bg-lift:  #161616;

  /* Text */
  --text:       #e8e4da;   /* warm off-white */
  --text-muted: #66635a;   /* warm slate     */
  --text-dim:   #3a3830;

  /* Borders */
  --border:      rgba(196,164,90,0.10);
  --border-mid:  rgba(196,164,90,0.18);
  --border-hi:   rgba(196,164,90,0.35);

  /* Semantic */
  --success: #4e8862;
  --warning: #b89030;
  --danger:  #904030;
  --info:    #3a6a90;
  --shop:    #6a3888;

  /* Geometry */
  --radius:    3px;
  --radius-sm: 2px;
  --radius-lg: 6px;

  /* Effects */
  --shadow:      0 12px 48px rgba(0,0,0,0.7);
  --shadow-gold: 0 0 28px rgba(196,164,90,0.22);
  --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font:         'Noto Sans JP', 'Inter', sans-serif;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --tracking-wide: 0.12em;
  --tracking-xl:   0.2em;
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.022'/%3E%3C/svg%3E");
}

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
h4, h5, h6 { font-weight: 500; line-height: 1.35; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-light); }

/* ─── Navigation ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6,6,6,0.94);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: var(--tracking-wide);
}

/* SVG logo mark */
.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: transparent;
  flex-shrink: 0;
}
.nav-logo .logo-icon::before { content: none; }
.nav-logo .logo-icon svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: color var(--transition);
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-lang { display: flex; gap: 6px; }
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.lang-btn.active, .lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Ripple target */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: scale(0);
  animation: rippleAnim 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #090909;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: #090909;
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-hi);
}
.btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); }

.btn-danger {
  background: var(--danger);
  color: var(--text);
}

.btn-sm  { padding: 5px 14px; font-size: 0.72rem; }
.btn-lg  { padding: 13px 34px; font-size: 0.82rem; border-radius: var(--radius); }

/* Return-glow: fired when user navigates back to the button that caused navigation */
@keyframes returnGlow {
  0%   { box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(196,164,90,0.5); }
  60%  { box-shadow: 0 0 0 1px rgba(196,164,90,0.5), 0 0 10px rgba(196,164,90,0.2); }
  100% { box-shadow: none; }
}
.return-active { animation: returnGlow 1.4s ease-out forwards; }

/* ─── Layout ──────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.page-content { padding-top: 78px; min-height: 100vh; }
.section { padding: 6rem 0; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .badge {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-mid);
  padding: 3px 16px;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: var(--tracking-xl);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0.6rem auto 0;
  font-weight: 300;
}

/* ─── Cards ───────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow);
}

.card-grid { display: grid; gap: 1.5rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ─── Form Elements ───────────────────────────────── */
.form-group { margin-bottom: 1.3rem; }
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border-mid);
  border-radius: 0;
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(196,164,90,0.03);
}
.form-control::placeholder { color: var(--text-dim); }
select.form-control {
  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 fill='%2366635a' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* ─── Badge / Tag ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-gold    { background: var(--accent-dim); color: var(--accent);  border: 1px solid var(--border-mid); }
.badge-success { background: rgba(78,136,98,0.12);  color: var(--success); border: 1px solid rgba(78,136,98,0.25); }
.badge-warning { background: rgba(184,144,48,0.12); color: var(--warning); border: 1px solid rgba(184,144,48,0.25); }
.badge-danger  { background: rgba(144,64,48,0.12);  color: var(--danger);  border: 1px solid rgba(144,64,48,0.25); }
.badge-info    { background: rgba(58,106,144,0.12); color: var(--info);    border: 1px solid rgba(58,106,144,0.25); }
.badge-shop    { background: rgba(106,56,136,0.12); color: var(--shop);    border: 1px solid rgba(106,56,136,0.25); }

/* ─── Timeline ────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem; top: 1rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(196,164,90,0.15);
}
.timeline-item.shop-record::before  { background: var(--shop);    box-shadow: 0 0 0 3px rgba(106,56,136,0.15); }
.timeline-item.drive-record::before { background: var(--info);    box-shadow: 0 0 0 3px rgba(58,106,144,0.15); }
.timeline-item.sale-record::before  { background: var(--success); box-shadow: 0 0 0 3px rgba(78,136,98,0.15); }
.timeline-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
}
.timeline-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.timeline-card:hover { border-color: var(--border-mid); }

/* ─── Avatar ──────────────────────────────────────── */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-xs  { width: 26px; height: 26px; }
.avatar-sm  { width: 32px; height: 32px; }
.avatar-md  { width: 44px; height: 44px; }
.avatar-lg  { width: 64px; height: 64px; }
.avatar-xl  { width: 88px; height: 88px; }
.avatar-placeholder {
  background: linear-gradient(135deg, #1a1612 0%, #2a2218 100%);
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--accent);
}

/* ─── Stats ───────────────────────────────────────── */
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.03em;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ─── Trust Score ─────────────────────────────────── */
.trust-score { display: flex; align-items: center; gap: 0.8rem; }
.trust-bar-wrap {
  flex: 1; height: 1px;
  background: var(--border);
}
.trust-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Stars ───────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; color: var(--accent); font-size: 0.85rem; }

/* ─── Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 2.2rem;
  max-width: 540px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.97) translateY(8px);
  transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.modal-close {
  background: transparent; border: none;
  color: var(--text-muted); font-size: 1.1rem;
  cursor: pointer; line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

/* ─── Tabs ────────────────────────────────────────── */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.tab-btn {
  background: transparent; border: none;
  color: var(--text-muted);
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font);
  position: relative;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Toast ───────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.toast {
  background: var(--bg-lift);
  border: 1px solid var(--border-mid);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  animation: toastIn 0.28s cubic-bezier(0.4,0,0.2,1);
  max-width: 300px;
  color: var(--text);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ─── Gradient text ───────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Divider ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
  margin: 2rem 0;
}

/* ─── Post / Feed ─────────────────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.post-card:hover { border-color: var(--border-mid); }
.post-header { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.2rem; }
.post-meta { flex: 1; }
.post-author { font-weight: 500; font-size: 0.88rem; }
.post-time { font-size: 0.72rem; color: var(--text-muted); }
.post-img {
  width: 100%; height: 200px;
  object-fit: cover;
  background: var(--bg-card2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 3rem;
}
.post-body { padding: 1rem 1.2rem; }
.post-text { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.post-actions {
  display: flex; gap: 1rem;
  padding: 0.7rem 1.2rem;
  border-top: 1px solid var(--border);
}
.post-action-btn {
  background: transparent; border: none;
  color: var(--text-muted); font-size: 0.82rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: color var(--transition);
  font-family: var(--font);
}
.post-action-btn:hover { color: var(--accent); }

/* ─── Item Card (Marketplace) ─────────────────────── */
.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-mid);
}
.item-img {
  width: 100%; height: 200px;
  object-fit: cover;
  background: var(--bg-card2);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  position: relative;
}
/* FOR SALE badge — refined treatment (no garish green) */
.item-img .for-sale-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(196,164,90,0.92);
  color: #070707;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 0;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.item-info { padding: 1.3rem; }
.item-year  { font-size: 0.7rem; color: var(--accent); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }
.item-name  { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; margin: 0.3rem 0 0.6rem; }
.item-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; color: var(--accent); letter-spacing: 0.02em; }
.item-meta  { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; font-size: 0.76rem; color: var(--text-muted); }

/* ─── Shop Card ───────────────────────────────────── */
.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}
.shop-card:hover { border-color: rgba(106,56,136,0.3); transform: translateY(-2px); }
.shop-trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 3px 12px;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Map Placeholder ─────────────────────────────── */
.map-placeholder {
  width: 100%; height: 300px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted);
  gap: 0.5rem; font-size: 0.85rem;
}
.map-placeholder .map-icon { font-size: 1.8rem; opacity: 0.4; }

/* ─── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .container { padding: 0 1.2rem; }
  .section { padding: 3.5rem 0; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}

/* ─── Animations ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.animate-fade-up { animation: fadeUp 0.55s cubic-bezier(0.4,0,0.2,1) forwards; }
.glow { box-shadow: var(--shadow-gold); }

/* ─── Footer ──────────────────────────────────────── */
footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.8rem;
  max-width: 260px;
  line-height: 1.8;
}
.footer-links h4 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-xl);
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-weight: 400;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-muted); font-size: 0.84rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── Input Range ─────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%; height: 1px;
  background: var(--border-mid);
  border-radius: 0;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 1px solid var(--accent-dark);
  box-shadow: 0 0 6px rgba(196,164,90,0.3);
}

/* ─── Notification Dot ────────────────────────────── */
.notif-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute; top: -2px; right: -2px;
}

/* ─── Toggle Switch ───────────────────────────────── */
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--border-mid);
  border-radius: 11px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-track::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--transition), background var(--transition);
}
.toggle-switch input:checked + .toggle-track { background: var(--accent-dim); border: 1px solid var(--border-mid); }
.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(18px);
  background: var(--accent);
}

/* ─── u-link (clickable user names) ──────────────── */
.u-link {
  cursor: pointer;
  border-bottom: 1px solid rgba(196,164,90,0.25);
  transition: color var(--transition), border-color var(--transition);
}
.u-link:hover { color: var(--accent-light); border-color: var(--accent); }
