:root {
  --red: #cf171f;
  --red-dark: #a91118;
  --red-soft: #fff2f3;
  --ink: #17191c;
  --steel: #48525c;
  --muted: #66717c;
  --line: #d9dde2;
  --soft: #f7f7f6;
  --mist: #f0f1f2;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(34, 42, 50, 0.1);
  --page-gutter: clamp(18px, 4vw, 54px);
  --floating-bottom: 22px;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--soft) 52%, #ffffff 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  padding: 10px var(--page-gutter);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(23, 25, 28, 0.08);
  box-shadow: 0 14px 36px rgba(28, 33, 39, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 112px;
  height: 58px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.12;
}

.brand small {
  margin-top: 4px;
  color: var(--red);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav > a,
.dropdown-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: #30363c;
  font-weight: 700;
}

.site-nav > a:hover,
.dropdown-trigger:hover {
  background: var(--red-soft);
  color: var(--red-dark);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 310px;
  padding: 8px;
  display: grid;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel,
.nav-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--steel);
  font-weight: 700;
}

.dropdown-panel a:hover {
  background: var(--red-soft);
  color: var(--red-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 160ms ease, color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.social-links svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-links a:hover {
  color: var(--red);
  border-color: rgba(207, 23, 31, 0.32);
  box-shadow: 0 10px 22px rgba(207, 23, 31, 0.14);
  transform: translateY(-2px);
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

main {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.trust-strip,
.section {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

[id] {
  scroll-margin-top: 96px;
}

.hero {
  min-height: auto;
}

.hero-slider {
  position: relative;
  display: block;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 0 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f5f6 100%);
  box-shadow: 0 22px 60px rgba(23, 25, 28, 0.12);
}

.slides {
  position: relative;
  min-height: auto;
  width: 100%;
  margin: 0;
  height: clamp(420px, 54vh, 620px);
  min-height: 0;
  aspect-ratio: auto;
  max-height: none;
  border-bottom: 1px solid rgba(23, 25, 28, 0.1);
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(207, 23, 31, 0.1), transparent 38%),
    linear-gradient(180deg, #101214 0%, #050607 100%);
  box-shadow: 0 20px 48px rgba(23, 25, 28, 0.16);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.018);
  transition: opacity 760ms ease, transform 900ms ease, visibility 760ms ease;
}

.slide::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 6, 7, 0.28), rgba(5, 6, 7, 0.08), rgba(5, 6, 7, 0.28)),
    var(--slide-bg);
  background-size: cover;
  background-position: center;
  filter: blur(14px) saturate(1.08);
  transform: scale(1.04);
}

.slide.active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.012);
  transition: transform 5200ms ease;
  z-index: 1;
}

.slide.active img {
  transform: scale(1);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.08));
}

.slide-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}

.slide-copy p:not(.eyebrow),
.section-heading p,
.text-stack,
.support-panel > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.primary,
.secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.primary {
  color: var(--white);
  background: linear-gradient(180deg, #e11d26 0%, var(--red-dark) 100%);
  box-shadow: 0 14px 28px rgba(207, 23, 31, 0.18);
}

.secondary {
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.05);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-2px);
}

.primary:hover {
  background: linear-gradient(180deg, #f02831 0%, #a91118 100%);
  box-shadow: 0 18px 34px rgba(207, 23, 31, 0.24);
}

.secondary:hover {
  color: var(--red-dark);
  border-color: rgba(207, 23, 31, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #fff4f4 100%);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.1);
}

.primary:active,
.secondary:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(16, 24, 40, 0.08);
}

.primary:focus-visible,
.secondary:focus-visible,
.danger-button:focus-visible,
.ghost-button:focus-visible,
.mini-button:focus-visible,
.window-control:focus-visible {
  outline: 3px solid rgba(207, 23, 31, 0.18);
  outline-offset: 2px;
}

.primary:disabled,
.secondary:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  color: #7b8490;
  background: #f1f3f5;
  border-color: var(--line);
}

.danger-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: #fff;
  background: #8f1117;
  border: 1px solid #8f1117;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(143, 17, 23, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.danger-button:hover {
  transform: translateY(-1px);
  background: #b4141c;
  box-shadow: 0 14px 28px rgba(143, 17, 23, 0.22);
}

.danger-button:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(143, 17, 23, 0.16);
}

.danger-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.slider-controls {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 25, 28, 0.12);
  box-shadow: var(--shadow);
  margin: 12px 0 0 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.hero-quick-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 16px 0;
}

.slider-arrow,
.slider-dots button {
  border: 0;
  cursor: pointer;
}

.slider-arrow {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #aeb5bd;
}

.slider-dots button.active {
  width: 28px;
  background: var(--red);
}

@media (max-height: 820px) and (min-width: 901px) {
  .slides {
    height: clamp(390px, 54vh, 560px);
  }
}

@media (min-height: 980px) and (min-width: 1200px) {
  .slides {
    height: clamp(500px, 54vh, 680px);
  }
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
  margin-bottom: 32px;
}

.trust-strip div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(34, 42, 50, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.trust-strip div:hover,
.contact-grid article:hover,
.query-form:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 23, 31, 0.28);
  box-shadow: 0 20px 50px rgba(34, 42, 50, 0.12);
}

.trust-strip strong {
  font-size: 24px;
}

.trust-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding-top: clamp(54px, 7vw, 86px);
  padding-bottom: clamp(54px, 7vw, 86px);
  border-top: 1px solid rgba(23, 25, 28, 0.08);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  padding: clamp(44px, 5vw, 68px) var(--page-gutter);
  background:
    linear-gradient(135deg, #ffffff 0%, #f7f7f6 100%);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: 0 16px 42px rgba(34, 42, 50, 0.08);
}

.split-section > *,
.support-panel > *,
.query-section > *,
.contact-grid > *,
.product-carousel,
.product-track {
  min-width: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.text-stack {
  display: grid;
  gap: 16px;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 24px;
}

.product-carousel {
  position: relative;
  display: grid;
  align-items: center;
}

.product-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 156px) / 3);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 62px 28px;
  scrollbar-width: none;
}

.product-track::-webkit-scrollbar {
  display: none;
}

.product-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 58px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, #22262b, #111315);
  box-shadow: 0 14px 34px rgba(23, 25, 28, 0.24);
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.product-arrow:hover {
  background: linear-gradient(180deg, #e11d26, var(--red-dark));
  box-shadow: 0 16px 40px rgba(207, 23, 31, 0.28);
}

.product-arrow-left {
  left: 0;
}

.product-arrow-right {
  right: 0;
}

.product-card {
  position: relative;
  min-height: 330px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(34, 42, 50, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  overflow: hidden;
  scroll-snap-align: start;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 0 16px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(207, 23, 31, 0.42);
  box-shadow: 0 24px 56px rgba(34, 42, 50, 0.14);
}

.product-card:hover::after {
  transform: scaleX(1);
}

.product-image {
  min-height: 150px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  background:
    linear-gradient(135deg, #ffffff, #edf1f4);
  border: 1px dashed var(--line);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.product-card:hover .product-image {
  background: linear-gradient(135deg, #fff7f7, #f3f4f5);
  color: var(--red-dark);
  border-color: rgba(207, 23, 31, 0.22);
}

.product-index {
  color: var(--red);
  font-weight: 900;
}

.product-card h3 {
  font-size: 21px;
  line-height: 1.18;
}

.product-card p {
  color: var(--muted);
  line-height: 1.56;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 46px);
  padding: clamp(44px, 5vw, 68px) var(--page-gutter);
  background: var(--white);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  grid-column: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr;
  gap: 14px;
}

.contact-grid article {
  display: grid;
  gap: 10px;
  min-height: 128px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(34, 42, 50, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-grid span {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.contact-grid strong {
  line-height: 1.45;
}

.contact-grid a {
  transition: color 160ms ease, text-decoration-color 160ms ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.contact-grid a:hover,
.contact-grid a:focus-visible {
  color: var(--red-dark);
  text-decoration-color: currentColor;
}

.query-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding: clamp(44px, 5vw, 68px) var(--page-gutter);
  background:
    linear-gradient(135deg, #17191c 0%, #30363c 100%);
  border-radius: 0;
  color: #ffffff;
}

.query-copy {
  display: grid;
  gap: 12px;
}

.query-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.65;
}

.query-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.query-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.query-form label span {
  color: var(--muted);
  font-weight: 400;
}

.query-form input,
.query-form select,
.query-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.query-form textarea {
  min-height: 126px;
  resize: vertical;
}

.query-form input:focus,
.query-form select:focus,
.query-form textarea:focus {
  outline: 2px solid rgba(207, 23, 31, 0.16);
  border-color: var(--red);
}

.query-wide {
  grid-column: 1 / -1;
}

.query-status {
  grid-column: 1 / -1;
  min-height: 24px;
  color: var(--muted);
  font-weight: 800;
}

.query-status.success {
  color: #128c42;
}

.query-status.error {
  color: var(--red-dark);
}

.query-form button:disabled {
  cursor: wait;
  filter: grayscale(0.25);
  opacity: 0.7;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 10px var(--page-gutter);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(23, 25, 28, 0.08);
  box-shadow: 0 14px 36px rgba(28, 33, 39, 0.08);
}

.portal-shell,
.admin-shell {
  width: 100%;
  padding: clamp(24px, 4vw, 46px) var(--page-gutter);
}

.portal-hero {
  display: grid;
  gap: 12px;
  padding: clamp(34px, 5vw, 58px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 25, 28, 0.96), rgba(75, 83, 91, 0.92)),
    radial-gradient(circle at 90% 20%, rgba(207, 23, 31, 0.35), transparent 36%);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portal-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.portal-hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

.request-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.mode-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 20px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(34, 42, 50, 0.06);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mode-card span {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mode-card strong {
  color: var(--steel);
  line-height: 1.4;
}

.mode-card:hover,
.mode-card.active {
  transform: translateY(-4px);
  border-color: rgba(207, 23, 31, 0.32);
  background: linear-gradient(135deg, #ffffff, #fff4f4);
  box-shadow: 0 20px 46px rgba(34, 42, 50, 0.12);
}

.portal-card {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ticket-form,
.admin-form,
.admin-update-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-action-row .secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.admin-update-form .is-disabled {
  opacity: 0.62;
}

.admin-update-form button:disabled,
.admin-update-form input:disabled,
.admin-update-form select:disabled,
.admin-update-form textarea:disabled {
  cursor: not-allowed;
  background: #f4f5f6;
}

.ticket-form h2,
.admin-update-form h2 {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 22px;
}

.ticket-form label,
.admin-form label,
.admin-update-form label,
.track-form input,
.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.admin-form input,
.admin-update-form input,
.admin-update-form select,
.admin-update-form textarea,
.list-tools input,
.list-tools select {
  font: inherit;
}

.ticket-form label,
.admin-form label,
.admin-update-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.ticket-form label {
  position: relative;
}

.ticket-form label span,
.admin-update-form label span {
  color: var(--muted);
  font-weight: 400;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.admin-form input,
.admin-update-form input,
.admin-update-form select,
.admin-update-form textarea,
.track-form input,
.list-tools input,
.list-tools select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ticket-form textarea,
.admin-update-form textarea {
  min-height: 128px;
  resize: vertical;
}

.tracking-card {
  display: grid;
  gap: 16px;
}

.track-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.track-result {
  min-height: 44px;
  padding: 14px;
  color: var(--steel);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.track-result strong,
.track-result span {
  display: block;
}

.admin-page {
  background: #f3f4f5;
}

.admin-login {
  width: min(440px, 100%);
  margin: 7vh auto;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-login img {
  width: 170px;
  height: 86px;
  object-fit: contain;
}

.admin-login h1 {
  margin: 8px 0 18px;
}

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

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.dashboard-header,
.dashboard-actions,
.ticket-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-user-badge {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}

.sales-leads-button {
  position: relative;
}

.sales-leads-button span {
  display: inline-flex;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: #ffffff;
  background: var(--red);
  border-radius: 999px;
  font-size: 12px;
}

.sales-leads-button.has-new {
  color: #ffffff;
  background: linear-gradient(135deg, #aa1118, #e0202a);
  border-color: rgba(207, 23, 31, 0.55);
  animation: salesLeadGlow 1.2s ease-in-out infinite;
}

.sales-leads-button.has-new span {
  color: var(--red-dark);
  background: #ffffff;
}

@keyframes salesLeadGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(207, 23, 31, 0.25), 0 10px 22px rgba(207, 23, 31, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(207, 23, 31, 0), 0 15px 32px rgba(207, 23, 31, 0.28);
  }
}

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

.dashboard-stats article {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(34, 42, 50, 0.06);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dashboard-stats article:hover,
.dashboard-stats article:focus-visible,
.dashboard-stats article.active {
  outline: 0;
  transform: translateY(-3px);
  border-color: rgba(207, 23, 31, 0.36);
  background: linear-gradient(135deg, #ffffff, #fff4f4);
  box-shadow: 0 18px 42px rgba(34, 42, 50, 0.12);
}

.dashboard-stats span,
.detail-fields span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 30px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
}

.ticket-list-panel,
.ticket-detail-panel {
  min-height: 560px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.list-tools {
  display: grid;
  grid-template-columns: 1fr 150px auto auto;
  gap: 10px;
  margin-bottom: 12px;
}

.list-tools button {
  min-height: 46px;
  white-space: nowrap;
}

.dashboard-actions button,
.list-tools button,
.ticket-select-tools button,
.sales-leads-actions button,
.sales-report-tools button,
.admin-action-row button,
.technician-actions button {
  will-change: transform, box-shadow;
}

.ticket-select-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ticket-select-tools span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-select-tools button {
  min-height: 38px;
  padding-inline: 16px;
  white-space: nowrap;
}

.quick-toast {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 3000;
  max-width: min(360px, calc(100vw - 34px));
  padding: 13px 16px;
  color: #ffffff;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.2);
  font-weight: 900;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quick-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.quick-toast.success {
  background: #146c43;
}

.quick-toast.error {
  background: #b91c1c;
}

.report-tools,
.sales-report-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.sales-report-tools {
  grid-template-columns: minmax(190px, 1fr) repeat(2, minmax(120px, 0.48fr)) auto auto;
}

.report-tools label,
.sales-report-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-tools input,
.report-tools select,
.sales-report-tools input {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.sales-report-tools > input {
  align-self: end;
}

.sales-report-tools button {
  align-self: end;
  min-height: 42px;
  white-space: nowrap;
}

.ticket-list {
  display: grid;
  gap: 10px;
  max-height: 690px;
  overflow: auto;
}

.ticket-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ticket-row:hover,
.ticket-row.active {
  border-color: rgba(207, 23, 31, 0.35);
  background: var(--red-soft);
}

.ticket-select-check {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.ticket-select-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

.ticket-row-main {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ticket-row span,
.ticket-pill {
  width: fit-content;
  padding: 4px 8px;
  color: var(--red-dark);
  background: var(--red-soft);
  border: 1px solid rgba(207, 23, 31, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-row small {
  color: var(--muted);
}

.empty-ticket,
.empty-list {
  color: var(--muted);
}

.ticket-detail {
  display: grid;
  gap: 16px;
}

.ticket-detail-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ticket-detail-head h2 {
  margin-top: 8px;
}

.ticket-detail-head > strong {
  color: var(--red);
}

.detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-fields div {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-fields strong {
  display: block;
  margin-top: 6px;
  line-height: 1.42;
}

.technician-card {
  display: grid;
  gap: 14px;
}

.admin-users-card {
  display: grid;
  gap: 16px;
}

.admin-user-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-user-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.admin-user-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.admin-user-active input {
  width: auto;
  min-height: 0;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 800;
}

.permission-item input {
  width: auto;
  min-height: 0;
}

.admin-user-list {
  display: grid;
  gap: 10px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.5fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-user-row > div:first-child {
  display: grid;
  gap: 5px;
  align-content: start;
}

.admin-user-row.is-disabled {
  opacity: 0.64;
}

.admin-user-row h3,
.admin-user-row p {
  margin: 0;
  line-height: 1.25;
}

.admin-user-row .ticket-pill {
  margin-bottom: 1px;
  line-height: 1;
}

.admin-user-row small {
  color: var(--muted);
  line-height: 1.25;
}

.slot-card {
  display: grid;
  gap: 14px;
}

.slot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.slot-toggle {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 800;
}

.holiday-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.holiday-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  font-weight: 800;
}

.technician-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.technician-list > span {
  padding: 8px 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.technician-list small {
  color: var(--muted);
  font-weight: 400;
}

.technician-list .technician-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border-radius: 10px;
}

.technician-list .technician-actions {
  display: inline-flex;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
}

.mini-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--steel);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.mini-button:hover {
  transform: translateY(-1px);
  color: var(--red-dark);
  border-color: rgba(207, 23, 31, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #fff4f4 100%);
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.1);
}

.mini-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.08);
}

.mini-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.inline-unlock-button {
  width: fit-content;
  margin-top: 2px;
  color: var(--red-dark);
  border-color: rgba(207, 23, 31, 0.28);
  background: var(--red-soft);
}

.danger-mini {
  color: #8f1117;
  border-color: rgba(143, 17, 23, 0.28);
}

.danger-mini:hover {
  color: #ffffff;
  border-color: #8f1117;
  background: linear-gradient(180deg, #b4141c 0%, #8f1117 100%);
}

.owner-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 16, 22, 0.52);
  backdrop-filter: blur(4px);
}

.owner-lock-box {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
}

.owner-lock-box h3 {
  margin: 0;
  color: var(--ink);
}

.owner-lock-box p {
  margin: 0;
  color: var(--muted);
}

.owner-password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 7px;
}

.sales-leads-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.owner-password-row input {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.owner-lock-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.otp-view-box {
  position: relative;
  width: min(360px, 100%);
  padding: 26px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
}

.otp-view-box h3 {
  margin: 7px 0 14px;
  color: var(--ink);
  font-size: 18px;
}

.otp-view-box strong {
  display: inline-flex;
  min-width: 180px;
  justify-content: center;
  padding: 14px 22px;
  color: var(--red-dark);
  background: var(--red-soft);
  border: 1px solid rgba(207, 23, 31, 0.18);
  border-radius: 8px;
  font-size: 34px;
  letter-spacing: 7px;
}

.otp-view-box p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.otp-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sales-leads-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 16, 22, 0.52);
  backdrop-filter: blur(4px);
}

.sales-leads-overlay.is-minimized {
  place-items: end;
  padding: 18px;
  background: transparent;
  pointer-events: none;
  backdrop-filter: none;
}

.sales-leads-overlay[hidden] {
  display: none;
}

.sales-leads-window {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
  overflow: hidden;
}

.sales-leads-window.is-compact {
  width: min(680px, 100%);
  max-height: min(620px, calc(100vh - 36px));
}

.sales-leads-window.is-maximized {
  width: calc(100vw - 36px);
  height: calc(100vh - 36px);
  max-height: none;
}

.sales-leads-window.is-minimized {
  width: min(420px, calc(100vw - 36px));
  max-height: none;
  grid-template-rows: auto;
  padding: 14px;
  pointer-events: auto;
}

.sales-leads-window.is-minimized .sales-report-tools,
.sales-leads-window.is-minimized .sales-leads-list,
.sales-leads-window.is-minimized .sales-leads-actions > .secondary {
  display: none;
}

.sales-leads-head,
.sales-lead-top,
.sales-lead-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sales-leads-head h2,
.sales-lead-top h3 {
  margin: 4px 0 0;
}

.window-controls {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.window-control {
  width: 34px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(16, 24, 40, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.window-control:hover {
  transform: translateY(-1px);
  color: var(--red-dark);
  border-color: rgba(207, 23, 31, 0.28);
  background: var(--red-soft);
  box-shadow: 0 9px 18px rgba(16, 24, 40, 0.1);
}

.window-control:active {
  transform: translateY(0);
  box-shadow: 0 4px 9px rgba(16, 24, 40, 0.08);
}

.window-control.close {
  color: #8f1117;
}

.sales-lead-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.sales-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
}

.sales-select input {
  margin: 0;
}

.sales-leads-list {
  display: grid;
  gap: 12px;
  overflow: auto;
  min-height: 0;
  padding-right: 4px;
}

.sales-lead-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.sales-lead-card.is-new {
  border-color: rgba(207, 23, 31, 0.28);
  background: var(--red-soft);
}

.sales-lead-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.sales-lead-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-lead-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.sales-lead-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
}

.sales-lead-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.compact-link {
  white-space: nowrap;
}

.booking-calendar {
  position: absolute;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  margin-top: 8px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.18);
}

.calendar-head,
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-head {
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-head strong {
  text-align: center;
}

.calendar-head button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 900;
}

.calendar-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.calendar-grid button {
  min-height: 52px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.calendar-grid button:hover:not(:disabled) {
  border-color: var(--red);
  box-shadow: 0 8px 18px rgba(207, 23, 31, 0.12);
}

.calendar-grid button strong,
.calendar-grid button small {
  display: block;
}

.calendar-grid button small {
  margin-top: 3px;
  color: #128c42;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
}

.calendar-grid button.is-disabled {
  color: #98a1ad;
  background: #f4f5f6;
  cursor: not-allowed;
}

.calendar-grid button.is-disabled small {
  color: #9ca3af;
}

.ghost-button {
  min-height: 44px;
  padding: 0 18px;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ghost-button:hover {
  transform: translateY(-2px);
  color: var(--red-dark);
  border-color: rgba(207, 23, 31, 0.3);
  background: var(--red-soft);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
}

.ghost-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.06);
}

.ghost-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px var(--page-gutter);
  color: #ffffff;
  background: var(--ink);
  font-weight: 700;
}

.developer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
}

.developer-mark > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.developer-mark img {
  display: block;
  width: 150px;
  height: auto;
  max-height: 58px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.24));
}

.developer-mark-dark {
  background: transparent;
  border-color: transparent;
}

.developer-mark-light {
  color: var(--ink);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.developer-mark-light > span {
  color: var(--muted);
}

.developer-mark-light img {
  filter: drop-shadow(0 8px 16px rgba(34, 42, 50, 0.1));
}

.portal-developer-footer {
  display: flex;
  justify-content: center;
  padding: 22px 0 0;
}

.admin-developer-footer {
  padding-top: 24px;
}

.page-scroll-controls {
  position: fixed;
  left: 22px;
  bottom: var(--floating-bottom);
  z-index: 50;
  display: grid;
  gap: 10px;
  transition: bottom 180ms ease;
}

.page-scroll {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(180deg, #e31d27 0%, var(--red-dark) 100%);
  box-shadow: 0 16px 34px rgba(207, 23, 31, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  cursor: pointer;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease, visibility 160ms ease;
}

.page-scroll:hover,
.page-scroll:focus-visible {
  background:
    linear-gradient(180deg, #22262b 0%, #111315 100%);
  box-shadow: 0 18px 42px rgba(23, 25, 28, 0.34), 0 0 22px rgba(207, 23, 31, 0.22);
  transform: translateY(-3px);
}

.page-scroll.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.94);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: var(--floating-bottom);
  z-index: 50;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 25%, #6ff2a1 0%, #25d366 40%, #128c42 100%);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: bottom 180ms ease, transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.28);
  animation: whatsappPulse 1.8s infinite;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.whatsapp-float:hover {
  filter: brightness(1.05);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.5), 0 0 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-pop {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translate(10px, -50%);
  min-width: 188px;
  padding: 13px 15px;
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, #ffffff 0%, #f7fffa 100%);
  border: 1px solid rgba(37, 211, 102, 0.24);
  box-shadow: 0 18px 42px rgba(34, 42, 50, 0.16);
  font-weight: 800;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.whatsapp-pop::before {
  content: "ELITE Support";
  display: block;
  color: #128c42;
  font-size: 12px;
  line-height: 1;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.whatsapp-pop::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateY(-50%) rotate(-45deg);
}

.whatsapp-float:hover .whatsapp-pop {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

@keyframes whatsappPulse {
  0% {
    opacity: 0.9;
    transform: scale(0.92);
  }
  70% {
    opacity: 0;
    transform: scale(1.18);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    order: 2;
  }

  .site-nav {
    width: 100%;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding-top: 8px;
    margin-left: 0;
    order: 4;
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  .social-links {
    width: 100%;
    justify-content: center;
    order: 3;
  }

  .nav-dropdown,
  .dropdown-panel {
    position: static;
  }

  .dropdown-panel {
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 4px;
  }

  .split-section,
  .support-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: auto;
    max-height: none;
  }

  .slides {
    width: 100%;
    height: clamp(330px, 48vh, 480px);
    min-height: 0;
    max-height: none;
  }

  .slider-controls {
    padding: 8px;
    gap: 9px;
    margin-top: 10px;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
  }

  .hero-quick-actions .primary,
  .hero-quick-actions .secondary {
    flex: 1 1 170px;
  }

  .query-section,
  .query-form {
    grid-template-columns: 1fr;
  }

  .slide::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.08));
  }

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

  .product-track {
    grid-auto-columns: calc((100% - 108px) / 2);
    padding-inline: 46px;
  }

  .product-arrow-left {
    left: 0;
  }

  .product-arrow-right {
    right: 0;
  }
}

@media (max-width: 620px) {
  main {
    padding-inline: 0;
  }

  .site-header {
    min-height: auto;
    padding: 9px 14px;
    column-gap: 8px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 54px;
  }

  .menu-toggle {
    position: absolute;
    top: 15px;
    right: 14px;
    display: block;
    z-index: 25;
    border-color: rgba(207, 23, 31, 0.42);
    box-shadow: 0 8px 18px rgba(207, 23, 31, 0.12);
  }

  .menu-toggle span {
    background: var(--red-dark);
  }

  .brand img {
    width: 92px;
    height: 48px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 12px;
  }

  .social-links a {
    width: 34px;
    height: 34px;
  }

  .hero-slider {
    padding: 8px 0 14px;
  }

  .slides {
    height: clamp(250px, 34vh, 340px);
  }

  .hero-quick-actions {
    padding-inline: 9px;
  }

  .hero-quick-actions .primary,
  .hero-quick-actions .secondary {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .slide img {
    object-fit: cover;
    object-position: center;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
    width: 100%;
    max-width: calc(100vw - 80px);
  }

  .section {
    padding-block: 42px;
    overflow: hidden;
  }

  .split-section,
  .support-panel,
  .query-section {
    padding: 32px 14px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .product-track {
    grid-auto-columns: minmax(230px, 82%);
    padding-inline: 46px;
  }

  .product-arrow {
    width: 40px;
    height: 50px;
    font-size: 34px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 82px;
    padding-right: 82px;
  }

  .developer-mark {
    width: auto;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
  }

  .developer-mark img {
    width: 132px;
    max-height: 52px;
  }

  .page-scroll-controls {
    left: 18px;
    gap: 8px;
  }

  .page-scroll {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .whatsapp-float {
    right: 18px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-pop {
    display: none;
  }
}

@media (max-width: 900px) {
  .portal-header,
  .dashboard-header,
  .ticket-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-mode,
  .ticket-form,
  .admin-update-form,
  .slot-form,
  .track-form,
  .admin-grid,
  .detail-fields {
    grid-template-columns: 1fr;
  }

  .support-actions {
    grid-column: 1;
  }

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

  .list-tools {
    grid-template-columns: 1fr;
  }

  .ticket-select-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-select-tools span {
    margin-right: 0;
  }

  .ticket-select-tools button {
    width: 100%;
  }

  .report-tools,
  .sales-report-tools {
    grid-template-columns: 1fr;
  }

  .sales-leads-head,
  .sales-lead-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-lead-meta {
    justify-items: start;
  }

  .admin-user-form,
  .permission-grid,
  .admin-user-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .portal-shell,
  .admin-shell {
    padding: 18px 14px;
  }

  .portal-header .brand {
    padding-right: 0;
  }

  .portal-hero {
    padding: 28px 18px;
  }

  .portal-hero h1 {
    font-size: 34px;
  }

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

  .dashboard-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-actions button,
  .admin-user-badge,
  .track-form button {
    width: 100%;
  }

  .ticket-list-panel,
  .ticket-detail-panel {
    min-height: auto;
  }
}
