/**
 * Deal Sniper — Quiet Luxury (Sage & Cream)
 * Companion to templates/dashboard.html — do not remove data hooks / IDs.
 */
html {
  background-color: #a3b18a;
}

:root {
  --ss-sage: #b5c1a3;
  --ss-sage-deep: #a3b18a;
  --ss-cream: #faf8f3;
  --ss-cream-muted: #f3f0e8;
  --ss-forest: #2a3f29;
  --ss-olive: #6b705c;
  --ss-gold: #c9a227;
  --ss-gold-leaf: #d4af37;
  --ss-shadow-soft: 0 4px 28px -6px rgba(42, 63, 41, 0.1);
  --ss-shadow-hover: 0 12px 40px -10px rgba(42, 63, 41, 0.14);
  /* Large / soft — primary surfaces (task manager, hunts, hits) */
  --ss-shadow-luxury: 0 10px 30px rgba(42, 63, 41, 0.05);
  --ss-transition: 0.3s ease;
}

/* Sage shell — wins over Tailwind / other sheets when this file loads */
body {
  background-color: #a3b18a !important;
}

body.lux-dashboard {
  color: var(--ss-olive);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.lux-serif {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.lux-sidebar {
  /* Same cream as cards — quiet, expensive continuity with the shell */
  background: #faf8f3;
  border-right: 1px solid rgba(42, 63, 41, 0.08);
  box-shadow: 4px 0 32px -8px rgba(42, 63, 41, 0.07);
}

#app-sidebar nav[aria-label="Sections"] button.shell-nav {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
}

.lux-backdrop {
  background: rgba(42, 63, 41, 0.35);
  backdrop-filter: blur(6px);
}

.lux-header-bar {
  background: rgba(250, 248, 243, 0.92);
  border-color: rgba(42, 63, 41, 0.08);
  backdrop-filter: blur(12px);
}

.lux-footer {
  background: var(--ss-cream-muted);
  border-top: 1px solid rgba(42, 63, 41, 0.08);
}

.lux-card {
  background: #faf8f3;
  border-radius: 24px;
  border: 1px solid rgba(42, 63, 41, 0.06);
  box-shadow: var(--ss-shadow-luxury);
  transition: box-shadow var(--ss-transition), border-color var(--ss-transition),
    transform var(--ss-transition);
}

.lux-card:hover {
  box-shadow: var(--ss-shadow-hover);
  border-color: rgba(42, 63, 41, 0.1);
}

/* Primary dashboard panels — generous breathing room */
.lux-surface {
  padding: 2rem;
}

@media (min-width: 640px) {
  .lux-surface {
    padding: 2rem 2.25rem;
  }
}

.lux-stat-tile {
  background: #faf8f3;
  border-radius: 24px;
  border: 1px solid rgba(42, 63, 41, 0.07);
  box-shadow: var(--ss-shadow-luxury);
  transition: box-shadow var(--ss-transition), border-color var(--ss-transition);
}

.lux-stat-tile:hover {
  box-shadow: var(--ss-shadow-hover);
}

.lux-heading-page {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ss-forest);
  letter-spacing: -0.02em;
}

.lux-text-muted {
  color: var(--ss-olive);
}

.lux-text-forest {
  color: var(--ss-forest);
}

.lux-nav-btn {
  border-left: 3px solid transparent;
  transition: background var(--ss-transition), color var(--ss-transition),
    border-color var(--ss-transition);
}

.lux-nav-btn-active {
  border-left-color: #d4af37;
  background: rgba(163, 177, 138, 0.22);
  color: var(--ss-forest);
}

.lux-nav-btn-idle {
  color: var(--ss-olive);
}

.lux-nav-btn-idle:hover {
  background: rgba(42, 63, 41, 0.05);
  color: var(--ss-forest);
}

.lux-input {
  border-radius: 16px;
  border: 1px solid rgba(42, 63, 41, 0.12);
  background: #fff;
  color: var(--ss-forest);
  transition: border-color var(--ss-transition), box-shadow var(--ss-transition);
}

.lux-input::placeholder {
  color: rgba(107, 112, 92, 0.65);
}

.lux-input:focus {
  outline: none;
  border-color: var(--ss-sage-deep);
  box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.35);
}

.lux-btn-primary {
  border-radius: 16px;
  background: var(--ss-sage-deep);
  color: var(--ss-cream);
  font-weight: 600;
  border: 1px solid rgba(42, 63, 41, 0.12);
  transition: background var(--ss-transition), transform var(--ss-transition),
    box-shadow var(--ss-transition);
}

.lux-btn-primary:hover {
  background: #8f9d7a;
  box-shadow: var(--ss-shadow-soft);
}

.lux-btn-primary:focus-visible {
  outline: 2px solid var(--ss-gold-leaf);
  outline-offset: 2px;
}

.lux-btn-gold {
  border-radius: 16px;
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: var(--ss-forest);
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.5);
  transition: filter var(--ss-transition), box-shadow var(--ss-transition);
}

.lux-btn-gold:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px -4px rgba(201, 162, 39, 0.35);
}

.lux-badge-savings {
  border-radius: 9999px;
  background: #faf8f3;
  border: 1px solid #d4af37;
  color: var(--ss-forest);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  box-shadow: 0 1px 2px rgba(42, 63, 41, 0.05);
}

.lux-badge-no-new {
  border-radius: 9999px;
  background: rgba(42, 63, 41, 0.04);
  border: 1px solid rgba(42, 63, 41, 0.12);
  color: var(--ss-olive);
  font-weight: 500;
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  opacity: 0.92;
}

.lux-badge-platform {
  font-variant: all-small-caps;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  color: var(--ss-olive);
  border: 1px solid rgba(42, 63, 41, 0.12);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 0.15rem 0.45rem;
}

.lux-deal-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #faf8f3;
  border: 1px solid rgba(42, 63, 41, 0.07);
  box-shadow: var(--ss-shadow-luxury);
  transition: box-shadow var(--ss-transition), border-color var(--ss-transition),
    transform var(--ss-transition);
}

.lux-deal-card--layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lux-deal-card:hover {
  box-shadow: var(--ss-shadow-hover);
  border-color: rgba(163, 177, 138, 0.45);
}

.lux-deal-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ss-forest);
}

.lux-deal-price {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ss-forest);
  letter-spacing: -0.02em;
}

.lux-deal-card-media {
  position: relative;
  padding: 1rem 1rem 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), #faf8f3);
}

.lux-deal-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(42, 63, 41, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lux-deal-img {
  display: block;
  width: 100%;
  height: 15rem;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.lux-deal-img-ph {
  height: 15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ss-cream-muted);
  color: var(--ss-olive);
  font-size: 0.75rem;
}

.lux-deal-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.25rem 1.35rem 1.35rem;
}

.lux-deal-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 1px solid rgba(42, 63, 41, 0.07);
}

.lux-ai-note {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--ss-olive);
}

.lux-btn-open {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 14px;
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--ss-sage-deep);
  color: var(--ss-cream);
  border: 1px solid rgba(42, 63, 41, 0.1);
  text-decoration: none;
  transition: background var(--ss-transition), box-shadow var(--ss-transition);
  width: 100%;
}

.lux-btn-open:hover {
  background: #8f9d7a;
  box-shadow: var(--ss-shadow-soft);
}

.lux-link-verify {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ss-forest);
  text-decoration: none;
  padding: 0.35rem 0;
  border-radius: 10px;
  transition: color var(--ss-transition), background var(--ss-transition);
}

.lux-link-verify:hover {
  color: var(--ss-gold-leaf);
  background: rgba(212, 175, 55, 0.08);
}

.lux-verify-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--ss-gold-leaf);
}

.lux-fav-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  border-radius: 9999px;
  border: 1px solid rgba(42, 63, 41, 0.12);
  background: rgba(250, 248, 243, 0.92);
  padding: 0.35rem;
  backdrop-filter: blur(6px);
  transition: border-color var(--ss-transition), background var(--ss-transition);
}

.lux-fav-btn:hover {
  border-color: var(--ss-gold-leaf);
  background: #fff;
}

.lux-icon-heart-on {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ss-gold-leaf);
}

.lux-icon-heart-off {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ss-olive);
  stroke-width: 1.25;
}

.lux-badge-3y {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.65);
  background: linear-gradient(120deg, #faf8f3, #f3e9d0, #ebe2c8, #faf8f3);
  background-size: 220% 220%;
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ss-forest);
  box-shadow: 0 2px 14px -2px rgba(212, 175, 55, 0.28);
}

.lux-badge-3y--pulse {
  animation: lux-gold-gradient-shift 2.8s ease-in-out infinite,
    lux-gold-medal-glow 2.8s ease-in-out infinite;
}

@keyframes lux-gold-gradient-shift {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

@keyframes lux-gold-medal-glow {
  0%,
  100% {
    box-shadow: 0 2px 14px -2px rgba(212, 175, 55, 0.28);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 4px 22px -2px rgba(212, 175, 55, 0.45);
    filter: brightness(1.06);
  }
}

.lux-truth-check {
  display: inline-flex;
  height: 1.25rem;
  width: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.65rem;
  color: var(--ss-forest);
}

.lux-research-pulse {
  margin-bottom: 0.5rem;
  animation: lux-pulse-opacity 2s ease-in-out infinite;
  font-size: 0.6875rem;
  color: var(--ss-olive);
}

@keyframes lux-pulse-opacity {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.lux-scan-bar {
  border-radius: 16px;
  border: 1px solid rgba(163, 177, 138, 0.45);
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.lux-table-shell {
  border-radius: 16px;
  border: 1px solid rgba(42, 63, 41, 0.08);
  background: #faf8f3;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.lux-table-head {
  background: rgba(163, 177, 138, 0.2);
}

.lux-table-row:hover {
  background: rgba(163, 177, 138, 0.12);
}

.lux-pill-active {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(42, 63, 41, 0.15);
  background: rgba(163, 177, 138, 0.25);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ss-forest);
}

.lux-pill-paused {
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.12);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ss-forest);
}

.lux-chart-wrap {
  border-radius: 16px;
  border: 1px solid rgba(42, 63, 41, 0.08);
  background: #faf8f3;
  padding: 1.25rem;
  box-shadow: var(--ss-shadow-luxury);
}

/* Header / sidebar brand — 48px + quiet depth */
.lux-brand-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 8px rgba(42, 63, 41, 0.12))
    drop-shadow(0 3px 14px rgba(212, 175, 55, 0.18))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

.lux-logo-header {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(42, 63, 41, 0.14))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

.lux-logo-footer {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

.lux-upgrade-strip {
  border-radius: 16px;
  border: 1px solid var(--ss-gold-leaf);
  background: rgba(212, 175, 55, 0.12);
  color: var(--ss-forest);
  font-weight: 600;
  transition: background var(--ss-transition);
}

.lux-upgrade-strip:hover {
  background: rgba(212, 175, 55, 0.2);
}

@keyframes hunt-scan-pulse-lux {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleX(0.94);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hunt-scan-bar-fill {
  animation: hunt-scan-pulse-lux 2.2s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes hunt-analyzed-pop-lux {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
    color: var(--ss-forest);
  }
  100% {
    transform: scale(1);
  }
}

.hunt-analyzed-pulse {
  animation: hunt-analyzed-pop-lux 0.55s ease-out 1;
  display: inline-block;
}

.lux-truth-toggle {
  background: #e5e7eb;
}

.lux-truth-toggle-thumb {
  transform: translateX(0.125rem);
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
  background: #faf8f3;
}

.lux-truth-toggle.lux-truth-toggle--on {
  border-color: rgba(163, 177, 138, 0.55);
  background: #a3b18a;
  box-shadow: 0 0 0 1px rgba(163, 177, 138, 0.25);
}

.lux-truth-toggle.lux-truth-toggle--on .lux-truth-toggle-thumb {
  transform: translateX(1.35rem);
  background: #faf8f3;
  box-shadow: 0 1px 4px rgba(42, 63, 41, 0.12);
}

/* Disabled “Coming soon”: always read as OFF (gray), never blue “on” */
.lux-truth-toggle.lux-truth-toggle--disabled {
  border-color: rgba(42, 63, 41, 0.12) !important;
  background: #e5e7eb !important;
  box-shadow: none !important;
}

.lux-truth-toggle.lux-truth-toggle--disabled .lux-truth-toggle-thumb {
  transform: translateX(0.125rem) !important;
  background: #faf8f3 !important;
  box-shadow: none !important;
}

/* Subscription tab — quick info strip (glass over sage) */
.lux-sub-quick-info {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
