:root {
  --bg: #07101d;
  --bg-2: #0e1728;
  --surface: rgba(14, 23, 40, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.08);
  --text: #eef4ff;
  --muted: #b6c3e5;
  --primary: #ff6a3d;
  --primary-deep: #ff8f3d;
  --secondary: #2f90ff;
  --border: rgba(255, 255, 255, 0.12);
  --success: #1fc88d;
  --danger: #ff7676;
  --warning: #ffbe55;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 144, 255, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 106, 61, 0.22), transparent 20%),
    linear-gradient(180deg, #050c17 0%, #091120 35%, #0a1221 100%);
  min-height: 100vh;
}

body.page-shell {
  background:
    radial-gradient(circle at top left, rgba(47, 144, 255, 0.14), transparent 24%),
    radial-gradient(circle at right center, rgba(255, 106, 61, 0.16), transparent 20%),
    linear-gradient(180deg, #06101d 0%, #0b1324 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: #d6e6ff;
  text-decoration: none;
}

a:hover {
  opacity: 0.95;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

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

.background-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.42;
  z-index: -1;
}

.glow-1 {
  top: 80px;
  left: -70px;
  background: rgba(47, 144, 255, 0.36);
}

.glow-2 {
  top: 42vh;
  right: -90px;
  background: rgba(255, 106, 61, 0.34);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(5, 10, 18, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.compact {
  position: relative;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.brand-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.08rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
}

.desktop-nav,
.nav-actions,
.hero-cta,
.hero-meta,
.feature-list,
.link-stack,
.footer-links,
.trust-grid {
  display: flex;
}

.desktop-nav {
  gap: 1.2rem;
}

.desktop-nav a {
  color: var(--muted);
  font-weight: 600;
}

.nav-actions {
  gap: 0.75rem;
  align-items: center;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.92rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

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

.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.button-secondary {
  color: white;
  border-color: rgba(47, 144, 255, 0.34);
  background: linear-gradient(135deg, rgba(47, 144, 255, 0.2), rgba(47, 144, 255, 0.06));
}

.button-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(112deg, rgba(4, 8, 15, 0.92) 16%, rgba(4, 8, 15, 0.58) 55%, rgba(4, 8, 15, 0.75) 100%),
    linear-gradient(180deg, rgba(4, 8, 15, 0.1), rgba(4, 8, 15, 0.8));
}

.hero-grid,
.split-grid,
.dashboard-grid,
.auth-layout,
.gallery-grid,
.services-grid,
.stats-grid {
  display: grid;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  padding: 4rem 0;
}

.glass-card,
.panel,
.page-panel,
.hero-stat-card,
.action-card,
.gallery-card,
.service-card,
.stat-card,
.link-card,
.meta-pill,
.feature-pill,
.flash-message,
.table-wrap,
.vehicle-card,
.auth-panel,
.auth-side,
.contact-panel,
.map-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-card,
.auth-panel,
.auth-side,
.contact-panel,
.map-card,
.page-panel,
.dashboard-header {
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.hero-copy {
  padding: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 0.82rem;
  border-radius: 999px;
  background: rgba(47, 144, 255, 0.18);
  border: 1px solid rgba(47, 144, 255, 0.28);
  color: #d9ebff;
  font-weight: 700;
  font-size: 0.83rem;
  margin-bottom: 1rem;
}

.hero-copy h1,
.section-header h2,
.split-copy h2,
.contact-panel h2,
.auth-side h1,
.dashboard-header h1,
.panel-title {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-copy h1,
.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.auth-side h1,
.dashboard-header h1,
.contact-panel h2,
.split-copy h2,
.panel-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero-copy p,
.section-header p,
.split-copy p,
.auth-side p,
.panel-copy,
.dashboard-header p,
.contact-panel p,
.action-card p,
.service-copy,
footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-cta {
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.hero-meta,
.feature-list,
.link-stack,
.footer-links,
.trust-grid {
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 1.25rem;
}

.meta-pill,
.feature-pill {
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  color: #eef5ff;
  font-weight: 600;
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.hero-stat-card,
.action-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.hero-stat-card h3,
.action-card h3,
.page-panel h2,
.page-panel h3,
.empty-state h3,
.vehicle-card h3 {
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
}

.hero-stat-card p,
.action-card p,
.empty-state p,
.vehicle-card p,
.item-meta,
.mini-list,
.stack-list p {
  color: var(--muted);
  line-height: 1.6;
}

.stat-label,
.mini-heading,
.service-tag,
.caption-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.73rem;
  color: #96b7e9;
  font-weight: 800;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin: 0.5rem 0;
}

.trust-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
}

.trust-grid {
  justify-content: space-between;
  padding: 1rem 0;
  color: #dce9ff;
  font-weight: 700;
}

.section {
  padding: 5.5rem 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 1.8rem;
}

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

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card-body {
  padding: 1.25rem 1.25rem 1.4rem;
}

.service-card h3 {
  margin: 0.6rem 0 0.5rem;
  letter-spacing: -0.03em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.slideshow {
  position: relative;
  border-bottom: 1px solid var(--border);
}

.slides {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-dots {
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  display: flex;
  gap: 0.4rem;
}

.slide-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  padding: 0;
}

.slide-dot.active {
  background: white;
}

.split-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 1.3rem;
  align-items: center;
}

.split-grid.align-start,
.map-grid {
  align-items: start;
}

.portal-links-grid {
  display: grid;
  gap: 1rem;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 240px;
  position: relative;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.gallery-card figcaption,
.gallery-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.7);
  color: white;
  font-weight: 600;
}

.link-stack {
  flex-direction: column;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.link-card span {
  display: block;
  color: var(--muted);
  margin-top: 0.18rem;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.08);
}

.icon-badge.instagram { background: rgba(255, 85, 140, 0.18); }
.icon-badge.google { background: rgba(66, 133, 244, 0.18); }
.icon-badge.maps { background: rgba(16, 185, 129, 0.18); }

.map-card iframe {
  width: 100%;
  min-height: 440px;
  border: 0;
  border-radius: 18px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem 0 2.4rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  align-items: center;
}

.auth-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr);
  gap: 1.2rem;
  padding: 3rem 0 4rem;
}

.single-auth-layout {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.page-panel,
.panel,
.auth-panel,
.auth-side {
  width: 100%;
}

.narrow-panel {
  max-width: 620px;
  margin: 0 auto;
}

.dashboard-main {
  padding: 2rem 0 4rem;
  display: grid;
  gap: 1.2rem;
}

#customerContentMount {
  display: grid;
  gap: 1.2rem;
}

.customer-page-gap {
  margin-top: 0;
}


.dashboard-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.dashboard-grid.three-column {
  grid-template-columns: 1.1fr 1.15fr 0.95fr;
  gap: 1.2rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.stat-card .value {
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  font-weight: 800;
  margin-top: 0.35rem;
}

.stat-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-grid.single-column,
.compact-form {
  grid-template-columns: minmax(0, 1fr);
}

.form-grid label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.form-grid span,
label span {
  font-size: 0.88rem;
  color: #dce8ff;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 0.92rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  outline: none;
}

select option {
  color: #08111e;
}

input::placeholder,
textarea::placeholder {
  color: #96a9cc;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 144, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(47, 144, 255, 0.12);
}

textarea {
  resize: vertical;
}

.tab-header {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tab-button {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.active {
  background: linear-gradient(135deg, rgba(47, 144, 255, 0.32), rgba(47, 144, 255, 0.1));
  border-color: rgba(47, 144, 255, 0.45);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.flash-message {
  border-radius: 16px;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.flash-message.success {
  color: #dffaf0;
  border-color: rgba(31, 200, 141, 0.34);
  background: rgba(31, 200, 141, 0.16);
}

.flash-message.error {
  color: #ffe5e5;
  border-color: rgba(255, 118, 118, 0.3);
  background: rgba(255, 118, 118, 0.15);
}

.vehicle-list,
.stack-list {
  display: grid;
  gap: 0.9rem;
}

.vehicle-card,
.item-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1rem;
}

.vehicle-meta,
.item-meta,
.mini-list {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 1.2rem;
}

.table-wrap {
  border-radius: var(--radius-md);
  overflow: auto;
}

.table-wrap table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.table-wrap th {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9fbae5;
}

.table-wrap td {
  color: #f0f5ff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: capitalize;
}

.status-delivered,
.status-simulated {
  background: rgba(31, 200, 141, 0.18);
  color: #d9fff2;
}

.status-scheduled {
  background: rgba(255, 190, 85, 0.18);
  color: #ffefcf;
}

.status-failed {
  background: rgba(255, 118, 118, 0.18);
  color: #ffe4e4;
}

.gallery-preview-grid,
.admin-gallery-group {
  display: grid;
  gap: 1rem;
}

.gallery-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thumb-card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumb-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.thumb-card .thumb-copy {
  padding: 0.9rem;
}

.top-gap {
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .hero-grid,
  .auth-layout,
  .split-grid,
  .dashboard-grid.three-column,
  .dashboard-grid.two-column,
  .gallery-grid,
  .stats-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid.three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-wrap,
  .footer-wrap,
  .hero-meta,
  .desktop-nav,
  .nav-actions {
    flex-wrap: wrap;
  }

  .desktop-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-bottom: 0.8rem;
  }

  .hero,
  .section {
    min-height: unset;
  }

  .hero-grid,
  .auth-layout,
  .split-grid,
  .services-grid,
  .gallery-grid,
  .stats-grid,
  .dashboard-grid.two-column,
  .dashboard-grid.three-column,
  .map-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy,
  .glass-card,
  .page-panel,
  .auth-panel,
  .auth-side,
  .dashboard-header,
  .contact-panel,
  .map-card {
    padding: 1.35rem;
  }

  .container {
    width: min(var(--container), calc(100% - 1.1rem));
  }

  .table-wrap table {
    min-width: 600px;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .button {
    width: 100%;
  }

  .nav-actions {
    width: 100%;
  }

  .hero-copy h1,
  .section-header h2 {
    font-size: 2rem;
  }

  .gallery-card img,
  .thumb-card img {
    height: 200px;
  }

  .slide-dots {
    right: 0.7rem;
    bottom: 0.6rem;
  }
}


#wreckingHeroCard:empty,
#wreckingShowcase:empty,
#wreckingQuotePanel:empty {
  display: none;
}

.hero-side #heroCards {
  display: grid;
  gap: 1rem;
}

.hero-wrecking-card,
.wrecking-quote-card {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-wrecking-overlay,
.wrecking-quote-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 15, 0.28), rgba(4, 8, 15, 0.86));
}

.hero-wrecking-copy,
.wrecking-quote-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1.45rem;
}

.hero-wrecking-copy h3,
.wrecking-quote-copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-wrecking-copy p,
.wrecking-quote-copy p,
.hero-wrecking-note {
  color: #eef4ff;
  line-height: 1.65;
  max-width: 32rem;
}

.hero-wrecking-note {
  color: #d7e5ff;
  font-weight: 600;
}

.hero-wrecking-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wrecking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1.2rem;
  align-items: stretch;
}

.wrecking-quote-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.wrecking-showcase-card .slides {
  aspect-ratio: 16 / 10;
}

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

@media (max-width: 560px) {
  .hero-wrecking-copy,
  .wrecking-quote-copy {
    padding: 1.15rem;
  }

  .hero-wrecking-card,
  .wrecking-quote-card {
    min-height: 280px;
  }
}

.dashboard-tab-row,
.dashboard-subtab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-tab-row {
  margin-bottom: 1rem;
}

.dashboard-subtab-row {
  margin-bottom: 1rem;
}

.dashboard-tab-button,
.dashboard-subtab-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 16px;
  padding: 0.92rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dashboard-tab-button {
  flex: 1 1 180px;
}

.dashboard-subtab-button {
  flex: 1 1 210px;
}

.dashboard-tab-button:hover,
.dashboard-subtab-button:hover {
  transform: translateY(-1px);
}

.dashboard-tab-button.active,
.dashboard-subtab-button.active {
  background: linear-gradient(135deg, rgba(47, 144, 255, 0.28), rgba(255, 106, 61, 0.14));
  border-color: rgba(47, 144, 255, 0.45);
}

.dashboard-tab-panel,
.dashboard-subpanel {
  display: none;
}

.dashboard-tab-panel.active,
.dashboard-subpanel.active {
  display: block;
}

.panel-nested {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  max-width: 100%;
}

.compact-grid-gap {
  gap: 1rem;
}

.compact-top-gap {
  margin-top: 1rem;
}

.search-field-wrap {
  width: min(100%, 360px);
}

.section-row-stack-mobile {
  align-items: center;
}

.settings-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.settings-status-card,
.settings-note-card,
.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1rem;
}

.settings-status-main {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0.45rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.settings-status-card p,
.settings-note-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.8rem !important;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-row span {
  margin: 0;
}

.status-error {
  margin-top: 0.45rem;
  color: #ffdfdf;
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .settings-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-row-stack-mobile {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field-wrap {
    width: 100%;
  }
}


.admin-primary-nav {
  gap: 0.65rem;
  align-items: center;
}

.admin-primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.admin-primary-nav a:hover {
  transform: translateY(-1px);
  color: white;
}

.admin-primary-nav a.active {
  color: white;
  border-color: rgba(47, 144, 255, 0.42);
  background: linear-gradient(135deg, rgba(47, 144, 255, 0.24), rgba(255, 106, 61, 0.12));
}

.admin-screen {
  display: none;
}

.admin-screen.active {
  display: block;
}

.admin-header-card {
  margin-bottom: 1.25rem;
}

.admin-overview-panel {
  margin-top: 1rem;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.overview-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.overview-card h3,
.overview-card p {
  margin: 0;
}

.overview-card .button {
  margin-top: auto;
}

.admin-subnav-row {
  margin-bottom: 1.1rem;
}

@media (max-width: 860px) {
  .admin-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-primary-nav {
    justify-content: center;
  }

  .admin-primary-nav a {
    flex: 1 1 150px;
  }
}


.customer-primary-nav {
  gap: 0.65rem;
  align-items: center;
}

.customer-primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.customer-primary-nav a:hover {
  transform: translateY(-1px);
  color: white;
}

.customer-primary-nav a.active {
  color: white;
  border-color: rgba(47, 144, 255, 0.42);
  background: linear-gradient(135deg, rgba(47, 144, 255, 0.24), rgba(255, 106, 61, 0.12));
}

.customer-screen {
  display: none;
}

.customer-screen.active {
  display: block;
}

.customer-single-panel {
  max-width: 760px;
}

@media (max-width: 860px) {
  .customer-primary-nav {
    justify-content: center;
  }

  .customer-primary-nav a {
    flex: 1 1 180px;
  }
}


.button-small {
  min-height: 40px;
  padding: 0.68rem 0.9rem;
  font-size: 0.86rem;
}

.button-row,
.wrap-gap,
.invoice-badge-row,
.invoice-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.table-action-note {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 800;
  color: #d7ecff;
}

.service-records-note {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.compact-bottom-gap {
  margin-bottom: 1rem;
}

.invoice-shell {
  display: grid;
  gap: 1.2rem;
}

.invoice-main-card,
.invoice-note-card {
  overflow: hidden;
}

.invoice-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
}

.invoice-brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.invoice-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.invoice-status-stack {
  min-width: min(100%, 280px);
}

.invoice-status-pill {
  min-width: 140px;
}

.invoice-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.invoice-total-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.invoice-pay-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 22px;
  padding: 1rem;
}

.invoice-action-stack {
  display: grid;
  gap: 0.7rem;
}

.invoice-payment-note {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.invoice-method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eef4ff;
  font-weight: 700;
}

.invoice-mini-list {
  gap: 0.35rem;
}

@media (max-width: 920px) {
  .invoice-brand-row,
  .invoice-brand-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .invoice-summary-grid,
  .invoice-total-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field-hint { display:block; margin-top:6px; color:#94a3b8; font-size:12px; line-height:1.5; }
