/* ================================================
   RAPTI GAS UDHYOG - Design System
   Brand: Red #F01A02 | Navy #2E3192 | Orange #E8956D
   ================================================ */

/* Fonts: Plus Jakarta Sans + Mukta are loaded from <link> tags in _Layout.cshtml for non-blocking CSS. */

:root {
  --red: #f01a02;
  --red-dark: #c01500;
  --red-light: #ff3a20;
  --navy: #2e3192;
  --navy-dark: #1e2170;
  --navy-light: #4045c0;
  --nav-gradient: linear-gradient(
    90deg,
    #e10d0d 0%,
    #c81f2b 24%,
    #93406f 60%,
    #2d3f98 100%
  );
  --orange: #e8956d;
  --orange-dark: #d4783c;
  --white: #ffffff;
  --off-white: #f8f8fc;
  --gray-100: #f1f1f6;
  --gray-200: #e2e2ed;
  --gray-400: #9999b0;
  --gray-600: #555570;
  --gray-800: #222238;
  --black: #0a0a1a;

  --font-main: "Plus Jakarta Sans", "Mukta", sans-serif;
  --font-devanagari: "Mukta", "Plus Jakarta Sans", sans-serif;

  --shadow-sm: 0 2px 8px rgba(10, 10, 26, 0.1);
  --shadow-md: 0 8px 32px rgba(10, 10, 26, 0.14);
  --shadow-lg: 0 20px 60px rgba(10, 10, 26, 0.18);
  --shadow-red: 0 8px 32px rgba(240, 26, 2, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 76px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 86px; /* Offset for fixed header */
}

.lang-np {
  font-family: var(--font-devanagari);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: var(--font-main);
  border: none;
  background: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-800);
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}
p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.header-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
}
.section {
  padding: 5rem 0;
}
.section-sm {
  padding: 3rem 0;
}
.text-center {
  text-align: center;
}
.text-red {
  color: var(--red);
}
.text-navy {
  color: var(--navy);
}
.text-orange {
  color: var(--orange);
}
.text-white {
  color: var(--white);
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

body.lang-np .section-badge {
  letter-spacing: 0;
}

/* Nepali text should not use Latin-style tracking between characters. */
html[lang="ne"] body,
html[lang="ne"] body * {
  letter-spacing: normal !important;
  word-spacing: normal;
}

html[lang="ne"] .hero-badge,
html[lang="ne"] .section-badge {
  text-transform: none;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 1rem;
}
.section-title span {
  color: var(--red);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(240, 26, 2, 0.35);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--red-dark);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-navy:hover {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
}

/* ── Header & Navbar ── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-gradient);
  box-shadow: var(--shadow-md);
  overflow: visible;
  transition: padding 0.3s ease;
}

#site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.01) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

#site-header.scrolled {
  background: var(--nav-gradient);
  box-shadow: var(--shadow-lg);
}

#navbar {
  height: 86px;
  display: flex;
  align-items: center;
  background: transparent;
  position: relative;
  z-index: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-logo-mark,
.nav-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-logo-wordmark {
  display: inline-block;
  color: #ffffff !important;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  line-height: 1;
  text-transform: uppercase;
}

#site-header .nav-logo,
#site-header .nav-logo:visited,
#site-header .nav-logo:hover {
  color: #ffffff !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
  left: 10%;
  right: 10%;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-logout-form {
  margin: 0;
}

.nav-auth-actions .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 32px;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  white-space: nowrap;
}

.nav-btn-icon {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn-label {
  display: inline;
}

.nav-btn-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--red);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px rgba(10, 10, 26, 0.22);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
  transform-origin: center;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    width 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.48);
  transform: translateY(-1px);
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.nav-toggle.is-open {
  background: rgba(255, 255, 255, 0.26);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--black) 100%);
}

.hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(2rem, 7vw, 7rem);
  padding-top: clamp(5.5rem, 12vh, 8rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: brightness(0.8) contrast(1.12) saturate(1.15);
  transform: scale(1.05);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url("/images/hero-bg.png");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  display: none; /* Hidden behind video */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.58) 60%,
    rgba(0, 0, 0, 0.54) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 760px;
  padding-left: clamp(1rem, 2vw, 1.6rem);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(46, 49, 146, 0.2);
  border: 1px solid rgba(46, 49, 146, 0.4);
  color: #8b8ff7;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.15rem;
}

.hero h1 {
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.04;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.45rem;
}
.hero h1 .title-line-1 {
  font-size: clamp(2.35rem, 4.4vw, 4.35rem);
  font-weight: 800;
  line-height: 1.02;
  color: var(--white);
  max-width: 11.5em;
}
.hero h1 .title-line-2 {
  font-size: clamp(2rem, 3.3vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
}
.hero h1 .text-red {
  color: var(--red);
}

.hero-cert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero-cert::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #22c55e;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.9rem;
  max-width: 600px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: clamp(1rem, 4vw, 2.4rem);
  width: min(820px, 100%);
  margin-top: clamp(2rem, 7vh, 5rem);
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.stat-item {
  text-align: left;
  min-width: 0;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-number span {
  color: var(--red);
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  margin-top: 0.25rem;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center; /* center instead of flex-end */
    align-self: stretch;
    min-width: 0;
    padding-right: 0;
    pointer-events: none;
    overflow: visible;
    width: 500px;
    flex-shrink: 0;
}

    .hero-visual::before {
        content: "";
        position: absolute;
        width: min(44vw, 520px);
        aspect-ratio: 1;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(240, 26, 2, 0.35) 0%, rgba(232, 149, 109, 0.18) 38%, transparent 70% );
        filter: blur(10px);
        opacity: 0.85;
        transform: translate(32%, 24%);
    }

/*.hero-gas-img {
    position: absolute;
    right: -1px;
    bottom: -30px;
    width: 420px;
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 34px 38px rgba(0, 0, 0, 0.48));
    transform: none;
}*/
.hero-gas-img {
    position: absolute;
    right: 90px; /* slight right offset */
    bottom: -60px;
    width: 415px;
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 34px 38px rgba(0, 0, 0, 0.48));
    transform: none;
    /* Fade-in animation */
    opacity: 0;
    animation: cylinderFadeIn 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}
@keyframes cylinderFadeIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Flame Animation */
.flame-ring {
  display: none;
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.45;
  }
}

/* ── Services Section ── */
.services {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.3rem;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(240, 26, 2, 0.25);
}
.service-card h3 {
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.service-card p {
  margin: 0;
  font-size: 0.93rem;
}

/* ── Why Choose Section ── */
.why-choose {
  background: linear-gradient(135deg, var(--navy) 0%, var(--black) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why-choose::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(240, 26, 2, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.why-choose .section-title {
  color: var(--white);
}
.why-choose .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.feature-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  border-color: rgba(240, 26, 2, 0.4);
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-item h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.feature-item p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  margin: 0;
}

/* ── Products Preview ── */
.products-preview {
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 2rem;
  justify-content: center;
}

.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  background: var(--white);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrap {
  background: linear-gradient(135deg, var(--gray-100), var(--off-white));
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.product-img-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}
.product-img-wrap img {
  max-height: 170px;
  object-fit: contain;
  transition: var(--transition);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-info {
  padding: 1.5rem;
}
.product-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(240, 26, 2, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
}
.product-info h3 {
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.product-info p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* ── Dealers ── */
.dealers {
  background: var(--off-white);
}

.dealers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.dealer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: left;
}

.dealer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.dealer-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.dealer-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(240, 26, 2, 0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dealer-title h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--navy);
}

.dealer-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(240, 26, 2, 0.1);
  color: var(--red);
}

.dealer-meta {
  display: grid;
  gap: 0.75rem;
}

.dealer-meta-item {
  display: grid;
  gap: 0.2rem;
}

.dealer-meta-item .label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-400);
}

.dealer-meta-item .value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.dealer-meta-item a.value {
  color: var(--red);
}
.dealer-meta-item a.value:hover {
  color: var(--red-dark);
}

/* ── Blog Preview ── */
.blog-preview {
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.blog-card:hover .blog-img img {
  transform: scale(1.08);
}

.blog-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.blog-body {
  padding: 1.5rem;
}
.blog-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 0.6rem;
}
.blog-body h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.35;
}
.blog-body p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.blog-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.blog-link:hover {
  gap: 0.6rem;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.8rem;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ── Become a Dealer ── */
.become-dealer {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.become-dealer::after {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.become-dealer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.safety-dealer-cta {
  margin-top: 0;
  padding: 0 0 3.2rem;
  background: linear-gradient(
    180deg,
    transparent 0,
    transparent 5.5rem,
    var(--red-dark) 5.5rem,
    var(--red) 100%
  );
}

.safety-dealer-cta::before {
  content: "";
  position: absolute;
  inset: 5.5rem 0 0 0;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  pointer-events: none;
}

.safety-dealer-cta::after {
  inset: 3.5rem -80px auto auto;
  width: 460px;
  height: 460px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 66%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 55%);
}

.safety-dealer-cta .container {
  position: relative;
  z-index: 1;
}

.safety-dealer-cta .become-dealer-grid-with-media {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: 23rem;
  padding-top: 5.5rem;
}

.safety-dealer-copy {
  max-width: 680px;
}

.safety-dealer-cta .become-dealer-visual {
  position: relative;
  align-self: stretch;
  justify-self: end;
  width: min(100%, 360px);
  margin-top: -5.5rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: none;
  box-shadow: none;
}

.safety-dealer-cta .become-dealer-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 5.5rem;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow:
    0 24px 54px rgba(10, 10, 26, 0.26),
    0 7px 18px rgba(10, 10, 26, 0.16);
  pointer-events: none;
}

.safety-dealer-cta .become-dealer-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.become-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* ── Footer ── */
footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.footer-logo span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.footer-about p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--white);
  /*color: var(--white);*/
  transform: translateY(-2px);
}

.social-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}
.footer-col ul li {
  margin-bottom: 0.55rem;
}
.footer-col ul li a {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-col ul li a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}
.footer-contact-item .icon {
  color: var(--red);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact-item span {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a {
  color: var(--red);
}

.footer-back-to-top {
  position: absolute;
  right: 1.5rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  color: var(--white);
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  transition: var(--transition);
}

.footer-back-to-top:hover,
.footer-back-to-top:focus-visible {
  color: var(--orange);
}

.footer-back-to-top:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.footer-back-to-top svg {
  width: 23px;
  fill: currentColor;
  stroke: none;
}

/* ── Page Header ── */
.page-hero {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  padding: 4rem 0 5.5rem;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.8rem;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
}
.breadcrumb a:hover {
  color: var(--orange);
}
.breadcrumb .sep {
  opacity: 0.4;
}

/* ── Dealer Network public page ── */
.dealer-network-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dealer-public-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 6px 10px 6px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dealer-public-search .search-icon {
  color: var(--gray-600);
  display: inline-flex;
}

.dealer-public-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.95rem;
  min-width: 240px;
  color: var(--gray-900, #14172b);
}

.dealer-public-search button {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

.dealer-public-search button:hover {
  background: var(--red-dark);
}

.dealer-public-clear {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 4px;
}

.dealer-public-clear:hover {
  color: var(--red);
  text-decoration: underline;
}

.dealer-public-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.dealer-public-pagination-summary {
  flex: 1 1 220px;
  min-width: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.dealer-public-pagination-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dealer-public-pagination-list li {
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
}

.dealer-public-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 36px;
  min-height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--gray-900, #14172b);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.dealer-public-page-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.dealer-public-page-link.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  cursor: default;
}

.dealer-public-page-link.is-disabled {
  color: rgba(0, 0, 0, 0.35);
  background: #f7f7f9;
  cursor: not-allowed;
  pointer-events: none;
}

.dealer-public-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .dealer-public-pagination {
    align-items: stretch;
  }

  .dealer-public-pagination-summary,
  .dealer-public-pagination-list {
    flex-basis: 100%;
    width: 100%;
  }

  .dealer-public-pagination-list {
    gap: 5px;
  }

  .dealer-public-page-link {
    min-width: 32px;
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.84rem;
  }

  .dealer-public-page-ellipsis {
    min-width: 18px;
  }
}

.dealer-public-table {
  border-collapse: separate;
  border-spacing: 0;
}

.dealer-public-table thead th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dealer-public-table tbody td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dealer-public-table tbody tr:last-child td {
  border-bottom: 0;
}

.dealer-public-table tbody tr:hover td {
  background: rgba(239, 68, 68, 0.04);
}

/* ── Contact Page ── */
.contact-section {
  background:
    radial-gradient(
      900px 420px at 95% 0%,
      rgba(46, 49, 146, 0.08),
      transparent 60%
    ),
    radial-gradient(
      700px 360px at 0% 100%,
      rgba(30, 64, 175, 0.07),
      transparent 62%
    );
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-grid > .fade-up {
  display: flex;
  height: 100%;
}

.contact-info-card {
  background: linear-gradient(135deg, #1b2558, #11193d 70%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(11, 18, 49, 0.22);
  width: 100%;
  min-height: 100%;
}
.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}
.contact-info-card > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.c-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.c-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.c-info-text {
  font-size: 0.88rem;
}
.c-info-text strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}
.c-info-text span {
  color: rgba(255, 255, 255, 0.65);
}

.c-info-text span a {
  color: rgba(255, 255, 255, 0.8);
}

.c-info-text span a:hover {
  color: #fff;
}

.contact-emergency {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-emergency p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}

.contact-call-btn {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.contact-call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  filter: brightness(0) invert(1);
  font-size: 1.05rem;
  line-height: 1;
  flex: 0 0 auto;
}

.contact-call-btn:hover {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: var(--white);
  box-shadow: 0 12px 40px rgba(240, 26, 2, 0.35);
}

.contact-form-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #dce0ef;
  width: 100%;
  min-height: 100%;
}
.contact-form-card h3 {
  color: #1a2452;
  margin-bottom: 0.5rem;
}
.contact-form-card > p {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d9dfef;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.93rem;
  color: var(--gray-800);
  transition: var(--transition);
  background: #f6f8ff;
}
.form-control:focus {
  outline: none;
  border-color: #4252a8;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.14);
}
textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.contact-validation-error {
  color: #d33131;
  font-size: 0.8rem;
}

.contact-map-wrap {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #d7deee;
  background: #fff;
}

/* ── Media Page ── */
.media-section {
  background: var(--white);
}

.media-section > .container > .section-badge,
.media-section > .container > .section-title,
.media-section > .container > .section-subtitle {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.media-section > .container > .section-title {
  width: 100%;
}

/* ── Media Carousel (3-up sliding track) ── */
.media-carousel-wrapper {
  position: relative;
  margin-top: 2rem;
  padding: 0 2rem; /* room for arrows */
}

.media-carousel-outer {
  overflow: hidden;
  width: 100%;
}

.media-carousel-track {
  display: flex;
  gap: 1rem;             /* keep GAP const in JS in sync (16px) */
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Cards sized by JS; CSS gives them a fixed height */
.media-carousel-track .media-embed-card {
  flex-shrink: 0;        /* width set dynamically by JS */
}

/* Post embed area */
.media-post-embed {
  width: 100%;
  height: 360px;
  overflow: hidden;
  border: 1px solid #d7deee;
  border-radius: var(--radius-md);
  background: #f6f8ff;
}

.media-post-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* Prev / Next arrows */
.media-carousel-btn {
  position: absolute;
  top: calc(50% - 1.5rem); /* vertically centered on the track, offset for dots */
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid #dce0ef;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.media-carousel-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.media-carousel-btn--prev { left: 0; }
.media-carousel-btn--next { right: 0; }

/* Dot indicators */
.media-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.media-carousel-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: none;
  background: #c8d0e8;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.media-carousel-dot.active {
  background: var(--red);
  transform: scale(1.3);
}

/* Legacy grid kept for possible reuse, hidden via wrapper */
.media-embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
  align-items: start;
  margin-top: 1.5rem;
}

.media-embed-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #dce0ef;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  box-shadow: var(--shadow-md);
}

.media-embed-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.media-platform-label {
  color: #1a2452;
  font-size: 1.05rem;
  font-weight: 800;
}

.media-embed-heading a {
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 700;
}

.media-embed-heading a:hover {
  color: var(--red-dark);
}

.media-facebook-embed,
.media-tiktok-embed,
.media-instagram-embed {
  display: flex;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #d7deee;
  border-radius: var(--radius-md);
  background: #f6f8ff;
}

.media-facebook-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 500px;
}

.media-tiktok-embed {
  align-items: flex-start;
  padding: 0;
}

.media-instagram-embed {
  align-items: flex-start;
  padding: 0;
}

.media-tiktok-embed .tiktok-embed,
.media-instagram-embed .instagram-media {
  width: 100%;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* ── Safety Page ── */
.safety-section {
  background: var(--white);
}

.safety-section-head {
  margin-bottom: 2rem;
}

.safety-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 1.25rem;
}

.safety-tip-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce0ef;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.safety-tip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 26, 2, 0.24);
  box-shadow: var(--shadow-lg);
}

.safety-tip-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f3fb;
  border-bottom: 1px solid #e4e8f4;
}

.safety-tip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.safety-tip-content {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.safety-tip-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-bottom: 0.7rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

html[lang="ne"] .safety-tip-kicker {
  text-transform: none;
}

.safety-tip-kicker strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--navy));
  font-size: 0.8rem;
  font-weight: 800;
}

.safety-tip-content h3 {
  margin: 0 0 0.8rem;
  color: var(--navy);
  font-size: 1.18rem;
}

.safety-tip-content ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-tip-content li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.55;
}

.safety-tip-content li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--red);
}

html[lang="ne"] .safety-tip-content li {
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Gallery ── */
.home-gallery {
  background: linear-gradient(145deg, #19153d 0%, #242048 100%);
}

.home-gallery .section-title,
.home-gallery .section-title span {
  color: var(--white);
}

.home-gallery .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.rg-gallery {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 16px 36px rgba(15, 17, 40, 0.06);
  padding: 1.5rem 1.5rem 1.75rem;
}

.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.filter-btn {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700, #4b5163);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 999px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
}

.gallery-grid .gallery-item {
  flex: 0 1 280px;
  max-width: 300px;
  width: 100%;
}

.gallery-grid .gallery-empty {
  flex: 1 1 100%;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  aspect-ratio: 4 / 3;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  isolation: isolate;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 17, 40, 0.12);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.gallery-item-img {
  position: absolute;
  inset: 0;
}

.gallery-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover .gallery-item-img img,
.gallery-item:focus-visible .gallery-item-img img {
  transform: scale(1.06);
}

.gallery-item-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.gallery-item-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 0.85rem 0.9rem 0.7rem;
  background: linear-gradient(
    to top,
    rgba(10, 12, 30, 0.78) 0%,
    rgba(10, 12, 30, 0) 100%
  );
}

.gallery-item-caption span {
  display: block;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.gallery-empty {
  grid-column: 1 / -1;
  color: var(--gray-600);
  text-align: center;
  margin: 0;
  padding: 2.5rem 1rem;
}

/* Dark variant when embedded inside .home-gallery */
.home-gallery .rg-gallery {
  background:
    radial-gradient(
      circle at 15% 12%,
      rgba(80, 96, 255, 0.2) 0%,
      rgba(27, 27, 70, 0) 42%
    ),
    linear-gradient(145deg, #18143c 0%, #29234f 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 42px rgba(6, 5, 24, 0.35);
}

.home-gallery .filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

.home-gallery .filter-btn:hover {
  border-color: #ffbb29;
  color: #ffbb29;
}

.home-gallery .filter-btn.active {
  background: #ffbb29;
  border-color: #ffbb29;
  color: #1d1840;
}

.home-gallery .gallery-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.home-gallery .gallery-empty {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 18, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: min(1080px, 94vw);
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: -2.85rem;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-stage {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  overflow: hidden;
}

.lightbox-stage img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(7, 7, 28, 0.68);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

.lightbox-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0.85rem 0 0;
}

.lightbox-related {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 0.5rem;
  max-height: 140px;
  overflow-y: auto;
}

.lightbox-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  opacity: 0.75;
  transition: var(--transition);
}

.lightbox-thumb img {
  width: 100%;
  height: 64px;
  object-fit: cover;
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
  border-color: #ffbb29;
  opacity: 1;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.mv-card {
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
}
.mv-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}
.mv-card.mission {
  background: linear-gradient(
    135deg,
    rgba(46, 49, 146, 0.05),
    rgba(46, 49, 146, 0.02)
  );
}
.mv-card.vision {
  background: linear-gradient(
    135deg,
    rgba(240, 26, 2, 0.05),
    rgba(240, 26, 2, 0.02)
  );
}
.mv-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.mv-card h4 {
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.mv-card p {
  font-size: 0.9rem;
  margin: 0;
}

.chairman-section {
  background: #f7f8fc;
}

.chairman-section .container {
  max-width: 1120px;
}

.chairman-section-head {
  margin-bottom: 2rem;
}

.chairman-card {
  background: #ffffff;
  border: 1px solid rgba(10, 10, 26, 0.08);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 18px 42px rgba(10, 10, 26, 0.08);
}

.chairman-card-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.6rem);
  align-items: start;
}

.chairman-photo-wrap {
  overflow: hidden;
  border-radius: 18px;
  background: #eef1f7;
  border: 1px solid rgba(10, 10, 26, 0.08);
}

.chairman-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.chairman-caption {
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.chairman-caption h4 {
  margin: 0;
  color: #1e2244;
  font-size: 1rem;
  line-height: 1.3;
}

.chairman-caption p {
  margin: 0.3rem 0 0;
  color: #5f6483;
  font-size: 0.85rem;
  line-height: 1.45;
}

.chairman-message {
  color: #2a2d4a;
  font-size: 0.93rem;
  line-height: 1.72;
}

.chairman-message p {
  margin: 0 0 0.9rem;
}

.chairman-message p:last-child {
  margin-bottom: 0;
}

/* ── History Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), var(--navy));
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}
.timeline-dot {
  position: absolute;
  left: -2.55rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--red);
}
.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.timeline-item h4 {
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.timeline-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* ── Blog Detail ── */
.blog-detail-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.blog-detail-content {
  max-width: 780px;
  margin: 0 auto;
}
.blog-detail-content h1 {
  margin-bottom: 1rem;
  color: var(--navy);
}
.article-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  color: var(--gray-400);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--gray-200);
  flex-wrap: wrap;
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray-600);
}
.article-body p {
  margin-bottom: 1.5rem;
}

/* ── Alert ── */
.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: #065f46;
  font-size: 0.93rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-alert-info {
  background: rgba(37, 99, 235, 0.08);
  border: 1.5px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: #1d4ed8;
  font-size: 0.93rem;
  margin-bottom: 1.5rem;
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .media-embed-grid {
    grid-template-columns: 1fr;
  }
  .media-carousel-wrapper {
    padding: 0 2.2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .mission-vision {
    grid-template-columns: 1fr;
  }
  .chairman-card-grid {
    grid-template-columns: 1fr;
  }
  .chairman-photo-wrap {
    max-width: 320px;
    margin: 0 auto;
  }
  .d-none-mobile {
    display: none !important;
  }
  .become-dealer-grid {
    grid-template-columns: 1fr;
  }
  .safety-dealer-cta {
    padding-bottom: 3rem;
    background: linear-gradient(
      180deg,
      transparent 0,
      transparent 3rem,
      var(--red-dark) 3rem,
      var(--red) 100%
    );
  }
  .safety-dealer-cta::before {
    inset: 3rem 0 0 0;
  }
  .safety-dealer-cta .become-dealer-grid-with-media {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 3rem;
  }
  .safety-dealer-cta .become-dealer-visual {
    justify-self: start;
    width: min(100%, 320px);
    margin-top: 0.5rem;
  }
  .safety-dealer-cta .become-dealer-visual::after {
    top: 0;
  }
  .safety-dealer-cta .become-dealer-visual img {
    min-height: 0;
    max-height: none;
  }
  .rg-gallery {
    padding: 1.25rem;
  }
}

@media (max-width: 1200px) {
  .header-container {
    padding: 0 1.1rem;
  }

  .nav-logo-wordmark {
    font-size: 1.55rem;
  }

  .nav-link {
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-auth-actions {
    gap: 0.35rem;
  }

  .nav-auth-actions .btn-sm {
    min-height: 30px;
    padding: 0.3rem 0.58rem;
    font-size: 0.69rem;
  }
}

@media (max-width: 1024px) {
  .d-none-mobile {
    display: none !important;
  }

  .header-container {
    padding: 0 0.9rem;
  }

  .nav-logo-wordmark {
    font-size: 1.35rem;
  }

  .nav-auth-actions {
    gap: 0.3rem;
  }

  .nav-auth-actions .btn-sm {
    width: 30px;
    min-height: 30px;
    padding: 0;
    gap: 0;
  }

  .nav-btn-label {
    display: none;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 0.5rem;
    background: rgba(17, 21, 58, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.9rem 0.8rem 1rem;
    box-shadow: var(--shadow-md);
    max-height: calc(100svh - 86px);
    overflow-y: auto;
    backdrop-filter: blur(8px);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.72rem 1rem;
    width: 100%;
    line-height: 1.25;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: #fff !important;
    background: rgba(240, 26, 2, 0.22);
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-logo-mark,
  .nav-logo img {
    width: 42px;
    height: 42px;
  }

  .nav-logo-wordmark {
    font-size: 1.35rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 0.5rem;
    background: rgba(17, 21, 58, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.9rem 0.8rem 1rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu .nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.7rem 1rem;
    width: 100%;
    line-height: 1.25;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
  }
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: #fff !important;
    background: rgba(240, 26, 2, 0.22);
  }
  .nav-menu .nav-link::after {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 100svh;
  }
  .hero > .container {
    display: block;
    padding-top: clamp(5rem, 14vh, 7rem);
    padding-bottom: 2.6rem;
  }
  .hero-content {
    max-width: 100%;
    padding-left: 0;
    border-left: 0;
  }
  .hero h1 .title-line-1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3.2rem);
  }
  .hero h1 .title-line-2 {
    font-size: clamp(1.8rem, 8vw, 2.55rem);
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 260px;
    padding-right: 0;
    margin-top: 1.5rem;
    overflow: hidden;
  }
  .hero-visual::before {
    width: min(60vw, 280px);
    transform: translate(0, 0);
  }
  .hero-gas-img {
    position: relative;
    right: auto;
    bottom: auto;
    width: 220px;
    max-height: 260px;
    filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.4));
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-top: 2.2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .hero-video {
    transform: scale(1.2);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-back-to-top {
    right: 1rem;
    bottom: 0.75rem;
  }

  .blog-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    gap: 0.9rem;
  }
  .gallery-grid .gallery-item {
    flex-basis: 200px;
    max-width: 240px;
  }
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }
  .lightbox-stage img {
    max-height: 58vh;
  }
}

@media (max-width: 480px) {
  .rg-gallery {
    padding: 1rem;
  }
  .gallery-grid {
    gap: 0.7rem;
  }
  .gallery-grid .gallery-item {
    flex-basis: calc(50% - 0.35rem);
    max-width: none;
  }
  .filter-btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
  }
  .lightbox-related {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-visual {
    height: 200px;
    margin-top: 1rem;
  }
  .hero-visual::before {
    width: min(50vw, 200px);
  }
  .hero-gas-img {
    width: 160px;
    max-height: 200px;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
  }
}

/* ================================================
   AUTH (Login / Register) – Modern, Brand-Aligned
   ================================================ */
.auth-section {
  position: relative;
  min-height: calc(100vh - 86px);
  padding: 3.5rem 1.25rem;
  background:
    radial-gradient(
      1200px 600px at 90% -10%,
      rgba(240, 26, 2, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 110%,
      rgba(46, 49, 146, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #fafafe 0%, #f1f1f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 49, 146, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 49, 146, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 0%,
    transparent 70%
  );
  pointer-events: none;
}

.auth-shell {
  position: relative;
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(10, 10, 26, 0.14),
    0 4px 12px rgba(10, 10, 26, 0.04);
  overflow: hidden;
  border: 1px solid rgba(10, 10, 26, 0.06);
}

.auth-card {
  padding: 2.6rem 2.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--white);
}

.auth-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
  color: var(--gray-800);
}
.auth-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.auth-brand-name {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1rem;
  color: var(--gray-800);
}

.auth-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.auth-title {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 800;
  margin: 0;
  color: var(--gray-800);
  line-height: 1.15;
}
.auth-subtitle {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Alerts */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  border: 1px solid transparent;
}
.auth-alert-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  margin-top: 1px;
}
.auth-alert-error {
  background: #fff1f0;
  border-color: #ffd1cb;
  color: #8a1a10;
}
.auth-alert-error .auth-alert-icon {
  background: var(--red);
  color: var(--white);
}
.auth-alert-info {
  background: #eef3ff;
  border-color: #cfd9ff;
  color: #1a276b;
}
.auth-alert-info .auth-alert-icon {
  background: var(--navy);
  color: var(--white);
}
.auth-alert-warn {
  background: #fff7e6;
  border-color: #ffd58a;
  color: #6b4500;
}
.auth-alert-warn .auth-alert-icon {
  background: var(--orange);
  color: var(--white);
}

/* Tabs (segmented control) */
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--gray-100);
  padding: 5px;
  border-radius: 14px;
  gap: 0;
  border: 1px solid rgba(10, 10, 26, 0.04);
}

.auth-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  color: var(--gray-600);
  cursor: pointer;
  transition: color 0.25s ease;
}
.auth-tab[aria-selected="true"] {
  color: var(--white);
}
.auth-tab:focus-visible {
  outline: 2px solid rgba(46, 49, 146, 0.4);
  outline-offset: 2px;
}
.auth-tab-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}
.auth-tab-icon svg {
  width: 100%;
  height: 100%;
}

.auth-tab-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 6px 18px rgba(240, 26, 2, 0.32);
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.32s ease;
  z-index: 0;
}
.auth-card[data-role="dealer"] .auth-tab-indicator {
  transform: translateX(100%);
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  box-shadow: 0 6px 18px rgba(46, 49, 146, 0.3);
}

/* Panels */
.auth-panels {
  display: block;
}
.auth-panel {
  display: none;
  animation: authFade 0.28s ease;
}
.auth-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@keyframes authFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-panel-intro {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.auth-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--gray-800);
}
.auth-panel-help {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.auth-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.auth-input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(240, 26, 2, 0.12);
}
.auth-card[data-role="dealer"] .auth-input-wrap:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(46, 49, 146, 0.14);
}

.auth-input-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: color 0.2s ease;
}
.auth-input-icon svg {
  width: 18px;
  height: 18px;
}
.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--red);
}
.auth-card[data-role="dealer"] .auth-input-wrap:focus-within .auth-input-icon {
  color: var(--navy);
}

.auth-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.95rem 0.4rem 0.95rem 0;
  font-size: 0.98rem;
  font-family: var(--font-main);
  color: var(--gray-800);
  outline: none;
  width: 100%;
  min-width: 0;
}
.auth-input::placeholder {
  color: var(--gray-400);
}
.auth-input-otp {
  letter-spacing: 0.5em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.auth-input-trail {
  flex: 0 0 44px;
  width: 44px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.2s ease;
}
.auth-input-trail:hover {
  color: var(--gray-800);
}
.auth-input-trail svg {
  width: 18px;
  height: 18px;
}

.auth-phone-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(240, 26, 2, 0.07),
    rgba(232, 149, 109, 0.08)
  );
  border: 1px solid rgba(240, 26, 2, 0.15);
  border-radius: 12px;
}
.auth-phone-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.auth-phone-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Submit button */
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.95rem 1.4rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 10px 24px rgba(240, 26, 2, 0.25);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.25s ease;
}
.auth-submit svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(240, 26, 2, 0.32);
}
.auth-submit:hover svg {
  transform: translateX(3px);
}
.auth-submit:active {
  transform: translateY(0);
}
.auth-card[data-role="dealer"] .auth-submit {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  box-shadow: 0 10px 24px rgba(46, 49, 146, 0.28);
}
.auth-card[data-role="dealer"] .auth-submit:hover {
  box-shadow: 0 14px 30px rgba(46, 49, 146, 0.34);
}

/* Resend / inline links */
.auth-resend {
  margin: -0.2rem 0 0;
  text-align: center;
}
.auth-link {
  background: none;
  border: none;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.auth-link:hover {
  background: rgba(240, 26, 2, 0.06);
  color: var(--red-dark);
}
.auth-link-alt {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--red);
  text-decoration: none;
}
.auth-link-alt:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.auth-footer {
  margin-top: auto;
  padding-top: 0.6rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-100);
  padding-top: 1.1rem;
}
.auth-footer a {
  color: var(--red);
  font-weight: 600;
}
.auth-footer a:hover {
  color: var(--red-dark);
}

.auth-footer-support {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(46, 49, 146, 0.08);
  border-top: none;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(46, 49, 146, 0.04), rgba(232, 149, 109, 0.15)),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 248, 252, 0.98)
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.auth-footer-support-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 49, 146, 0.08);
  box-shadow: 0 10px 24px rgba(46, 49, 146, 0.08);
}

.auth-footer-support-icon svg {
  width: 18px;
  height: 18px;
}

.auth-footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.45;
}

.auth-footer-support a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--navy);
  font-weight: 700;
}

.auth-footer-support a:hover {
  color: var(--navy-dark);
}

/* Aside (marketing panel) */
.auth-aside {
  position: relative;
  padding: 3rem 2.6rem;
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(232, 149, 109, 0.45),
      transparent 55%
    ),
    linear-gradient(160deg, var(--navy) 0%, #1a1d6e 60%, #0e0f3a 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, black 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 90%);
  z-index: -1;
}
.auth-aside-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 26, 2, 0.55), transparent 60%);
  filter: blur(20px);
  z-index: -1;
}
.auth-aside-content {
  position: relative;
  z-index: 1;
  transform: translateY(-6%);
}
.auth-aside-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
}
.auth-aside-title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 0.9rem;
  color: var(--white);
}
.auth-aside-text {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 360px;
}
.auth-aside-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}
.auth-aside-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}
.auth-aside-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(240, 26, 2, 0.4);
}

/* Register form extras */
.auth-shell-wide {
  max-width: 1180px;
}
.auth-card-register {
  padding: 2.4rem 2.4rem 2rem;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-error {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--red);
}
.auth-error:empty {
  display: none;
}

.auth-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.auth-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239999b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 2.4rem;
  cursor: pointer;
}

.dealer-search-native {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.dealer-search-select {
  position: relative;
  flex: 1;
  min-width: 0;
}

.dealer-search-select.open {
  z-index: 1200;
}

.dealer-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gray-800, var(--portal-text));
  font: inherit;
  padding: 0.95rem 2.2rem 0.95rem 0;
}

.dealer-search-select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: currentColor;
  color: var(--gray-400, var(--portal-text-muted));
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></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'><path d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center / contain no-repeat;
}

.dealer-search-options {
  position: absolute;
  z-index: 1300;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--gray-200, var(--portal-border));
  border-radius: 12px;
  background: var(--white, var(--portal-surface));
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
}

.dealer-search-select.open .dealer-search-options {
  display: grid;
  gap: 4px;
}

.dealer-search-options.is-open {
  display: grid;
  gap: 4px;
}

.dealer-search-select.dropup .dealer-search-options {
  top: auto;
  bottom: calc(100% + 8px);
}

.dealer-search-option,
.dealer-search-empty {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gray-800, var(--portal-text));
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 9px 10px;
  text-align: left;
}

.dealer-search-option {
  cursor: pointer;
}

.dealer-search-option:hover,
.dealer-search-option.active,
.dealer-search-option[aria-selected="true"] {
  background: rgba(240, 26, 2, 0.08);
  color: var(--red, var(--portal-accent));
}

.dealer-search-empty {
  color: var(--gray-400, var(--portal-text-muted));
}

.customer-form-input + .dealer-search-select {
  width: 100%;
}

.customer-form-input + .dealer-search-select .dealer-search-input {
  min-height: 42px;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--portal-border-strong);
  border-radius: var(--portal-radius-sm);
  background: var(--portal-surface);
  color: var(--portal-text);
  font-size: 0.92rem;
  transition: var(--portal-transition);
}

.customer-form-input + .dealer-search-select:focus-within .dealer-search-input {
  border-color: var(--portal-accent);
  box-shadow: 0 0 0 3px var(--portal-accent-soft);
}

.customer-form-input + .dealer-search-select .dealer-search-options {
  border-color: var(--portal-border);
  background: var(--portal-surface);
  box-shadow: var(--portal-shadow-lg);
}

.customer-form-input + .dealer-search-select .dealer-search-option,
.customer-form-input + .dealer-search-select .dealer-search-empty {
  color: var(--portal-text);
}

.customer-form-input + .dealer-search-select .dealer-search-empty {
  color: var(--portal-text-muted);
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-top: 0.2rem;
}
.auth-meta-sep {
  color: var(--gray-400);
}
.auth-resend-form {
  display: inline;
}

.auth-link-pill {
  padding: 0.45rem 0.95rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-800);
  border-radius: 50px;
}
.auth-link-pill:hover {
  background: var(--white);
  color: var(--red);
  border-color: rgba(240, 26, 2, 0.4);
}

.auth-link-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-800);
  text-decoration: none;
  transition: var(--transition);
}
.auth-link-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(240, 26, 2, 0.04);
}

.auth-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
  margin-top: 0.4rem;
}
.auth-actions .auth-submit {
  margin: 0;
}

.auth-map-field {
  gap: 0.6rem;
}
.auth-map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.auth-map {
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

@media (max-width: 880px) {
  .auth-section {
    padding: 2rem 1rem;
  }
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 520px;
    border-radius: 22px;
  }
  .auth-row {
    grid-template-columns: 1fr;
  }
  .auth-actions {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    order: -1;
    padding: 2rem 1.75rem;
    min-height: 180px;
    justify-content: center;
  }
  .auth-aside-content {
    transform: none;
  }
  .auth-aside-list {
    display: none;
  }
  .auth-aside-text {
    display: none;
  }
  .auth-aside-title {
    font-size: 1.35rem;
    margin: 0;
  }
  .auth-aside-badge {
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 540px) {
  .auth-card {
    padding: 1.85rem 1.4rem 1.5rem;
  }
  .auth-aside {
    padding: 1.5rem 1.4rem;
  }
  .auth-tab-label {
    font-size: 0.85rem;
  }
  .auth-input {
    padding: 0.85rem 0.4rem 0.85rem 0;
    font-size: 0.95rem;
  }
  .auth-input-icon {
    flex-basis: 40px;
    width: 40px;
  }
  .auth-footer-support {
    align-items: flex-start;
    padding: 0.95rem;
  }
}
