/* Responsive safety layer. It preserves the existing visual system and only
   adjusts sizing, wrapping, scrolling and touch behaviour across viewports. */

html {
  --gb-page-gutter: clamp(16px, 4vw, 56px);
  --gb-admin-gutter: clamp(20px, 5vw, 28px);
  --gb-container-max: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background-color: #0d0d0d;
}

img,
picture,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

iframe {
  display: block;
}

main,
section,
header,
footer,
nav,
.admin-layout,
.main-wrap,
.panel-box {
  min-width: 0;
}

p,
h1,
h2,
h3,
h4,
a,
address,
td,
th {
  overflow-wrap: anywhere;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

pre,
code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
}

.table-wrap,
.gb-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

/* The exported Tailwind bundle does not contain the arbitrary h-[80px]
   utility used by the shared logo. Keep the intended logo dimensions. */
header img[src$="assets/img/logo.png"],
header img[src="assets/img/logo.png"],
header img[src="../assets/img/logo.png"],
header img[src="../../assets/img/logo.png"] {
  width: auto !important;
  height: 84px !important;
  max-width: 220px !important;
  object-fit: contain;
}

#root > .sticky.top-0.z-50 header > div:first-child > a:first-child {
  margin-left: -16px !important;
}

@media (min-width: 768px) {
  #root > .sticky.top-0.z-50 header > div:first-child > nav + a {
    margin-right: -16px !important;
  }
}

#root > .sticky.top-0.z-50 header > div:first-child {
  height: 76px !important;
  min-height: 76px !important;
}

#root > .sticky.top-0.z-50 > header {
  width: min(100%, var(--gb-container-max)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Shared GoBright background theme */
#root,
#root main,
#root > .min-h-screen,
#root > div > .min-h-screen {
  width: 100%;
  max-width: min(100%, var(--gb-container-max)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background-color: #0d0d0d;
  background-image:
    linear-gradient(rgba(227, 32, 40, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 32, 40, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(227, 32, 40, 0.1), transparent 34%, rgba(255, 255, 255, 0.025));
  background-position: center top;
  background-size: 56px 56px, 56px 56px, 100% 100%;
}

#root main > section,
#root > section,
#root > div > section,
#root footer {
  background-image:
    linear-gradient(rgba(227, 32, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(145deg, rgba(227, 32, 40, 0.08), transparent 30%, rgba(255, 255, 255, 0.018));
  background-position: center top;
  background-size: 64px 64px, 64px 64px, 100% 100%;
}

#root header {
  background-image: linear-gradient(90deg, rgba(227, 32, 40, 0.08), transparent 38%, rgba(255, 255, 255, 0.02));
}

/* Public website */
@media (min-width: 576px) {
  html {
    --gb-container-max: 540px;
  }
}

@media (min-width: 768px) {
  html {
    --gb-container-max: 720px;
  }
}

@media (min-width: 992px) {
  html {
    --gb-container-max: 960px;
  }
}

@media (min-width: 1200px) {
  html {
    --gb-container-max: 1140px;
  }
}

@media (min-width: 1400px) {
  html {
    --gb-container-max: 1320px;
  }
}

@media (min-width: 1536px) {
  html {
    --gb-container-max: 1600px;
    --gb-page-gutter: clamp(32px, 3vw, 72px);
  }
}

@media (min-width: 1920px) {
  html {
    --gb-container-max: 1720px;
  }
}

@media (min-width: 2560px) {
  html {
    --gb-container-max: 1720px;
    --gb-page-gutter: 72px;
  }
}

#root .container,
#root .gb-container,
#root header > div[class*="max-w-7xl"],
#root footer > div[class*="max-w-7xl"],
#root footer .border-t > div[class*="max-w-7xl"],
#root main > section > div[class*="max-w-7xl"],
#root > section > div[class*="max-w-7xl"],
#root > div > section > div[class*="max-w-7xl"] {
  width: 100%;
  max-width: var(--gb-container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#root main > div[class*="max-w-"],
#root main > div[class*="mx-auto"],
#root > main > div[class*="max-w-"],
#root > main > div[class*="mx-auto"],
#root > div > main > div[class*="max-w-"],
#root > div > main > div[class*="mx-auto"],
#root section > div[class*="mx-auto"],
#root main > section > header[class*="mx-auto"],
#root main > section > header[class*="max-w-"],
#root > section > header[class*="mx-auto"],
#root > section > header[class*="max-w-"] {
  width: 100%;
  max-width: var(--gb-container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#root .container,
#root .gb-container,
#root header > div[class*="px-"],
#root main > section[class*="px-"],
#root main > section > div[class*="px-"],
#root main > div[class*="px-"],
#root main > div[class*="max-w-"],
#root main > div[class*="mx-auto"],
#root > section[class*="px-"],
#root > section > div[class*="px-"],
#root > div > section[class*="px-"],
#root > div > section > div[class*="px-"],
#root footer > div[class*="px-"],
#root footer .border-t > div[class*="px-"] {
  padding-left: max(var(--gb-page-gutter), env(safe-area-inset-left)) !important;
  padding-right: max(var(--gb-page-gutter), env(safe-area-inset-right)) !important;
}

#root main > section:not([class*="px-"]) > div[class*="max-w-"],
#root main > section:not([class*="px-"]) > div[class*="mx-auto"],
#root main > div:not([class*="px-"])[class*="max-w-"],
#root main > div:not([class*="px-"])[class*="mx-auto"],
#root > section:not([class*="px-"]) > div[class*="max-w-"],
#root > section:not([class*="px-"]) > div[class*="mx-auto"],
#root > div > section:not([class*="px-"]) > div[class*="max-w-"],
#root > div > section:not([class*="px-"]) > div[class*="mx-auto"] {
  padding-left: max(var(--gb-page-gutter), env(safe-area-inset-left)) !important;
  padding-right: max(var(--gb-page-gutter), env(safe-area-inset-right)) !important;
}

#root :where(section, main) > :where(div, header, article)[class*="max-w-"],
#root :where(section, main) > :where(div, header, article)[class*="mx-auto"] {
  max-width: var(--gb-container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1023px) {
  #root [class*="grid-cols-["],
  #root [class*="lg:grid-cols-["] {
    grid-template-columns: 1fr !important;
  }

  #root [class*="max-w-7xl"],
  #root [class*="max-w-6xl"],
  #root [class*="max-w-5xl"],
  #root [class*="max-w-4xl"] {
    max-width: var(--gb-container-max) !important;
  }
}

#root .gb-clients-strip,
#root .gb-clients-strip .gb-client-logo-card {
  background-color: transparent !important;
  background-image: none !important;
}

#root .gb-services-provide img {
  opacity: 1 !important;
  filter: brightness(1.08) contrast(1.08) saturate(1.06);
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.55s ease, filter 0.55s ease, opacity 0.3s ease;
  will-change: transform;
}

#root .gb-services-provide a:hover > img,
#root .gb-services-provide a:focus-visible > img {
  transform: scale(1.06);
  filter: brightness(1.12) contrast(1.1) saturate(1.08);
}

#root .gb-services-provide a > div.absolute.inset-0[class*="bg-linear-to-t"] {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.12) 42%, transparent 76%) !important;
}

#root .gb-services-provide a > div.absolute.inset-0[class*="bg-[#e32028]"] {
  background: transparent !important;
}

#root .gb-career-roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

#root .gb-career-job-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)), #151515;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
}

#root .gb-career-job-head,
#root .gb-career-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

#root .gb-career-kicker {
  margin: 0 0 8px;
  color: #e32028;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#root .gb-career-job-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
}

#root .gb-career-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(227, 32, 40, 0.1);
  color: #f2f2f2;
  font-size: 0.78rem;
  font-weight: 800;
}

#root .gb-career-summary {
  color: #cfd4dc;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
  text-align: left;
}

#root .gb-career-summary-wrap {
  position: relative;
  max-height: 172px;
  margin-top: 16px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#root .gb-career-summary-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(21, 21, 21, 0), #151515 82%);
}

#root .gb-career-job-card.is-open .gb-career-summary-wrap {
  max-height: none;
}

#root .gb-career-job-card.is-open .gb-career-summary-wrap::after {
  display: none;
}

#root .gb-career-reqs {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

#root .gb-career-reqs li {
  position: relative;
  padding-left: 18px;
  color: #f4f4f5;
  font-size: 0.9rem;
  line-height: 1.5;
}

#root .gb-career-reqs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #e32028;
}

#root .gb-career-apply-btn,
#root .gb-career-apply-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: #e32028;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

#root .gb-career-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
}

#root .gb-career-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid rgba(227, 32, 40, 0.45);
  border-radius: 999px;
  background: rgba(227, 32, 40, 0.08);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

#root .gb-career-read-btn:hover {
  background: rgba(227, 32, 40, 0.16);
  border-color: rgba(227, 32, 40, 0.85);
}

#root .gb-career-apply-btn {
  margin-top: 0;
}

#root .gb-career-empty {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  text-align: center;
}

#root .gb-career-apply-form {
  width: min(100%, 760px);
  display: grid;
  gap: 14px;
  text-align: left;
}

#root .gb-career-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#root .gb-career-apply-form input,
#root .gb-career-apply-form select,
#root .gb-career-apply-form textarea,
#root .gb-career-file {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
}

#root .gb-career-apply-form textarea {
  resize: vertical;
  min-height: 120px;
  grid-column: 1 / -1;
}

#root .gb-career-file {
  display: grid;
  gap: 8px;
  cursor: pointer;
}

#root .gb-career-file span {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

#root .gb-career-file input {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#root .gb-career-file small {
  color: #8f9bad;
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  #root .gb-career-form-grid {
    grid-template-columns: 1fr;
  }

  #root .gb-career-job-head {
    flex-direction: column;
  }

  #root .gb-career-summary {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  #root .gb-career-summary-wrap {
    max-height: 210px;
  }

  #root .gb-career-read-btn,
  #root .gb-career-apply-btn {
    width: min(100%, 220px);
  }
}

/* Footer layout: keep the section full-width and make support the wider last column. */
#root footer {
  width: min(100%, var(--gb-container-max));
  max-width: var(--gb-container-max);
  margin-left: auto;
  margin-right: auto;
}

#root footer.gb-pro-footer {
  left: auto !important;
  width: min(100%, var(--gb-container-max)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#root footer > div[class*="max-w-7xl"],
#root footer .border-t > div[class*="max-w-7xl"] {
  max-width: var(--gb-container-max) !important;
}

#root footer.gb-pro-footer > div:first-child > div:first-child,
#root footer.gb-pro-footer > div:first-child > div:first-child > div {
  text-align: left !important;
}

#root footer.gb-pro-footer > div:first-child > div:first-child > div,
#root footer.gb-pro-footer .gb-support-column,
#root footer.gb-pro-footer .gb-quick-links-column,
#root footer.gb-pro-footer .gb-quick-links-column > div {
  align-items: flex-start !important;
}

#root footer.gb-pro-footer > div:first-child > div:first-child p,
#root footer.gb-pro-footer > div:first-child > div:first-child address,
#root footer.gb-pro-footer > div:first-child > div:first-child h3,
#root footer.gb-pro-footer > div:first-child > div:first-child a,
#root footer.gb-pro-footer .gb-brand-column .gb-social-block,
#root footer.gb-pro-footer .gb-map-address-link {
  text-align: left !important;
}

#root footer.gb-pro-footer > div:first-child > div:first-child > div:nth-child(2) > div,
#root footer.gb-pro-footer .gb-social-block > div,
#root footer.gb-pro-footer > div:first-child > div:first-child > div:nth-child(n+3) a {
  justify-content: flex-start !important;
}

#root footer.gb-pro-footer .gb-map-address-link {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#root footer.gb-pro-footer h3::after {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
}

#root footer.gb-pro-footer > div:last-child > div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  text-align: left !important;
}

#root footer.gb-pro-footer > div:last-child > div > div:first-child {
  margin-right: auto !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

#root footer.gb-pro-footer > div:last-child > div > div:first-child p {
  text-align: left !important;
}

#root footer.gb-pro-footer > div:last-child > div > div:last-child {
  margin-left: auto !important;
  justify-content: flex-end !important;
  text-align: right !important;
  flex-wrap: wrap !important;
}

@media (min-width: 1920px) {
  #root footer.gb-pro-footer {
    left: auto !important;
    width: min(100%, var(--gb-container-max)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 721px) and (max-width: 1919px) {
  #root footer.gb-pro-footer,
  #root footer.gb-pro-footer > div:first-child > div:first-child > div {
    text-align: left !important;
  }

  #root footer.gb-pro-footer > div:first-child > div:first-child > div,
  #root footer.gb-pro-footer .gb-support-column,
  #root footer.gb-pro-footer .gb-quick-links-column,
  #root footer.gb-pro-footer .gb-quick-links-column > div {
    align-items: flex-start !important;
  }

  #root footer.gb-pro-footer > div:first-child > div:first-child > div:nth-child(2) > div,
  #root footer.gb-pro-footer .gb-social-block > div,
  #root footer.gb-pro-footer > div:first-child > div:first-child > div:nth-child(n+3) a {
    justify-content: flex-start !important;
  }

  #root footer.gb-pro-footer .gb-brand-column .gb-social-block,
  #root footer.gb-pro-footer .gb-map-address-link {
    text-align: left !important;
  }

  #root footer.gb-pro-footer .gb-map-address-link {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #root footer.gb-pro-footer h3::after {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }

  #root footer.gb-pro-footer > div:last-child > div {
    justify-content: space-between !important;
    text-align: left !important;
  }

  #root footer.gb-pro-footer > div:last-child > div > div:first-child {
    margin-right: auto !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #root footer.gb-pro-footer > div:last-child > div > div:last-child {
    margin-left: auto !important;
    justify-content: flex-end !important;
    text-align: right !important;
  }
}

@media (max-width: 720px) {
  #root footer.gb-pro-footer > div:last-child > div {
    align-items: stretch !important;
    justify-content: space-between !important;
    text-align: left !important;
  }

  #root footer.gb-pro-footer > div:last-child > div > div:first-child {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #root footer.gb-pro-footer > div:last-child > div > div:last-child {
    width: 100% !important;
    gap: 0.65rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-end !important;
    text-align: right !important;
    flex-wrap: wrap !important;
  }
}

#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] {
  width: 100%;
}

#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(1) {
  order: 1;
  gap: 0.35rem !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(1) img {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(2) {
  order: 4;
  min-width: 0;
}

#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(2) h3,
#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(2) > div,
#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(2) a,
#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(2) address {
  border: 0 !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
}

#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(2) h3,
#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(2) > div {
  padding-bottom: 0 !important;
}

#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(2) span[class*="rounded-full"] {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(3) {
  order: 2;
}

#root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] > div:nth-child(4) {
  order: 3;
}

@media (min-width: 1024px) {
  #root footer > div[class*="max-w-7xl"] > div[class*="grid-cols-1"] {
    grid-template-columns:
      minmax(210px, 0.95fr)
      minmax(160px, 0.75fr)
      minmax(220px, 0.9fr)
      minmax(300px, 1.35fr) !important;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  header > div[class*="px-"],
  main > section[class*="px-"],
  main > section > div[class*="px-"],
  footer > div[class*="px-"],
  footer .border-t > div[class*="px-"] {
    padding-left: max(var(--gb-page-gutter), env(safe-area-inset-left)) !important;
    padding-right: max(var(--gb-page-gutter), env(safe-area-inset-right)) !important;
  }

  main > section:not([class*="px-"]) > div[class*="max-w-"],
  main > section:not([class*="px-"]) > div[class*="mx-auto"] {
    padding-left: max(var(--gb-page-gutter), env(safe-area-inset-left)) !important;
    padding-right: max(var(--gb-page-gutter), env(safe-area-inset-right)) !important;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  header nav {
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  header img[src*="assets/img/logo.png"] {
    width: auto !important;
    height: 68px !important;
    max-width: min(170px, 48vw) !important;
  }

  #root > .sticky.top-0.z-50 header > div:first-child > a:first-child {
    margin-left: -10px !important;
  }

  main iframe,
  section iframe {
    min-height: 240px;
  }

  footer .flex,
  footer [class*="items-center"] {
    min-width: 0;
  }

  footer address,
  footer a {
    word-break: break-word;
  }

  footer .border-t .flex {
    flex-wrap: wrap;
    justify-content: center;
  }

  footer a.whitespace-nowrap {
    white-space: normal !important;
    text-align: center;
  }

  form,
  form > div,
  form label {
    min-width: 0;
  }

  .fixed.bottom-6.right-5 {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  #root > .min-h-screen .grid.grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #open-roles .grid,
  #apply form,
  #apply form > div {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.45rem, 7.5vw, 2rem);
  }

  .home-hero-mobile-copy {
    left: 24px !important;
    width: min(70%, 240px) !important;
  }

  #root > .min-h-screen .grid.grid-cols-3 {
    gap: 12px;
  }

  footer [class*="px-8"],
  footer [class*="sm:px-8"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 340px) {
  .home-hero-mobile-copy {
    left: 18px !important;
    width: 72% !important;
  }
}

/* Existing admin panel */
@media (min-width: 1536px) {
  .admin-layout .main-wrap > * {
    width: min(100%, 1600px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .admin-layout {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .admin-layout .sidebar {
    width: min(280px, 86vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .admin-layout .main-wrap {
    width: 100%;
    margin-left: 0;
    padding: 22px var(--gb-admin-gutter) 44px;
  }

  .admin-layout .main-header {
    gap: 12px;
    margin-bottom: 26px;
  }

  .admin-layout .dashboard-title,
  .admin-layout .page-header-title {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .admin-layout .page-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .admin-layout .page-header .btn-add,
  .admin-layout .page-header > button {
    width: 100%;
    min-height: 44px;
  }

  .admin-layout .panel-box,
  .admin-layout .sub-panel,
  .admin-layout .quick-actions,
  .admin-layout .stats-grid {
    max-width: 100%;
  }

  .admin-layout table {
    min-width: 620px;
  }

  .modal-overlay {
    padding: 14px;
    align-items: center;
  }

  .modal {
    width: min(100%, 580px);
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .modal-body {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .login-screen {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 16px;
  }

  .login-card {
    width: 100%;
    max-width: 430px;
    padding: 24px 18px;
  }

  .login-brand {
    align-items: center;
  }

  .login-brand img {
    max-width: 92px;
  }

  .admin-layout .main-wrap {
    padding: 18px var(--gb-admin-gutter) 38px;
  }

  .admin-layout .main-header {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .admin-layout .main-header .header-right {
    gap: 8px;
  }

  .admin-layout .online-badge {
    padding: 6px 10px;
    font-size: 11px;
  }

  .admin-layout .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout .quick-actions {
    grid-template-columns: 1fr;
  }

  .admin-layout .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-layout .client-card,
  .admin-layout .stat-card {
    min-width: 0;
  }

  .admin-layout .review-item,
  .admin-layout .emp-row,
  .admin-layout .job-row-meta,
  .admin-layout .job-row-top {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .admin-layout .review-body,
  .admin-layout .emp-info,
  .admin-layout .job-body {
    flex: 1 1 calc(100% - 62px);
    min-width: 0;
  }

  .admin-layout .review-actions,
  .admin-layout .emp-actions,
  .admin-layout .job-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .modal-head,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .modal-footer {
    display: flex;
    flex-wrap: wrap;
  }

  .modal-footer button {
    flex: 1 1 120px;
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .admin-layout .clients-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout .online-badge {
    display: none;
  }

  .admin-layout .main-header .header-right {
    justify-content: flex-end;
  }
}

@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .admin-layout .sidebar,
  .modal {
    overflow-y: auto;
  }

  .modal-overlay {
    align-items: flex-start;
  }
}

@media (hover: none) and (pointer: coarse) {
  .admin-layout button,
  .admin-layout .nav-item,
  .admin-layout input,
  .admin-layout select,
  .admin-layout textarea,
  header button,
  header nav a {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Admin mobile bottom navigation. Desktop keeps the left sidebar. */
@media (max-width: 768px) {
  body.sidebar-open {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .admin-layout {
    display: block !important;
    padding-bottom: 0 !important;
  }

  .admin-layout .mobile-menu-btn,
  .admin-layout .sidebar-backdrop {
    display: none !important;
  }

  .admin-layout .sidebar {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 180 !important;
    width: 100% !important;
    height: calc(72px + env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    overflow: hidden !important;
    border-right: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(12, 12, 12, 0.96) !important;
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(16px);
  }

  .admin-layout .sidebar-logo,
  .admin-layout .sidebar-label {
    display: none !important;
  }

  .admin-layout .sidebar-nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    height: 100% !important;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom)) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-layout .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-layout .nav-item {
    position: relative !important;
    flex: 0 0 78px !important;
    width: 78px !important;
    min-width: 78px !important;
    min-height: 52px !important;
    height: 52px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 7px 8px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    line-height: 1.08 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .admin-layout .nav-item svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }

  .admin-layout .nav-count {
    position: absolute !important;
    top: 4px !important;
    right: 5px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    font-size: 9px !important;
  }

  .admin-layout .sidebar-footer {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom)) 0 !important;
    border-top: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .admin-layout .sign-out-btn {
    width: 64px !important;
    min-height: 52px !important;
    height: 52px !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 7px 8px !important;
    border-radius: 12px !important;
    background: rgba(227, 32, 40, 0.12) !important;
    color: #ffb4b4 !important;
    font-size: 10px !important;
    line-height: 1.08 !important;
    text-align: center !important;
  }

  .admin-layout .sign-out-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .admin-layout .main-wrap {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 18px var(--gb-admin-gutter) calc(98px + env(safe-area-inset-bottom)) !important;
  }

  .admin-layout .main-header,
  .admin-layout .page-header {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
  }

  .admin-layout .main-header > div,
  .admin-layout .page-header > div {
    min-width: 0 !important;
  }

  .admin-layout .main-header .header-right {
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: space-between !important;
  }
}

@media (max-width: 420px) {
  .admin-layout .nav-item {
    flex-basis: 70px !important;
    width: 70px !important;
    min-width: 70px !important;
    font-size: 9.5px !important;
  }

  .admin-layout .sign-out-btn {
    width: 58px !important;
    font-size: 9.5px !important;
  }
}
