/* ── Variables ── */
:root {
  --bg: #f7f6f3;
  --bg-card: #ffffff;
  --bg-sidebar: #f0efe9;
  --bg-input: #ffffff;
  --border: #e8e6e0;
  --border-mid: #d9d6ce;
  --accent: #2d6a4f;
  --accent-light: #40916c;
  --accent-dim: rgba(45, 106, 79, 0.08);
  --accent-dim2: rgba(45, 106, 79, 0.15);
  --text-primary: #1a1a18;
  --text-secondary: #6b6860;
  --text-muted: #a09d97;
  --reason-bg: #f0f7f4;
  --reason-border: #b7d9c9;
  --reason-text: #2d6a4f;
  --tag-bg: #eef7f2;
  --sidebar-width: 260px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { cursor: pointer; border: none; outline: none; font-family: var(--font-body); background: none; }
input, textarea { font-family: var(--font-body); outline: none; border: none; }
a { color: inherit; text-decoration: none; }

/* ── Splash Screen ── */
.splash-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.splash-screen.hidden { opacity: 0; pointer-events: none; }
.splash-content { text-align: center; }
.splash-icon {
  font-size: 36px; color: var(--accent);
  display: block; margin-bottom: 14px;
  animation: splashSpin 0.8s ease forwards;
}
@keyframes splashSpin {
  from { transform: rotate(-90deg) scale(0.5); opacity: 0; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}
.splash-brand {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.splash-tagline { font-size: 13px; color: var(--text-muted); margin-bottom: 36px; }
.splash-loader {
  width: 160px; height: 2px;
  background: var(--border); border-radius: 2px;
  margin: 0 auto 14px; overflow: hidden;
}
.splash-bar {
  height: 100%;
  background: var(--accent); border-radius: 2px;
  animation: splashLoad 3s ease forwards; width: 0%;
}
@keyframes splashLoad {
  0% { width: 0%; } 30% { width: 40%; }
  60% { width: 72%; } 85% { width: 88%; } 100% { width: 95%; }
}
.splash-status { font-size: 11px; color: var(--text-muted); }

/* ── Auth Screen ── */
.auth-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start; /* 👈 IMPORTANT (not center) */
  justify-content: center;
  background: var(--bg);
  z-index: 1000;

  overflow-y: auto;   /* 👈 ALLOW SCROLL */
  padding: 40px 0;    /* 👈 breathing space top/bottom */
}
.auth-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.18;
}
.auth-orb-1 { width: 500px; height: 500px; background: #2d6a4f; top: -150px; right: -100px; }
.auth-orb-2 { width: 300px; height: 300px; background: #74c69d; bottom: -80px; left: -60px; }
.auth-orb-3 { width: 200px; height: 200px; background: #b7e4c7; top: 40%; left: 20%; }

.auth-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  z-index: 1;

  margin: auto; /* 👈 keeps it centered nicely while scroll works */
}
.auth-brand {
  text-align: center; margin-bottom: 36px;
  animation: fadeUp 0.5s ease forwards;
}
.brand-icon { font-size: 28px; color: var(--accent); display: block; margin-bottom: 8px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 400;
  color: var(--text-primary);
}
.brand-tagline { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.auth-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: none;
  box-shadow: var(--shadow);
  animation: fadeUp 0.4s ease forwards;
    max-height: 90vh;       /* 👈 prevents overflow explosion */
  overflow-y: auto; 
}
.auth-form.active { display: block; }

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

.form-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  margin-bottom: 3px; color: var(--text-primary);
}
.form-subtitle { font-size: 12px; color: var(--text-secondary); margin-bottom: 22px; }

.input-group { margin-bottom: 14px; }
.input-group label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.input-group input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  color: var(--text-primary); font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.auth-error { font-size: 12px; color: #c0392b; margin-bottom: 10px; min-height: 16px; }

.auth-btn {
  width: 100%; padding: 11px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  position: relative; overflow: hidden;
  transition: background 0.2s, transform 0.1s; margin-top: 4px;
}
.auth-btn:hover { background: var(--accent-light); }
.auth-btn:active { transform: scale(0.98); }
.btn-shine {
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: shine 2.5s infinite;
}
@keyframes shine { 0% { left: -100%; } 50%, 100% { left: 150%; } }

.auth-switch {
  text-align: center; font-size: 12px; color: var(--text-secondary); margin-top: 18px;
}
.auth-switch span { color: var(--accent); cursor: pointer; font-weight: 600; }
.auth-switch span:hover { text-decoration: underline; }

/* ── App Layout ── */
.app-screen { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.hidden { display: none !important; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 14px 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand { display: flex; align-items: center; gap: 7px; }
.brand-icon-sm { color: var(--accent); font-size: 14px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 400; color: var(--text-primary);
}
.sidebar-close {
  color: var(--text-muted); font-size: 15px;
  padding: 3px 7px; border-radius: 6px;
  transition: color 0.2s, background 0.2s; display: none;
}
.sidebar-close:hover { color: var(--text-primary); background: var(--border); }

.new-chat-btn {
  display: flex; align-items: center; gap: 8px;
  margin: 10px;
  padding: 9px 13px;
  background: var(--accent-dim2);
  border: 1px solid rgba(45, 106, 79, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent); font-size: 13px; font-weight: 600;
  transition: background 0.2s;
}
.new-chat-btn:hover { background: rgba(45, 106, 79, 0.2); }
.new-chat-icon { font-size: 16px; line-height: 1; }

.sidebar-section-label {
  font-size: 10px; font-weight: 700;
  color: var(--text-muted); padding: 8px 14px 3px;
  text-transform: uppercase; letter-spacing: 0.1em;
}

.chat-history { flex: 1; overflow-y: auto; padding: 3px 6px; }
.chat-history::-webkit-scrollbar { width: 3px; }
.chat-history::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

.history-item {
  padding: 9px 10px; border-radius: 8px;
  cursor: pointer; font-size: 12.5px; color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 7px;
}
.history-item:hover { background: var(--border); color: var(--text-primary); }
.history-item.active {
  background: var(--bg-card); color: var(--text-primary);
  border-left: 2px solid var(--accent); padding-left: 8px;
}
.history-icon { font-size: 11px; flex-shrink: 0; }

.sidebar-footer { border-top: 1px solid var(--border); padding: 10px; }
.profile-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.15s;
}
.profile-btn:hover { background: var(--border); }
.profile-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--text-primary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.profile-sub { display: block; font-size: 10.5px; color: var(--text-muted); }
.profile-arrow { color: var(--text-muted); font-size: 16px; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.25); z-index: 40;
}

/* ── Main Content ── */
.main-content {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; background: var(--bg);
  min-height: 0;
}
/* ── Topbar ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(247,246,243,0.9);
  backdrop-filter: blur(10px);
  position: relative; z-index: 10;
}
.menu-btn {
  display: flex; flex-direction: column; gap: 4px;
  padding: 5px; border-radius: 7px; transition: background 0.2s;
}
.menu-btn:hover { background: var(--border); }
.menu-btn span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-secondary); border-radius: 2px;
}
.topbar-brand {
  font-family: var(--font-display);
  font-size: 16px; color: var(--text-primary); font-weight: 400;
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  cursor: pointer; transition: opacity 0.2s;
}
.topbar-avatar:hover { opacity: 0.85; }

/* ── Welcome Screen ── */
.welcome-screen {
  flex: 1; display: flex;
  align-items: flex-start; justify-content: center;
  padding: 40px 20px 20px;
  overflow-y: auto;
}
.welcome-content {
  text-align: center; max-width: 520px; width: 100%;
  animation: fadeUp 0.5s ease forwards;
}
.welcome-greeting { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.welcome-name {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  color: var(--text-primary); margin-bottom: 8px; line-height: 1.25;
}
.welcome-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 28px; }

/* Tips Box */
.tips-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 20px; text-align: left;
  box-shadow: var(--shadow-sm);
}
.tips-header {
  font-size: 11px; font-weight: 700; color: var(--accent);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em;
}
.tips-list { display: flex; flex-direction: column; gap: 6px; }
.tip-item { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.tip-highlight {
  background: var(--tag-bg); color: var(--accent);
  padding: 1px 5px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
}

/* Starters */
.chat-starters {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 16px;
}
.starter-btn {
  padding: 12px 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 12.5px; text-align: left;
  transition: all 0.2s; line-height: 1.4;
}
.starter-btn:hover {
  border-color: var(--accent); color: var(--text-primary);
  background: var(--accent-dim); transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.feedback-btn {
  padding: 8px 18px;
  border: 1px solid var(--border-mid);
  border-radius: 20px; color: var(--text-muted);
  font-size: 12px; transition: all 0.2s;
}
.feedback-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ── Chat Messages ── */
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 20px 16px 0;
  display: none; flex-direction: column; gap: 0;
  scroll-behavior: smooth;
}
.chat-messages.active { display: flex; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

.message-wrapper {
  display: flex; flex-direction: column;
  animation: fadeUp 0.25s ease forwards;
  padding: 6px 0;
}
.message-wrapper.user { align-items: flex-end; }
.message-wrapper.assistant { align-items: flex-start; }

.message-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px; line-height: 1.6;
}
.message-wrapper.user .message-bubble {
  background: var(--accent);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  font-size: 13.5px;
}
.message-wrapper.assistant .message-bubble {
  background: transparent; padding: 6px 0;
  max-width: 95%; font-size: 13.5px; color: var(--text-primary);
}

/* ── Thinking Bar ── */
.thinking-bar { padding: 0 16px 10px; display: none; }
.thinking-bar.active { display: block; }
.thinking-content {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-sm);
}
.thinking-dots { display: flex; gap: 3px; align-items: center; }
.thinking-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: thinkPulse 1.2s infinite ease-in-out;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes thinkPulse {
  0%, 60%, 100% { transform: scale(0.6); opacity: 0.35; }
  30% { transform: scale(1); opacity: 1; }
}
.thinking-text { font-size: 12px; color: var(--text-secondary); }

/* ── Product Cards ── */
.products-grid {
  display: flex; flex-direction: column;
  gap: 10px; margin-top: 10px; width: 100%;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: box-shadow 0.2s, border-color 0.2s;
  animation: slideIn 0.35s ease forwards;
  opacity: 0; position: relative;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Product layout with image */
.product-top {
  display: flex; gap: 12px; margin-bottom: 10px;
}
.product-image-wrap {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.product-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-image-placeholder {
  font-size: 22px; color: var(--text-muted);
}
.product-info { flex: 1; min-width: 0; }

.product-header-row {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 4px;
}
.product-platform {
  padding: 2px 7px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.platform-amazon { background: rgba(255,153,0,0.12); color: #c47d00; }
.platform-myntra { background: rgba(255, 63, 108, 0.1); color: #ff3f6c; }
.platform-ajio { background: rgba(234, 28, 37, 0.1); color: #ea1c25; }
.platform-nykaa { background: rgba(255,80,80,0.1); color: #d94040; }
.platform-flipkart { background: rgba(40,116,240,0.1); color: #1a5fd4; }
.platform-purplle { background: rgba(140,82,255,0.1); color: #7340e0; }
.platform-other { background: var(--border); color: var(--text-secondary); }

.product-rank {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(45,106,79,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--accent);
}

.product-name {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.product-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.product-price {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 400; color: var(--text-primary);
}
.product-price.unavailable {
  font-family: var(--font-body); font-size: 12px;
  color: var(--text-muted); font-weight: 400;
}
.product-rating {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; color: var(--text-secondary);
}
.star { color: #e6a817; font-size: 11px; }
.product-reviews { font-size: 11px; color: var(--text-muted); }

.out-of-budget {
  font-size: 10px; color: #c0392b;
  background: rgba(192,57,43,0.08); padding: 2px 7px;
  border-radius: 20px;
}

/* Reason block */
.reason-label {
  font-size: 10px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.product-reason {
  font-size: 12.5px; color: #2d5a45; line-height: 1.6;
  padding: 10px 12px;
  background: var(--reason-bg);
  border: 1px solid var(--reason-border);
  border-radius: 8px; margin-bottom: 11px;
}

.product-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.product-link:hover { background: var(--accent-light); transform: scale(1.01); }
.product-link svg { width: 11px; height: 11px; }

/* ── Input Area ── */
.input-area {
  padding: 10px 16px 16px;
  background: linear-gradient(to top, var(--bg) 75%, transparent);
  position: relative; z-index: 10;
  flex-shrink: 0;
}
.input-container {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-mid);
  border-radius: 18px; padding: 10px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.input-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
#messageInput {
  flex: 1; background: transparent; color: var(--text-primary);
  font-size: 13.5px; line-height: 1.5; resize: none;
  max-height: 140px; overflow-y: auto; min-height: 20px;
}
#messageInput::placeholder { color: var(--text-muted); }
.send-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s, transform 0.1s;
}
.send-btn:hover { background: var(--accent-light); }
.send-btn:active { transform: scale(0.9); }
.send-btn:disabled { background: var(--border-mid); color: var(--text-muted); cursor: not-allowed; }
.input-disclaimer { font-size: 10.5px; color: var(--text-muted); text-align: center; margin-top: 6px; }

/* ── Profile Panel ── */
.profile-panel {
  position: fixed; top: 0; right: -360px;
  width: 340px; height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 200;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.profile-panel.open { right: 0; }
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-card);
}
.panel-header h3 { font-family: var(--font-display); font-size: 17px; font-weight: 400; }
.panel-header button {
  color: var(--text-muted); font-size: 16px;
  padding: 3px 7px; border-radius: 6px; transition: all 0.2s;
}
.panel-header button:hover { color: var(--text-primary); background: var(--border); }
.panel-content { padding: 20px 18px; flex: 1; }
.profile-avatar-lg {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
  margin: 0 auto 10px;
}
.panel-name {
  text-align: center; font-family: var(--font-display);
  font-size: 18px; font-weight: 400; margin-bottom: 3px;
}
.panel-email { text-align: center; font-size: 12px; color: var(--text-secondary); margin-bottom: 24px; }
.panel-section { margin-bottom: 20px; }
.panel-section h4 {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.panel-field { margin-bottom: 12px; }
.panel-field label { display: block; font-size: 11px; color: var(--text-secondary); margin-bottom: 5px; font-weight: 600; }
.panel-field input {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 11px; color: var(--text-primary); font-size: 13px;
  transition: border-color 0.2s;
}
.panel-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }
.budget-inputs { display: flex; align-items: center; gap: 7px; }
.budget-inputs input { flex: 1; }
.budget-inputs span { color: var(--text-muted); font-size: 12px; }

.save-profile-btn {
  width: 100%; padding: 10px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  margin-bottom: 8px; transition: background 0.2s;
}
.save-profile-btn:hover { background: var(--accent-light); }
.logout-btn {
  width: 100%; padding: 10px;
  background: transparent; border: 1px solid var(--border-mid);
  color: var(--text-secondary); border-radius: var(--radius-sm);
  font-size: 13px; transition: all 0.2s;
}
.logout-btn:hover { border-color: #c0392b; color: #c0392b; }

.panel-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.2); z-index: 190;
}

/* ── Feedback Modal ── */
.feedback-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%; max-width: 420px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); z-index: 300;
  opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow);
}
.feedback-modal.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }
.feedback-content { padding: 22px; }
.feedback-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.feedback-header h3 { font-family: var(--font-display); font-size: 17px; font-weight: 400; }
.feedback-header button { color: var(--text-muted); font-size: 16px; padding: 3px 7px; border-radius: 6px; transition: all 0.2s; }
.feedback-header button:hover { color: var(--text-primary); background: var(--border); }
.feedback-desc { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 18px; }
.feedback-note { font-size: 10.5px; color: var(--text-muted); text-align: center; margin-top: 10px; }

.input-group select,
.input-group textarea {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 11px; color: var(--text-primary); font-size: 13px;
  transition: border-color 0.2s; font-family: var(--font-body);
}
.input-group select { cursor: pointer; appearance: none; }
.input-group textarea { resize: vertical; min-height: 90px; }
.input-group select:focus,
.input-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); outline: none; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text-primary); color: var(--bg);
  padding: 9px 18px; border-radius: 20px;
  font-size: 12.5px; opacity: 0;
  transition: all 0.3s; z-index: 1000;
  white-space: nowrap; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive Mobile ── */
@media (max-width: 768px) {
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    transform: translateX(-100%); z-index: 100; width: 260px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.12); }
  .sidebar-close { display: block; }
  .sidebar-overlay.active { display: block; }

  .welcome-name { font-size: 22px; }
  .welcome-greeting { font-size: 12px; }
  .welcome-sub { font-size: 12px; margin-bottom: 20px; }
  .welcome-screen { padding: 24px 14px 16px; align-items: flex-start; }

  .chat-starters { grid-template-columns: 1fr; gap: 6px; }
  .starter-btn { padding: 10px 12px; font-size: 12px; }

  .chat-messages { padding: 14px 12px 0; }
  .message-bubble { max-width: 88%; font-size: 13px; }
  .message-wrapper.assistant .message-bubble { max-width: 100%; }

  .product-card { padding: 12px; }
  .product-image-wrap { width: 60px; height: 60px; }
  .product-name { font-size: 12.5px; }
  .product-price { font-size: 16px; }
  .product-reason { font-size: 12px; padding: 9px 10px; }
  .product-link { padding: 7px 12px; font-size: 12px; width: 100%; justify-content: center; }

  .input-area { padding: 8px 12px 14px; }
  .input-container { padding: 9px 11px; }
  #messageInput { font-size: 13px; }

  .topbar { padding: 10px 12px; }
  .topbar-brand { font-size: 15px; }

  .profile-panel { width: 100%; right: -100%; }

  .toast { bottom: 72px; font-size: 12px; }
}

@media (max-width: 380px) {
  .welcome-name { font-size: 19px; }
  .brand-name { font-size: 26px; }
  .auth-form { padding: 20px 16px; }
}

@media (min-width: 769px) {
  .menu-btn { display: none; }
  .products-grid { max-width: 640px; }
  .welcome-name { font-size: 30px; }
  .chat-messages { padding: 24px 24px 0; }
}

@media (min-width: 1100px) {
  .chat-messages { padding: 28px 48px 0; }
  .input-area { padding: 10px 48px 20px; }
}

.app-screen {
    height: 100dvh;
  }

  .input-area {
    position: sticky;
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }

  /* ── Onboarding Screen ── */
.onboarding-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 20px;
  overflow-y: auto;
}
.onboarding-content {
  max-width: 540px; width: 100%;
  text-align: center;
  animation: fadeUp 0.5s ease forwards;
}
.onboarding-brand {
  font-family: var(--font-display);
  font-size: 16px; color: var(--accent);
  margin-bottom: 24px; font-weight: 400;
}
.onboarding-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  color: var(--text-primary); margin-bottom: 8px;
}
.onboarding-sub {
  font-size: 13px; color: var(--text-secondary); margin-bottom: 32px;
}
.onboarding-grid {
  display: flex; flex-wrap: wrap;
  gap: 10px; justify-content: center;
  margin-bottom: 32px;
}
.onboarding-chip {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 13px; color: var(--text-secondary);
  transition: all 0.2s; cursor: pointer;
}
.onboarding-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.onboarding-chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.onboarding-footer {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.onboarding-count {
  font-size: 12px; color: var(--text-muted);
}
.onboarding-btn {
  padding: 12px 40px;
  background: var(--accent); color: #fff;
  border-radius: 24px; font-size: 14px; font-weight: 600;
  transition: background 0.2s, opacity 0.2s;
}
.onboarding-btn:disabled {
  opacity: 0.4; cursor: not-allowed;
}
.onboarding-btn:not(:disabled):hover { background: var(--accent-light); }
.onboarding-skip {
  font-size: 12px; color: var(--text-muted);
  text-decoration: underline; cursor: pointer;
  background: none;
}
.onboarding-skip:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
  .onboarding-title { font-size: 22px; }
  .onboarding-chip { padding: 9px 13px; font-size: 12px; }
}

/* ── Tools Section on Welcome ── */
.tools-section {
  margin-bottom: 20px;
  text-align: left;
}
.tools-label {
  font-size: 11px; font-weight: 700;
  color: var(--text-muted); margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  text-align: center;
}
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.tool-card:hover::before { opacity: 1; }
.tool-icon { font-size: 22px; line-height: 1; }
.tool-info { flex: 1; }
.tool-name {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 2px;
}
.tool-desc {
  font-size: 11px; color: var(--text-secondary);
  line-height: 1.4;
}
.tool-count {
  font-size: 10px; color: var(--accent);
  font-weight: 600; margin-top: 4px;
}

/* ── Tool Pages ── */
.tool-page {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  z-index: 60;
  animation: fadeUp 0.25s ease forwards;
}
.tool-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.tool-back-btn {
  font-size: 13px; color: var(--accent);
  font-weight: 600; padding: 4px 8px;
  border-radius: 6px; transition: background 0.2s;
  white-space: nowrap;
}
.tool-back-btn:hover { background: var(--accent-dim); }
.tool-page-title {
  flex: 1; font-family: var(--font-display);
  font-size: 16px; font-weight: 400;
}
.tool-page-count {
  font-size: 11px; color: var(--accent);
  font-weight: 600; white-space: nowrap;
}
.tool-page-body {
  flex: 1; display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.tool-welcome-msg {
  padding: 16px 16px 0;
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.6;
}
.tool-page-messages {
  flex: 1; overflow-y: auto;
  padding: 12px 16px 0;
  display: flex; flex-direction: column;
  gap: 0; scroll-behavior: smooth;
}
.tool-page-messages::-webkit-scrollbar { width: 3px; }
.tool-page-messages::-webkit-scrollbar-thumb { background: var(--border-mid); }

.tool-thinking {
  padding: 8px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-secondary);
}
.tool-thinking.hidden { display: none; }

.tool-input-area {
  padding: 10px 16px 16px;
  background: linear-gradient(to top, var(--bg) 75%, transparent);
  flex-shrink: 0;
}

/* Inventory items display */
.inventory-items {
  padding: 12px 16px 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.inventory-tag {
  padding: 4px 10px;
  background: var(--tag-bg);
  border: 1px solid var(--reason-border);
  border-radius: 20px;
  font-size: 11px; color: var(--accent);
  font-weight: 500;
}

/* Thumbs feedback */
.response-feedback {
  display: flex; align-items: center;
  gap: 8px; margin-top: 8px;
  padding: 0 4px;
}
.feedback-label {
  font-size: 11px; color: var(--text-muted);
}
.thumb-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all 0.2s; cursor: pointer;
  background: var(--bg-card);
}
.thumb-btn:hover { border-color: var(--accent); background: var(--accent-dim); }
.thumb-btn.active-up { background: rgba(45,106,79,0.15); border-color: var(--accent); }
.thumb-btn.active-down { background: rgba(192,57,43,0.1); border-color: #c0392b; }

@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tool-card { padding: 10px 12px; }
  .tool-icon { font-size: 20px; }
  .tool-name { font-size: 12px; }
  .tool-desc { font-size: 10.5px; }
}
/* ── Gift Finder Form ── */
.gift-form-screen {
  flex: 1; overflow-y: auto;
  padding: 16px 16px 24px;
}
.gift-form-scroll { max-width: 480px; margin: 0 auto; }
.gift-form-sub {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 20px; line-height: 1.5;
}
.gift-field {
  margin-bottom: 16px;
}
.gift-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text-muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.gift-optional {
  font-weight: 400; text-transform: none;
  color: var(--text-muted); font-size: 10px;
  letter-spacing: 0;
}
.gift-field select,
.gift-field input[type="text"],
.gift-field input[type="number"],
.gift-field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 13px; font-family: var(--font-body);
  transition: border-color 0.2s;
  appearance: none;
}
.gift-field select:focus,
.gift-field input:focus,
.gift-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
  outline: none;
}
.gift-field textarea { resize: none; }
.gift-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.gift-chip {
  padding: 7px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 12.5px; color: var(--text-secondary);
  transition: all 0.2s; cursor: pointer;
  font-family: var(--font-body);
}
.gift-chip:hover { border-color: var(--accent); color: var(--accent); }
.gift-chip.selected {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}
.gift-budget-row {
  display: flex; align-items: center; gap: 8px;
}
.gift-budget-row input { flex: 1; }
.gift-budget-row span { color: var(--text-muted); font-size: 12px; }

.gift-submit-btn {
  width: 100%; padding: 13px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
  font-family: var(--font-body);
}
.gift-submit-btn:hover { background: var(--accent-light); }
.gift-submit-btn:active { transform: scale(0.98); }

/* Gift Chat Screen */
.gift-chat-screen {
  flex: 1; display: flex;
  flex-direction: column; overflow: hidden;
}
.gift-summary {
  padding: 10px 16px;
  background: var(--tag-bg);
  border-bottom: 1px solid var(--reason-border);
  font-size: 12px; color: var(--accent);
  font-weight: 500; flex-shrink: 0;
}
.gift-reset-btn {
  font-size: 11px; color: var(--text-muted);
  text-decoration: underline; margin-top: 6px;
  text-align: center; width: 100%;
  font-family: var(--font-body);
}
.gift-reset-btn:hover { color: var(--accent); }

/* ── Add these to the bottom of your style.css ── */


.splash-brand { content: 'Osged'; }

/* Google button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  margin-bottom: 4px;
}
.google-btn:hover {
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--text-muted, #9ca3af);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, #e5e7eb);
}

/* Signup grid — 2 columns on wide screens */
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
@media (max-width: 480px) {
  .signup-grid { grid-template-columns: 1fr; }
}

/* Checkbox rows */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary, #6b7280);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary, #2d6a4f);
}
.checkbox-label a {
  color: var(--primary, #2d6a4f);
  text-decoration: underline;
}
.whatsapp-row { margin-top: -4px; }
.terms-row { margin-top: 4px; }

/* OTP email display */
.otp-email-display {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary, #2d6a4f);
  margin: 4px 0 24px;
  text-align: center;
  word-break: break-all;
}

/* OTP boxes */
.otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.otp-box {
  width: 52px;
  height: 58px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--text-primary, #1a1a1a);
  outline: none;
  transition: border-color 0.15s;
}
.otp-box:focus {
  border-color: var(--primary, #2d6a4f);
}
@media (max-width: 380px) {
  .otp-box { width: 44px; height: 52px; font-size: 20px; }
  .otp-boxes { gap: 7px; }
}

/* OTP resend area */
.otp-resend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted, #9ca3af);
}
.resend-btn {
  background: none;
  border: none;
  color: var(--primary, #2d6a4f);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.resend-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* OTP back button */
.otp-back {
  font-size: 13px;
  color: var(--primary, #2d6a4f);
  cursor: pointer;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.otp-back:hover { text-decoration: underline; }

/* Method mismatch popup */
.method-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.method-popup.hidden { display: none; }
.method-popup-box {
  background: var(--surface, #fff);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.method-popup-icon { font-size: 40px; margin-bottom: 12px; }
.method-popup-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary, #1a1a1a);
}
.method-popup-box p {
  font-size: 14px;
  color: var(--text-secondary, #6b7280);
  line-height: 1.5;
}

/* Hidden utility */
.hidden { display: none !important; }
/* 🔥 Allow full page scroll */
.auth-screen {
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
}

/* 🔥 Make container flexible */
.auth-container {
  max-height: none;
  height: auto;
  padding: 40px 16px;
}

/* 🔥 Signup form scroll fix */
.auth-form {
  max-height: none;
  overflow: visible;
}

/* 🔥 Ensure form spacing at bottom */
#signupForm {
  padding-bottom: 40px;
}
.auth-container {
  display: flex;
  align-items: flex-start; /* instead of center */
  justify-content: center;
}
/* ════════════════════════════════════════════
   COMPARE TOOL STYLES — add to style.css
   ════════════════════════════════════════════ */

/* URL rows */
.compare-urls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.compare-url-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.compare-url-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--bg-secondary, #f4f4f4);
    color: var(--text-secondary);
    white-space: nowrap;
    margin-top: 8px;
    min-width: 72px;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    border: 1px solid var(--border-color, rgba(0,0,0,0.08));
}

.compare-url-status {
    font-size: 11px;
    margin-top: 4px;
    min-height: 16px;
}

.compare-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    margin-top: 4px;
    border-radius: 6px;
    transition: background 0.15s;
    flex-shrink: 0;
}
.compare-remove-btn:hover { background: var(--bg-secondary); }

.compare-add-btn {
    width: 100%;
    padding: 10px;
    background: none;
    border: 1.5px dashed var(--border-color, rgba(0,0,0,0.15));
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 4px;
}
.compare-add-btn:hover {
    border-color: var(--accent, #6c63ff);
    background: var(--bg-secondary);
}

/* Winner banner */
.compare-winner-banner {
    background: linear-gradient(135deg, #6c63ff15, #a78bfa15);
    border: 1.5px solid #6c63ff30;
    border-radius: 16px;
    padding: 20px;
    margin: 16px 16px 8px;
    text-align: center;
}
.compare-winner-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c63ff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.compare-winner-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}
.compare-winner-reason {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.compare-inventory-note {
    font-size: 11px;
    color: #22c55e;
    margin-top: 8px;
}

/* Product cards */
.compare-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 16px;
}

.compare-card {
    background: var(--bg-card, #fff);
    border: 1.5px solid var(--border-color, rgba(0,0,0,0.08));
    border-radius: 16px;
    padding: 16px;
    position: relative;
}
.compare-card-winner {
    border-color: #6c63ff50;
    background: linear-gradient(135deg, #6c63ff08, transparent);
}

.compare-rank-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: inline-block;
    margin-bottom: 12px;
}
.winner-badge {
    background: #6c63ff20;
    color: #6c63ff;
}

.compare-card-top {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
.compare-product-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--bg-secondary);
    flex-shrink: 0;
}
.compare-card-info { flex: 1; min-width: 0; }
.compare-platform {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}
.compare-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.compare-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}
.compare-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.compare-rating { color: #f59e0b; font-weight: 600; }
.compare-reviews { color: var(--text-muted); }

/* Scores */
.compare-scores-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.compare-score-box {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.compare-score-val {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}
.compare-score-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Verdict */
.compare-verdict {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

/* Parameters */
.compare-params {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.compare-param-row {}
.compare-param-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.compare-param-label { font-size: 12px; font-weight: 500; color: var(--text-primary); }
.compare-param-score { font-size: 12px; font-weight: 600; }
.compare-param-bar {
    height: 4px;
    background: var(--border-color, rgba(0,0,0,0.08));
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}
.compare-param-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}
.compare-param-comment {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Pros & Cons */
.compare-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.compare-pros-title { font-size: 11px; font-weight: 600; color: #22c55e; margin-bottom: 6px; }
.compare-cons-title { font-size: 11px; font-weight: 600; color: #ef4444; margin-bottom: 6px; }
.compare-pro-item, .compare-con-item {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 4px 0;
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.05));
}

.compare-best-for {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 8px;
}

/* Thinking state */
#compareThinking .thinking-dots {
    display: flex;
    gap: 6px;
}

/* ════════════════════════════════════════════════════════
   OSGED CSS FIXES — add/replace in style.css
   ════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────
   FIX 1: Tool page scroll — ADD these rules
   (find .tool-page-body in your style.css and
    add overflow-y + height to it)
   ──────────────────────────────────────────── */

.tool-page {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100;
    background: var(--bg-primary, #fff);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* parent must NOT scroll */
}

.tool-page-header {
    flex-shrink: 0; /* header stays fixed at top */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
    background: var(--bg-primary, #fff);
    z-index: 2;
}

.tool-page-body {
    flex: 1;
    overflow-y: auto;              /* THIS is the scroll fix */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    position: relative;
}

/* Compare result screen also needs scroll */
#compareResultScreen {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Gift form scroll */
.gift-form-screen {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.gift-form-scroll {
    padding: 16px 16px 120px; /* bottom padding for input area */
}

/* Tool page messages scroll */
.tool-page-messages {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 12px 16px;
}

/* Tool input area — pin to bottom */
.tool-input-area {
    flex-shrink: 0;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.08));
    background: var(--bg-primary, #fff);
    position: sticky;
    bottom: 0;
    z-index: 2;
}

/* ────────────────────────────────────────────
   FIX 2: Tool History Panel styles — ADD these
   ──────────────────────────────────────────── */

/* History toggle button — sits in tool page header */
.tool-history-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary, #f4f4f4);
    border: 1px solid var(--border-color, rgba(0,0,0,0.08));
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.tool-history-btn:hover { background: var(--bg-card, #ebebeb); }

/* History slide-in panel */
.tool-history-panel {
    position: fixed;
    top: 0; right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-primary, #fff);
    border-left: 1px solid var(--border-color, rgba(0,0,0,0.08));
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}
.tool-history-panel.open { right: 0; }

.tool-history-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
    flex-shrink: 0;
}
.tool-history-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.tool-history-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
}
.tool-history-close-btn:hover { background: var(--bg-secondary); }

.tool-history-new-btn {
    margin: 12px;
    padding: 10px;
    background: var(--accent, #6c63ff);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.tool-history-new-btn:hover { opacity: 0.9; }

.tool-history-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 8px 16px;
}

.tool-history-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.tool-history-item {
    position: relative;
    padding: 10px 36px 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: background 0.15s;
    border: 1px solid transparent;
}
.tool-history-item:hover { background: var(--bg-secondary, #f4f4f4); }
.tool-history-item.active {
    background: var(--bg-secondary, #f4f4f4);
    border-color: var(--border-color, rgba(0,0,0,0.08));
}

.tool-history-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tool-history-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}
.tool-history-item-count {
    background: var(--bg-secondary, #eee);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}
.tool-history-delete {
    position: absolute;
    top: 8px; right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}
.tool-history-item:hover .tool-history-delete { opacity: 1; }
.tool-history-delete:hover { background: var(--bg-danger, #fee2e2); color: var(--text-danger); }

/* Overlay when history panel is open */
.tool-history-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 199;
}
.tool-history-overlay.active { display: block; }

/* ────────────────────────────────────────────
   FIX 3: Compare tool specific scroll
   ──────────────────────────────────────────── */

#toolCompare .tool-page-body {
    display: flex;
    flex-direction: column;
}

#compareFormScreen {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#compareResultScreen {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-cards {
    padding-bottom: 32px; /* breathing room at bottom */
}

/* ────────────────────────────────────────────
   FIX 4: Care/Inventory tool layout fix
   (make them flex column so messages scroll
    and input stays pinned to bottom)
   ──────────────────────────────────────────── */

#toolCare .tool-page-body,
#toolInventory .tool-page-body {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* body itself doesn't scroll */
}

#toolCare .tool-page-messages,
#toolInventory .tool-page-messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
    min-height: 0; /* flex fix for overflow */
}

.tool-welcome-msg {
    flex-shrink: 0;
    padding: 16px;
    background: var(--bg-secondary, #f9f9f9);
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.inventory-items {
    flex-shrink: 0;
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 120px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
}
/* ═══════════════════════════════════════════════════════
   ADD ALL OF THIS TO style.css
   ═══════════════════════════════════════════════════════ */

/* ── Pull-to-refresh indicator ── */
#pullIndicator {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 300;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    pointer-events: none;
}

/* ── Overscroll fix — prevents page exit on pull ── */
body { overscroll-behavior-y: contain; }
.chat-messages { overscroll-behavior-y: contain; }
.welcome-screen { overscroll-behavior-y: contain; }

/* ── Smart Nudge Bar ── */
.nudge-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s;
}
.nudge-bar.nudge-visible { opacity: 1; transform: translateY(0); }
.nudge-content {
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
}
.nudge-icon { font-size: 14px; flex-shrink: 0; }
.nudge-text {
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nudge-btn {
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    background: var(--accent, #6c63ff);
    color: #fff;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.nudge-close {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 12px; padding: 4px;
    flex-shrink: 0;
}

/* ── Guide Prompts ── */
.guide-prompts { margin-bottom: 20px; }
.guide-prompts-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.guide-prompts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.guide-prompt-btn {
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
    min-height: 44px;
}
.guide-prompt-btn:hover {
    border-color: var(--accent, #6c63ff);
    color: var(--text-primary);
    background: var(--bg-secondary);
}
.skeleton-btn {
    background: var(--bg-secondary);
    border-color: transparent;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ── Match Meter ── */
.match-meter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 4px;
}
.match-meter-bar {
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.match-meter-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}
.match-meter-label {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Verdict Card ── */
.verdict-card {
    margin-top: 12px;
    border: 1.5px solid rgba(108, 99, 255, 0.25);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}
.verdict-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(108, 99, 255, 0.06);
    border-bottom: 1px solid rgba(108, 99, 255, 0.12);
}
.verdict-icon { font-size: 12px; color: #6c63ff; }
.verdict-title {
    font-size: 11px;
    font-weight: 600;
    color: #6c63ff;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.verdict-picks {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.verdict-pick {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
}
.verdict-pick:last-child { border-bottom: none; }
.verdict-pick-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}
.verdict-pick-best .verdict-pick-label { color: #22c55e; }
.verdict-pick-balanced .verdict-pick-label { color: #f59e0b; }
.verdict-pick-budget .verdict-pick-label { color: #3b82f6; }
.verdict-pick-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
}
.verdict-pick-reason {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.verdict-avoid {
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.04);
    border-top: 1px solid rgba(239, 68, 68, 0.1);
}
.verdict-avoid-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}
.verdict-avoid-item:last-child { margin-bottom: 0; }
.verdict-avoid-label {
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
}
.verdict-avoid-reason {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ── Profile Panel — updated fields ── */
.panel-readonly {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 16px;
}
.panel-readonly h4 { margin: 0 0 10px; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.panel-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.panel-info-row:last-child { border: none; }
.panel-info-key { color: var(--text-secondary); }
.panel-info-val { color: var(--text-primary); font-weight: 500; }

.profile-save-msg {
    font-size: 12px;
    color: #22c55e;
    text-align: center;
    padding: 6px;
    margin-bottom: 8px;
}

/* ── Reason label tweak — more human ── */
.reason-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
    margin-bottom: 3px;
}
.product-reason {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}
/* Purchase nudge */
.purchase-nudge-bar {
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
}
.purchase-nudge-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.purchase-yes-btn {
    font-size: 11px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    background: #22c55e20;
    color: #22c55e;
    border: 1px solid #22c55e40;
    cursor: pointer;
    white-space: nowrap;
}
.purchase-no-btn {
    font-size: 11px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
}
 
/* Multi-image product card support */
.product-images-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.product-images-row::-webkit-scrollbar { display: none; }
.product-image-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--bg-secondary);
    flex-shrink: 0;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: border-color 0.15s;
}
.product-image-thumb.active { border-color: var(--accent, #6c63ff); }
.product-image-thumb:hover { border-color: var(--border); }
 
/* Tool message products — slightly compact */
.tool-page-messages .products-grid {
    grid-template-columns: 1fr;
}
.tool-page-messages .product-card {
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT SECTIONS — add to style.css
   New classes only — nothing existing is overwritten
   ═══════════════════════════════════════════════════════ */

/* ── Sections wrapper ── */
.product-sections { margin-top: 12px; display: flex; flex-direction: column; gap: 14px; }
 
/* ── Section ── */
.ps-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ps-section-header { display: flex; align-items: center; gap: 10px; padding: 11px 14px 9px; border-bottom: 1px solid var(--border); }
.ps-section-emoji { font-size: 15px; flex-shrink: 0; }
.ps-section-titles { display: flex; flex-direction: column; gap: 1px; }
.ps-section-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.ps-section-sub { font-size: 11px; color: var(--text-muted); }
 
.ps-scroll-container { overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 12px 14px 14px; }
.ps-scroll-container::-webkit-scrollbar { display: none; }
.ps-cards-row { display: flex; gap: 10px; width: max-content; }
 
/* ── Card ── */
.section-card {
    width: 162px; flex-shrink: 0;
    background: var(--bg-secondary, #f9f9f9);
    border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.section-card:hover { border-color: var(--accent, #6c63ff); box-shadow: 0 2px 12px rgba(108,99,255,0.1); }
 
/* ── Image — real anchor link ── */
.sc-image-link { display: block; text-decoration: none; }
.sc-image-wrap {
    position: relative; width: 100%; height: 145px;
    background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.sc-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.section-card:hover .sc-image-wrap img { transform: scale(1.03); }
.sc-img-fallback { font-size: 28px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
 
.sc-platform-badge {
    position: absolute; top: 6px; left: 6px;
    font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.04em;
    background: rgba(255,255,255,0.92); color: #333; z-index: 1;
}
.sc-search-tag {
    position: absolute; top: 6px; right: 6px;
    font-size: 9px; font-weight: 600; padding: 2px 5px; border-radius: 4px;
    background: rgba(0,0,0,0.5); color: #fff;
}
 
/* Platform badge colors */
.platform-amazon { background: #FF9900!important; color: #fff!important; }
.platform-flipkart { background: #2874F0!important; color: #fff!important; }
.platform-myntra { background: #FF3F6C!important; color: #fff!important; }
.platform-nykaa { background: #FC2779!important; color: #fff!important; }
.platform-ajio { background: #e63946!important; color: #fff!important; }
.platform-meesho { background: #9400D3!important; color: #fff!important; }
 
/* ── Body ── */
.sc-body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
 
/* Product name — real link */
.sc-name-link {
    font-size: 11.5px; font-weight: 600; color: var(--text-primary);
    text-decoration: none; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-name-link:hover { color: var(--accent, #6c63ff); }
 
.sc-meta-row { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.sc-price { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.sc-rating { font-size: 10px; color: #f59e0b; font-weight: 600; }
 
/* ── Reason with read more ── */
.sc-reason-wrap { position: relative; }
.sc-reason {
    font-size: 11px; color: var(--text-secondary);
    line-height: 1.45; flex: 1;
}
.sc-reason-open { /* full text shown */ }
.sc-ellipsis { color: var(--text-muted); }
.sc-rm-btn {
    background: none; border: none; padding: 0;
    font-size: 10.5px; font-weight: 600;
    color: var(--accent, #6c63ff); cursor: pointer;
    display: inline; line-height: inherit;
}
.sc-rm-btn:hover { text-decoration: underline; }
 
/* ── View button — real anchor tag ── */
.sc-view-btn {
    display: flex; align-items: center; gap: 4px; margin-top: 8px;
    font-size: 11px; font-weight: 600;
    color: #fff; text-decoration: none;
    background: var(--accent, #6c63ff);
    padding: 6px 10px; border-radius: 6px;
    transition: opacity 0.15s;
    width: fit-content;
}
.sc-view-btn:hover { opacity: 0.88; }
.sc-view-btn svg { flex-shrink: 0; }
 
/* ── Verdict ── */
.ps-verdict { background: var(--bg-card); border: 1.5px solid rgba(108,99,255,0.25); border-radius: 14px; overflow: hidden; }
.ps-verdict-header { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(108,99,255,0.06); border-bottom: 1px solid rgba(108,99,255,0.12); }
.ps-verdict-icon { font-size: 12px; color: #6c63ff; }
.ps-verdict-title { font-size: 11px; font-weight: 700; color: #6c63ff; text-transform: uppercase; letter-spacing: 0.07em; }
.ps-verdict-winner { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.ps-verdict-winner-label { font-size: 10px; font-weight: 700; color: #22c55e; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 3px; }
.ps-verdict-winner-name { font-size: 13px; font-weight: 600; color: var(--text-primary); display: block; margin-bottom: 5px; }
.ps-verdict-winner-reason { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.ps-verdict-avoid { padding: 9px 14px; background: rgba(239,68,68,0.04); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ps-verdict-avoid-label { font-size: 10px; font-weight: 700; color: #ef4444; text-transform: uppercase; flex-shrink: 0; }
.ps-verdict-avoid-text { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
 
/* ── Utility ── */
.hidden { display: none !important; }
 
@media (max-width: 380px) {
    .section-card { width: 148px; }
    .sc-image-wrap { height: 128px; }
}