/* Enhanced CSS for Landing Page and Admin Real-time Features */
:root {
  /* Amazon-inspired Color Palette */
  --amazon-orange: #ff9900;
  --amazon-orange-dark: #e47911;
  --amazon-blue: #232f3e;
  --amazon-blue-light: #37475a;
  --amazon-yellow: #febd69;

  /* Primary Colors */
  --color-primary: #ff9900;
  --color-primary-dark: #e47911;
  --color-secondary: #232f3e;
  --color-accent: #007185;

  /* Status Colors */
  --color-success: #067d62;
  --color-warning: #f08804;
  --color-error: #d13212;
  --color-info: #0073bb;
  --color-live: #ff4444;
  --color-countdown: #ff6b35;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f7f7f7;
  --color-gray-200: #eaeded;
  --color-gray-300: #d5dbdb;
  --color-gray-400: #b7b7b7;
  --color-gray-500: #8c8c8c;
  --color-gray-600: #565959;
  --color-gray-700: #3f4142;
  --color-gray-800: #2a2a2a;
  --color-gray-900: #0f1111;

  /* Theme Colors */
  --color-bg: #ffffff;
  --color-bg-secondary: #fafafa;
  --color-bg-tertiary: #f7f7f7;
  --color-text: #0f1111;
  --color-text-secondary: #565959;
  --color-text-muted: #8c8c8c;
  --color-border: #d5dbdb;
  --color-border-light: #eaeded;

  /* Typography */
  --font-family-primary: "Amazon Ember", "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.25rem;
  --spacing-2xl: 1.5rem;
  --spacing-3xl: 2rem;
  --spacing-4xl: 3rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.18);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Transitions */
  --transition: all 0.15s ease;
  --transition-slow: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --color-bg: #131921;
  --color-bg-secondary: #1e2328;
  --color-bg-tertiary: #232f3e;
  --color-text: #ffffff;
  --color-text-secondary: #cccccc;
  --color-text-muted: #999999;
  --color-border: #3f4142;
  --color-border-light: #565959;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  line-height: 1.4;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section.landing-hero {
  padding: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border-light);
}

/* Enhanced Header */
.header {
  background: var(--color-secondary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-top {
  background: var(--amazon-blue);
  padding: var(--spacing-sm) 0;
  text-align: center;
}

.announcement-text {
  font-size: var(--font-size-sm);
  color: var(--amazon-yellow);
  font-weight: 500;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.header-main {
  padding: var(--spacing-lg) 0;
}

.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--spacing-xl);
}

.logo h1 {
  font-size: var(--font-size-xl);
  margin: 0;
  color: white;
}

.logo .tagline {
  font-size: var(--font-size-xs);
  color: #cccccc;
}

.header-stats {
  display: flex;
  gap: var(--spacing-xl);
  justify-self: center;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--amazon-orange);
}

.stat-label {
  font-size: var(--font-size-xs);
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav {
  background: var(--amazon-blue-light);
  padding: var(--spacing-sm) 0;
}

.nav-content {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.nav-item {
  background: none;
  border: none;
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: 400;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  background: var(--color-primary);
  color: var(--color-text);
  font-weight: 600;
}

/* Landing Page Styles */
.hero-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--spacing-4xl);
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-xl);
  margin: var(--spacing-xl) 0;
  overflow: hidden;
  position: relative;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  padding: 0 var(--spacing-3xl);
  z-index: 1;
  position: relative;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  color: var(--color-text);
  line-height: 1.1;
}

.highlight {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.5;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.feature-icon {
  font-size: var(--font-size-lg);
}

.hero-image {
  position: relative;
  text-align: center;
}

.hero-product-image {
  width: 100%;
  max-width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.hero-badge {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: var(--color-success);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* Featured Deals Section */
.deals-countdown-section {
  margin: var(--spacing-4xl) 0;
}

.section-header-landing {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.featured-deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

/* Enhanced Deal Cards */
.deal-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
  position: relative;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.deal-card.featured {
  border: 2px solid var(--color-primary);
}

.deal-card.featured::before {
  content: '⭐ FEATURED';
  position: absolute;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
  background: var(--color-primary);
  color: var(--color-text);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  z-index: 2;
}

.deal-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.deal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.deal-card:hover .deal-image {
  transform: scale(1.05);
}

.deal-badge {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: var(--color-error);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  animation: pulse 1.5s infinite;
}

/* Enhanced Countdown Timer */
.countdown-timer {
  background: linear-gradient(135deg, var(--color-countdown), #ff8a50);
  color: white;
  padding: var(--spacing-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-timer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.countdown-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.countdown-item {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  backdrop-filter: blur(10px);
}

.countdown-number {
  font-size: var(--font-size-xl);
  font-weight: 700;
  font-family: "Courier New", monospace;
  display: block;
  line-height: 1;
}

.countdown-unit {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.countdown-urgency {
  font-size: var(--font-size-xs);
  font-weight: 500;
  opacity: 0.9;
}

/* Deal Content */
.deal-content {
  padding: var(--spacing-xl);
}

.deal-brand {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
}

.deal-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  line-height: 1.3;
}

.deal-price-section {
  margin-bottom: var(--spacing-lg);
}

.original-price {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.price-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.price-display {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: #B12704;
}

.price-crossed {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
}

.savings-badge {
  background: var(--color-success);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  display: inline-block;
}

/* Bid Stats */
.bid-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
}

.bid-stat {
  text-align: center;
}

.bid-stat-value {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  display: block;
}

.bid-stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bid Form */
.bid-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.bid-input {
  flex: 1;
  padding: var(--spacing-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: var(--transition);
}

.bid-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-color: var(--color-primary-dark);
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.btn--secondary {
  background: white;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-gray-400);
}

.btn--success {
  background: linear-gradient(135deg, var(--color-success), #055a47);
  color: white;
  border-color: var(--color-success);
}

.btn--lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-md);
  min-height: 52px;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* How It Works Section */
.how-it-works {
  background: var(--color-bg-secondary);
  padding: var(--spacing-4xl) 0;
  border-radius: var(--radius-xl);
  margin: var(--spacing-4xl) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-3xl);
}

.step-card {
  background: white;
  padding: var(--spacing-2xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition-slow);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--color-primary);
  color: var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-sm);
}

.step-icon {
  font-size: var(--font-size-4xl);
  margin: var(--spacing-lg) 0;
}

.step-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.step-card p {
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Recent Winners Section */
.recent-winners {
  margin: var(--spacing-4xl) 0;
}

.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.winner-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.winner-card:hover {
  box-shadow: var(--shadow-md);
}

.winner-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.winner-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.winner-info h4 {
  margin: 0;
  font-size: var(--font-size-md);
  color: var(--color-text);
}

.winner-info .win-time {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.winner-product {
  margin-bottom: var(--spacing-md);
}

.winner-product img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.winner-product-name {
  font-weight: 600;
  color: var(--color-text);
}

.winner-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border-light);
}

.winning-bid {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-success);
}

.bid-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text);
  padding: var(--spacing-4xl) 0;
  border-radius: var(--radius-xl);
  text-align: center;
  margin: var(--spacing-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>');
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

.cta-content p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-2xl);
  color: var(--color-text);
  opacity: 0.9;
}

.cta-button {
  background: white;
  color: var(--color-primary);
  border: 2px solid white;
  margin-bottom: var(--spacing-xl);
  font-weight: 700;
  font-size: var(--font-size-lg);
  padding: var(--spacing-xl) var(--spacing-3xl);
}

.cta-button:hover {
  background: var(--color-bg-secondary);
  transform: translateY(-3px);
}

.cta-benefits {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.cta-benefits span {
  font-size: var(--font-size-sm);
  font-weight: 500;
  opacity: 0.9;
}

/* Admin Panel Enhancements */
.admin-tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-2xl);
  border-bottom: 2px solid var(--color-border-light);
  overflow-x: auto;
}

.admin-tab {
  background: none;
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-size: var(--font-size-base);
}

.admin-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 700;
}

.admin-tab:hover {
  color: var(--color-text);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-quick-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* Real-time Monitoring Dashboard */
.realtime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.realtime-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.realtime-card.live {
  border-left: 4px solid var(--color-live);
}

.realtime-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.realtime-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin: 0;
}

.live-indicator {
  background: var(--color-live);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  animation: pulse 1s infinite;
}

/* LUBA Analysis Display */
.luba-analysis {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.luba-current-winner {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-success);
  color: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.luba-no-winner {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-warning);
  color: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

/* Bid List */
.bid-list {
  max-height: 300px;
  overflow-y: auto;
}

.bid-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.bid-item:last-child {
  border-bottom: none;
}

.bid-value {
  font-weight: 700;
  color: var(--color-text);
}

.bid-user {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.bid-time {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.bid-unique {
  background: var(--color-success);
  color: white;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
}

.bid-duplicate {
  background: var(--color-error);
  color: white;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
}

/* Data Tables */
.data-table {
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.data-table th {
  background: var(--color-bg-secondary);
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.data-table td {
  color: var(--color-text-secondary);
}

.data-table tbody tr:hover {
  background: var(--color-bg-secondary);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: var(--spacing-xs);
}

.btn-icon {
  padding: var(--spacing-sm);
  min-height: auto;
  width: 36px;
  height: 36px;
}

.btn-edit {
  background: var(--color-info);
  color: white;
}

.btn-delete {
  background: var(--color-error);
  color: white;
}

/* Status Badges */
.status-badge {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-live {
  background: var(--color-live);
  color: white;
}

.status-closed {
  background: var(--color-text-muted);
  color: white;
}

.status-scheduled {
  background: var(--color-info);
  color: white;
}

/* Auth Enhancements */
.auth-container {
  max-width: 450px;
  margin: var(--spacing-3xl) auto;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.auth-header {
  text-align: center;
  padding: var(--spacing-3xl);
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border-light);
}

.auth-header h2 {
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-2xl);
}

.auth-benefits {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: #e8f5e8;
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  text-align: center;
}

/* Form Enhancements */
.form-group {
  margin-bottom: var(--spacing-xl);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--font-size-base);
}

.form-control {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: var(--transition);
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .hero-banner {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }

  .hero-content {
    padding: 0;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .header-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }

  .header-stats {
    justify-self: center;
  }

  .nav-content {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .featured-deals-grid,
  .steps-grid,
  .winners-grid {
    grid-template-columns: 1fr;
  }

  .cta-benefits {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .realtime-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .countdown-display {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
  }

  .countdown-item {
    padding: var(--spacing-xs);
  }

  .auth-container {
    margin: var(--spacing-lg) auto;
  }
}

/* Print Styles */
@media print {
  .header,
  .nav,
  .footer,
  .modal-overlay,
  .toast-container,
  .loading-overlay,
  .admin-quick-actions {
    display: none !important;
  }

  .section {
    page-break-inside: avoid;
    padding: 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--spacing-lg);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-info { color: var(--color-info); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.no-wrap { white-space: nowrap; }
.truncate { 
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}