/* SupleMed – Główny arkusz stylów */
:root {
  --green: #1D9E75;
  --green-dark: #0F6E56;
  --green-light: #E1F5EE;
  --blue: #185FA5;
  --blue-light: #E6F1FB;
  --amber: #BA7517;
  --amber-light: #FAEEDA;
  --red: #A32D2D;
  --red-light: #FCEBEB;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-900: #212529;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--gray-50); color: var(--gray-900); font-size: 15px; line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Utilities ──────────────────────────────────────── */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.badge { display:inline-flex; align-items:center; gap:4px; padding:3px 9px; border-radius:20px; font-size:11px; font-weight:600; letter-spacing:0.3px; }
.badge-success { background:var(--green-light); color:var(--green-dark); }
.badge-info { background:var(--blue-light); color:var(--blue); }
.badge-warning { background:var(--amber-light); color:var(--amber); }
.badge-danger { background:var(--red-light); color:var(--red); }
.badge-ad { background:#FFF3CD; color:#856404; font-size:10px; padding:2px 7px; }

.stars { color:#EF9F27; font-size:13px; }
.price-green { color:var(--green-dark); font-weight:600; }
.text-muted { color:var(--gray-600); }
.text-sm { font-size:13px; }
.text-xs { font-size:11px; }
.fw-500 { font-weight:500; }
.mt-1 { margin-top:4px; } .mt-2 { margin-top:8px; } .mt-3 { margin-top:12px; } .mt-4 { margin-top:16px; }
.mb-1 { margin-bottom:4px; } .mb-2 { margin-bottom:8px; } .mb-3 { margin-bottom:12px; }

/* ── Layout ─────────────────────────────────────────── */
.page { max-width:1300px; margin:0 auto; padding:0 20px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid-4 { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:12px; }

/* ── Topbar ─────────────────────────────────────────── */
#topbar {
  background:var(--white);
  border-bottom:1px solid var(--gray-200);
  position:sticky; top:0; z-index:100;
  box-shadow:var(--shadow-sm);
}
.topbar-inner {
  max-width:1300px; margin:0 auto; padding:0 20px;
  display:flex; align-items:center; gap:12px; height:58px;
}
.logo {
  display:flex; align-items:center; gap:10px;
  font-size:18px; font-weight:700; color:var(--gray-900);
  text-decoration:none; flex-shrink:0;
}
.logo-icon {
  width:32px; height:32px; background:var(--green);
  border-radius:8px; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:13px; font-weight:700;
}
.logo span { color:var(--green); }
.topnav { display:flex; gap:2px; flex:1; }
.tnav {
  padding:7px 14px; font-size:14px; color:var(--gray-600);
  border:none; background:transparent; border-radius:var(--radius-sm);
  cursor:pointer; white-space:nowrap; font-family:var(--font);
  transition:background 0.15s, color 0.15s;
}
.tnav:hover { background:var(--gray-100); color:var(--gray-900); }
.tnav.active { background:var(--green-light); color:var(--green-dark); font-weight:500; }
.topbar-right { margin-left:auto; display:flex; gap:8px; align-items:center; flex-shrink:0; }
.btn-icon { width:34px; height:34px; border-radius:var(--radius-sm); border:1px solid var(--gray-200); background:transparent; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:16px; color:var(--gray-600); }
.btn-icon:hover { background:var(--gray-100); }

/* ── Buttons ─────────────────────────────────────────── */
.btn { display:inline-flex; align-items:center; gap:6px; padding:9px 18px; border-radius:var(--radius-md); font-size:14px; font-family:var(--font); cursor:pointer; border:1px solid transparent; transition:all 0.15s; font-weight:500; }
.btn-primary { background:var(--green); color:#fff; }
.btn-primary:hover { background:var(--green-dark); }
.btn-outline { background:transparent; border-color:var(--gray-300); color:var(--gray-700); }
.btn-outline:hover { background:var(--gray-100); }
.btn-sm { padding:5px 12px; font-size:12px; }
.btn-xs { padding:3px 8px; font-size:11px; }
.btn-danger { background:var(--red); color:#fff; }

/* ── Hero / Search ──────────────────────────────────── */
#hero {
  background:linear-gradient(135deg, #f0fdf9 0%, #e8f5f1 40%, #f0f7ff 100%);
  border-bottom:1px solid var(--gray-200);
  padding:32px 20px;
}
.hero-inner { max-width:720px; margin:0 auto; text-align:center; }
.hero-inner h1 { font-size:26px; font-weight:700; margin-bottom:8px; }
.hero-inner .subtitle { font-size:15px; color:var(--gray-600); margin-bottom:20px; }
.search-bar {
  display:flex; gap:8px;
  background:var(--white);
  border:1px solid var(--gray-300);
  border-radius:var(--radius-lg);
  padding:6px 6px 6px 16px;
  box-shadow:var(--shadow-md);
}
.search-bar input { flex:1; border:none; background:transparent; font-size:15px; font-family:var(--font); outline:none; min-width:0; }
.search-bar select { border:none; background:transparent; font-size:13px; color:var(--gray-600); outline:none; cursor:pointer; padding:0 8px; border-left:1px solid var(--gray-200); }
.quick-tags { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin-top:14px; }
.qtag { padding:5px 12px; background:var(--white); border:1px solid var(--gray-200); border-radius:20px; font-size:13px; cursor:pointer; color:var(--gray-600); transition:all 0.15s; }
.qtag:hover { border-color:var(--green); color:var(--green-dark); background:var(--green-light); }

/* ── Main Layout ────────────────────────────────────── */
.main-layout { display:grid; grid-template-columns:240px 1fr; gap:16px; padding:20px; max-width:1300px; margin:0 auto; }

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar { display:flex; flex-direction:column; gap:12px; }
.sidebar-card { background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:16px; }
.sidebar-card h3 { font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; color:var(--gray-500); margin-bottom:12px; }
.filter-group { margin-bottom:14px; }
.filter-label { font-size:11px; color:var(--gray-500); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:8px; display:block; }
.filter-item { display:flex; align-items:center; gap:8px; padding:5px 0; font-size:13px; cursor:pointer; color:var(--gray-700); }
.filter-item:hover { color:var(--gray-900); }
.filter-item input[type=checkbox] { accent-color:var(--green); width:14px; height:14px; cursor:pointer; }
.filter-count { margin-left:auto; font-size:11px; background:var(--gray-100); color:var(--gray-500); padding:1px 7px; border-radius:10px; }
.price-range-wrap { display:flex; flex-direction:column; gap:4px; }
.price-range-wrap input[type=range] { accent-color:var(--green); }
.range-labels { display:flex; justify-content:space-between; font-size:11px; color:var(--gray-500); }
.ad-sidebar { background:var(--amber-light); border:1px solid #FAC775; border-radius:var(--radius-lg); padding:14px; text-align:center; }
.ad-sidebar .ad-label { font-size:10px; color:var(--amber); font-weight:600; letter-spacing:0.5px; margin-bottom:6px; }
.ad-sidebar .ad-name { font-size:14px; font-weight:600; margin-bottom:4px; }

/* ── Content Area ────────────────────────────────────── */
.content-area { display:flex; flex-direction:column; gap:14px; }
.stats-bar { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.stat-chip { background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-md); padding:12px 14px; text-align:center; }
.stat-chip .val { font-size:20px; font-weight:700; color:var(--gray-900); }
.stat-chip .lbl { font-size:11px; color:var(--gray-500); margin-top:2px; }
.toolbar { background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-md); padding:10px 14px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.toolbar select { padding:6px 10px; border:1px solid var(--gray-200); border-radius:var(--radius-sm); font-size:13px; background:var(--white); color:var(--gray-700); cursor:pointer; }
.toolbar-right { margin-left:auto; display:flex; gap:6px; align-items:center; }
.compare-banner { background:var(--blue-light); border:1px solid #85B7EB; border-radius:var(--radius-md); padding:10px 16px; display:flex; align-items:center; gap:12px; font-size:13px; color:var(--blue); }

/* ── Product Cards ───────────────────────────────────── */
.products-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px; }
.pcard {
  background:var(--white); border:1px solid var(--gray-200);
  border-radius:var(--radius-lg); padding:14px; cursor:pointer;
  position:relative; transition:border-color 0.15s, box-shadow 0.15s;
}
.pcard:hover { border-color:var(--green); box-shadow:var(--shadow-md); }
.pcard.selected { border-color:var(--green); border-width:2px; }
.pcard-thumb { width:100%; height:90px; background:var(--gray-50); border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center; font-size:36px; margin-bottom:12px; }
.pcard-brand { font-size:10px; color:var(--gray-500); text-transform:uppercase; letter-spacing:0.5px; }
.pcard-name { font-size:13px; font-weight:600; margin:2px 0 4px; line-height:1.3; }
.pcard-sub { font-size:11px; color:var(--gray-600); line-height:1.4; }
.pcard-price { font-size:16px; font-weight:700; color:var(--green-dark); margin-top:8px; }
.pcard-old { font-size:11px; color:var(--gray-500); text-decoration:line-through; margin-left:4px; }
.pcard-actions { display:flex; gap:4px; margin-top:10px; }
.pcard-actions .btn-primary { flex:1; justify-content:center; padding:6px 0; font-size:12px; }
.pcard-badge { position:absolute; top:8px; right:8px; }
.pcard-badge-left { position:absolute; top:8px; left:8px; }
.loading-state { text-align:center; padding:60px; color:var(--gray-500); }
.spinner { width:32px; height:32px; border:3px solid var(--gray-200); border-top-color:var(--green); border-radius:50%; animation:spin 0.8s linear infinite; margin:0 auto 12px; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── Detail Panel ────────────────────────────────────── */
.detail-panel { background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg); overflow:hidden; }
.dp-top { display:flex; gap:20px; padding:20px; border-bottom:1px solid var(--gray-200); }
.dp-img { width:100px; height:100px; background:var(--gray-50); border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center; font-size:48px; flex-shrink:0; }
.dp-info { flex:1; min-width:0; }
.dp-info .brand { font-size:11px; color:var(--gray-500); text-transform:uppercase; letter-spacing:0.5px; }
.dp-info h2 { font-size:19px; font-weight:700; margin:4px 0 2px; }
.dp-info .sub { font-size:13px; color:var(--gray-600); }
.dp-price-row { display:flex; align-items:center; gap:12px; margin-top:10px; flex-wrap:wrap; }
.dp-price { font-size:22px; font-weight:700; color:var(--green-dark); }
.dp-tabs { display:flex; gap:0; border-bottom:1px solid var(--gray-200); padding:0 20px; overflow-x:auto; }
.dp-tab { padding:10px 16px; font-size:13px; font-weight:500; cursor:pointer; border:none; background:transparent; color:var(--gray-600); border-bottom:2px solid transparent; white-space:nowrap; transition:all 0.15s; font-family:var(--font); margin-bottom:-1px; }
.dp-tab:hover { color:var(--gray-900); }
.dp-tab.active { color:var(--green-dark); border-bottom-color:var(--green); }
.dp-content { padding:20px; min-height:200px; }
.tab-pane { display:none; } .tab-pane.active { display:block; }

/* ── Ingredients Table ────────────────────────────────── */
.ingr-table { width:100%; border-collapse:collapse; font-size:13px; }
.ingr-table th { text-align:left; padding:8px 10px; background:var(--gray-50); font-weight:600; font-size:11px; color:var(--gray-500); text-transform:uppercase; letter-spacing:0.5px; border-bottom:1px solid var(--gray-200); }
.ingr-table td { padding:9px 10px; border-bottom:1px solid var(--gray-100); vertical-align:top; }
.ingr-table tr:last-child td { border-bottom:none; }
.formula-cell { font-family:Georgia,serif; color:var(--blue); font-style:italic; font-size:12px; }
.role-badge { display:inline-block; padding:2px 7px; border-radius:20px; font-size:10px; font-weight:600; }
.role-active { background:var(--green-light); color:var(--green-dark); }
.role-other { background:var(--gray-100); color:var(--gray-600); }

/* ── Alert boxes ─────────────────────────────────────── */
.alert { border-radius:var(--radius-md); padding:12px 14px; margin:8px 0; display:flex; gap:10px; font-size:13px; line-height:1.5; }
.alert i { font-size:18px; flex-shrink:0; margin-top:1px; }
.alert-ok { background:var(--green-light); border:1px solid #5DCAA5; color:var(--green-dark); }
.alert-info { background:var(--blue-light); border:1px solid #85B7EB; color:var(--blue); }
.alert-warn { background:var(--amber-light); border:1px solid #FAC775; color:#633806; }
.alert-danger { background:var(--red-light); border:1px solid #F09595; color:var(--red); }

/* ── Price Table ─────────────────────────────────────── */
.price-table { width:100%; border-collapse:collapse; }
.price-table th { text-align:left; padding:8px 10px; font-size:11px; color:var(--gray-500); font-weight:600; text-transform:uppercase; letter-spacing:0.5px; }
.price-table td { padding:10px; border-bottom:1px solid var(--gray-100); font-size:13px; }
.price-table tr:last-child td { border-bottom:none; }
.best-price { color:var(--green-dark); font-weight:700; font-size:16px; }
.best-label { background:var(--green-light); color:var(--green-dark); font-size:10px; font-weight:700; padding:2px 7px; border-radius:3px; margin-left:6px; }

/* ── Interaction Checker ──────────────────────────────── */
.interaction-checker { background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:20px; }
.ic-header { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.ic-header h2 { font-size:17px; font-weight:700; flex:1; }
.drug-input-row { display:flex; gap:8px; }
.drug-input-row input { flex:1; }
.drug-chips { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; min-height:32px; }
.drug-chip { display:flex; align-items:center; gap:6px; background:var(--gray-100); border:1px solid var(--gray-200); padding:5px 10px; border-radius:20px; font-size:13px; }
.drug-chip button { border:none; background:none; cursor:pointer; color:var(--gray-500); font-size:15px; line-height:1; padding:0 2px; }
.drug-chip button:hover { color:var(--red); }
.interaction-grid { display:flex; flex-direction:column; gap:8px; margin-top:12px; }

/* ── Rankings ─────────────────────────────────────────── */
.rankings-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.ranking-card { background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:16px; }
.ranking-card h2 { font-size:14px; font-weight:700; display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.rank-item { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--gray-100); font-size:13px; }
.rank-item:last-child { border-bottom:none; }
.rank-num { width:24px; height:24px; border-radius:50%; background:var(--gray-100); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; flex-shrink:0; }
.rank-num.gold { background:#FAC775; color:#412402; }
.rank-num.silver { background:#D3D1C7; color:#2C2C2A; }
.rank-num.bronze { background:#F0997B; color:#4A1B0C; }
.rank-info { flex:1; min-width:0; }
.rank-name { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rank-brand { font-size:11px; color:var(--gray-500); }
.rank-price { font-size:13px; font-weight:700; color:var(--green-dark); flex-shrink:0; }

/* ── Articles ─────────────────────────────────────────── */
.articles-wrapper { display:flex; flex-direction:column; gap:0; background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg); overflow:hidden; }
.article-item { display:flex; gap:14px; padding:16px; border-bottom:1px solid var(--gray-100); align-items:flex-start; }
.article-item:last-child { border-bottom:none; }
.article-item:hover { background:var(--gray-50); }
.art-type { padding:3px 9px; border-radius:20px; font-size:10px; font-weight:700; text-transform:uppercase; flex-shrink:0; height:fit-content; margin-top:2px; }
.art-naukowy { background:var(--blue-light); color:var(--blue); }
.art-meta { background:var(--green-light); color:var(--green-dark); }
.art-popularnonaukowy { background:var(--gray-100); color:var(--gray-600); }
.art-przeglad { background:var(--amber-light); color:var(--amber); }
.art-content { flex:1; min-width:0; }
.art-title { font-size:14px; font-weight:600; line-height:1.4; margin-bottom:5px; }
.art-meta-line { font-size:12px; color:var(--gray-500); }
.art-abstract { font-size:12px; color:var(--gray-600); line-height:1.6; margin-top:6px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* ── Map ─────────────────────────────────────────────── */
#map { height:300px; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--gray-200); }
.stores-list { margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.store-card { background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-md); padding:12px 14px; display:flex; align-items:center; gap:12px; font-size:13px; }
.store-icon { font-size:20px; width:36px; height:36px; background:var(--gray-50); border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.store-dist { margin-left:auto; background:var(--gray-100); padding:3px 8px; border-radius:10px; font-size:12px; color:var(--gray-600); }

/* ── Compare ─────────────────────────────────────────── */
.compare-table-wrap { overflow-x:auto; }
.compare-table { width:100%; border-collapse:collapse; min-width:600px; }
.compare-table th { padding:12px 14px; background:var(--gray-50); text-align:left; font-size:12px; font-weight:600; color:var(--gray-500); text-transform:uppercase; letter-spacing:0.5px; border-bottom:1px solid var(--gray-200); }
.compare-table td { padding:12px 14px; border-bottom:1px solid var(--gray-100); font-size:13px; vertical-align:top; }
.compare-table tr:hover td { background:var(--gray-50); }
.cmp-product-header { text-align:center; padding:16px; }
.cmp-icon { font-size:40px; margin-bottom:6px; }

/* ── Forms ──────────────────────────────────────────── */
input, select, textarea { width:100%; padding:9px 12px; border:1px solid var(--gray-300); border-radius:var(--radius-sm); font-size:14px; font-family:var(--font); background:var(--white); color:var(--gray-900); outline:none; transition:border-color 0.15s, box-shadow 0.15s; }
input:focus, select:focus, textarea:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(29,158,117,0.12); }
input[type=checkbox], input[type=radio] { width:auto; }
input[type=range] { padding:0; border:none; box-shadow:none; }

/* ── Dark Theme ──────────────────────────────────────── */
body.dark {
  --white: #1e2130;
  --gray-50: #161820;
  --gray-100: #222535;
  --gray-200: #2d3155;
  --gray-300: #3a3f6b;
  --gray-500: #7b82aa;
  --gray-600: #9aa0b4;
  --gray-700: #c5cae0;
  --gray-900: #e8eaed;
  --green-light: rgba(29,158,117,.15);
  --blue-light: rgba(24,95,165,.15);
  --amber-light: rgba(186,117,23,.15);
  --red-light: rgba(163,45,45,.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.35);
}
body.dark #hero { background:linear-gradient(135deg,#141826,#1a1e30,#131c28); }
body.dark .ad-sidebar { background:rgba(186,117,23,.12); border-color:rgba(186,117,23,.3); }

/* ── Theme Toggle ─────────────────────────────────────── */
.theme-toggle { width:34px; height:34px; border-radius:var(--radius-sm); border:1px solid var(--gray-200); background:transparent; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:16px; color:var(--gray-600); transition:all .15s; }
.theme-toggle:hover { background:var(--gray-100); }

/* ── Auth Modal ──────────────────────────────────────── */
.modal-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:500; display:none; align-items:center; justify-content:center; padding:20px; }
.modal-backdrop.open { display:flex; }
.modal { background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg); width:100%; max-width:420px; padding:28px; box-shadow:0 20px 60px rgba(0,0,0,.15); }
.modal h2 { font-size:19px; font-weight:700; margin-bottom:4px; }
.modal .sub { font-size:13px; color:var(--gray-600); margin-bottom:20px; }
.modal-tabs { display:flex; border-bottom:1px solid var(--gray-200); margin-bottom:20px; }
.modal-tab { flex:1; padding:9px; background:none; border:none; font-family:var(--font); font-size:14px; font-weight:500; color:var(--gray-600); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; transition:all .15s; }
.modal-tab.active { color:var(--green-dark); border-bottom-color:var(--green); }
.modal-form { display:none; }
.modal-form.active { display:block; }
.form-group { margin-bottom:12px; }
.form-group label { display:block; font-size:12px; font-weight:600; color:var(--gray-600); margin-bottom:4px; }
.modal-error { background:var(--red-light); color:var(--red); border-radius:var(--radius-sm); padding:9px 12px; font-size:13px; margin-bottom:12px; display:none; }
.modal-error.show { display:block; }
.modal-actions { display:flex; flex-direction:column; gap:8px; margin-top:16px; }
.btn-full { width:100%; justify-content:center; }

/* ── User Dropdown ──────────────────────────────────── */
.user-menu { position:relative; }
.user-avatar { width:34px; height:34px; border-radius:50%; background:var(--green); color:#fff; font-size:13px; font-weight:700; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.user-dropdown { position:absolute; top:calc(100% + 6px); right:0; background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg); box-shadow:var(--shadow-md); min-width:200px; display:none; z-index:200; overflow:hidden; }
.user-dropdown.open { display:block; }
.ud-info { padding:12px 14px; border-bottom:1px solid var(--gray-200); }
.ud-name { font-weight:600; font-size:14px; }
.ud-email { font-size:11px; color:var(--gray-500); }
.ud-item { display:flex; align-items:center; gap:10px; padding:9px 14px; font-size:13px; color:var(--gray-700); cursor:pointer; text-decoration:none; }
.ud-item:hover { background:var(--gray-50); color:var(--gray-900); }
.ud-item i { font-size:16px; color:var(--gray-500); width:18px; }
.ud-sep { border:none; border-top:1px solid var(--gray-200); margin:4px 0; }

/* ── Toast Notification ──────────────────────────────── */
#toast-container { position:fixed; bottom:20px; right:20px; z-index:9999; display:flex; flex-direction:column; gap:8px; }
.toast { display:flex; align-items:center; gap:10px; background:var(--gray-900); color:#fff; padding:12px 16px; border-radius:var(--radius-md); font-size:13px; font-weight:500; box-shadow:var(--shadow-md); animation:toastIn .25s ease; max-width:300px; }
.toast.toast-success { background:var(--green-dark); }
.toast.toast-error { background:var(--red); }
.toast.toast-info { background:var(--blue); }
@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ── Favorite button active state ──────────────────────── */
.btn-fav.active i { color:var(--red); }
.btn-fav.active { border-color:var(--red-light); }

/* ── Review form ─────────────────────────────────────── */
.review-form { background:var(--gray-50); border:1px solid var(--gray-200); border-radius:var(--radius-md); padding:16px; margin-top:14px; }
.review-form h4 { font-size:13px; font-weight:600; margin-bottom:12px; }
.star-select { display:flex; gap:4px; margin-bottom:12px; font-size:24px; }
.star-select span { cursor:pointer; color:var(--gray-300); transition:color .1s; }
.star-select span.on { color:#EF9F27; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width:900px) {
  .main-layout { grid-template-columns:1fr; }
  .sidebar { display:none; }
  .stats-bar { grid-template-columns:repeat(2,1fr); }
  .rankings-grid { grid-template-columns:1fr; }
  .topnav .tnav { font-size:12px; padding:6px 10px; }
}
@media (max-width:600px) {
  .hero-inner h1 { font-size:20px; }
  .search-bar { flex-direction:column; }
  .dp-top { flex-direction:column; }
  .stats-bar { grid-template-columns:1fr 1fr; }
}
