/* Responsive: Ensure Orders and Technicians tables are visible and scrollable on mobile */
@media (max-width: 900px) {
  .orders-table,
  .technicians-table {
    display: none !important;
  }
  .orders-cards,
  .technicians-cards {
    display: block !important;
    width: 100%;
  }
}

.technicians-cards {
  display: none;
}

@media (max-width: 900px) {
  .technicians-cards {
    display: block !important;
    margin-top: 0.5rem;
  }
}

.technician-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.95rem 1rem;
  border-radius: 16px;
  margin-bottom: 0.9rem;
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.45;
}

.technician-card .tc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  gap: 0.5rem;
}

.technician-card .tc-title {
  font-weight: 500;
  font-size: 0.96rem;
}

.technician-card .tc-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.technician-card .tc-status {
  font-size: 0.74rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-left: 0.5rem;
}

.technician-card .tc-actions {
  margin-top: 0.5rem;
}
/* Hide mobile nav and hamburger on desktop */
@media (min-width: 901px) {
  #hamburgerBtn,
  #bottomNav,
  .hamburger-menu {
    display: none !important;
  }
}

/* Show hamburger and bottom nav only on mobile */
@media (max-width: 900px) {
  #hamburgerBtn {
    display: flex !important;
  }
  #bottomNav {
    display: flex !important;
  }
}
:root {
  --bg: #020617;
  --fg: #f9fafb;
  --muted: #cbd5f5;
  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,0.18);
  --card-bg: rgba(15,23,42,0.9);
  --card-soft: rgba(15,23,42,0.8);
  --radius: 18px;
  --shadow: 0 22px 45px rgba(0,0,0,0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #0f172a 0%, #020617 55%, #020617 100%);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2,6,23,0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148,163,184,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.brand-sub {
  opacity: 0.7;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--fg);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.4rem 0.9rem !important;
  border-radius: 999px;
  background: var(--accent);
  color: #0b1120 !important;
  font-weight: 600;
  border: none !important;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(56,189,248,0.35);
}

.nav-cta:hover {
  transform: translateY(-1px) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO */

.hero {
  position: relative;
  width: 100%;
  min-height: 78vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../pics/swim-spa-hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: brightness(0.68);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(15,118,255,0.45), transparent 55%),
    linear-gradient(to top, rgba(15,23,42,0.95), rgba(15,23,42,0.5));
  z-index: -1;
}

.hero-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
}

.hero-main {
  max-width: 100%;
  text-align: center;
}

.hero-logo {
  height: 96px;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.6));
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 750;
  margin: 0 0 0.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  margin-bottom: 1.6rem;
  color: var(--muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.tag-chip {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.8);
  color: var(--muted);
}

/* Filter and action button chips */
.chip-active {
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.6);
  color: #60a5fa;
  font-weight: 500;
}

.chip-toggle-on {
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #86efac;
  font-weight: 500;
}

.chip-toggle-off {
  background: rgba(107, 114, 128, 0.2);
  border: 1px solid rgba(107, 114, 128, 0.5);
  color: #d1d5db;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  color: #0b1120;
  font-weight: 600;
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 16px 40px rgba(56,189,248,0.35);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.75);
  background: rgba(15,23,42,0.85);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

.hero-note {
  font-size: 0.8rem;
  opacity: 0.8;
}

.hero-side {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148,163,184,0.35);
}

.card-heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.route-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  padding: 0.35rem 0;
}

.route-number {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(56,189,248,0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent);
  flex-shrink: 0;
}

.route-text {
  color: var(--muted);
}

.route-row.route-double {
  align-items: center;
}

.route-number-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.route-number-stack .route-number {
  width: 1.6rem;
  height: 1.6rem;
}

.route-highlight {
  margin-top: 0.9rem;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  border: 1px dashed rgba(148,163,184,0.7);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.pill {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(22,163,74,0.18);
  border: 1px solid rgba(34,197,94,0.55);
  font-size: 0.75rem;
  color: #bbf7d0;
  white-space: nowrap;
}

/* SECTIONS */

section {
  padding: 4.5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

/* GRID CARDS */

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

.service-card {
  background: var(--card-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148,163,184,0.35);
  text-align: left;
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.9rem;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.service-meta {
  font-size: 0.8rem;
  color: rgba(148,163,184,0.9);
}

/* HOW IT WORKS + SERVICE AREA */

.how-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.step-card {
  background: var(--card-soft);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: var(--shadow);
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.step-num {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.6);
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent);
  flex-shrink: 0;
}

.step-body {
  flex: 1;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.step-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.service-area {
  background: linear-gradient(to right, rgba(56,189,248,0.16), rgba(15,23,42,0.96));
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.2rem 1.4rem;
  font-size: 0.95rem;
}

.service-area-main {
  max-width: none;
}

.service-area-main h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.service-area-main p {
  margin: 0;
  color: #e0f2fe;
}

.service-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #e0f2fe;
  justify-self: end;
  align-self: start;
  max-width: 360px;
}

.service-area-tags span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
}

@media (max-width: 900px) {
  .service-area {
    grid-template-columns: 1fr;
  }

  .service-area-tags {
    justify-self: flex-start;
  }
}

/* PRICING */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.price-card {
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), rgba(15,23,42,0.96));
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.price-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--muted);
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-amount {
  font-size: 1.8rem;
  font-weight: 700;
}

.price-period {
  font-size: 0.85rem;
  color: var(--muted);
}

.price-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.price-list li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.price-list li::before {
  content: "•";
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.05rem;
}

.price-cta {
  margin-top: auto;
}

.price-cta a {
  text-decoration: none;
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.price-cta a:hover {
  transform: translateY(-1px);
}

.price-cta a.primary {
  background: var(--accent);
  color: #0b1120;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(56,189,248,0.35);
}

/* CONTACT CTA */

.cta {
  text-align: center;
  background: linear-gradient(to right, rgba(56,189,248,0.25), rgba(59,130,246,0.12));
  border-radius: 26px;
  padding: 2rem 1.5rem 2.3rem;
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: var(--shadow);
}

.cta h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.7rem;
}

.cta p {
  margin: 0 0 1.4rem;
  color: #e0f2fe;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
}

.cta-contact {
  font-size: 0.95rem;
  color: #e0f2fe;
}

.cta-contact span {
  font-weight: 600;
}

/* FOOTER */

footer {
  padding: 2.6rem 0 2.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(148,163,184,0.8);
}

/* ORDER PAGE STYLES */

.page-title {
  text-align: center;
  margin-bottom: 2rem;
}

.page-title h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-title small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: rgba(148,163,184,0.95);
}

.form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(148,163,184,0.4);
  padding: 2rem 1.8rem 1.8rem;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input,
select,
textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.9);
  color: var(--fg);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.4);
}

textarea {
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}

.inline-help {
  font-size: 0.8rem;
  color: rgba(148,163,184,0.9);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--fg);
}

.actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.3rem;
}

.mini-note {
  font-size: 0.8rem;
  color: rgba(148,163,184,0.95);
  max-width: 360px;
}

.error {
  color: #fecaca;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 4px;
  display: none;
}

.back-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(148,163,184,0.6);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.back-link:hover {
  border-color: var(--accent);
  color: var(--fg);
}

/* ADMIN PAGE STYLES */

.pill-env {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  font-size: 0.75rem;
}

.gate-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
}
.pill-btn {
  padding: 6px 10px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill-btn.pill-active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
}
.pill-btn:hover { filter: brightness(1.1); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}
.badge-warn {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}
.badge-info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.pill-action {
  padding: 6px 10px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 12px;
  cursor: pointer;
}
.pill-action:hover { filter: brightness(1.1); }

/* Status + payment chips */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  white-space: nowrap;
}

.status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.status-new,
.status-pending {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
}

.status-routed,
.status-inroute,
.status-in-route,
.status-authorized {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
}

.status-done,
.status-charged,
.status-paid {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.status-cancelled,
.status-failed {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
}

.status-refunded {
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.12);
}

.status-unpaid,
.status-not-charged {
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

.status-chip.tight {
  padding: 4px 8px;
  font-size: 11px;
}

.gate-card {
  width: min(420px, 100%);
  background: var(--card-bg);
  padding: 2rem 1.8rem 1.8rem;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: var(--shadow);
  text-align: center;
}

.gate-card h1 {
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.gate-card p {
  margin-top: 0;
  margin-bottom: 1.3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.gate-error {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #fecaca;
  display: none;
}

.mini-warning {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: rgba(248,250,252,0.7);
  opacity: 0.85;
}

main {
  padding: 2.2rem 0 3rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 1.8rem;
  align-items: start;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem 1.3rem;
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.badge {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  color: var(--muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(2,6,23,0.98);
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    gap: 0.8rem;
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 2.6rem;
    padding-bottom: 3.4rem;
  }

  .hero-side {
    margin-top: 0.5rem;
  }

  .hero-logo {
    height: 78px;
  }

  .service-area {
    padding-inline: 1.2rem;
  }
}



/* Portal product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.product-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.product-title {
  color: #f9fafb;
  font-size: 1rem;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.product-desc {
  color: #94a3b8;
  font-size: 0.86rem;
  margin: 0 0 12px 0;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 12px;
}

.product-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.product-unit {
  color: var(--muted);
  font-size: 0.85rem;
}

.product-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.qty-input {
  width: 68px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  color: #f9fafb;
  text-align: center;
}

.btn-cart {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #020617;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.32);
  filter: brightness(0.98);
}

.btn-cart:active {
  transform: translateY(0);
}


/* Payment Status Badges */
.payment-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.payment-pending, .payment-not_charged, .payment-unpaid {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.payment-paid {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.payment-failed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.payment-refunded {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.payment-cancelled {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

@media (max-width: 700px) {
  form {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .mini-note {
    max-width: none;
  }
}

@media (max-width: 600px) {
  section {
    padding: 3.3rem 0;
  }

  .hero-inner {
    padding-top: 2.1rem;
  }

  .hero-main {
    max-width: none;
  }

  .cta {
    padding-inline: 1.2rem;
  }
}