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

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-accent: #1a1a1a;
  --orange: #ff6b2b;
  --orange-glow: rgba(255, 107, 43, 0.15);
  --orange-hover: #ff8a55;
  --amber: #ffaa33;
  --green: #22c55e;
  --blue: #3b82f6;
  --text-primary: #f5f5f5;
  --text-secondary: #999;
  --text-muted: #666;
  --border: #222;
  --radius: 10px;
  --radius-sm: 8px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo span { color: var(--orange); }

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

.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--orange) !important; color: var(--bg-dark) !important;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600 !important; transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--orange-hover) !important; }

/* ===== PAGE CONTAINER ===== */
#app { padding-top: 68px; min-height: 100vh; }

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center;
  padding: 4rem 2rem; position: relative;
}

.hero::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse at 80% 30%, var(--orange-glow) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}

.hero-label {
  display: inline-block; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--orange); margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 107, 43, 0.3); border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -2px; max-width: 800px; margin-bottom: 2rem;
}

.hero h1 em { font-style: normal; color: var(--orange); }

.hero-sub {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 520px; line-height: 1.7; margin-bottom: 3rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex; gap: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}

.hero-stat h3 { font-size: 2rem; font-weight: 700; color: var(--orange); }

.hero-stat p {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 0.25rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s;
}

.btn-primary { background: var(--orange); color: var(--bg-dark); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: var(--bg-accent); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); transform: translateY(-1px); }

/* ===== SECTIONS ===== */
.divider { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.divider-line { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

.section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 3px; color: var(--orange); margin-bottom: 1rem;
}

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* ===== PROBLEM SECTION ===== */
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.problem-text h2 {
  font-size: 2.5rem; font-weight: 700;
  line-height: 1.15; letter-spacing: -1px; margin-bottom: 1.5rem;
}

.problem-text p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }

.problem-cards { display: flex; flex-direction: column; gap: 1rem; }

.problem-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: border-color 0.3s;
}

.problem-card:hover { border-color: rgba(255, 107, 43, 0.3); }

.problem-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--orange-glow); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.problem-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.problem-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* ===== SERVICES GRID ===== */
.services-section {
  padding: 5rem 2rem; background: var(--bg-card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

.services-inner { max-width: 1200px; margin: 0 auto; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: all 0.3s; cursor: pointer;
}

.service-card:hover {
  border-color: rgba(255, 107, 43, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--orange-glow);
}

.service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 700;
  color: var(--bg-accent);
  -webkit-text-stroke: 1px var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-icon { font-size: 2rem; margin-bottom: 1rem; }

.service-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; }

.service-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

.service-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--border);
}

.service-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; color: var(--amber); font-size: 0.95rem;
}

.service-duration { color: var(--text-muted); font-size: 0.85rem; }

/* ===== HOW IT WORKS ===== */
.how-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; position: relative; max-width: 1000px; margin: 0 auto;
}

.how-steps::before {
  content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%;
  height: 2px; background: linear-gradient(90deg, var(--orange), var(--amber)); opacity: 0.3;
}

.how-step { text-align: center; position: relative; }

.step-dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.1rem; color: var(--orange);
  position: relative; z-index: 1;
}

.how-step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.how-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== CLOSING CTA ===== */
.closing {
  padding: 6rem 2rem; text-align: center; position: relative;
}

.closing::before {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 80%; height: 60%;
  background: radial-gradient(ellipse at center bottom, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}

.closing h2 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
  letter-spacing: -1.5px; margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}

.closing p {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 550px;
  margin: 0 auto 2rem; line-height: 1.7; position: relative; z-index: 1;
}

/* ===== FOOTER ===== */
footer {
  padding: 2rem; border-top: 1px solid var(--border); text-align: center;
}

footer p { font-size: 0.8rem; color: var(--text-muted); }
footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { color: var(--orange); }

.footer-links {
  display: flex; justify-content: center; gap: 2rem; margin-top: 1rem;
}

/* ===== BOOKING FORM ===== */
.booking-container {
  max-width: 650px; margin: 0 auto; padding: 2rem 2rem 4rem;
}

.booking-container h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.booking-container > p { color: var(--text-secondary); margin-bottom: 2rem; }

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

.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  transition: border-color 0.2s; outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }

.form-group textarea { min-height: 100px; resize: vertical; }

.form-group select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}

.form-group select option { background: var(--bg-card); color: var(--text-primary); }

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

/* Photo upload */
.photo-upload {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: all 0.2s; position: relative;
}

.photo-upload:hover { border-color: var(--orange); background: var(--orange-glow); }

.photo-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.photo-upload .upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.photo-upload p { color: var(--text-secondary); font-size: 0.9rem; }
.photo-upload .hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.25rem; }

.photo-previews { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.photo-preview {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  object-fit: cover; border: 1px solid var(--border);
}

/* Time slots */
.slot-dates {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding-bottom: 0.5rem; margin-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}

.slot-date-btn {
  flex-shrink: 0; padding: 0.6rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
  cursor: pointer; text-align: center; transition: all 0.2s;
}

.slot-date-btn:hover { border-color: var(--text-muted); }

.slot-date-btn.active {
  border-color: var(--orange); background: var(--orange-glow); color: var(--orange);
}

.slot-date-btn .day-name {
  display: block; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.15rem;
}

.slot-date-btn .day-num {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.1rem;
}

.slot-times {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem;
}

.slot-time-btn {
  padding: 0.6rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-secondary); font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; text-align: center; transition: all 0.2s;
}

.slot-time-btn:hover { border-color: var(--text-muted); }

.slot-time-btn.active {
  border-color: var(--orange); background: var(--orange-glow); color: var(--orange);
}

/* Booking success */
.booking-success { text-align: center; padding: 6rem 2rem; max-width: 500px; margin: 0 auto; }
.success-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.booking-success h2 { margin-bottom: 0.75rem; }
.booking-success p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.tracking-code-display {
  display: inline-block; background: var(--bg-accent);
  border: 2px solid var(--orange); border-radius: var(--radius);
  padding: 1rem 2.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: var(--orange); letter-spacing: 2px; margin-bottom: 1.5rem;
}

/* ===== TRACKER ===== */
.tracker-container { max-width: 600px; margin: 0 auto; padding: 2rem 2rem 4rem; }

.tracker-search { display: flex; gap: 0.75rem; margin-bottom: 2rem; }

.tracker-search input {
  flex: 1; padding: 0.85rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: 'DM Sans', sans-serif; font-size: 1rem;
  outline: none; text-transform: uppercase; letter-spacing: 1px;
}

.tracker-search input:focus { border-color: var(--orange); }
.tracker-search input::placeholder { text-transform: none; letter-spacing: 0; }

/* Status pipeline */
.status-pipeline { display: flex; flex-direction: column; margin: 2rem 0; }

.status-step {
  display: flex; align-items: flex-start; gap: 1rem;
  position: relative; padding-bottom: 2rem;
}
.status-step:last-child { padding-bottom: 0; }

.status-dot-wrapper { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }

.status-dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; background: var(--bg-accent);
  border: 2px solid var(--border); color: var(--text-muted);
  flex-shrink: 0; position: relative; z-index: 1;
}

.status-dot.completed { background: var(--green); border-color: var(--green); color: white; }

.status-dot.active {
  background: var(--orange-glow); border-color: var(--orange);
  color: var(--orange); animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 43, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 43, 0); }
}

.status-line {
  width: 2px; flex: 1; min-height: 20px;
  background: var(--border); margin-top: 4px;
}

.status-line.completed { background: var(--green); }

.status-info { flex: 1; padding-top: 0.4rem; }
.status-info h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.status-info p { color: var(--text-muted); font-size: 0.85rem; }
.status-info .status-time { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.2rem; }
.status-info.dimmed h4 { color: var(--text-muted); }

/* Booking detail card */
.booking-detail {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem;
}

.booking-detail-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}

.booking-detail-header h3 { font-size: 1.1rem; }

.status-badge {
  display: inline-block; padding: 0.3rem 0.75rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.status-badge.received { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.status-badge.diagnosed { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.status-badge.repairing { background: var(--orange-glow); color: var(--orange); }
.status-badge.testing { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.status-badge.ready { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.status-badge.picked_up { background: rgba(34, 197, 94, 0.15); color: var(--green); }

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

.detail-item label {
  display: block; font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.15rem;
}
.detail-item span { font-size: 0.95rem; }

.detail-photos { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.detail-photo {
  width: 100px; height: 100px; border-radius: var(--radius-sm);
  object-fit: cover; border: 1px solid var(--border);
}

/* ===== UTILITIES ===== */
.loading { display: flex; justify-content: center; padding: 3rem; }

.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--orange); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 3rem 1.25rem; }
  .hero h1 { letter-spacing: -1px; }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }
  .problem-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .how-steps::before { display: none; }
  .section { padding: 3rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .tracker-search { flex-direction: column; }
  .booking-container, .tracker-container { padding: 1.5rem 1.25rem 4rem; }
}

@media (max-width: 480px) {
  .how-steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .tracking-code-display { font-size: 1.5rem; padding: 0.75rem 1.5rem; }
}
