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

:root {
  --sand: #d4a574;
  --sand-light: #e8cdb0;
  --sand-dark: #8b4513;
  --deep-desert: #2c1810;
  --spice-orange: #ff6b35;
  --spice-glow: #ff9a5c;
  --cream: #faf3eb;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #2c1810 0%, #3d2317 30%, #5a3a28 60%, #8b4513 100%);
  color: var(--cream);
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background: rgba(44, 24, 16, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--spice-orange);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}

.navbar-brand .logo {
  font-size: 1.8rem;
}

.navbar-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--spice-orange), var(--sand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-tagline {
  font-size: 0.85rem;
  color: var(--sand);
  opacity: 0.8;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.navbar-links a {
  color: var(--sand-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--spice-orange);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--spice-orange), var(--sand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--sand-light);
  opacity: 0.8;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem 0 3rem;
}

.product-card {
  background: rgba(250, 243, 235, 0.06);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
}

.product-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-image.melange {
  background: linear-gradient(135deg, #ff6b35, #d4a574, #ff9a5c);
}

.product-image.fremen {
  background: linear-gradient(135deg, #2c6e49, #4a9e70, #8b6914);
}

.product-image.harvester {
  background: linear-gradient(135deg, #5a3a28, #8b4513, #d4a574);
}

.product-image.navigator {
  background: linear-gradient(135deg, #1a3a5c, #2c5f8a, #4a90c4);
}

.product-info {
  padding: 1.25rem;
}

.product-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--cream);
}

.product-info .description {
  font-size: 0.85rem;
  color: var(--sand-light);
  opacity: 0.7;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-info .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--spice-orange);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--spice-orange), #e85d2a);
  color: white;
}

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

.btn-block {
  display: block;
  width: 100%;
}

/* Checkout Page */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-form-card {
  background: rgba(250, 243, 235, 0.06);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 12px;
  padding: 2rem;
}

.checkout-form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--cream);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sand-light);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(250, 243, 235, 0.08);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 8px;
  color: var(--cream);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--spice-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.form-group input::placeholder {
  color: rgba(232, 205, 176, 0.4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-errors {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}

/* Order Summary */
.order-summary {
  background: rgba(250, 243, 235, 0.06);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
}

.order-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--cream);
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--sand-light);
}

.order-divider {
  border: none;
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  margin: 0.75rem 0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--spice-orange);
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.6rem;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #86efac;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 2rem 0 3rem;
}

/* Admin Panel */
.admin-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
}

.admin-header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-header h2 {
  font-size: 1.8rem;
  color: var(--spice-orange);
  margin-bottom: 0.5rem;
}

.admin-header p {
  color: var(--sand-light);
  opacity: 0.7;
}

.phase-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.phase-btn {
  padding: 1.25rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phase-btn .phase-icon {
  font-size: 1.5rem;
  min-width: 40px;
  text-align: center;
}

.phase-btn .phase-text h4 {
  margin-bottom: 0.25rem;
}

.phase-btn .phase-text p {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.8;
}

.phase-btn-clean {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.3);
  color: #86efac;
}

.phase-btn-clean:hover,
.phase-btn-clean.active {
  background: rgba(22, 163, 74, 0.25);
  border-color: var(--success);
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.2);
}

.phase-btn-worm {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.phase-btn-worm:hover,
.phase-btn-worm.active {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--warning);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.phase-btn-skimmer {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

.phase-btn-skimmer:hover,
.phase-btn-skimmer.active {
  background: rgba(220, 38, 38, 0.25);
  border-color: var(--danger);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

.current-phase {
  text-align: center;
  padding: 1rem;
  background: rgba(250, 243, 235, 0.06);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.current-phase .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand);
  margin-bottom: 0.25rem;
}

.current-phase .value {
  font-size: 1.3rem;
  font-weight: 700;
}

.current-phase .value.clean {
  color: #86efac;
}

.current-phase .value.worm {
  color: #fcd34d;
}

.current-phase .value.skimmer {
  color: #fca5a5;
}

.demo-instructions {
  background: rgba(250, 243, 235, 0.04);
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
}

.demo-instructions h3 {
  font-size: 1rem;
  color: var(--sand);
  margin-bottom: 1rem;
}

.demo-instructions ol {
  padding-left: 1.25rem;
  color: var(--sand-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

.demo-instructions code {
  background: rgba(255, 107, 53, 0.15);
  color: var(--spice-glow);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--sand);
  opacity: 0.5;
  font-size: 0.8rem;
}
