/* ShadCN-inspired design system */
/* Clean, minimal, and modern styling based on shadcn/ui principles */

:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 140 89% 27%;
  --primary-foreground: 0 0% 98%;
  --secondary: 140 20% 95%;
  --secondary-foreground: 140 89% 15%;
  --muted: 140 10% 95%;
  --muted-foreground: 140 5% 46%;
  --accent: 140 30% 92%;
  --accent-foreground: 140 89% 20%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 140 89% 27%;
  --radius: 0.5rem;
}

.dark {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 140 70% 45%;
  --primary-foreground: 240 10% 3.9%;
  --secondary: 140 15% 15%;
  --secondary-foreground: 140 70% 85%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 140 25% 20%;
  --accent-foreground: 140 70% 85%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 140 70% 45%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Light background for product pages */
body:has(.product-page) {
  background-color: hsl(var(--muted) / 0.3);
}

/* Dark mode: Product page background */
.dark body:has(.product-page),
body.dark:has(.product-page),
html.dark body:has(.product-page) {
  background-color: hsl(var(--background));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.875rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Container - Tighter spacing */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: hsl(var(--primary));
}

.navbar-brand svg {
  color: hsl(var(--primary));
  fill: currentColor;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.navbar-link:hover {
  color: hsl(var(--primary));
  background-color: hsl(var(--accent));
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  outline: none;
  padding: 0.5rem 1rem;
  height: 2.5rem;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

/* Cards - More compact */
.card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  padding: 0; /* Remove base padding to avoid double padding with card-header/card-content */
  transition: all 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-header {
  margin-bottom: 0.75rem;
  padding: 1.25rem 1.25rem 0 1.25rem; /* Top and side padding only */
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Space between icon and text */
}

.card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.card-content {
  padding: 0 1.25rem 1.25rem 1.25rem; /* Side and bottom padding only */
}

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

/* Hero Section - Tighter spacing */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section - Tighter spacing */
.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.section-description {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.5;
}

/* Grid - Tighter spacing */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Features - More compact */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: var(--radius);
  font-size: 1.25rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid hsl(var(--border));
  position: relative;
  transition: all 0.2s;
}

.pricing-card.featured {
  border-color: hsl(var(--primary));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.pricing-description {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.pricing-feature-icon {
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* FAQ */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.5rem 0;
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: hsl(var(--accent));
}

.faq-answer {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  padding-top: 0.5rem;
}

/* Footer - Tighter spacing */
.footer {
  border-top: 1px solid hsl(var(--border));
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-link {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.footer-link:hover {
  color: hsl(var(--foreground));
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Tab System */
.tabs-container {
  width: 100%;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid hsl(var(--border));
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.tab-button:hover {
  color: hsl(var(--foreground));
}

.tab-button.active {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

.tab-content {
  min-height: 400px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Account Page Specific */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
}

.billing-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.billing-row:last-child {
  border-bottom: none;
}

.billing-label {
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.billing-value {
  font-weight: 500;
}

.plan-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-option {
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-option:hover {
  border-color: hsl(var(--primary) / 0.5);
  background: hsl(var(--muted) / 0.5);
  transform: translateY(-1px);
}

.plan-option.current {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
}

.plan-option.current:hover {
  cursor: default;
  transform: none;
}

.plan-option h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.plan-option p {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.plan-option .plan-select-btn {
  margin-top: 0.5rem;
}

.plan-option.current .plan-select-btn {
  display: none;
}

.current-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: hsl(var(--primary));
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: calc(var(--radius) / 2);
  font-weight: 500;
}

/* Upgrade Banner */
.upgrade-banner {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
  border-bottom: 1px solid hsl(var(--primary) / 0.2);
  padding: 0.75rem 0;
}

.upgrade-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.upgrade-banner-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.upgrade-banner-text svg {
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.upgrade-banner-text strong {
  color: hsl(var(--primary));
}

@media (max-width: 640px) {
  .upgrade-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .upgrade-banner-text {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: hsl(var(--foreground));
}

.form-input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.form-textarea {
  min-height: 5rem;
  padding: 0.75rem;
  resize: vertical;
}

.form-error {
  font-size: 0.75rem;
  color: hsl(var(--destructive));
  margin-top: 0.25rem;
}

/* Page Layouts */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid hsl(var(--border));
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin: 0 auto;
}

.page-content {
  padding: 2rem 0;
  max-width: 42rem;
  margin: 0 auto;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 1rem;
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 54rem;
  width: 100%;
}

@media (max-width: 768px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 24rem;
  }
  
  .deal-showcase {
    order: -1;
  }
}

.auth-card {
  width: 100%;
  max-width: 24rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--card));
}

.auth-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Legal Pages */
.legal-container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.legal-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: hsl(var(--foreground));
}

.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  color: hsl(var(--muted-foreground));
}

/* Status Messages */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  border: 1px solid hsl(var(--success) / 0.2);
}

.alert-error {
  background-color: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  border: 1px solid hsl(var(--destructive) / 0.2);
}

.alert-warning {
  background-color: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
  border: 1px solid hsl(var(--warning) / 0.2);
}

/* Responsive */
/* Deal Showcase */
.deal-showcase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: hsl(var(--foreground));
}

.deal-card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  padding: 1.5rem;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.deal-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-color: hsl(var(--primary) / 0.3);
}

.deal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: hsl(var(--muted-foreground));
}

.loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid hsl(var(--border));
  border-top: 2px solid hsl(var(--primary));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.deal-product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.deal-image {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background-color: hsl(var(--muted) / 0.1);
}

.deal-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.deal-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.deal-current-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.deal-original-price {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

.deal-discount {
  background-color: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.deal-store {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: auto;
}

.deal-footer {
  text-align: center;
}

/* Product Page Styles */
.product-page {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: calc(100vh - 80px);
}

.sidebar-container {
  position: sticky;
  top: 2rem;
  height: fit-content;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.filter-sidebar {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-header {
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}

.filter-card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.filter-card:hover {
  border-color: hsl(var(--border) / 0.8);
}

/* Gray header for filter cards only */
.filter-card .card-header {
  background: hsl(var(--muted));
  margin: -1px -1px 0 -1px;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Filter card specific styles - not for general cards */
.filter-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  border-radius: var(--radius) var(--radius) 0 0;
}

.filter-card .card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
  letter-spacing: 0.025em;
}

.filter-card .card-content {
  padding: 1rem;
}

/* Filter Form Controls */
.filter-card .form-input,
.filter-card .form-select,
.filter-card input[type="text"],
.filter-card input[type="number"],
.filter-card select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.filter-card .form-input:focus,
.filter-card .form-select:focus,
.filter-card input[type="text"]:focus,
.filter-card input[type="number"]:focus,
.filter-card select:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.filter-card .form-input:hover,
.filter-card .form-select:hover,
.filter-card input[type="text"]:hover,
.filter-card input[type="number"]:hover,
.filter-card select:hover {
  border-color: hsl(var(--border) / 0.8);
}

/* Select dropdown arrow */
.filter-card select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Filter Buttons */
.filter-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.filter-card .btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.filter-card .btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
}

.filter-card .btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
}

.filter-card .btn-secondary:hover {
  background: hsl(var(--secondary) / 0.8);
}

.filter-card .btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.filter-card .btn-ghost:hover {
  background: hsl(var(--accent));
}

.filter-card .btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.filter-card .btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Fallback styles for buttons without proper classes */
.filter-card button:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.filter-card button:not(.btn):hover {
  background: hsl(var(--secondary) / 0.8);
  border-color: hsl(var(--primary));
}

/* Special styling for deselect button */
.filter-card #deselect-brands {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: transparent;
  color: hsl(var(--foreground) / 0.7);
  border: 1px solid hsl(var(--border));
}

.filter-card #deselect-brands:hover {
  background: hsl(var(--accent));
  color: hsl(var(--foreground));
}

/* Brand controls styling */
.brand-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.brand-controls .btn {
  font-size: 0.875rem;
}

/* Utility classes */
.mt-2 {
  margin-top: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.me-2 {
  margin-right: 0.5rem;
}


/* Skeleton Grid - matches .product-feed */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 1rem;
  padding: 0;
}

@media (max-width: 1000px) {
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .skeleton-grid {
    grid-template-columns: 1fr;
  }
}

/* Skeleton card - matches .product-card */
.skeleton-card {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
  box-shadow: 0 10px 40px hsl(var(--shadow) / 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-image,
.skeleton-text,
.skeleton-price,
.skeleton-badge,
.skeleton-store {
  position: relative;
  overflow: hidden;
  background: hsl(var(--muted));
}

.skeleton-image::after,
.skeleton-text::after,
.skeleton-price::after,
.skeleton-badge::after,
.skeleton-store::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsl(var(--muted-foreground) / 0.08) 20%,
    hsl(var(--muted-foreground) / 0.15) 50%,
    hsl(var(--muted-foreground) / 0.08) 80%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Image area - matches .product-image (200px height) */
.skeleton-image {
  width: 100%;
  height: 200px;
  min-height: 200px;
  flex-shrink: 0;
  border-radius: 0;
}

/* Content area - matches .product-content */
.skeleton-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Title - 2 lines like .deal-product-title */
.skeleton-title {
  height: 1rem;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 0.25rem;
}

.skeleton-title-short {
  height: 1rem;
  border-radius: 4px;
  width: 70%;
}

/* Price row - matches .deal-price-section */
.skeleton-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skeleton-price {
  height: 1.5rem;
  border-radius: 4px;
}

.skeleton-price.original {
  width: 3.5rem;
}

.skeleton-price.sale {
  width: 4.5rem;
}

.skeleton-price.qty {
  width: 2rem;
}

/* Meta row - matches .deal-meta-row */
.skeleton-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-badge {
  height: 1.5rem;
  width: 7rem;
  border-radius: 9999px;
}

.skeleton-store {
  height: 1rem;
  width: 5rem;
  border-radius: 4px;
}

/* Legacy skeleton-text classes for backwards compatibility */
.skeleton-text {
  height: 1rem;
  border-radius: 4px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-text.long {
  width: 100%;
}

@keyframes skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Error State */
.error-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.1);
  border: 1px solid hsl(var(--destructive) / 0.2);
  border-radius: var(--radius);
  margin: 1rem;
}

.error-state p {
  margin: 0;
  font-size: 0.875rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: hsl(var(--primary));
}

.checkbox-item label {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  user-select: none;
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

/* Search Bar */
.search-bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 2.75rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.1);
}

.search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.clear-search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  border: none;
  background: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.clear-search-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

.search-all-dates-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  user-select: none;
}

.search-all-dates-toggle input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: hsl(var(--primary));
  cursor: pointer;
}

.search-all-dates-toggle:hover .toggle-label {
  color: hsl(var(--foreground));
}

@media (max-width: 640px) {
  .search-bar-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper {
    max-width: none;
  }

  .search-all-dates-toggle {
    justify-content: flex-start;
  }
}

.product-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem;
  transition: opacity 0.15s ease-out;
}

.product-feed.loading {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .product-feed {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .product-feed {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px hsl(var(--shadow) / 0.1);
  overflow: hidden;
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  border-color: hsl(var(--primary));
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: hsl(var(--muted));
  padding: 1rem;
  box-sizing: border-box;
}



.product-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-info {
  flex: 1;
}

.product-brand {
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(var(--foreground) / 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  line-height: 1.3;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

.product-name a:hover {
  text-decoration: underline;
}

.price-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 60px;
}

.info-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(var(--foreground) / 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.info-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.2;
  white-space: nowrap;
}

.price-current {
  color: hsl(142 76% 36%);
}

.discount-value {
  color: hsl(346 87% 43%);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: hsl(var(--foreground) / 0.65);
  line-height: 1.3;
}

.store-info, .original-price, .date-info {
  white-space: nowrap;
}

.original-price {
  text-decoration: line-through;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
}

.pagination-item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.pagination-item button:hover:not(:disabled) {
  background: hsl(var(--muted));
  border-color: hsl(var(--primary));
}

.pagination-item button:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.pagination-item.active button,
.pagination-item button[aria-current="page"] {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.pagination-item button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: hsl(var(--muted));
  color: hsl(var(--foreground) / 0.5);
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: hsl(var(--foreground) / 0.6);
  font-size: 0.875rem;
}

@media (max-width: 1024px) {
  .product-page {
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  
  .sidebar-container {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  
  .filter-sidebar {
    padding: 1rem;
  }
  
  .filter-card {
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  
  .filter-card.expanded {
    max-height: 1000px;
    transition: max-height 0.3s;
  }
  
  .card-header {
    cursor: pointer;
  }
  
  
  .product-content {
    gap: 0.5rem;
  }
  
  .price-info {
    gap: 0.75rem;
  }
  
  .info-group {
    min-width: 50px;
  }
  
  .checkbox-group {
    max-height: 150px;
  }
}

@media (max-width: 640px) {
  .navbar-menu {
    display: none;
  }
  
  .hero {
    padding: 3rem 0 2rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .page-header {
    padding: 2rem 0 1.5rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .auth-card {
    margin: 0 1rem;
    padding: 1.5rem;
  }
  
  .deal-card {
    min-height: 10rem;
  }
}

/* Speakeasy Login Styles */
.auth-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: hsl(var(--muted) / 0.5);
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0;
}

.deal-badge {
  display: inline-block;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  position: relative;
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px hsl(var(--primary) / 0.5);
  }
  100% {
    box-shadow: 0 0 20px hsl(var(--primary) / 0.8);
  }
}

.deal-header h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.deal-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.deal-cta {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.deal-cta p:first-child {
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.deal-cta p:last-child {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Mobile adjustments for speakeasy */
@media (max-width: 768px) {
  .auth-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .stat-number {
    margin-bottom: 0;
  }
  
  .auth-description {
    font-size: 0.875rem;
  }
  
  .deal-header h2 {
    font-size: 1.25rem;
  }
}

/* Account Dashboard Action Cards */
.quick-actions {
  margin-bottom: 2rem;
}

.action-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  text-decoration: none;
  color: hsl(var(--foreground));
  transition: all 0.2s;
  gap: 1rem;
}

.action-card:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsl(var(--shadow) / 0.15);
}

.action-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
  border-radius: var(--radius);
}

.action-content {
  flex: 1;
}

.action-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.action-content p {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.action-arrow {
  font-size: 1.5rem;
  color: hsl(var(--primary));
  transform: translateX(0);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.action-card:hover .action-arrow {
  transform: translateX(4px);
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Mobile responsive action cards */
@media (max-width: 768px) {
  .action-card {
    padding: 1rem;
  }
  
  .action-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .action-content h3 {
    font-size: 1rem;
  }
  
  .action-content p {
    font-size: 0.75rem;
  }
}

/* Professional Login Page Layout */
.login-page {
  height: 100vh;
  overflow: hidden;
}

.login-container {
  display: flex;
  height: 100vh;
  min-height: 600px;
}

.login-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-deal-panel {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.8) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.login-deal-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=') repeat;
  opacity: 0.1;
}

.login-deal-container {
  position: relative;
  z-index: 1;
  max-width: 400px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--primary));
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.login-logo:hover {
  color: hsl(var(--primary) / 0.8);
}

/* Minimal Deal Badge */
.deal-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Featured Deal Card */
.featured-deal {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-loading {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.deal-loading .loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

/* Deal Stats */
.deal-stats {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
}

.deal-stats .stat-item {
  text-align: center;
}

.deal-stats .stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.125rem;
}

.deal-stats .stat-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Deal CTA */
.deal-cta {
  text-align: center;
}

.deal-cta p:first-child {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.deal-cta p:last-child {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.login-form-panel {
  background: hsl(var(--background));
}

.login-form-container {
  max-width: 360px;
  padding: 2rem;
}

.form-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0;
  color: hsl(var(--foreground));
}

.form-divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: hsl(var(--border));
}

.form-divider span {
  padding: 0 1rem;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.form-footer a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

.form-footer a:hover {
  color: hsl(var(--primary));
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Modern Login Page Styles */
.modern-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  padding: 1rem;
}

.modern-login-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  min-height: 600px;
  gap: 0;
}

/* Left Side - Login Form */
.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: white;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: hsl(var(--primary));
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-logo:hover svg {
  transform: scale(1.1);
}

.login-logo:hover .logo-path {
  animation: infinity-spiral 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes infinity-spiral {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(90deg) scale(1.05);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  75% {
    transform: rotate(270deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.login-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card-header h1 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.login-card-header p {
  color: #6b7280;
  font-size: 0.875rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

.forgot-link {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
}

.forgot-link:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

.modern-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.modern-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-modern {
  width: 100%;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary-modern {
  background: #1a1a1a;
  color: white;
}

.btn-primary-modern:hover {
  background: #000;
}

.btn-secondary-modern {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-secondary-modern:hover {
  background: hsl(var(--muted) / 0.8);
}

.btn-outline-modern {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-outline-modern:hover {
  background: hsl(var(--muted));
}

/* Divider */
.divider-section {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  gap: 1rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.divider-text {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Social Login Buttons */
.social-login-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
}

.social-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.signup-link {
  text-align: center;
  font-size: 0.875rem;
  color: #374151;
  margin-top: 1.5rem;
}

.signup-link a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Right Side - Deal Preview */
.deal-preview-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
}

.deal-preview-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 320px;
  width: 100%;
  position: relative;
}

.deal-badge-modern {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #dc2626;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  z-index: 10;
}

.deal-product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f3f4f6;
}

.deal-product-image img {
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  object-fit: cover;
  margin: 1rem;
  border-radius: 0.5rem;
}

.deal-product-details {
  padding: 1.5rem;
}

.deal-product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-product-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.deal-price-section {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.original-price {
  font-size: 0.9rem;
  color: #6b7280;
  text-decoration: line-through;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sale-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -0.01em;
}

.price-quantity {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  align-self: baseline;
}

.deal-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
}

.deal-savings {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.deal-savings-placeholder {
  width: 1px;
}

.deal-discount-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.deal-discount-badge-corner {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: hsl(var(--primary));
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.deal-stock-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.deal-stock-info svg {
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.deal-store-name {
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Theme Toggle Styles */
.theme-toggle {
  position: relative;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.theme-toggle:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--primary));
}

.theme-toggle:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.theme-icon {
  color: hsl(var(--foreground));
  transition: all 0.3s ease;
}

/* Default state: show moon (for light mode), hide sun */
.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

/* Dark mode: show sun, hide moon */
.dark .theme-toggle .sun-icon {
  display: block;
}

.dark .theme-toggle .moon-icon {
  display: none;
}

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */

/* Modern Login Page - Dark Mode */
.dark .modern-login-page {
  background: hsl(var(--background));
}

.dark .login-form-section {
  background: hsl(var(--card));
}

.dark .login-card-header h1,
.dark .auth-title {
  color: hsl(var(--foreground));
}

.dark .login-card-header p,
.dark .auth-description {
  color: hsl(var(--muted-foreground));
}

.dark .form-label {
  color: hsl(var(--foreground));
}

.dark .forgot-link {
  color: hsl(var(--muted-foreground));
}

.dark .forgot-link:hover {
  color: hsl(var(--foreground));
}

.dark .modern-input {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.dark .modern-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.dark .modern-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

.dark .btn-primary-modern {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.dark .btn-primary-modern:hover {
  background: hsl(var(--primary) / 0.9);
}

.dark .divider-line {
  background: hsl(var(--border));
}

.dark .divider-text {
  color: hsl(var(--muted-foreground));
}

.dark .social-btn {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.dark .social-btn:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--border));
}

.dark .signup-link {
  color: hsl(var(--muted-foreground));
}

.dark .signup-link a {
  color: hsl(var(--primary));
}

/* Deal Preview Section - Dark Mode */
.dark .deal-preview-section {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
}

.dark .deal-preview-card {
  background: hsl(var(--card));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dark .deal-product-image {
  background: hsl(var(--muted));
}

.dark .deal-product-title {
  color: hsl(var(--foreground));
}

.dark .deal-product-description {
  color: hsl(var(--muted-foreground));
}

.dark .original-price {
  color: hsl(var(--muted-foreground));
}

.dark .sale-price {
  color: hsl(var(--foreground));
}

.dark .deal-discount-badge {
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
}

/* Skeleton Loading - Dark Mode */
.dark .skeleton-image,
.dark .skeleton-title,
.dark .skeleton-price-small,
.dark .skeleton-price-large,
.dark .skeleton-badge,
.dark .skeleton-icon,
.dark .skeleton-text {
  background: linear-gradient(90deg, hsl(var(--muted)) 25%, hsl(var(--muted) / 0.5) 50%, hsl(var(--muted)) 75%);
  background-size: 200% 100%;
}

/* Navbar - Dark Mode */
.dark .navbar {
  background: hsl(var(--card) / 0.95);
  border-bottom-color: hsl(var(--border));
}

.dark .navbar-brand {
  color: hsl(var(--foreground));
}

.dark .navbar-link {
  color: hsl(var(--muted-foreground));
}

.dark .navbar-link:hover {
  color: hsl(var(--foreground));
}

/* Cards - Dark Mode */
.dark .card {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

/* Product Cards - Dark Mode */
.dark .product-card {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

/* Store Cards - Dark Mode */
.dark .store-card {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.dark .store-card:hover {
  border-color: hsl(var(--primary));
}

.dark .store-card.coming-soon {
  background: hsl(var(--muted));
}

.dark .store-name {
  color: hsl(var(--foreground));
}

.dark .store-status {
  color: hsl(var(--muted-foreground));
}

.dark .store-placeholder {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

/* Dashboard - Dark Mode */
.dark .dashboard-title {
  color: hsl(var(--foreground));
}

.dark .dashboard-description {
  color: hsl(var(--muted-foreground));
}

/* Footer - Dark Mode */
.dark .footer {
  background: hsl(var(--card));
  border-top-color: hsl(var(--border));
}

.dark .footer h4 {
  color: hsl(var(--foreground));
}

.dark .footer-link {
  color: hsl(var(--muted-foreground));
}

.dark .footer-link:hover {
  color: hsl(var(--foreground));
}

/* Upgrade Banner - Dark Mode */
.dark .upgrade-banner {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15) 0%, hsl(var(--primary) / 0.08) 100%);
  border-bottom-color: hsl(var(--primary) / 0.3);
}

/* Filter Cards - Dark Mode */
.dark .floating-filter-card {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.dark .filter-card-header {
  color: hsl(var(--foreground));
}

/* Account Page - Dark Mode */
.dark .account-tabs {
  border-color: hsl(var(--border));
}

.dark .tab-btn {
  color: hsl(var(--muted-foreground));
}

.dark .tab-btn.active {
  color: hsl(var(--foreground));
  border-bottom-color: hsl(var(--primary));
}

.dark .plan-option {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.dark .plan-option:hover {
  border-color: hsl(var(--primary));
}

.dark .billing-row {
  border-color: hsl(var(--border));
}

.dark .billing-label {
  color: hsl(var(--muted-foreground));
}

.dark .billing-value {
  color: hsl(var(--foreground));
}

/* Store Cards Grid */
.stores-section {
  padding: 3rem 0;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.store-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px;
}

.store-card.active {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.store-card.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px hsl(var(--shadow) / 0.15);
  border-color: hsl(var(--primary));
}

.store-card.coming-soon {
  opacity: 0.7;
  background: hsl(var(--muted) / 0.3);
}

.store-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  overflow: hidden;
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-placeholder {
  width: 80px;
  height: 80px;
  background: hsl(var(--muted));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
}

.store-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.store-status {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.store-card.active .store-status {
  color: hsl(var(--primary));
  font-weight: 500;
}

.coming-soon-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .store-card {
    padding: 1rem;
    min-height: 180px;
  }
  
  .store-logo,
  .store-placeholder {
    width: 60px;
    height: 60px;
  }
  
  .store-placeholder {
    font-size: 1.25rem;
  }
  
  .store-name {
    font-size: 1rem;
  }
}

.deal-store-location {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.deal-date {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

/* Deal Card Skeleton Styling */
.skeleton-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2.5s infinite;
  border-radius: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 85%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2.5s infinite;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.skeleton-price-small {
  height: 1rem;
  width: 4rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2.5s infinite;
  border-radius: 0.25rem;
}

.skeleton-price-large {
  height: 1.5rem;
  width: 5rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2.5s infinite;
  border-radius: 0.25rem;
}

.skeleton-badge {
  height: 1.5rem;
  width: 4rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2.5s infinite;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.skeleton-icon {
  height: 1rem;
  width: 1rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2.5s infinite;
  border-radius: 50%;
}

.skeleton-text {
  height: 1rem;
  width: 6rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2.5s infinite;
  border-radius: 0.25rem;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Plan Cards Styling */
.plan-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
}

.plan-card:hover {
  border-color: #d1d5db;
}

.plan-card.selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem;
}

.plan-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.plan-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
}

.plan-price {
  font-size: 0.75rem;
  color: #6b7280;
}

.plan-toggle {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.plan-toggle:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.plan-toggle.expanded svg {
  transform: rotate(180deg);
}

.plan-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
  background: hsl(var(--muted) / 0.3);
  opacity: 0;
  visibility: hidden;
}

.plan-details.expanded {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
  border-top: 1px solid hsl(var(--border));
}

.plan-details ul {
  margin: 0;
  padding: 0.875rem;
  list-style: none;
}

.plan-details li {
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4b5563;
  position: relative;
  padding-left: 1rem;
}

.plan-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* Mobile responsive modern login */
@media (max-width: 768px) {
  .modern-login-container {
    flex-direction: column;
    min-height: auto;
  }
  
  .login-form-section {
    padding: 1.5rem;
  }
  
  .deal-preview-section {
    padding: 1.5rem;
    min-height: 400px;
  }
  
  .deal-preview-card {
    max-width: 100%;
  }
  
  .social-login-buttons {
    flex-direction: column;
  }
  
  .social-btn {
    width: 100%;
  }
  
  /* Old login styles for backward compatibility */
  .login-container {
    flex-direction: column;
  }
  
  .login-form-panel {
    flex: none;
    order: 1;
  }
  
  .login-deal-panel {
    flex: 1;
    order: 2;
  }
  
  .login-form-container {
    padding: 1.5rem;
    max-width: none;
  }
  
  .login-deal-container {
    max-width: none;
    padding: 1.5rem;
    text-align: center;
  }
  
  .form-header h2 {
    font-size: 1.5rem;
  }
  
  .deal-header h2 {
    font-size: 1.5rem;
  }
  
  .featured-deal {
    min-height: 200px;
  }
  
  .deal-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .deal-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .deal-stats .stat-number {
    margin-bottom: 0;
  }
}

/* Floating Filter Cards */
.floating-filters-sidebar {
  position: sticky;
  top: 1rem;
  height: fit-content;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 4px 12px hsl(var(--shadow) / 0.15);
  padding: 0;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: calc(var(--radius) + 2px) calc(var(--radius) + 2px) 0 0;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.filters-header:hover {
  background: hsl(var(--primary) / 0.05);
}

.filters-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.filters-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filters-toggle svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters-toggle:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.filters-toggle.collapsed svg {
  transform: rotate(180deg);
}

.filters-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.filters-container.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.floating-filter-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px hsl(var(--shadow) / 0.1);
}

.floating-filter-card:hover {
  border-color: hsl(var(--border));
  box-shadow: 0 2px 10px hsl(var(--shadow) / 0.1);
}

.filter-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  background: hsl(var(--muted) / 0.2);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.3s ease;
  user-select: none;
}

.floating-filter-card.expanded .filter-card-header {
  border-bottom-color: hsl(var(--border));
}

.filter-card-header:hover {
  background: hsl(var(--primary) / 0.05);
}

.filter-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: hsl(var(--primary));
}

.filter-icon svg {
  width: 16px;
  height: 16px;
}

.filter-title {
  font-weight: 500;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  flex: 1;
}

.minimize-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: calc(var(--radius) / 2);
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.minimize-btn svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.minimize-btn:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.floating-filter-card:not(.expanded) .minimize-btn svg {
  transform: rotate(180deg);
}

.filter-card-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
}

.floating-filter-card.expanded .filter-card-content {
  max-height: 300px;
  padding: 1rem;
  overflow-y: auto;
}

/* Input styling within floating cards */
.floating-filter-card .form-group {
  position: relative;
  margin-bottom: 0;
}

.floating-filter-card .form-input,
.floating-filter-card .form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px hsl(var(--shadow) / 0.1);
}

.floating-filter-card .form-input:focus,
.floating-filter-card .form-select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.floating-filter-card .input-suffix {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: none;
}

/* Checkbox groups in floating cards */
.floating-filter-card .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
}

.floating-filter-card .checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.floating-filter-card .checkbox-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: calc(var(--radius) / 2);
  flex-shrink: 0;
}

.floating-filter-card .checkbox-item label {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  flex: 1;
  margin: 0;
}

/* Brand controls */
.floating-filter-card .brand-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.floating-filter-card .brand-controls .btn {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  flex: 1;
}

/* Filter card buttons */
.floating-filter-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Responsive adjustments for floating cards */
@media (max-width: 1024px) {
  .product-page {
    grid-template-columns: 280px 1fr;
  }
  
  .floating-filters-sidebar {
    max-height: calc(100vh - 1.5rem);
  }
}

@media (max-width: 768px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .floating-filters-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 1rem;
  }
  
  .filters-container {
    max-height: none;
  }
  
  .floating-filter-card {
    border-radius: var(--radius);
  }
  
  /* Collapse all cards by default on mobile */
  .floating-filter-card:not(.expanded) .filter-card-content {
    max-height: 0;
    padding: 0;
  }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-hiding {
  opacity: 0;
  transform: translateX(100%);
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-message {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--foreground));
}

.toast-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

/* Toast types */
.toast-success {
  border-left: 3px solid hsl(142, 76%, 36%);
}

.toast-success .toast-icon {
  color: hsl(142, 76%, 36%);
}

.toast-error {
  border-left: 3px solid hsl(var(--destructive));
}

.toast-error .toast-icon {
  color: hsl(var(--destructive));
}

.toast-warning {
  border-left: 3px solid hsl(45, 93%, 47%);
}

.toast-warning .toast-icon {
  color: hsl(45, 93%, 47%);
}

.toast-info {
  border-left: 3px solid hsl(var(--primary));
}

.toast-info .toast-icon {
  color: hsl(var(--primary));
}

/* Mobile responsive */
@media (max-width: 480px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .toast {
    transform: translateY(-100%);
  }

  .toast-visible {
    transform: translateY(0);
  }

  .toast-hiding {
    transform: translateY(-100%);
  }
}