:root {
  --blue: #1268d6;
  --blue-dark: #0c3478;
  --red: #ee3349;
  --red-soft: #ff7c8b;
  --ink: #121827;
  --muted: #5b6678;
  --line: #dfe6f2;
  --panel: #ffffff;
  --soft: #f3f7ff;
  --shadow: 0 22px 55px rgba(18, 45, 90, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

button,
input,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 0 clamp(14px, 3vw, 34px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 18, 26, 0.92), rgba(45, 25, 20, 0.78)),
    linear-gradient(135deg, rgba(18, 104, 214, 0.28), rgba(238, 51, 73, 0.2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.main-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(8px, 1vw, 18px);
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.main-tabs a {
  min-width: auto;
  padding: 21px 0;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-tabs a.active {
  color: #fff;
  background: transparent;
}

.main-tabs a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  background: var(--red);
  border-radius: 999px;
}

.chevron {
  font-size: 1.1em;
  margin-left: 2px;
}

.account-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.login-button,
.text-button,
.icon-button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.login-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 10px 26px rgba(238, 51, 73, 0.24);
}

.text-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: #fff;
  font-weight: 900;
}

.arrow-button,
.globe-button {
  background: rgba(255, 255, 255, 0.22);
}

.facebook {
  background: #4267b2;
}

.youtube {
  background: #ff0000;
}

.linkedin {
  background: #2878aa;
}

.tiktok {
  background: #111827;
}

.instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

main {
  overflow: hidden;
}

.tab-page {
  display: none;
}

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

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(38px, 6vw, 72px) clamp(24px, 5vw, 70px);
  background:
    radial-gradient(circle at 82% 28%, rgba(18, 104, 214, 0.14) 0 18%, transparent 19%),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.92) 0 22%, transparent 23%),
    linear-gradient(135deg, #eef5ff 0%, #fff4f5 48%, #fff 100%);
}

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

.hero h1,
.page-intro h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow),
.page-intro p,
.feature-band p,
.app-card p,
.preview-card p,
.other-card p,
.site-footer span {
  color: var(--muted);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  font-size: 1.06rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 620px;
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 1.8rem;
}

.hero-metrics span {
  color: var(--muted);
  font-weight: 700;
}

.hero-actions,
.support-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.button.secondary {
  color: var(--blue-dark);
  background: #fff;
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.hero-art {
  display: grid;
  place-items: center;
}

.hero-carousel {
  position: relative;
  width: min(520px, 100%);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(223, 230, 242, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.carousel-track {
  position: relative;
  min-height: 0;
}

.carousel-slide {
  position: relative;
  display: none;
  flex-direction: column;
  min-height: 420px;
}

.carousel-slide.active {
  display: flex;
}

.carousel-slide img {
  width: 100%;
  height: 310px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 16px;
}

.carousel-caption {
  min-height: 110px;
  padding: 20px 24px 52px;
  background: linear-gradient(135deg, rgba(18, 104, 214, 0.08), rgba(238, 51, 73, 0.1));
}

.carousel-caption strong,
.carousel-caption span {
  display: block;
}

.carousel-caption strong {
  font-size: 1.12rem;
}

.carousel-caption span {
  margin-top: 4px;
  color: var(--muted);
}

.carousel-button {
  position: absolute;
  top: 43%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.carousel-button.previous {
  left: 14px;
}

.carousel-button.next {
  right: 14px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 104, 214, 0.28);
  cursor: pointer;
}

.carousel-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: var(--red);
}

.feature-band,
.split-showcase,
.parts-section,
.page-intro,
.app-grid,
.preview-grid,
.other-grid,
.feature-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: 68px 0 34px;
  border-bottom: 1px solid var(--line);
}

.feature-band h2,
.split-showcase h2,
.page-intro h1 {
  margin: 0;
}

.feature-band h2,
.split-showcase h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0 64px;
}

.parts-section {
  padding: 16px 0 72px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

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

.part-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.part-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.part-card h3 {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 1rem;
}

.feature-grid article,
.app-card,
.preview-card,
.other-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.feature-grid article {
  padding: 22px;
}

.icon-dot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-radius: 50%;
  font-weight: 900;
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(26px, 6vw, 72px);
  align-items: center;
  padding: 70px clamp(0px, 1vw, 10px);
}

.showcase-graphic {
  display: grid;
  place-items: center;
  min-height: 360px;
  background: linear-gradient(135deg, rgba(18, 104, 214, 0.08), rgba(238, 51, 73, 0.12));
  border-radius: 50%;
}

.terminal-illustration {
  width: min(280px, 72%);
  padding: 28px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.terminal-illustration span {
  display: block;
  height: 16px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: var(--soft);
}

.terminal-illustration strong {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 22px auto 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-radius: 26px;
  font-size: 2rem;
}

.split-showcase li {
  margin: 10px 0;
  color: var(--muted);
}

.page-intro {
  padding: 70px 0 26px;
}

.page-intro h1 {
  max-width: 760px;
}

.preview-grid,
.app-grid,
.other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 42px;
}

.preview-card {
  overflow: hidden;
}

.preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--line);
}

.preview-card div,
.other-card,
.app-card {
  padding: 20px;
}

.app-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-radius: 22px;
  font-weight: 900;
}

.app-icon img {
  width: 62px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.card-topline h3,
.preview-card h3,
.other-card h3 {
  margin: 0 0 8px;
}

.other-card-link {
  margin-top: 16px;
}

.detail-intro {
  min-height: 340px;
  display: grid;
  align-content: center;
  background:
    radial-gradient(circle at 78% 30%, rgba(18, 104, 214, 0.16) 0 18%, transparent 18.5%),
    linear-gradient(135deg, #f5f9ff, #fff4f6);
  border-bottom: 1px solid var(--line);
}

.detail-intro .button {
  width: max-content;
  margin-top: 12px;
}

.detail-card-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 42px 0 76px;
}

.detail-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.detail-card h3 {
  margin: 16px 0 8px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
}

.card-topline span {
  display: inline-flex;
  min-height: 26px;
  padding: 4px 9px;
  color: var(--blue-dark);
  background: var(--soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.tags span {
  padding: 5px 9px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 42px clamp(22px, 6vw, 70px);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.84);
}

.footer-links {
  display: grid;
  gap: 8px;
  text-align: right;
  justify-items: end;
}

.footer-contact-button {
  width: max-content;
  min-height: 40px;
  color: var(--blue-dark) !important;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 28px rgba(18, 24, 39, 0.16);
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(9, 20, 42, 0.58);
  backdrop-filter: blur(10px);
}

.modal.open {
  display: flex;
}

.dialog,
.customizer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(18, 104, 214, 0.18);
  border-color: var(--blue);
}

.modal-copy,
.modal-error {
  margin: 12px 0 0;
}

.modal-copy {
  color: var(--muted);
}

.modal-error {
  min-height: 22px;
  color: var(--red);
  font-weight: 800;
}

.customizer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(470px, 100%);
  height: 100vh;
  display: none;
  overflow: auto;
  padding: 22px;
  border-radius: 18px 0 0 18px;
}

.customizer.open {
  display: block;
}

.customizer-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.customizer label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-page {
  min-height: 100vh;
  padding: clamp(34px, 6vw, 70px) clamp(18px, 5vw, 70px);
  background:
    radial-gradient(circle at 88% 8%, rgba(18, 104, 214, 0.12), transparent 26%),
    radial-gradient(circle at 10% 22%, rgba(238, 51, 73, 0.1), transparent 24%),
    #f7faff;
}

.admin-header,
.admin-form {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.admin-header {
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
}

.admin-header p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

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

.admin-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.admin-panel h2 {
  margin: 0;
}

.admin-panel label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 900;
}

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

.admin-actions {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 4px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0), #f7faff 28%);
}

.admin-actions .modal-copy {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .account-actions,
  .main-tabs {
    justify-content: flex-start;
  }

  .main-tabs {
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 4px;
  }

  .main-tabs a {
    padding: 8px 0;
    font-size: 0.8rem;
  }

  .account-actions {
    flex-wrap: wrap;
  }

  .hero,
  .feature-band,
  .feature-grid,
  .split-showcase,
  .preview-grid,
  .app-grid,
  .other-grid,
  .detail-card-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }

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

  .button {
    width: 100%;
  }

  .carousel-track {
    min-height: 0;
  }

  .carousel-slide {
    min-height: 340px;
  }

  .carousel-slide img {
    height: 230px;
    padding: 12px;
  }
}

/* New TechZone landing design */
.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 76px;
  gap: clamp(14px, 2vw, 28px);
  padding: 0 clamp(20px, 4vw, 54px);
  background:
    linear-gradient(90deg, rgba(12, 17, 26, 0.97), rgba(43, 30, 31, 0.94)),
    linear-gradient(135deg, rgba(18, 104, 214, 0.18), rgba(238, 51, 73, 0.22));
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-wordmark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 2px;
}

.brand-wordmark span {
  color: var(--red);
}

.brand-wordmark strong {
  color: var(--blue);
}

.main-tabs {
  justify-content: center;
  gap: clamp(12px, 1.7vw, 28px);
}

.main-tabs a {
  padding: 28px 0 20px;
  font-size: 0.74rem;
  letter-spacing: 0;
}

.account-actions {
  min-width: max-content;
}

.arrow-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  background: rgba(255, 255, 255, 0.16);
}

.login-button {
  min-height: 42px;
  padding: 9px 18px;
}

.landing-hero {
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding: clamp(54px, 7vw, 88px) clamp(24px, 6vw, 76px) 64px;
  background:
    radial-gradient(circle at 82% 32%, rgba(18, 104, 214, 0.16) 0 15%, transparent 15.5%),
    radial-gradient(circle at 83% 34%, rgba(255, 255, 255, 0.9) 0 21%, transparent 21.6%),
    linear-gradient(135deg, #eff6ff 0%, #fff8fb 52%, #ffffff 100%);
}

.landing-copy {
  max-width: 760px;
}

.landing-copy h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 7.4vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.landing-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 20px 0 0;
  color: #2e3748;
  font-size: 1.02rem;
}

.landing-buttons {
  margin: 28px 0 6px;
}

.landing-buttons .button {
  min-width: 230px;
}

.hero-metrics {
  max-width: 520px;
  margin: 26px 0 0;
  padding-top: 20px;
}

.hero-metrics strong {
  font-size: 1.45rem;
}

.hero-metrics span {
  font-size: 0.86rem;
  line-height: 1.15;
}

.download-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 620px;
  margin-top: 40px;
}

.download-mini-card {
  min-height: 230px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(238, 51, 73, 0.16), transparent 36%),
    linear-gradient(135deg, #ffffff, #fff1f5);
  border: 1px solid rgba(223, 230, 242, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.mini-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-radius: 16px;
  font-weight: 950;
}

.mini-download-mark {
  color: #1d2737;
  font-weight: 950;
  font-size: 1.4rem;
}

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

.download-mini-card p {
  min-height: 54px;
  margin: 8px 0 20px;
  color: #4b5565;
  font-size: 0.93rem;
}

.landing-side {
  display: grid;
  gap: 22px;
  align-self: stretch;
  align-content: center;
}

.secure-login-card,
.category-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(223, 230, 242, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.secure-login-card {
  width: min(390px, 100%);
  justify-self: end;
  padding: 26px;
}

.secure-login-card h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
}

.secure-login-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: #3e4858;
  font-size: 0.86rem;
  font-weight: 800;
}

.secure-login-card input {
  min-height: 42px;
  background: #fff;
}

.secure-login-card small {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
}

.secure-login-card .modal-error {
  margin-top: 8px;
  font-size: 0.9rem;
}

.create-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.modal-create-account {
  margin-top: 12px;
}

.login-success-card {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 16px;
  color: #0d3b23;
  background: #eafaf1;
  border: 1px solid #bde8cd;
  border-radius: 16px;
}

.login-success-card strong,
.login-success-card span {
  display: block;
}

.login-success-card span {
  color: #335f48;
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  overflow: hidden;
  padding: 18px;
}

.category-card h3 {
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.category-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
}

.category-card p {
  margin: 12px 0 0;
  color: #2e3748;
  font-weight: 800;
}

.phone-parts-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 190px;
  padding: 10px;
  background: linear-gradient(135deg, #f9fbff, #fff2f6);
  border-radius: 16px;
}

.phone-parts-visual img {
  width: 100%;
  height: 94px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(223, 230, 242, 0.9);
  border-radius: 12px;
}

.feature-band {
  padding-top: 58px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .brand-wordmark {
    order: 1;
  }

  .account-actions {
    order: 2;
  }

  .main-tabs {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .main-tabs a {
    padding: 8px 0;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .secure-login-card {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .brand-wordmark {
    font-size: 2rem;
  }

  .brand-wordmark img {
    width: 42px;
    height: 42px;
  }

  .landing-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  .download-card-grid,
  .category-showcase,
  .hero-metrics,
  .parts-grid,
  .admin-grid-two {
    grid-template-columns: 1fr;
  }

  .landing-buttons .button {
    width: 100%;
    min-width: 0;
  }
}

/* Floating red/blue navigation buttons */
.main-tabs {
  gap: clamp(8px, 1.2vw, 14px);
  padding: 10px 4px;
}

.main-tabs a {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.94);
  background:
    linear-gradient(135deg, rgba(18, 104, 214, 0.18), rgba(238, 51, 73, 0.16)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow:
    0 12px 26px rgba(18, 104, 214, 0.16),
    0 10px 24px rgba(238, 51, 73, 0.12);
  font-size: 0.73rem;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.main-tabs a::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  background: radial-gradient(circle, rgba(18, 104, 214, 0.28), rgba(238, 51, 73, 0.14) 42%, transparent 68%);
  border-radius: 999px;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 160ms ease;
}

.main-tabs a:hover,
.main-tabs a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(135deg, rgba(18, 104, 214, 0.72), rgba(238, 51, 73, 0.72));
  box-shadow:
    0 16px 34px rgba(18, 104, 214, 0.28),
    0 14px 32px rgba(238, 51, 73, 0.2);
}

.main-tabs a:hover::before,
.main-tabs a:focus-visible::before,
.main-tabs a.active::before {
  opacity: 1;
}

.main-tabs a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 16px 38px rgba(18, 104, 214, 0.34),
    0 14px 34px rgba(238, 51, 73, 0.26);
}

.main-tabs a.active::after {
  display: none;
}

/* Header layout guard */
.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 84px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-wordmark img {
  flex: 0 0 56px;
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  object-fit: contain;
}

.main-tabs {
  justify-content: center;
  align-items: center;
}

.account-actions {
  align-self: center;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .brand-wordmark,
  .main-tabs,
  .account-actions {
    justify-self: center;
  }

  .main-tabs {
    max-width: 100%;
    justify-content: flex-start;
  }
}
