@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #131920;
  --surface: #1b232d;
  --surface-raised: #212b37;
  --border: #2c3746;
  --text: #e8ecf1;
  --text-dim: #8d9bab;
  --hot: #f2994a;
  --hot-dim: #6b4a2e;
  --cold: #4ea8de;
  --cold-dim: #2e4a5c;
  --brand: #e3b34a;
  --brand-dim: #4a3a17;
  --radius: 3px;
}

[data-theme="light"] {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-raised: #eef1f4;
  --border: #d7dee5;
  --text: #1b232d;
  --text-dim: #5c6b7a;
  --hot: #d9761f;
  --hot-dim: #fbe3cc;
  --cold: #2b7fb8;
  --cold-dim: #d8ecf9;
  --brand: #a97a1f;
  --brand-dim: #f7ecd3;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath d='M330 40 C270 110 240 190 270 260 C285 300 320 330 350 335 C330 305 330 275 350 250 C370 275 380 315 360 355 C400 340 425 290 415 235 C405 190 375 150 335 115 C345 145 335 170 315 180 C305 150 305 120 330 40 Z' fill='%23e3b34a' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 500px;
}

h1, h2, h3, .brand, .btn-primary {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
header.site {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 600px 200px at 15% 0%, rgba(227,179,74,0.10), transparent),
    radial-gradient(ellipse 500px 180px at 85% 0%, rgba(242,153,74,0.07), transparent),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  position: relative;
}

header.site::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0px,
    transparent 60px,
    rgba(232,236,241,0.02) 60px,
    rgba(232,236,241,0.02) 61px
  );
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand .mark {
  color: var(--brand);
  font-size: 22px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav-links .username {
  color: var(--text-dim);
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #0b1210;
  font-weight: 600;
}

.btn:hover { border-color: var(--text-dim); }
.btn-primary:hover { filter: brightness(1.08); }

/* --- Feed --- */
.feed-controls {
  display: flex;
  gap: 4px;
  margin: 28px 0 12px;
  font-size: 14px;
}

.feed-controls a {
  padding: 6px 12px;
  color: var(--text-dim);
  border-radius: var(--radius);
}

.feed-controls a.active {
  background: var(--surface-raised);
  color: var(--text);
}

.country-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.country-filter a {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
}

.country-filter a.active {
  border-color: var(--brand);
  color: var(--brand);
}

.country-badges {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.country-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--cold);
  color: var(--cold);
}

.country-checkboxes {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  margin: 0;
}

.checkbox-label input { width: auto; }

.deal-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.deal-row:hover {
  background: linear-gradient(90deg, rgba(227,179,74,0.04), transparent 40%);
}

.vote-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.temp-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 4px 0;
}

.temp-value.positive { color: var(--hot); }
.temp-value.negative { color: var(--cold); }
.temp-value.zero { color: var(--text-dim); }

.vote-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.vote-btn.hot:hover, .vote-btn.hot.active { color: var(--hot); }
.vote-btn.cold:hover, .vote-btn.cold.active { color: var(--cold); }

.deal-body { flex: 1; min-width: 0; }

.deal-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

.deal-title a:hover { color: var(--brand); }

.deal-meta {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.price-now {
  color: var(--hot);
  font-weight: 600;
}

.price-was {
  text-decoration: line-through;
  color: var(--text-dim);
}

.discount-badge {
  background: var(--brand);
  color: #0b1210;
  font-weight: 700;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 4px;
}

.category-tag {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1px 7px;
  font-size: 12px;
}

.expiry-badge {
  color: var(--cold);
  font-weight: 500;
}

.expiry-badge.expired {
  color: var(--hot);
}

/* --- Deal detail --- */
.deal-detail {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.deal-detail .deal-title { font-size: 24px; }

.deal-description {
  margin: 16px 0;
  color: var(--text);
  white-space: pre-wrap;
}

.affiliate-link {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  background: var(--hot);
  color: #24140a;
  font-weight: 600;
  border-radius: var(--radius);
}

.affiliate-link:hover { filter: brightness(1.05); }

.disclosure {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* --- Comments --- */
.comments { padding: 24px 0; }

.comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.comment-content { flex: 1; min-width: 0; }

.comment-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.comment-meta .username { color: var(--brand); font-weight: 500; }

/* --- Forms --- */
.form-page { padding: 32px 0; max-width: 480px; }

label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin: 16px 0 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
}

textarea { resize: vertical; min-height: 90px; }

input:focus, select:focus, textarea:focus, button:focus, a:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.price-row { display: flex; gap: 12px; }
.price-row > div { flex: 1; }

.error-box {
  background: var(--hot-dim);
  border: 1px solid var(--hot);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 16px;
}

.form-footer {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-dim);
}

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--text-dim);
}

.empty-state-badge {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.85;
}

/* --- Deal cards (feed) --- */
.deal-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.deal-card:hover { border-color: var(--brand); }

.deal-card.featured {
  padding: 20px;
  background: linear-gradient(135deg, var(--surface-raised), var(--surface));
}

.deal-card.featured .deal-card-img { max-width: 260px; }
.deal-card.featured .deal-title { font-size: 21px; }

.vote-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.vote-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.vote-icon-btn:hover { transform: scale(1.06); }
.vote-icon-btn:active { transform: scale(0.92); }

.vote-icon-img {
  width: 20px;
  height: 20px;
  display: block;
}
.vote-icon-btn.hot { border-color: var(--hot-dim); }
.vote-icon-btn.hot.active, .vote-icon-btn.hot:hover { border-color: var(--hot); }
.vote-icon-btn.cold { border-color: var(--cold-dim); }
.vote-icon-btn.cold.active, .vote-icon-btn.cold:hover { border-color: var(--cold); }

.vote-icon-btn.vote-pop {
  animation: vote-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes vote-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.35) rotate(-6deg); box-shadow: 0 0 16px 2px currentColor; }
  60% { transform: scale(0.92) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

.temp-value.temp-pop {
  animation: temp-pop 0.4s ease;
}

@keyframes temp-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.deal-card-img {
  width: 200px;
  height: 140px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 6px;
  flex-shrink: 0;
}

.deal-card-body { flex: 1; min-width: 0; }

.heat-bar { margin-top: 10px; max-width: 320px; }

.heat-bar-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cold), var(--surface-raised) 45%, var(--hot));
}

.heat-bar-marker {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--text);
  border: 2px solid var(--bg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.heat-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

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

.footer-social {
  display: flex;
  gap: 14px;
  font-size: 18px;
}

.footer-social a { color: var(--text-dim); }
.footer-social a:hover { color: var(--brand); }
.footer-x { font-weight: 700; font-size: 15px; }

/* --- Direct messages --- */
.conversation-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.conversation-row:hover { background: var(--surface); }

.message-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  max-width: 600px;
}

.message-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 75%;
  background: var(--surface);
  border: 1px solid var(--border);
}

.message-bubble.mine {
  align-self: flex-end;
  background: var(--brand-dim);
  border-color: var(--brand);
}

.message-form {
  max-width: 600px;
  margin-top: 16px;
}

.message-form textarea {
  width: 100%;
  min-height: 70px;
}

/* --- Admin dashboard --- */
.admin-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  margin: 16px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.admin-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.admin-bar {
  width: 100%;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}

.admin-bar-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* --- Header search --- */
.header-search-form {
  flex: 1 1 auto;
  max-width: 680px;
  margin: 0 28px;
}

.header-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
}

.header-search-input:focus { border-color: var(--brand); }

.icon-btn {
  font-size: 16px;
  padding: 8px 10px;
}

.icon-btn.active { border-color: var(--brand); color: var(--brand); }

/* --- Verify banner --- */
.verify-banner {
  background: var(--hot-dim);
  border-bottom: 1px solid var(--hot);
  color: var(--text);
  padding: 8px 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.verify-banner a {
  color: var(--hot);
  font-weight: 600;
  text-decoration: underline;
}

/* --- Active search indicator on feed --- */
.active-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-dim);
  margin: 20px 0 8px;
}

/* --- Notification / message dropdown panels --- */
.dropdown-wrap {
  position: relative;
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  z-index: 500;
  overflow: hidden;
  flex-direction: column;
}

.dropdown-panel.open { display: flex; }

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}

.dropdown-header button {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.dropdown-list {
  overflow-y: auto;
  max-height: 320px;
}

.dropdown-item {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.dropdown-item:hover { background: var(--surface); }
.dropdown-item.unread { background: var(--brand-dim); }

.dropdown-item-text {
  font-size: 13px;
  line-height: 1.4;
}

.dropdown-item-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
}

.dropdown-empty {
  padding: 24px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.dropdown-footer-link {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: var(--brand);
  border-top: 1px solid var(--border);
}

.dropdown-deal-preview {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  background: var(--surface);
  border-radius: 6px;
}

.dropdown-deal-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 4px;
  flex-shrink: 0;
}

.dropdown-deal-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.dropdown-deal-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  margin-top: 2px;
}

/* --- Avatar / user menu dropdown --- */
.user-menu-panel {
  width: 200px;
  padding: 6px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
}

.user-menu-item:hover { background: var(--surface); }

.user-menu-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.user-menu-toggle span:last-child {
  color: var(--text-dim);
  font-size: 12px;
}

/* --- Footer additions --- */
.footer-tagline {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-version {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 16px;
}

@media (max-width: 640px) {
  .header-search-form { display: none; }
  .dropdown-panel { width: 280px; right: -60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 640px) {
  .deal-card { flex-wrap: wrap; padding: 12px; }
  .deal-card-img { width: 100%; height: auto; max-height: 180px; order: -1; }
  .vote-box { flex-direction: row; width: 100%; justify-content: flex-start; gap: 10px; }
  .deal-card.featured .deal-card-img { max-width: 100%; }
  .nav { flex-wrap: wrap; gap: 10px; }
  .nav-links { flex-wrap: wrap; gap: 8px; }
}

/* --- Deal thumbnails --- */
.deal-thumb {
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: contain;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  display: block;
  padding: 6px;
}

.deal-thumb-large {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  display: block;
  padding: 10px;
}

/* --- Author links & badges --- */
.author-link {
  color: var(--text-dim);
}

.author-link:hover {
  color: var(--brand);
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.badge-emoji { font-size: 14px; }

/* --- Profile page --- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 32px 0 8px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--cold));
  color: #0b1210;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.mini-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.header-avatar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  padding: 0;
}

.header-avatar-link:hover { color: var(--text); }

.header-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.profile-name {
  font-size: 26px;
  margin: 0 0 4px;
}

.profile-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.stat-box {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* --- Link auto-fill feedback --- */
.fetch-status {
  font-size: 13px;
  margin-top: 6px;
  min-height: 16px;
}

.fetch-status.loading { color: var(--text-dim); }
.fetch-status.success { color: var(--brand); }
.fetch-status.error { color: var(--hot); }

.image-preview-wrap { margin-top: 12px; }

.image-preview {
  max-width: 220px;
  max-height: 140px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}

/* --- Notification bell --- */
.bell-link {
  position: relative;
  font-size: 18px;
  line-height: 1;
  color: var(--text-dim);
}

.bell-link:hover { color: var(--text); }

.bell-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--hot);
  color: #24140a;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 5px;
  line-height: 1.4;
}

/* --- Deal tracking --- */
.track-box {
  margin-top: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.track-form {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Search & filters --- */
.search-form {
  display: flex;
  gap: 8px;
  margin: 20px 0 12px;
}

.search-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
}

.bell-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease, color 0.15s ease;
}

.bell-btn:hover { border-color: var(--brand); color: var(--brand); }
.bell-btn:active { transform: scale(0.9); }

.bell-btn.rung {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-dim);
  animation: bell-ring 0.5s ease;
}

@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(18deg); }
  30% { transform: rotate(-16deg); }
  45% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(4deg); }
}

.store-filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.store-filter-label { color: var(--text-dim); }

.store-filter-form select {
  width: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 13px;
}

/* --- Alerts management page --- */
.alert-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.alert-terms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 180px;
}
