:root {
  --black: #090909;
  --ink: #151515;
  --muted: #6d737c;
  --line: #e5e7eb;
  --soft: #f5f6f8;
  --white: #ffffff;
  --red: #f31921;
  --red-dark: #b70f15;
  --steel: #2d343d;
  --max: 1180px;
  --gray-bg: #f8f9fb;
  --dark-bg: #0f1114;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255,255,255,.16);
  background: rgba(10, 10, 10, .92);
  color: var(--white);
  backdrop-filter: blur(18px);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* Header light mode (over light sections) */
.site-header.header-light {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: rgba(0,0,0,.08);
  color: var(--ink);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}

.brand img {
  width: 142px;
  height: 56px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.brand .logo-dark {
  display: none;
}

.site-header.header-light .brand .logo-white {
  display: none;
}

.site-header.header-light .brand .logo-dark {
  display: block;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 14px;
}

.main-nav a {
  color: rgba(255,255,255,.78);
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--white);
}

.site-header.header-light .main-nav a {
  color: rgba(0,0,0,.6);
}

.site-header.header-light .main-nav a:hover {
  color: var(--ink);
}

.site-header.header-light .header-cta {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ===== Language Switcher ===== */
.locale-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.locale-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .92);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.locale-trigger:hover,
.locale-switch.open .locale-trigger {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .4);
  color: var(--white);
}

.locale-globe,
.locale-caret {
  width: 16px;
  height: 16px;
  flex: none;
}

.locale-globe {
  color: var(--red);
}

.locale-current {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.locale-caret {
  transition: transform .2s ease;
  opacity: .7;
}

.locale-switch.open .locale-trigger .locale-caret {
  transform: rotate(180deg);
}

/* Dropdown card — always white, anchored bottom-right */
.locale-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 188px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(16, 20, 24, .16), 0 2px 8px rgba(16, 20, 24, .08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease;
}

.locale-switch.open .locale-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.locale-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}

.locale-menu a:hover {
  background: var(--soft);
}

.locale-menu a .locale-name {
  flex: 1;
}

.locale-menu a .locale-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* Active (current) language — brand red accent + check mark */
.locale-menu a.is-active {
  color: var(--red);
  font-weight: 700;
  background: rgba(243, 25, 33, .06);
}

.locale-menu a.is-active .locale-code {
  color: var(--red);
}

.locale-menu a.is-active .locale-code::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center / contain no-repeat;
}

/* Header light mode — trigger adapts to white header, menu stays white card */
.site-header.header-light .locale-trigger {
  border-color: rgba(0, 0, 0, .14);
  background: rgba(0, 0, 0, .03);
  color: var(--ink);
}

.site-header.header-light .locale-trigger:hover,
.site-header.header-light .locale-switch.open .locale-trigger {
  border-color: rgba(0, 0, 0, .28);
  background: rgba(0, 0, 0, .06);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button-outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.button-outline:hover {
  color: var(--white);
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  display: grid;
  align-items: center;
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.64) 42%, rgba(0,0,0,.25) 100%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.62));
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 120px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: .93;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 20px 0 0;
  color: var(--red);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
}

.hero-copy {
  max-width: 620px;
  margin: 20px 0 32px;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-metrics {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(8,8,8,.88);
  border: 1px solid rgba(255,255,255,.14);
}

.hero-metrics div {
  padding: 22px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics span,
.eyebrow {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.section,
.page-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-tight {
  padding: 72px 0;
}

.page-hero {
  padding: 96px 0 54px;
}

.page-hero h1,
.section-head h2,
.split-band h2,
.network-band h2 {
  margin: 10px 0 0;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero p:last-child,
.section-head p,
.split-band p,
.network-band p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.inline-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.feature-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.feature-grid article,
.news-grid article,
.network-detail article {
  border-top: 3px solid var(--red);
  padding: 24px 0 0;
}

.feature-grid span,
.catalog-item span,
.network-detail span {
  color: var(--red);
  font-weight: 900;
}

.feature-grid h3,
.news-grid h3,
.catalog-item h2,
.network-detail h2 {
  margin: 10px 0;
}

.feature-grid p,
.news-grid p,
.catalog-item p,
.network-detail p {
  color: var(--muted);
  line-height: 1.6;
}

.split-band,
.network-band,
.contact-band,
.quote-layout,
.quote-workspace {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 50px;
  align-items: center;
}

.quote-workspace {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.product-strip,
.catalog-grid {
  display: grid;
  gap: 18px;
}

.product-strip {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  align-items: stretch;
}

.product-strip article,
.catalog-item,
.media-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.product-strip img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.product-strip h3,
.product-strip p {
  padding: 0 14px;
}

.product-strip p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.catalog-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.catalog-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.catalog-item div {
  padding: 28px 28px 28px 0;
}

.text-link {
  display: inline-flex;
  color: var(--red);
  font-weight: 800;
}

.dark-section {
  width: 100%;
  max-width: none;
  padding: 86px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--black);
  color: var(--white);
}

.dark-section .section-head p {
  color: rgba(255,255,255,.7);
}

.capability-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.capability-grid span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  font-weight: 700;
}

.capability-grid.light span {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}

.network-band {
  min-height: 480px;
}

.map-panel {
  position: relative;
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(243,25,33,.12), transparent 30%),
    linear-gradient(45deg, #101418, #303943);
}

.map-panel::before {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(255,255,255,.12);
}

.pin {
  position: absolute;
  display: inline-flex;
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0,0,0,.26);
}

.pin::before {
  content: "";
  width: 10px;
  height: 10px;
  margin: 4px 8px 0 0;
  border-radius: 50%;
  background: var(--red);
}

.pin-china { left: 18%; top: 32%; }
.pin-vietnam { left: 48%; top: 58%; }
.pin-hk { left: 36%; top: 44%; }

.cert-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.cert-row span {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
}

.network-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.wide-photo {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 8px;
}

.quote-form,
.quote-aside,
.admin-panel,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.quote-form {
  padding: 28px;
}

.quote-form-pro {
  padding: 30px;
  box-shadow: 0 18px 55px rgba(16,20,24,.08);
}

.quote-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.quote-progress span {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.quote-progress span.active,
.quote-progress span.complete {
  border-color: rgba(243,25,33,.28);
  background: rgba(243,25,33,.08);
  color: var(--ink);
}

.form-step {
  display: none;
}

.form-step.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-step h2,
.form-step .step-head,
.product-choice-grid,
.form-actions,
.form-step label:last-of-type,
.form-step button[type="submit"],
.form-step .button,
.form-result {
  grid-column: 1 / -1;
}

.step-head {
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.step-head h2,
.step-head p {
  margin: 0;
}

.step-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.product-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}

.product-choice {
  height: 100%;
  min-height: 168px;
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8f9fb);
  cursor: pointer;
}

.product-choice input[type="radio"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--red);
}

.product-choice input[type="text"] {
  width: 100%;
  min-height: 40px;
  margin-top: 2px;
  padding: 9px 10px;
  font-size: 13px;
}

.product-choice span {
  font-size: 16px;
  font-weight: 900;
}

.product-choice small,
label small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.custom-choice {
  background: linear-gradient(180deg, #fff, #fff7f7);
}

.product-choice:has(input:checked) {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: var(--white);
}

textarea {
  resize: vertical;
}

.quote-aside {
  padding: 34px;
  background: var(--black);
  color: var(--white);
}

.quote-aside p {
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

.quote-summary-panel {
  position: sticky;
  top: 100px;
}

.quote-summary {
  margin: 14px 0 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: var(--white);
  line-height: 1.6;
  font-weight: 800;
}

.quote-summary-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 16px;
  margin: 0 0 22px;
}

.quote-summary-list dt {
  color: rgba(255,255,255,.54);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-summary-list dd {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.mobile-quote-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 16px 110px;
}

.mobile-quote-head {
  margin-bottom: 18px;
}

.mobile-quote-head h1 {
  margin: 8px 0;
  font-size: 34px;
  line-height: 1.05;
}

.mobile-quote-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.mobile-quote-form {
  padding: 18px;
}

.mobile-progress {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow-x: auto;
}

.mobile-progress span {
  min-width: 118px;
  min-height: 40px;
  font-size: 12px;
}

.mobile-products {
  grid-template-columns: 1fr;
}

.mobile-products .product-choice {
  min-height: 0;
}

.mobile-summary-card {
  grid-column: 1 / -1;
  padding: 2px;
}

.mobile-summary-card .quote-summary {
  margin: 0;
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}

.mobile-sticky-quote {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 -16px 40px rgba(16,20,24,.12);
}

.mobile-sticky-quote span {
  color: var(--muted);
  font-weight: 900;
}

.form-result {
  margin: 18px 0 0;
  font-weight: 800;
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 0;
}

.footer-container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 16px;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col li {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

.footer-col a {
  color: rgba(255,255,255,.55);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.footer-bottom span {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #f3f4f6;
}

.admin-sidebar {
  min-height: 100vh;
  padding: 24px;
  background: var(--black);
  color: var(--white);
}

.admin-sidebar img {
  width: 150px;
  margin-bottom: 26px;
}

.admin-sidebar nav {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.admin-sidebar a {
  padding: 10px 0;
  color: rgba(255,255,255,.78);
}

.admin-main {
  padding: 34px;
}

.admin-head,
.filter-bar,
.inline-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-bar {
  justify-content: start;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #111827;
  color: var(--white);
}

.admin-panel {
  padding: 24px;
}

.admin-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-dashboard h2,
.admin-dashboard p {
  margin: 0;
}

.admin-dashboard p {
  color: var(--muted);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.admin-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.admin-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-list span,
.admin-list small {
  color: var(--muted);
}

.detail-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 20px;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-list dd.long-text {
  white-space: pre-wrap;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.media-grid article {
  padding-bottom: 14px;
}

.media-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.media-grid h2,
.media-grid p,
.media-grid form {
  padding: 0 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

.form-stack,
.login-panel {
  display: grid;
  gap: 16px;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--black);
}

.login-panel {
  width: min(420px, calc(100% - 32px));
  padding: 34px;
}

.login-panel img {
  width: 170px;
}

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

.article-body {
  color: var(--muted);
  line-height: 1.7;
}

/* ===== Homepage Redesigned Sections ===== */

.section-full {
  width: 100%;
  padding: 100px 0;
  position: relative;
}

.section-container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.center-head {
  text-align: center;
  margin-bottom: 48px;
}

.center-head p {
  margin: 0 auto;
}

.center-head h2 {
  margin: 10px auto 0;
  max-width: 720px;
}

/* --- ToB Enterprise Products Section --- */
.tob-section {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.tob-section .section-head {
  max-width: 760px;
}

.tob-section .section-head h2 {
  margin: 10px 0 0;
  max-width: 700px;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.16;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.balanced-heading {
  text-wrap: balance;
}

.section-desc {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.tob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.tob-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.tob-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.tob-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
  border-color: rgba(243,25,33,.15);
}

.tob-card:hover::before {
  transform: scaleX(1);
}

.tob-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(243,25,33,.07);
  color: var(--red);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.tob-card:hover .tob-card-icon {
  background: var(--red);
  color: var(--white);
}

.tob-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.tob-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.tob-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 48px;
}

.tob-cta-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.tob-cta-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.home-capability-panel {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) 1.18fr;
  gap: 0;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(16,20,24,.08);
}

.home-capability-media {
  min-height: 360px;
  background: var(--black);
}

.home-capability-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.home-capability-content {
  display: grid;
  align-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.home-capability-content h3 {
  max-width: 620px;
  margin: 8px 0 12px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: keep-all;
}

.home-capability-content p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.home-capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-capability-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(16,20,24,.1);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f4f5f7);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* --- News Carousel --- */
.news-section {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(243,25,33,.25);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  background: var(--white);
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
}

.news-carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
}

.news-carousel::-webkit-scrollbar {
  height: 6px;
}

.news-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.news-carousel::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.news-carousel-track {
  display: flex;
  gap: 24px;
  min-width: max-content;
}

.news-card {
  flex: 0 0 360px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.news-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card > *:not(.news-card-img) {
  padding-left: 28px;
  padding-right: 28px;
}

.news-card .news-card-date {
  padding-top: 20px;
}

.news-card h3 {
  padding-top: 0;
}

.news-card p {
  padding-bottom: 4px;
}

.news-card .news-card-link {
  padding-top: 0;
  padding-bottom: 24px;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.news-card:hover {
  border-color: rgba(243,25,33,.2);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  transform: translateY(-4px);
}

.news-card:hover::before {
  transform: scaleX(1);
}

.news-card-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  background: rgba(243,25,33,.08);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid rgba(243,25,33,.15);
}

.news-card-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.news-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--ink);
}

.news-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  margin-top: auto;
  padding-top: 8px;
}

/* --- About Section --- */
.about-section {
  background: var(--dark-bg);
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text .eyebrow {
  color: var(--red);
}

.about-text h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.01em;
}

.about-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.65);
}

.about-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
}

.stat-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  font-family: 'SF Mono', 'Fira Code', monospace, Inter, sans-serif;
}

.stat-value small {
  font-size: 14px;
  font-weight: 700;
  margin-left: 2px;
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
}

/* --- Certificates Section --- */
.cert-section {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.cert-section-compact {
  padding: 48px 0;
}

.cert-compact-head {
  text-align: center;
  margin-bottom: 28px;
}

.cert-compact-head h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--ink);
}

.cert-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-card {
  text-align: center;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cert-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.cert-card:hover {
  border-color: rgba(243,25,33,.2);
  box-shadow: 0 16px 48px rgba(0,0,0,.06);
  transform: translateY(-6px);
}

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

.cert-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: .02em;
}

.cert-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.cert-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Base Introduction Sections --- */
.base-section {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--line);
}

.base-section-alt {
  background: var(--white);
}

.base-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.base-grid-reverse {
  direction: rtl;
}

.base-grid-reverse > * {
  direction: ltr;
}

.base-image {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.base-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease;
}

.base-image:hover img {
  transform: scale(1.03);
}

.base-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.base-text .eyebrow {
  color: var(--red);
}

.base-text h2 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.1;
  font-weight: 900;
  color: var(--ink);
}

.base-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.base-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.base-section-alt .base-address {
  background: var(--gray-bg);
}

.base-address svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

/* --- News Detail Page --- */
.news-page-hero {
  padding-bottom: 32px;
}

.news-detail-section {
  padding-top: 0;
}

.news-featured {
  margin-bottom: 48px;
}

.news-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.news-featured-img {
  height: 100%;
  min-height: 360px;
}

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

.news-featured-body {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-featured-body h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
}

.news-featured-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.news-featured-text {
  color: var(--ink);
  line-height: 1.8;
  font-size: 15px;
}

.news-featured-text p {
  color: var(--ink);
}

.news-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-detail-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.news-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
  border-color: rgba(243,25,33,.2);
}

.news-detail-card-img {
  height: 200px;
  overflow: hidden;
}

.news-detail-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-detail-card:hover .news-detail-card-img img {
  transform: scale(1.05);
}

.news-detail-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-detail-card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.news-detail-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.news-empty {
  text-align: center;
  padding: 80px 0;
}

.news-empty h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.news-empty p {
  color: var(--muted);
}

/* --- News Article Detail --- */
.news-article-section {
  padding-top: 0;
}

.news-article {
  max-width: 820px;
  margin: 0 auto;
}

.news-article-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.news-article-cover img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.news-article-meta {
  margin-bottom: 24px;
}

.news-article-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.news-article-body p {
  margin-bottom: 16px;
}

.news-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.news-related h2 {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 800;
}

.news-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-article-back {
  margin-top: 48px;
  text-align: center;
}

/* --- Contact Page --- */
.contact-page-hero {
  text-align: center;
}

.contact-section {
  padding-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 28px;
  background: var(--white);
  transition: all 0.35s ease;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.06);
  border-color: rgba(243,25,33,.2);
}

.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(243,25,33,.08);
  color: var(--red);
  margin-bottom: 20px;
}

.contact-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.contact-card-subtitle {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.contact-info-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

.contact-info-row a {
  color: var(--red);
  font-weight: 600;
}

.contact-info-row a:hover {
  text-decoration: underline;
}

.contact-cta {
  text-align: center;
}

/* --- Scroll Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intersection Observer triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Enhanced existing section styles --- */
.eyebrow {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(243,25,33,.06);
  border: 1px solid rgba(243,25,33,.12);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}

.hero-metrics span,
.hero-metrics .eyebrow {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .locale-trigger {
    gap: 6px;
    padding: 0 10px 0 8px;
  }

  .locale-globe,
  .locale-caret {
    width: 15px;
    height: 15px;
  }

  .locale-menu {
    right: 0;
    min-width: 172px;
  }

  .hero-metrics,
  .feature-grid,
  .news-grid,
  .product-strip,
  .capability-grid,
  .cert-row,
  .network-detail,
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-band,
  .network-band,
  .contact-band,
  .quote-layout,
  .quote-workspace,
  .catalog-item {
    grid-template-columns: 1fr;
  }

  .quote-summary-panel {
    position: static;
  }

  .product-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-item div {
    padding: 24px;
  }

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

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

  .admin-sidebar {
    min-height: auto;
  }

  /* New section responsive */
  .section-full {
    padding: 64px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image img {
    height: 280px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 36px;
    padding-top: 28px;
  }

  .cert-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .cert-card {
    padding: 24px 18px;
  }

  .news-featured-card {
    grid-template-columns: 1fr;
  }

  .news-featured-img {
    min-height: 240px;
  }

  .news-featured-body {
    padding: 28px;
  }

  .news-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .home-capability-panel {
    grid-template-columns: 1fr;
  }

  .home-capability-media,
  .home-capability-media img {
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .base-grid,
  .base-grid-reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    direction: ltr;
  }

  .base-image img {
    height: 260px;
  }

  .news-card {
    flex: 0 0 300px;
    padding: 24px 20px;
  }

  .stat-value {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-bottom: 230px;
  }

  .hero-metrics,
  .feature-grid,
  .news-grid,
  .product-strip,
  .capability-grid,
  .cert-row,
    .network-detail,
    .form-step.active,
    .form-grid,
    .product-choice-grid,
    .media-grid {
    grid-template-columns: 1fr;
  }

  .page-hero.quote-hero {
    padding-bottom: 32px;
  }

  .quote-form-pro {
    padding: 20px;
  }

  .quote-progress {
    grid-template-columns: 1fr;
  }

  .mobile-quote-shell .form-step.active {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-quote {
    display: flex;
  }

  .mobile-form-result {
    margin-bottom: 78px;
  }

  .hero-metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .site-footer,
  .admin-head,
  .admin-dashboard,
  .filter-bar,
  .inline-head {
    flex-direction: column;
    align-items: start;
  }

  /* New section mobile */
  .section-full {
    padding: 48px 0;
  }

  .section-container {
    width: calc(100% - 28px);
  }

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

  .stat-value {
    font-size: 24px;
  }

  .news-card {
    flex: 0 0 280px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .news-detail-grid,
  .news-related-grid {
    grid-template-columns: 1fr;
  }

  .news-featured-card {
    grid-template-columns: 1fr;
  }

  .news-featured-img {
    min-height: 200px;
  }

  .news-featured-body {
    padding: 20px;
  }

  .news-article-cover img {
    height: 240px;
  }

  .cert-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .tob-grid {
    grid-template-columns: 1fr;
  }

  .tob-section .section-head h2 {
    max-width: 12em;
    font-size: 30px;
    line-height: 1.18;
  }

  .tob-card {
    padding: 24px 20px;
  }

  .home-capability-media,
  .home-capability-media img {
    min-height: 220px;
  }

  .home-capability-content {
    padding: 24px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .about-text h2,
  .base-text h2 {
    font-size: 26px;
  }

  .about-image img {
    height: 220px;
  }

  .base-image img {
    height: 200px;
  }
}

/* ============================================================
   Quote form feedback cards (success / fail)
   ============================================================ */
.quote-feedback {
  grid-column: 1 / -1;
  padding: 24px 0;
}

.quote-feedback[hidden],
.quote-feedback-card[hidden],
.feedback-status[hidden] {
  display: none !important;
}

.quote-feedback-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 32px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: feedbackIn 0.4s ease;
}

@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-feedback-success {
  background: var(--green-soft);
  border: 1px solid #bbf7d0;
}

.quote-feedback-fail {
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.feedback-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.feedback-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.feedback-icon-success {
  background: var(--green);
  color: var(--white);
}

.feedback-icon-fail {
  background: var(--red);
  color: var(--white);
}

.feedback-title {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.feedback-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feedback-ref {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.feedback-body {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 380px;
}

.feedback-status {
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 380px;
}

.feedback-status:empty {
  display: none;
}

.feedback-status.status-ok {
  background: rgba(22, 163, 74, .1);
  color: var(--green);
}

.feedback-status.status-warn {
  background: rgba(217, 119, 6, .12);
  color: var(--amber);
}

.quote-feedback-card .button {
  margin-top: 8px;
}

/* Button disabled + spinner states */
.button[disabled],
.button:disabled {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}

.button.is-loading {
  position: relative;
  color: transparent;
}

.button.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Admin dashboard visual upgrade
   ============================================================ */
.admin-body {
  background: #f1f3f6;
}

.admin-sidebar {
  padding: 22px 18px;
}

.admin-brand {
  display: block;
  margin-bottom: 28px;
}

.admin-sidebar img {
  width: 132px;
}

.admin-sidebar nav {
  gap: 4px;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: background .18s ease, color .18s ease;
}

.admin-sidebar nav a svg {
  width: 19px;
  height: 19px;
  flex: none;
  opacity: .85;
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.admin-sidebar nav a.active {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}

.admin-sidebar nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--red);
}

.admin-logout {
  width: 100%;
  margin-top: 8px;
}

.admin-main {
  padding: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 16px 34px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.admin-user {
  font-size: 13px;
  color: var(--muted);
}

.lang-switch {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.lang-switch-form {
  margin: 0;
}

.lang-btn {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}

.lang-btn:hover {
  border-color: var(--muted);
  color: var(--ink);
}

.lang-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.admin-user::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

.admin-head {
  padding: 0 34px;
}

.admin-head h1,
.admin-main > .admin-head + * {
  margin-top: 24px;
}

/* Panels become real cards */
.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 20, 24, .04);
}

.admin-dashboard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 20, 24, .04);
  padding: 24px 28px;
}

.panel-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.panel-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.link-accent {
  color: var(--red);
  font-weight: 700;
}

/* Stat cards on dashboard */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 34px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 20, 24, .04);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--steel);
}

.stat-card-red::before { background: var(--red); }
.stat-card-warn::before { background: var(--amber); }

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 20, 24, .08);
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Alert banners */
.alert {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  margin: 16px 34px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.alert strong { font-weight: 800; }
.alert span { color: var(--muted); }
.alert a, .alert-link { color: var(--red); font-weight: 700; }

.alert-success { background: var(--green-soft); border: 1px solid #bbf7d0; }
.alert-success strong { color: var(--green); }
.alert-error { background: #fee2e2; border: 1px solid #fecaca; }
.alert-error strong { color: var(--red); }
.alert-warn { background: var(--amber-soft); border: 1px solid #fde68a; }
.alert-warn strong { color: var(--amber); }

/* Tables: zebra + hover */
.admin-table {
  margin: 0 34px;
  border: 1px solid var(--line);
}

.admin-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.admin-table tbody tr:hover {
  background: #f0f4ff;
}

.admin-table td small {
  color: var(--muted);
}

.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 32px 14px !important;
}

.result-count {
  margin: 12px 34px;
  color: var(--muted);
  font-size: 13px;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.badge-new { background: #fee2e2; color: var(--red); }
.badge-processing { background: var(--amber-soft); color: var(--amber); }
.badge-done { background: var(--green-soft); color: var(--green); }
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-fail { background: #fee2e2; color: var(--red); }
.badge-muted { background: var(--soft); color: var(--muted); }
.badge-fail em, .admin-list .badge { font-style: normal; }

/* Filter bar refinement */
.filter-bar {
  margin: 16px 34px;
  flex-wrap: wrap;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 22px 34px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}

.pagination a:hover {
  background: var(--soft);
  border-color: var(--muted);
}

.pagination .current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.pagination .disabled {
  color: var(--muted);
  opacity: .5;
  cursor: not-allowed;
}

/* Detail page grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 16px 34px 34px;
}

.detail-grid .admin-panel {
  min-width: 0;
  padding: 24px;
}

/* SMTP settings section */
.smtp-section {
  margin: 18px 34px 34px;
  padding: 28px;
}

.smtp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.smtp-toggles {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.smtp-toggles .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.smtp-toggles .check input {
  width: 18px;
  height: 18px;
  min-height: auto;
}

.smtp-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.smtp-hint {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.smtp-hint code {
  background: var(--white);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-size: 12px;
}

/* Form helpers */
.form-stack {
  margin: 16px 34px;
  padding: 28px;
}

.form-stack .button {
  margin-top: 8px;
  align-self: start;
}

.field-hint {
  display: block;
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Admin toast */
.admin-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  min-width: 220px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(16, 20, 24, .18);
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.admin-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.admin-toast-success {
  background: var(--green);
}

.admin-toast-error {
  background: var(--red);
}

/* Login page refinement */
.login-panel {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  padding: 40px 34px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 64px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

.password-toggle:hover {
  color: var(--white);
}

.login-lang {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.login-lang .lang-btn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .7);
}

.login-lang .lang-btn:hover {
  border-color: rgba(255, 255, 255, .4);
  color: var(--white);
}

.login-lang .lang-btn.active {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

/* Admin responsive */
@media (max-width: 1280px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .admin-topbar { padding: 12px 20px; }
  .admin-head, .stat-grid, .admin-table, .filter-bar, .result-count,
  .pagination, .detail-grid, .form-stack, .smtp-section, .alert { margin-left: 20px; margin-right: 20px; }
  .stat-grid { grid-template-columns: 1fr; }
  .smtp-grid { grid-template-columns: 1fr; }
}
