/* ============================================================
   MACSTOFF | Mac-Online Design System
   Palette: Carbon · Steel Gray · Off White · Red · Aqua
   Typography: IBM Plex Sans · Josefin Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Josefin+Sans:wght@100;200;300;400&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Brand Palette */
  --carbon:       #23262B;
  --carbon-light: #2D3139;
  --carbon-mid:   #363B44;
  --steel:        #A0A4A8;
  --off-white:    #F7F7F5;
  --off-white-dim:#D8D8D6;
  --accent-red:   #D81E3A;
  --accent-red-d: #B51830;
  --accent-aqua:  #4BE3D3;
  --accent-aqua-d:#35C4B5;

  /* Semantic aliases */
  --bg:         var(--carbon);
  --surface:    var(--carbon-light);
  --surface-2:  var(--carbon-mid);
  --border:     rgba(255,255,255,0.08);
  --border-l:   rgba(255,255,255,0.14);
  --text:       var(--off-white);
  --text-muted: var(--steel);

  /* Status colors (for order tracker) */
  --s1: #6B7280;
  --s2: #A78BFA;
  --s3: #FBBF24;
  --s4: #FB923C;
  --s5: #34D399;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);

  /* Spacing */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px;
  --s5:20px; --s6:24px; --s8:32px; --s10:40px;
  --s12:48px; --s16:64px; --s20:80px; --s24:96px;

  /* Radii */
  --r-sm:4px; --r-md:8px; --r-lg:12px; --r-xl:16px;

  /* Transitions */
  --t: 200ms ease;
  --t-slow: 400ms ease;

  /* Fonts */
  --font:     'IBM Plex Sans', system-ui, sans-serif;
  --font-logo:'Josefin Sans', sans-serif;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--carbon);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── PAGE LOADER ────────────────────────────────────────────── */
#pageLoader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--carbon);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#pageLoader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: var(--font-logo);
  font-size: 2.5rem; font-weight: 200;
  letter-spacing: 0.4em; color: var(--off-white);
  text-transform: uppercase;
}
.loader-logo span { color: var(--accent-red); }
.loader-bar {
  width: 120px; height: 2px;
  background: var(--carbon-mid);
  border-radius: 2px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-aqua));
  border-radius: 2px;
  animation: loaderFill 1.2s ease forwards;
}
@keyframes loaderFill { to { width: 70%; } }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  background: rgba(35,38,43,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-slow), box-shadow var(--t-slow);
}
.navbar.scrolled {
  background: rgba(35,38,43,0.98);
  box-shadow: var(--shadow-md);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 36px; width: auto;
  filter: brightness(0) invert(1);
}
.nav-wordmark {
  font-family: var(--font-logo);
  font-size: 1.25rem; font-weight: 200;
  letter-spacing: 0.35em; color: var(--off-white);
  text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel);
  padding: 8px 14px; border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: var(--off-white); background: var(--border); }
.nav-right {
  display: flex; align-items: center; gap: 12px;
}
.nav-user-name {
  font-size: 0.82rem; color: var(--steel);
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-track-nav {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px; border-radius: var(--r-sm);
  transition: background var(--t), transform var(--t);
}
.btn-track-nav:hover { background: var(--accent-red-d); transform: translateY(-1px); }
.btn-logout {
  font-size: 0.78rem; color: var(--steel);
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.btn-logout:hover { color: var(--off-white); background: var(--border); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--off-white); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-mobile-menu {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0; z-index: 999;
  background: var(--carbon-light);
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--border);
  flex-direction: column; gap: 8px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a, .nav-mobile-menu button {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--steel);
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  transition: color var(--t);
}
.nav-mobile-menu a:hover, .nav-mobile-menu button:hover { color: var(--off-white); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(35,38,43,0.88) 0%,
    rgba(35,38,43,0.60) 50%,
    rgba(35,38,43,0.75) 100%
  );
}
.hero-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(35,38,43,0.9) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 780px;
  padding: clamp(40px,8vw,100px) clamp(24px,5vw,80px);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-aqua);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--accent-aqua);
}
.hero h1 {
  font-family: var(--font-logo);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 200; line-height: 1.15;
  letter-spacing: 0.02em; color: var(--off-white);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--off-white-dim); line-height: 1.75;
  max-width: 580px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-red); color: #fff;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--r-sm);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 20px rgba(216,30,58,0.3);
}
.btn-primary:hover {
  background: var(--accent-red-d); transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(216,30,58,0.45);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(247,247,245,0.3); color: var(--off-white);
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--r-sm);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.btn-outline:hover {
  border-color: var(--off-white); background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--steel); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: heroScrollBob 2s ease-in-out infinite;
}
.hero-scroll-arrow { font-size: 1.2rem; }
@keyframes heroScrollBob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── SECTIONS (shared) ──────────────────────────────────────── */
.section {
  padding: clamp(60px, 10vw, 120px) clamp(24px, 5vw, 80px);
}
.section-dark { background: var(--carbon); }
.section-mid  { background: var(--carbon-light); }
.section-alt  { background: var(--carbon-mid); }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-red);
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; display: block; width: 28px; height: 1px; background: var(--accent-red);
}
.section-title {
  font-family: var(--font-logo);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 200; line-height: 1.2;
  letter-spacing: 0.04em; color: var(--off-white);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1rem; color: var(--steel);
  line-height: 1.7; max-width: 560px;
  margin-bottom: 48px;
}
.divider-line {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-aqua));
  border-radius: 2px; margin: 20px 0 40px;
}

/* ── SERVICES SECTION ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  margin-top: 48px;
}
.service-card {
  background: var(--surface);
  padding: 48px 40px;
  position: relative; overflow: hidden;
  transition: background var(--t);
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-aqua));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: var(--surface-2); }
.service-icon {
  font-size: 2rem; margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-logo); font-size: 1.2rem;
  font-weight: 300; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--off-white);
  margin-bottom: 12px;
}
.service-card p { font-size: 0.9rem; color: var(--steel); line-height: 1.7; }

/* ── ABOUT SECTION ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
}
.about-img-wrap::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, rgba(35,38,43,0.6), transparent);
}
.about-img-wrap img {
  width: 100%; height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-img-wrap:hover img { transform: scale(1.03); }
.about-text p {
  font-size: 0.95rem; color: var(--steel);
  line-height: 1.85; margin-bottom: 20px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 40px;
}
.stat-item { border-left: 2px solid var(--accent-red); padding-left: 16px; }
.stat-num {
  font-family: var(--font-logo); font-size: 2rem;
  font-weight: 200; color: var(--off-white);
}
.stat-num span { color: var(--accent-red); }
.stat-label { font-size: 0.78rem; color: var(--steel); letter-spacing: 0.08em; }

/* ── REFERENCES SECTION ─────────────────────────────────────── */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
  margin-top: 40px;
}
.reference-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t), border-color var(--t);
}
.reference-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
}
.reference-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity var(--t);
}
.reference-item:hover img {
  opacity: 1;
}

/* ── GALLERY SECTION ────────────────────────────────────────── */
.gallery-grid {
  columns: 4; column-gap: 4px;
  margin-top: 40px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 4px;
  overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(35,38,43,0.0);
  transition: background var(--t);
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(35,38,43,0.35); }
.gallery-item-overlay span {
  color: white; font-size: 1.5rem; opacity: 0;
  transition: opacity var(--t);
}
.gallery-item:hover .gallery-item-overlay span { opacity: 1; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
}
.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  font-size: 2rem; color: white;
  cursor: pointer; z-index: 9001;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.1);
  transition: background var(--t);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: white;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  cursor: pointer; z-index: 9001;
  transition: background var(--t);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── CERTIFICATES SECTION ───────────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.cert-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden; cursor: pointer;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  aspect-ratio: 3/4;
  position: relative;
}
.cert-item:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(216,30,58,0.2);
}
.cert-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cert-item:hover img { transform: scale(1.03); }
.cert-zoom {
  position: absolute; inset: 0;
  background: rgba(35,38,43,0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white; opacity: 0;
  transition: background var(--t), opacity var(--t);
}
.cert-item:hover .cert-zoom {
  background: rgba(35,38,43,0.4); opacity: 1;
}

/* ── ORDER CTA SECTION ──────────────────────────────────────── */
.order-cta-section {
  background: linear-gradient(135deg, var(--carbon-light) 0%, var(--carbon-mid) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(80px,12vw,140px) clamp(24px,5vw,80px);
  text-align: center;
  position: relative; overflow: hidden;
}
.order-cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(216,30,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.order-cta-section .section-title { font-size: clamp(2rem,4vw,3.2rem); margin: 0 auto 20px; }
.order-cta-section .section-subtitle { margin: 0 auto 48px; }
.btn-cta-large {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent-red); color: #fff;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 48px; border-radius: var(--r-sm);
  transition: all 0.3s ease;
  box-shadow: 0 4px 32px rgba(216,30,58,0.35);
}
.btn-cta-large:hover {
  background: var(--accent-red-d); transform: translateY(-3px);
  box-shadow: 0 8px 48px rgba(216,30,58,0.5);
}
.btn-cta-large .cta-arrow { font-size: 1.2rem; transition: transform var(--t); }
.btn-cta-large:hover .cta-arrow { transform: translateX(4px); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: #1A1C1F;
  border-top: 1px solid var(--border);
  padding: 60px clamp(24px,5vw,80px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; max-width: 1200px; margin: 0 auto;
}
.footer-brand .nav-wordmark { font-size: 1.1rem; margin-bottom: 16px; display: block; }
.footer-desc { font-size: 0.875rem; color: var(--steel); line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--off-white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem; color: var(--steel);
  transition: color var(--t);
}
.footer-col ul li a:hover { color: var(--accent-aqua); }
.footer-bottom {
  max-width: 1200px; margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: var(--steel); }
.footer-accent { color: var(--accent-red); }

/* ── ORDER PANEL (Side Drawer) ──────────────────────────────── */
.order-panel-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-slow);
}
.order-panel-backdrop.open { opacity: 1; pointer-events: all; }

.order-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2001;
  width: min(600px, 100vw);
  background: var(--carbon-light);
  border-left: 1px solid var(--border-l);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32,0,0.15,1);
  box-shadow: var(--shadow-xl);
}
.order-panel.open { transform: translateX(0); }

.order-panel-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.order-panel-head h2 {
  font-family: var(--font-logo);
  font-size: 1.1rem; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--off-white);
}
.panel-close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--steel); font-size: 1.4rem;
  transition: background var(--t), color var(--t);
}
.panel-close:hover { background: var(--border); color: var(--off-white); }

.order-panel-body { flex: 1; overflow-y: auto; padding: 24px 28px; }
.order-panel-body::-webkit-scrollbar { width: 4px; }
.order-panel-body::-webkit-scrollbar-track { background: transparent; }
.order-panel-body::-webkit-scrollbar-thumb { background: var(--carbon-mid); border-radius: 4px; }

/* Order list in panel */
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.order-card:hover { border-color: var(--border-l); background: var(--carbon); }
.order-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.order-card-name { font-size: 0.95rem; font-weight: 500; color: var(--off-white); }
.order-card-no { font-size: 0.75rem; color: var(--steel); margin-top: 2px; }
.order-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--steel);
}
.order-card-qty { color: var(--steel); }

/* Order detail in panel */
.order-detail { display: none; }
.order-detail.active { display: block; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--steel); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 24px;
  transition: color var(--t);
}
.back-btn:hover { color: var(--off-white); }
.order-detail-title {
  font-size: 1.1rem; font-weight: 500; color: var(--off-white);
  margin-bottom: 8px;
}
.order-detail-meta { font-size: 0.82rem; color: var(--steel); margin-bottom: 32px; }

/* Status Badge */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  white-space: nowrap;
}
.status-badge.s-ordered  { background:rgba(107,114,128,0.15); color:#9CA3AF; }
.status-badge.s-material { background:rgba(167,139,250,0.15); color:#A78BFA; }
.status-badge.s-production{ background:rgba(251,191,36,0.15); color:#FBBF24; }
.status-badge.s-shipping { background:rgba(251,146,60,0.15); color:#FB923C; }
.status-badge.s-delivered{ background:rgba(52,211,153,0.15); color:#34D399; }

/* Progress Tracker */
.progress-tracker {
  margin: 24px 0; padding: 24px;
  background: var(--carbon);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.tracker-steps {
  display: flex; flex-direction: column; gap: 0;
}
.tracker-step {
  display: flex; gap: 16px; position: relative;
}
.tracker-step:not(:last-child)::after {
  content: '';
  position: absolute; left: 16px; top: 36px;
  width: 2px; height: calc(100% - 0px);
  background: var(--border-l);
  z-index: 0;
}
.tracker-step.done::after { background: var(--accent-aqua); }
.step-dot-wrap {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; padding-top: 4px;
}
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600; flex-shrink: 0;
  position: relative; z-index: 1;
  border: 2px solid var(--border-l);
  background: var(--surface-2); color: var(--steel);
  transition: all 0.3s ease;
}
.tracker-step.done .step-dot {
  background: var(--accent-aqua); border-color: var(--accent-aqua);
  color: var(--carbon); box-shadow: 0 0 12px rgba(75,227,211,0.4);
}
.tracker-step.current .step-dot {
  background: var(--accent-red); border-color: var(--accent-red);
  color: white; box-shadow: 0 0 12px rgba(216,30,58,0.4);
  animation: stepPulse 2s ease-in-out infinite;
}
@keyframes stepPulse {
  0%,100%{box-shadow:0 0 12px rgba(216,30,58,0.4)}
  50%{box-shadow:0 0 20px rgba(216,30,58,0.7)}
}
.step-info {
  padding: 4px 0 24px;
}
.step-info h4 { font-size: 0.9rem; font-weight: 500; color: var(--off-white); }
.step-info p { font-size: 0.78rem; color: var(--steel); margin-top: 2px; }
.tracker-step.done .step-info h4 { color: var(--off-white); }
.tracker-step:not(.done):not(.current) .step-info h4 { color: var(--steel); }

/* Attachments */
.attachments-section { margin-top: 20px; }
.attachments-title {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 12px;
}
.attachment-list { display: flex; flex-direction: column; gap: 8px; }
.attachment-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--carbon); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-size: 0.82rem; color: var(--steel);
  transition: border-color var(--t), color var(--t);
}
.attachment-item:hover { border-color: var(--accent-aqua); color: var(--accent-aqua); }
.attachment-icon { font-size: 1rem; }
.attachment-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { font-size: 0.74rem; color: var(--steel); flex-shrink: 0; }

/* No orders state */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; text-align: center;
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; color: var(--off-white); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; color: var(--steel); }

/* Spinner in panel */
.panel-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px; gap: 16px;
}
.panel-spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--border-l);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LOGIN PAGE ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--carbon);
  padding: 24px;
}
.login-bg {
  position: fixed; inset: 0; z-index: 0;
  background-image: url('https://macstoff.com/wp-content/uploads/2025/04/12.jpg');
  background-size: cover; background-position: center;
  opacity: 0.08;
}
.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: var(--carbon-light);
  border: 1px solid var(--border-l);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-xl);
}
.login-logo-wrap {
  text-align: center; margin-bottom: 36px;
}
.login-logo-img {
  height: 32px; margin: 0 auto 12px;
  filter: brightness(0) invert(1);
}
.login-brand {
  font-family: var(--font-logo); font-size: 1.6rem; font-weight: 200;
  letter-spacing: 0.45em; color: var(--off-white);
  text-transform: uppercase;
}
.login-divider {
  height: 1px; background: var(--border-l); margin: 24px 0;
}
.login-subtitle {
  text-align: center; font-size: 0.85rem; color: var(--steel);
  margin-bottom: 32px; line-height: 1.6;
}
.login-subtitle span { color: var(--off-white); }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 8px;
}
.form-input {
  width: 100%; height: 48px;
  background: var(--carbon); color: var(--off-white);
  border: 1px solid var(--border-l); border-radius: var(--r-sm);
  padding: 0 16px;
  font-family: var(--font); font-size: 1rem;
  letter-spacing: 0.1em; text-align: center;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-input::placeholder { color: var(--steel); letter-spacing: 0.06em; font-size: 0.9rem; }
.form-input:focus {
  outline: none; border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(216,30,58,0.15);
}
.form-error {
  font-size: 0.78rem; color: #F87171;
  margin-top: 8px; text-align: center; min-height: 20px;
}
.btn-login {
  width: 100%; height: 48px;
  background: var(--accent-red); color: #fff;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: var(--r-sm);
  transition: background var(--t), transform var(--t);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-login:hover { background: var(--accent-red-d); transform: translateY(-1px); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.login-admin-link {
  text-align: center; margin-top: 24px;
  font-size: 0.78rem; color: var(--steel);
}
.login-admin-link a { color: var(--steel); transition: color var(--t); }
.login-admin-link a:hover { color: var(--off-white); }

/* ── ADMIN PANEL ────────────────────────────────────────────── */
.admin-page {
  min-height: 100vh;
  background: var(--carbon);
  display: flex; flex-direction: column;
}
.admin-login {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.admin-login-card {
  width: 100%; max-width: 400px;
  background: var(--carbon-light);
  border: 1px solid var(--border-l);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-xl);
}
.admin-brand {
  text-align: center; margin-bottom: 8px;
  font-family: var(--font-logo); font-size: 1.4rem;
  font-weight: 200; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--off-white);
}
.admin-badge {
  display: inline-block; text-align: center; width: 100%;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-red);
  margin-bottom: 28px;
}
.admin-topbar {
  height: 60px; background: var(--carbon-light);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px,3vw,40px);
  flex-shrink: 0;
}
.admin-topbar-brand {
  font-family: var(--font-logo); font-size: 1rem;
  font-weight: 200; letter-spacing: 0.3em; color: var(--off-white);
}
.admin-topbar-brand span { color: var(--accent-red); }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-topbar-user { font-size: 0.8rem; color: var(--steel); }
.btn-sm {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 14px;
  border-radius: var(--r-sm); transition: all var(--t);
}
.btn-sm-outline {
  border: 1px solid var(--border-l); color: var(--steel);
}
.btn-sm-outline:hover { border-color: var(--off-white); color: var(--off-white); }
.btn-sm-red { background: var(--accent-red); color: white; }
.btn-sm-red:hover { background: var(--accent-red-d); }
.btn-sm-aqua { background: rgba(75,227,211,0.15); color: var(--accent-aqua); border: 1px solid rgba(75,227,211,0.3); }
.btn-sm-aqua:hover { background: rgba(75,227,211,0.25); }

.admin-layout {
  display: flex; flex: 1; overflow: hidden; min-height: calc(100vh - 60px);
}
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: #1A1C1F;
  border-right: 1px solid var(--border);
  padding: 24px 0; overflow-y: auto;
}
.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--steel); cursor: pointer;
  transition: color var(--t), background var(--t);
  border-left: 2px solid transparent;
}
.sidebar-nav-item:hover { color: var(--off-white); background: var(--border); }
.sidebar-nav-item.active {
  color: var(--off-white); background: rgba(216,30,58,0.1);
  border-left-color: var(--accent-red);
}
.sidebar-nav-item .nav-icon { font-size: 1rem; }
.sidebar-section {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--carbon-mid);
  padding: 16px 20px 8px;
}

.admin-main {
  flex: 1; overflow-y: auto;
  padding: clamp(20px,3vw,40px);
  display: flex; flex-direction: column; gap: 24px;
}
.admin-main::-webkit-scrollbar { width: 4px; }
.admin-main::-webkit-scrollbar-thumb { background: var(--carbon-mid); border-radius: 4px; }

.admin-tab { display: none; }
.admin-tab.active { display: flex; flex-direction: column; gap: 24px; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.page-title {
  font-family: var(--font-logo); font-size: 1.3rem;
  font-weight: 200; letter-spacing: 0.15em; color: var(--off-white);
}
.page-subtitle { font-size: 0.82rem; color: var(--steel); margin-top: 4px; }

/* Stats row */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.stat-card.red::before  { background: var(--accent-red); }
.stat-card.aqua::before { background: var(--accent-aqua); }
.stat-card.gray::before { background: var(--steel); }
.stat-card.green::before{ background: #34D399; }
.stat-card-icon { font-size: 1.4rem; margin-bottom: 8px; }
.stat-card-num {
  font-size: 1.8rem; font-weight: 700; color: var(--off-white);
}
.stat-card-label { font-size: 0.78rem; color: var(--steel); margin-top: 2px; }

/* Table */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.table-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.table-head-title { font-size: 0.9rem; font-weight: 600; color: var(--off-white); }
.table-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--carbon); border: 1px solid var(--border-l);
  border-radius: var(--r-sm); padding: 6px 12px;
  flex: 1; max-width: 260px;
}
.table-search input {
  background: none; border: none; outline: none;
  color: var(--off-white); font-family: var(--font); font-size: 0.82rem;
  width: 100%; min-width: 0;
}
.table-search input::placeholder { color: var(--steel); }
.table-search-icon { color: var(--steel); font-size: 0.9rem; flex-shrink: 0; }
table {
  width: 100%; border-collapse: collapse;
}
th {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel);
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 14px 16px; font-size: 0.85rem; color: var(--off-white);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.td-muted { color: var(--steel); font-size: 0.8rem; }
.td-code {
  font-family: monospace; font-size: 0.95rem;
  letter-spacing: 0.2em; color: var(--accent-aqua);
}
.td-actions { display: flex; align-items: center; gap: 6px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 520px;
  background: var(--carbon-light);
  border: 1px solid var(--border-l);
  border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-xl);
  max-height: 90vh; display: flex; flex-direction: column;
}
.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 1rem; font-weight: 600; color: var(--off-white); }
.modal-body { padding: 28px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex; gap: 12px; justify-content: flex-end;
}

/* Form elements (admin) */
.field-group { margin-bottom: 20px; }
.field-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 8px;
}
.field-input, .field-select, .field-textarea {
  width: 100%;
  background: var(--carbon); color: var(--off-white);
  border: 1px solid var(--border-l); border-radius: var(--r-sm);
  padding: 10px 14px;
  font-family: var(--font); font-size: 0.875rem;
  transition: border-color var(--t);
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none; border-color: var(--accent-red);
}
.field-select { cursor: pointer; }
.field-select option { background: var(--carbon-light); }
.field-textarea { resize: vertical; min-height: 80px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Status select highlight */
.status-select-ordered   { color: #9CA3AF; }
.status-select-material  { color: #A78BFA; }
.status-select-production{ color: #FBBF24; }
.status-select-shipping  { color: #FB923C; }
.status-select-delivered { color: #34D399; }

/* ── TOAST ──────────────────────────────────────────────────── */
#toastContainer {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none; align-items: flex-end;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--r-md);
  font-size: 0.875rem; font-weight: 500;
  max-width: 340px; box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  pointer-events: auto;
}
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } }
.toast.success { background: #065F46; color: #6EE7B7; }
.toast.error   { background: #7F1D1D; color: #FCA5A5; }
.toast.info    { background: #1E3A5F; color: #93C5FD; }
.toast.warning { background: #78350F; color: #FCD34D; }
.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-dismiss { margin-left: auto; cursor: pointer; opacity: 0.7; font-size: 1rem; }
.toast-dismiss:hover { opacity: 1; }

/* ── UTILS ──────────────────────────────────────────────────── */
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-muted { color: var(--steel); }
.text-aqua  { color: var(--accent-aqua); }
.text-red   { color: var(--accent-red); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { order: -1; }
  .about-img-wrap img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery-grid { columns: 3; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-user-name { display: none; }
  .btn-track-nav span { display: none; }
  .btn-track-nav { padding: 8px 14px; }
  .hero h1 { font-size: 1.8rem; }
  .gallery-grid { columns: 2; }
  .certs-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .about-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-layout { flex-direction: column; }
  .field-grid { grid-template-columns: 1fr; }
  .order-panel { width: 100vw; }
}

@media (max-width: 480px) {
  .login-card, .admin-login-card { padding: 36px 24px; }
  .gallery-grid { columns: 1; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── ADMIN PANEL LEGACY COMPAT ──────────────────────────────── */
/* These classes support existing admin/index.html structure */

/* Buttons (admin uses .btn .btn-primary etc.) */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--r-sm);
  font-family: var(--font); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.06em;
  cursor: pointer; border: none; transition: all var(--t);
  white-space: nowrap;
}
.btn-primary-legacy, .btn.btn-primary {
  background: var(--accent-red); color: #fff;
}
.btn.btn-primary:hover { background: var(--accent-red-d); }
.btn-ghost, .btn.btn-ghost {
  background: transparent; color: var(--steel);
  border: 1px solid var(--border-l);
}
.btn.btn-ghost:hover { color: var(--off-white); border-color: var(--off-white); }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; }
.btn-lg { padding: 12px 24px; font-size: 0.9rem; }
.btn-xl { padding: 14px 28px; font-size: 0.95rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--steel); font-size: 1rem;
  transition: all var(--t); background: transparent;
}
.icon-btn:hover { background: var(--border); color: var(--off-white); }

/* Layout */
.app-shell {
  display: flex; height: calc(100vh - 60px); overflow: hidden;
}
.main-content {
  flex: 1; overflow-y: auto; padding: 32px;
}
.main-content::-webkit-scrollbar { width: 4px; }
.main-content::-webkit-scrollbar-thumb { background: var(--carbon-mid); border-radius: 4px; }

/* Navbar (admin) — overrides the fixed navbar for admin panel */
#adminDashSection .navbar {
  position: sticky; top: 0; z-index: 100;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: var(--carbon-light); border-bottom: 1px solid var(--border);
  backdrop-filter: none;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-sep { width: 1px; height: 20px; background: var(--border-l); }

/* Sidebar (admin) */
.sidebar {
  width: 210px; flex-shrink: 0;
  background: #1A1C1F; border-right: 1px solid var(--border);
  padding: 16px 0; overflow-y: auto;
}
.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-section-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--carbon-mid);
  padding: 12px 16px 6px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  font-size: 0.82rem; font-weight: 500; color: var(--steel);
  cursor: pointer; transition: all var(--t);
  border-left: 2px solid transparent; text-align: left;
  background: none; width: 100%;
}
.sidebar-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-item:hover { color: var(--off-white); background: var(--border); }
.sidebar-item.active {
  color: var(--off-white); background: rgba(216,30,58,0.1);
  border-left-color: var(--accent-red);
}
.sidebar-badge {
  margin-left: auto; font-size: 0.65rem; font-weight: 700;
  background: var(--accent-red); color: white;
  padding: 2px 7px; border-radius: 100px; min-width: 20px; text-align: center;
}

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-title { font-size: 0.95rem; font-weight: 600; color: var(--off-white); }

/* Tabs */
.tab-panel { display: none; flex-direction: column; gap: 24px; }
.tab-panel.active { display: flex; }

/* Stats (old .stat-card variant) */
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px;
}
.stat-icon { width: 24px; height: 24px; margin-bottom: 10px; }
.stat-number { font-size: 1.9rem; font-weight: 700; color: var(--off-white); }
.stat-label { font-size: 0.78rem; color: var(--steel); margin-top: 2px; }

/* Table wrap */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }

/* Forms (admin legacy) */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 7px;
}
.form-input {
  width: 100%; background: var(--carbon); color: var(--off-white);
  border: 1px solid var(--border-l); border-radius: var(--r-sm);
  padding: 10px 14px;
  font-family: var(--font); font-size: 0.875rem;
  transition: border-color var(--t);
}
.form-input:focus { outline: none; border-color: var(--accent-red); box-shadow: 0 0 0 2px rgba(216,30,58,0.15); }
.form-input option { background: var(--carbon-light); }
.form-error { font-size: 0.78rem; color: #F87171; margin-top: 6px; }
.form-error.show { display: block; }

/* Macstoff wordmark (admin legacy) */
.macstoff-wordmark {
  font-family: var(--font-logo); font-weight: 200;
  letter-spacing: 0.4em; color: var(--off-white);
  text-transform: uppercase;
}
.macstoff-wordmark.sm { font-size: 1rem; }
.portal-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--steel); margin-top: 4px;
}

/* Admin login (overrides) */
.brand-stripe { height: 3px; background: linear-gradient(90deg, var(--accent-red), var(--accent-aqua)); }
.admin-login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--carbon); padding: 24px;
}

/* Misc */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; }
.mt-6 { margin-top: 24px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-secondary { color: var(--steel); }
.text-muted { color: var(--steel); }

/* Nav user badge */
.nav-user-badge { display: flex; align-items: center; gap: 8px; }
.nav-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: white;
}

/* Spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block;
}

/* Status options (order edit modal) */
.status-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--r-md);
  border: 2px solid var(--border-l);
  cursor: pointer; transition: all var(--t);
  margin-bottom: 8px;
}
.status-option:hover { border-color: var(--border-l); background: var(--border); }
.status-option.selected { border-color: var(--accent-aqua); background: rgba(75,227,211,0.08); }
.status-option input[type="radio"] { display: none; }
.status-option-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.status-option-label { font-size: 0.875rem; font-weight: 500; color: var(--off-white); }

/* Section title (admin) */
.section-title {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 12px;
}

/* Modal (admin compat) */
.modal-sm .modal { max-width: 480px; }
.modal-lg .modal { max-width: 680px; }
.modal-header .icon-btn { margin-left: auto; }

/* Attachment item (admin upload) */
.attachment-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--carbon); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-size: 0.82rem; color: var(--steel); text-decoration: none;
  transition: border-color var(--t), color var(--t);
}
.attachment-item:hover { border-color: var(--accent-aqua); color: var(--accent-aqua); }
.attachment-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { font-size: 0.74rem; flex-shrink: 0; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-l); border-radius: var(--r-md);
  padding: 32px; text-align: center; cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent-red); background: rgba(216,30,58,0.05);
}
.upload-zone p { font-size: 0.875rem; color: var(--steel); margin-top: 8px; }

/* Login code input */
.login-code-input { letter-spacing: 0.3em; font-size: 1.2rem; text-align: center; }

/* Page header */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 0;
}
.page-title {
  font-family: var(--font-logo); font-size: 1.3rem;
  font-weight: 200; letter-spacing: 0.15em; color: var(--off-white);
}
.page-subtitle { font-size: 0.82rem; color: var(--steel); margin-top: 4px; }
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════
   NEW DASHBOARD APP SHELL — Sidebar + Tab SPA Layout
   All classes prefixed to avoid conflicts with admin panel
   ═══════════════════════════════════════════════════════════ */

:root {
  --topbar-h: 62px;
  --dash-sidebar-w: 228px;
}

/* ── TOPBAR ──────────────────────────────────────────────────── */
.app-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 1000;
  background: rgba(26,28,31,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.topbar-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: background var(--t);
}
.topbar-menu-btn:hover { background: var(--border); }
.topbar-menu-btn span {
  display: block;
  width: 21px; height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.topbar-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-username {
  font-size: 0.8rem;
  color: var(--steel);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-logout {
  font-size: 0.78rem;
  color: var(--steel);
  padding: 7px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  transition: color var(--t), background var(--t), border-color var(--t);
}
.topbar-logout:hover {
  color: var(--off-white);
  background: rgba(255,255,255,0.06);
  border-color: var(--border-l);
}

/* ── APP BODY (below topbar) ─────────────────────────────────── */
.app-body {
  display: flex;
  height: calc(100vh - var(--topbar-h));
  margin-top: var(--topbar-h);
  overflow: hidden;
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.dash-sidebar {
  width: var(--dash-sidebar-w);
  flex-shrink: 0;
  background: #1A1C1F;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.dash-sidebar::-webkit-scrollbar { display: none; }

.dash-sidebar-nav {
  flex: 1;
  padding: 20px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  width: 100%;
  text-align: left;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--steel);
  border-left: 3px solid transparent;
  border-radius: 0;
  transition: color var(--t), background var(--t), border-color var(--t);
  line-height: 1.3;
}
.dash-nav-item:hover {
  color: var(--off-white);
  background: rgba(255,255,255,0.05);
}
.dash-nav-item.active {
  color: var(--off-white);
  background: rgba(216,30,58,0.1);
  border-left-color: var(--accent-red);
}

.dash-nav-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.dash-nav-label {
  font-size: 0.81rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.dash-sidebar-bottom {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.dash-nav-logout:hover {
  color: #F87171 !important;
  background: rgba(248,113,113,0.07) !important;
}

/* Mobile overlay */
.dash-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}
.dash-sidebar-overlay.open { display: block; }

/* ── MAIN CONTENT ────────────────────────────────────────────── */
.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--carbon);
  scrollbar-width: thin;
  scrollbar-color: var(--carbon-mid) transparent;
}
.app-main::-webkit-scrollbar { width: 5px; }
.app-main::-webkit-scrollbar-track { background: transparent; }
.app-main::-webkit-scrollbar-thumb { background: var(--carbon-mid); border-radius: 3px; }

/* ── TAB CONTENT ─────────────────────────────────────────────── */
.dash-tab {
  display: none;
  padding: 44px 48px;
}
.dash-tab.active { display: block; }

.dash-tab-header {
  margin-bottom: 8px;
}

.dash-tab-title {
  font-family: var(--font-logo);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--off-white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.dash-tab-subtitle {
  font-size: 0.92rem;
  color: var(--steel);
  line-height: 1.65;
  margin-top: 8px;
  max-width: 520px;
}

/* Section padding inside tab */
.dash-tab-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* ── TAB HERO (Biz Kimiz?) ───────────────────────────────────── */
.dash-hero-block {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.dash-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.dash-hero-block:hover .dash-hero-bg { transform: scale(1); }

.dash-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,28,31,0.9) 0%, rgba(26,28,31,0.55) 100%);
}

.dash-hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 52px;
  max-width: 700px;
}
.dash-hero-content h2 {
  font-family: var(--font-logo);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 200;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: var(--off-white);
  margin: 12px 0 14px;
}
.dash-hero-content p {
  font-size: 0.92rem;
  color: var(--off-white-dim);
  line-height: 1.75;
}

/* About heading in tab */
.about-heading {
  font-family: var(--font-logo);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--off-white);
  margin-bottom: 16px;
  line-height: 1.3;
}

/* ── ORDERS INLINE ───────────────────────────────────────────── */
.orders-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 16px;
  color: var(--steel);
  font-size: 0.9rem;
}
.orders-loading-icon {
  font-size: 3rem;
  opacity: 0.5;
  animation: ordBob 2.2s ease-in-out infinite;
}
@keyframes ordBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── APP FOOTER ──────────────────────────────────────────────── */
.app-footer {
  padding: 18px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.03em;
  background: #1A1C1F;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ── TABLET (≤ 1024px) ──────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --dash-sidebar-w: 200px;
  }
  .dash-tab {
    padding: 36px 36px;
  }
  .dash-hero-content {
    padding: 36px 40px;
  }
  .app-footer {
    padding: 16px 36px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-img-wrap img {
    height: 320px;
  }
}

/* ── MOBILE (≤ 768px) ───────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --topbar-h: 56px;
    --dash-sidebar-w: 256px;
  }

  /* Show hamburger */
  .topbar-menu-btn { display: flex; }

  /* Hide username on mobile */
  .topbar-username { display: none; }

  /* Sidebar slides in from left */
  .dash-sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    height: calc(100vh - var(--topbar-h));
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  .dash-sidebar.open { transform: translateX(0); }

  /* Body takes full width */
  .app-body {
    height: auto;
    min-height: calc(100vh - var(--topbar-h));
    overflow: visible;
  }

  /* Main scrolls naturally */
  .app-main {
    overflow-y: visible;
    min-height: calc(100vh - var(--topbar-h));
    width: 100%;
  }

  /* Tab padding on mobile */
  .dash-tab {
    padding: 24px 16px 32px;
  }

  /* Hero block */
  .dash-hero-block {
    min-height: 200px;
    border-radius: var(--r-md);
  }
  .dash-hero-content {
    padding: 28px 24px;
  }
  .dash-hero-content h2 {
    font-size: 1.3rem;
  }

  /* Gallery */
  .gallery-grid { columns: 2; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 2px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-img-wrap img { height: 240px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Certs */
  .certs-grid { grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); }

  /* References */
  .references-grid { grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: 12px; }

  /* Order cards */
  .order-list { gap: 10px; }
  .order-card { padding: 16px; }

  /* Tabs */
  .dash-tab-title { font-size: 1.5rem; }
  .dash-tab-section { margin-top: 32px; padding-top: 32px; }

  /* Footer */
  .app-footer { padding: 14px 16px; font-size: 0.7rem; }
}

/* ── SMALL MOBILE (≤ 480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-tab-title { font-size: 1.3rem; }
  .services-grid { gap: 2px; }
  .dash-hero-content h2 { font-size: 1.1rem; }
}

