:root {
  --brand-orange: #d62839;
  --brand-purple: #0d1b3d;
  --anchor-offset: 128px;
  --bg: rgba(214, 40, 57, 0.08);
  --surface: rgba(255, 255, 255, 0.92);
  --text: var(--brand-purple);
  --muted: rgba(13, 27, 61, 0.72);
  --line: rgba(13, 27, 61, 0.14);
  --shadow: 0 20px 60px rgba(10, 23, 53, 0.14);
  --radius-lg: 32px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#anasayfa,
#hakkimizda,
#misyon,
#vizyon,
#hizmetler,
#otomotiv,
#belgeler,
#iletisim,
#basvuru {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  font-family: Bahnschrift, "Trebuchet MS", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background: #f5f7fb;
}

body[data-page="maintenance"] {
  min-height: 100vh;
  color: #ffffff;
  background: #0d1b3d;
}

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

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

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

textarea {
  resize: vertical;
}

.page-shell,
.maintenance-shell .container,
.admin-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
}

.page-shell {
  padding: 24px 0 56px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(13, 27, 61, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

body[data-page="admin"] .topbar,
body[data-page="automotive"] .topbar {
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 58px;
}

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

.brand strong {
  font-size: 1.1rem;
}

.brand span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav,
.nav-actions,
.header-links,
.hero-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.header-links {
  flex: 1;
  justify-content: space-between;
}

.nav {
  justify-content: center;
}

.nav a {
  color: var(--brand-purple);
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--brand-purple);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cta:hover,
.primary-btn:hover,
.ghost-btn:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-cta,
.primary-btn,
.ghost-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.compact-btn {
  padding: 12px 18px;
}

.nav-cta,
.primary-btn,
.btn-primary {
  background: var(--brand-purple);
  color: white;
  box-shadow: 0 16px 28px rgba(13, 27, 61, 0.24);
}

.ghost-btn,
.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-purple);
}

.section-card p:not(.eyebrow),
.service-lead p,
.service-card p,
.vehicle-meta,
.form-message,
.site-footer,
.contact-lines p,
.brand span,
.nav a {
  color: var(--muted);
}

.hero-grid,
.content-grid,
.vision-grid,
.docs-contact,
.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.8fr);
  align-items: stretch;
}

.hero-card,
.rail-card,
.section-card,
.service-card,
.vehicle-card,
.stat-feature,
.application-form,
.admin-panel-card,
.admin-status-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 27, 61, 0.08);
  box-shadow: var(--shadow);
}

.slider-card {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background: #0d1b3d;
}

.hero-copy {
  position: absolute;
  top: 18px;
  left: 18px;
  bottom: 96px;
  z-index: 2;
  width: clamp(300px, 35%, 380px);
  max-width: calc(100% - 36px);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  background: #0d1b3d;
  border-radius: 28px;
  backdrop-filter: blur(6px);
}

.info-rail {
  align-content: start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-orange);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-card h2,
.service-lead h2,
.section-heading h2,
.admin-panel-card h1,
.admin-panel-card h2,
.application-form h3 {
  margin: 0;
  line-height: 1.04;
}

.hero-copy h1 {
  color: white;
  font-size: clamp(1.7rem, 2.6vw, 3rem);
  max-width: 7ch;
  line-height: 1.02;
}

.hero-title {
  font-family: Bahnschrift, "Trebuchet MS", sans-serif;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
  max-width: 26ch;
}

.slider,
.slides,
.slide,
.slide img {
  height: 100%;
}

.slider {
  position: relative;
}

.slides {
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 600ms ease, transform 1.6s ease;
}

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

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 61, 0.24);
}

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

.slider-overlay,
.slider-controls {
  position: absolute;
  z-index: 3;
}

.slider-overlay {
  right: 24px;
  bottom: 26px;
  max-width: 390px;
  padding: 16px 20px;
  border-radius: 22px;
  color: white;
  background: #0d1b3d;
}

.slider-overlay span,
.slider-overlay strong,
.slider-overlay p {
  display: block;
}

.slider-overlay p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  line-height: 1.45;
}

.slider-overlay strong {
  font-size: 1.02rem;
  line-height: 1.35;
  text-wrap: balance;
}

.slider-overlay span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slider-controls {
  left: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  font-size: 1.05rem;
  color: white;
  background: rgba(13, 27, 61, 0.36);
  cursor: pointer;
}

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

.slider-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.slider-dots button.active {
  width: 34px;
  border-radius: 999px;
  background: white;
}

.info-rail,
.service-cards,
.gallery-grid,
.vehicle-grid,
.admin-list,
.side-cards,
.admin-main {
  display: grid;
  gap: 16px;
}

.rail-card,
.section-card,
.service-lead,
.service-card,
.vehicle-card,
.application-form,
.admin-panel-card,
.admin-status-card {
  padding: 28px;
}

.rail-card.accent,
.contact-card {
  background: var(--brand-purple);
  color: white;
}

body[data-page="home"] #hakkimizda,
body[data-page="home"] #vizyon,
body[data-page="home"] .info-rail .rail-card:nth-child(2),
body[data-page="home"] .info-rail .rail-card:nth-child(3) {
  display: none;
}

.corporate-hero,
.corporate-story,
.corporate-video-card,
.corporate-mission-grid {
  margin-top: 22px;
}

.corporate-hero h1 {
  margin: 0;
  color: var(--brand-purple);
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.05;
}

.corporate-grid {
  align-items: stretch;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin: 22px 0 20px;
}

.contact-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  line-height: 1.6;
}

.rail-card:not(.accent) strong,
.section-card h2,
.service-lead h2,
.service-card h3,
.vehicle-card h3,
.text-card strong,
.admin-panel-card h1,
.admin-panel-card h2,
.application-form h3,
.brand strong {
  color: var(--brand-purple);
}

.stats-showcase,
.stats-band,
.content-grid,
.service-layout,
.vision-grid,
.gallery-section,
.docs-contact,
.application-section,
.automotive-section,
.automotive-page-list,
.partner-strip {
  margin-top: 22px;
}

body .partner-strip {
  overflow: hidden;
}

body .reference-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.reference-card {
  display: block;
  padding: 16px 12px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: none;
  transition: transform 180ms ease;
}

.reference-card:hover {
  transform: translateY(-3px);
}

body .group-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.reference-card strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--brand-purple);
  font-size: 1rem;
}

.reference-figure {
  margin: 0;
}

.reference-name {
  display: block;
  margin-top: 10px;
  color: #3c2f57;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.reference-card p,
.reference-note-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

body .reference-logo {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 12px;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.reference-logo img {
  width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: center;
}

.reference-note-card {
  margin-top: 18px;
}

body .partner-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(13, 27, 61, 0.08);
  border-bottom: 1px solid rgba(13, 27, 61, 0.08);
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
}

body .partner-marquee::before,
body .partner-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 1;
  pointer-events: none;
}

.partner-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

.partner-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

body .partner-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: partner-marquee 26s linear infinite;
}

.partner-logo {
  display: none;
}

.partner-logo-image {
  display: inline-flex;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.72);
  transition: filter 180ms ease, transform 180ms ease;
}

body .logo-wrapper {
  width: 170px;
  height: 88px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 27, 61, 0.1);
  box-shadow: var(--shadow);
}

body .logo-link {
  display: block;
  text-decoration: none;
}

body .logo-link:hover .partner-logo-image {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.04);
}

@keyframes partner-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.stats-showcase,
.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-feature {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 18px 22px;
}

.stat-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  border-radius: 26px;
  background: rgba(13, 27, 61, 0.08);
  border: 1px solid rgba(13, 27, 61, 0.1);
  font-size: 2rem;
  color: var(--brand-purple);
}

.text-card {
  display: block;
  padding: 20px 22px;
}

.text-card span {
  color: var(--brand-orange);
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  line-height: 1.2;
}

.text-card strong {
  display: block;
  margin-top: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  max-width: 24ch;
}

.stat-copy {
  display: grid;
  gap: 4px;
}

.stat-kicker {
  color: var(--brand-orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat-copy strong {
  color: var(--brand-purple);
  font-size: clamp(1.8rem, 2.2vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.stats-band div {
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 27, 61, 0.12);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 20px;
}

.service-layout .service-lead h2 {
  color: var(--brand-purple);
}

.service-lead .eyebrow {
  color: var(--brand-orange);
}

.service-cards,
.vehicle-grid,
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.media-card {
  padding: 12px;
}

.media-card video {
  width: 100%;
  min-height: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.vehicle-card {
  overflow: hidden;
  padding: 0;
}

.vehicle-card img,
.admin-vehicle-item img {
  width: 100%;
  object-fit: cover;
}

.vehicle-card img {
  height: 250px;
}

.vehicle-card-body {
  padding: 24px;
}

.automotive-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.automotive-page-hero {
  margin-top: 8px;
  text-align: center;
}

.automotive-page-hero h1 {
  margin: 0;
  color: var(--brand-purple);
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.automotive-page-hero .section-text {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.vehicle-card strong {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.24rem;
  color: var(--brand-orange);
}

.vehicle-meta {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.story-card p:not(.eyebrow) {
  font-size: 1.08rem;
  line-height: 1.9;
}

.application-form {
  display: grid;
  gap: 14px;
}

.form-message {
  margin-top: 16px;
  min-height: 24px;
  color: var(--muted);
  font-weight: 700;
}

.full-width {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.site-footer {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
  color: var(--muted);
}

.site-footer-rich {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 30px;
  border: 1px solid rgba(214, 40, 57, 0.18);
  border-radius: 28px;
  background: #0d1b3d;
  box-shadow: 0 24px 60px rgba(7, 15, 36, 0.28);
}

.site-footer-rich > div {
  display: grid;
  gap: 10px;
}

.site-footer-rich strong {
  color: #ffffff;
  font-size: 1rem;
}

.site-footer-rich a,
.site-footer-rich p,
.site-footer-rich span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.site-footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.legacy-footer {
  display: none;
}

.vehicle-empty-state {
  grid-column: 1 / -1;
}

.floating-whatsapp,
.scroll-top {
  position: fixed;
  right: 22px;
  z-index: 25;
  box-shadow: var(--shadow);
}

.floating-whatsapp {
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #c1121f;
  color: white;
  border: 0;
}

.floating-whatsapp svg {
  width: 26px;
  height: 26px;
  display: block;
}

.scroll-top {
  bottom: 92px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: #0d1b3d;
  border: 2px solid #c1121f;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.admin-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.admin-auth-shell {
  width: min(560px, calc(100% - 24px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.admin-auth-card {
  width: 100%;
  display: grid;
  gap: 20px;
  padding: 32px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 27, 61, 0.1);
  box-shadow: var(--shadow);
}

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

.admin-auth-copy h1 {
  margin: 0;
  color: var(--brand-purple);
  line-height: 1.06;
}

.admin-auth-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.verify-form {
  padding-top: 4px;
  border-top: 1px solid rgba(13, 27, 61, 0.08);
}

.auth-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13, 27, 61, 0.08);
  color: var(--brand-purple);
  font-size: 0.94rem;
  line-height: 1.5;
}

.auth-message.error {
  background: rgba(214, 40, 57, 0.12);
  color: var(--brand-orange);
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.admin-quick-nav {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(13, 27, 61, 0.1);
  box-shadow: var(--shadow);
}

.admin-quick-nav a {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--brand-purple);
  background: rgba(13, 27, 61, 0.04);
  font-weight: 700;
}

.admin-sidebar-actions {
  display: grid;
  gap: 10px;
}

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

.admin-overview-card {
  padding: 22px;
  border-radius: 24px;
  background: #0d1b3d;
  color: white;
  box-shadow: var(--shadow);
  border: 1px solid rgba(193, 18, 31, 0.38);
}

.admin-overview-card span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-overview-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.toggle input {
  position: absolute;
  opacity: 0;
}

.toggle-track {
  position: relative;
  width: 58px;
  height: 34px;
  border-radius: 999px;
  background: rgba(13, 27, 61, 0.22);
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  transition: 180ms ease;
}

.toggle input:checked + .toggle-track {
  background: var(--brand-purple);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(24px);
}

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

.admin-vehicle-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-media-item img,
.admin-vehicle-item img {
  width: 100%;
  object-fit: cover;
}

.admin-vehicle-item img {
  height: 100px;
  border-radius: 18px;
}

.admin-vehicle-copy {
  display: grid;
  gap: 6px;
}

.admin-vehicle-actions {
  display: grid;
  gap: 10px;
}

.admin-applications {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  max-height: 760px;
  overflow-y: auto;
  padding-right: 6px;
}

.admin-application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.application-toolbar {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.application-summary,
.application-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.application-status-filters {
  padding-top: 4px;
}

.summary-chip,
.application-filter {
  border-radius: 999px;
  border: 1px solid rgba(13, 27, 61, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.summary-chip {
  padding: 10px 14px;
}

.summary-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.summary-chip strong {
  color: var(--brand-purple);
  font-size: 1.05rem;
}

.application-filter {
  padding: 11px 16px;
  color: var(--brand-purple);
  cursor: pointer;
  font-weight: 700;
}

.application-filter.active {
  background: var(--brand-purple);
  color: white;
}

.admin-application-item,
.admin-empty-state {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(13, 27, 61, 0.1);
}

.admin-application-item.is-selected {
  border-color: rgba(214, 40, 57, 0.38);
  box-shadow: 0 18px 44px rgba(214, 40, 57, 0.12);
}

.admin-application-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--brand-purple);
  cursor: pointer;
  list-style: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.admin-application-head strong,
.admin-empty-state strong {
  font-size: 1.05rem;
}

.admin-application-head::-webkit-details-marker {
  display: none;
}

.application-title-wrap {
  display: grid;
  gap: 4px;
}

.admin-application-head span,
.admin-empty-state p,
.application-row span {
  color: var(--muted);
}

.application-grid-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.application-item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 14px;
}

.application-open-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(13, 27, 61, 0.08);
  color: var(--brand-purple);
  font-size: 0.8rem;
  font-weight: 700;
}

.application-action {
  border: 1px solid rgba(13, 27, 61, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-purple);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.application-action.danger {
  color: var(--brand-orange);
}

.application-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13, 27, 61, 0.05);
}

.application-detail-panel {
  position: sticky;
  top: 24px;
  min-height: 320px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 27, 61, 0.1);
  box-shadow: var(--shadow);
}

.application-detail-panel.is-empty {
  display: grid;
  place-items: center;
}

.application-detail-empty {
  text-align: left;
}

.application-detail-empty strong,
.application-detail-header h3 {
  color: var(--brand-purple);
}

.application-detail-empty p,
.application-detail-header p {
  color: var(--muted);
  line-height: 1.6;
}

.application-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.detail-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.application-detail-grid {
  display: grid;
  gap: 12px;
}

.visitor-item {
  grid-template-columns: 1fr;
}

.visitor-chart {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 220px;
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: 24px;
  background: rgba(13, 27, 61, 0.04);
  border: 1px solid rgba(13, 27, 61, 0.08);
  overflow-x: auto;
}

.visitor-bar-card {
  display: grid;
  gap: 8px;
  min-width: 28px;
  align-items: end;
  text-align: center;
}

.visitor-bar-count,
.visitor-bar-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.visitor-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 150px;
}

.visitor-bar-fill {
  width: 100%;
  min-height: 10px;
  border-radius: 12px 12px 6px 6px;
  background: #c1121f;
  box-shadow: 0 12px 24px rgba(13, 27, 61, 0.2);
}

.visitor-details summary {
  list-style: none;
}

.admin-scroll-top {
  right: 18px;
  bottom: 18px;
}

.application-row strong {
  color: var(--brand-orange);
  line-height: 1.5;
}

.backup-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.backup-import {
  position: relative;
  overflow: hidden;
}

.backup-status {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.backup-status.error {
  color: var(--brand-orange);
}

@media (max-width: 800px) {
  .admin-applications {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .admin-application-head,
  .application-item-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.top-line {
  height: 1px;
  width: 100%;
  background: #c1121f;
}

.maintenance-shell .container {
  padding: 40px 0;
}

.maintenance-hero,
.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(8, 47, 73, 0.35);
}

.maintenance-grid {
  grid-template-columns: 1.5fr 0.9fr;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
}

.dot,
.status-dot {
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ff6b79;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: #d62839;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.maintenance-shell h1 {
  margin-top: 22px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
}

.accent-text {
  display: block;
  margin-top: 8px;
  color: #c1121f;
}

.card p {
  color: #e7ebf7;
  line-height: 1.8;
}

.gallery-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.96);
  padding: 14px;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  transition: transform 500ms ease;
}

.gallery-frame:hover img {
  transform: scale(1.03);
}

.stat-icon svg {
  width: 42px;
  height: 42px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1100px) {
  .topbar,
  .admin-shell,
  .hero-grid,
  .service-layout,
  .content-grid,
  .vision-grid,
  .docs-contact,
  .application-grid,
  .maintenance-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .slider-card {
    min-height: 580px;
  }

  .hero-copy {
    width: min(360px, calc(100% - 36px));
    bottom: 110px;
  }

  .slider-overlay {
    max-width: 320px;
  }

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

  .admin-sidebar {
    position: static;
  }

  .admin-quick-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    overflow-x: auto;
  }

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

@media (max-width: 960px) {
  .page-shell,
  .maintenance-shell .container,
  .admin-shell {
    width: min(100% - 28px, 1380px);
  }

  .topbar {
    gap: 16px;
    padding: 14px 16px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .hero-grid,
  .service-layout,
  .content-grid,
  .docs-contact,
  .application-grid,
  .maintenance-grid {
    grid-template-columns: 1fr;
  }

  .slider-card {
    min-height: 540px;
  }

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

  .stats-showcase,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .service-cards,
  .vehicle-grid,
  .gallery-grid,
  .reference-grid,
  .site-footer-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell {
    gap: 16px;
  }

  .admin-main {
    gap: 14px;
  }

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

  .admin-panel-card,
  .admin-status-card {
    padding: 24px;
  }

  .admin-vehicle-item {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .admin-vehicle-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visitor-chart {
    grid-template-columns: repeat(30, minmax(28px, 1fr));
    padding: 16px 14px;
  }
}

@media (max-width: 800px) {
  :root {
    --anchor-offset: 108px;
  }

  .page-shell,
  .maintenance-shell .container,
  .admin-shell {
    width: min(100% - 24px, 1380px);
  }

  .topbar {
    border-radius: 28px;
    justify-content: space-between;
    align-items: center;
    top: 10px;
    margin-bottom: 18px;
  }

  .hero-copy {
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 118px;
    width: auto;
    max-width: none;
    padding: 20px;
    gap: 14px;
  }

  .slider {
    min-height: 480px;
    aspect-ratio: 16 / 11;
  }

  .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(1.65rem, 6.8vw, 2.3rem);
    letter-spacing: -0.05em;
    line-height: 1.08;
  }

  .lead {
    max-width: 40ch;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .menu-open .header-links {
    display: flex;
  }

  .nav,
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page="automotive"] .nav-actions,
  body[data-page="admin"] .nav-actions {
    flex-direction: column;
  }

  .nav a,
  .nav-actions a {
    width: 100%;
    text-align: center;
  }

  .stats-showcase,
  .stats-band,
  .service-cards,
  .vehicle-grid,
  .gallery-grid,
  .form-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    padding: 20px 22px;
  }

  .partner-logo {
    min-width: 160px;
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  .info-rail,
  .admin-vehicle-actions {
    grid-template-columns: 1fr;
  }

  .section-card,
  .service-lead,
  .service-card,
  .application-form,
  .admin-panel-card,
  .admin-status-card,
  .maintenance-hero,
  .card {
    padding: 24px;
  }

  .story-card p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.75;
  }

  .slider-overlay {
    left: 16px;
    right: 16px;
    bottom: 82px;
    max-width: none;
    padding: 14px 16px 15px;
  }

  .slider-controls {
    left: 16px;
    bottom: 16px;
  }

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

  .admin-vehicle-item img {
    height: 200px;
  }

  .admin-quick-nav {
    padding: 12px;
    border-radius: 20px;
    gap: 8px;
  }

  .admin-quick-nav a {
    white-space: nowrap;
    text-align: center;
  }

  .admin-overview-card {
    padding: 18px;
  }

  .admin-panel-header,
  .application-toolbar {
    align-items: stretch;
  }

  .application-summary,
  .application-filters,
  .backup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .application-detail-panel {
    position: static;
  }

  .summary-chip,
  .application-filter,
  .backup-actions > * {
    width: 100%;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 18px;
  }

  .scroll-top {
    right: 16px;
    bottom: 82px;
  }
}

@media (max-width: 640px) {
  :root {
    --anchor-offset: 96px;
  }

  .page-shell,
  .maintenance-shell .container,
  .admin-shell {
    width: min(100% - 18px, 1380px);
  }

  .topbar {
    padding: 12px 14px;
    border-radius: 24px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand span {
    font-size: 0.82rem;
  }

  .hero-grid {
    gap: 14px;
  }

  .slider-card {
    min-height: 0;
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .slider {
    order: 1;
  }

  .hero-copy {
    order: 2;
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    padding: 18px 16px 16px;
    gap: 12px;
    border-radius: 24px;
    background: #0d1b3d;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.26rem, 6.4vw, 1.7rem);
    letter-spacing: -0.04em;
    line-height: 1.12;
  }

  .lead {
    max-width: none;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .slider {
    min-height: 320px;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    overflow: hidden;
  }

  .slide::after {
    background: rgba(13, 27, 61, 0.22);
  }

  .slider-overlay {
    left: 12px;
    right: 12px;
    bottom: 60px;
    width: auto;
    padding: 12px 12px 13px;
    border-radius: 18px;
  }

  .slider-overlay span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    opacity: 0.88;
  }

  .slider-overlay strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .slider-overlay p {
    margin-top: 6px;
    font-size: 0.76rem;
    line-height: 1.42;
  }

  .slider-controls {
    left: 10px;
    bottom: 12px;
    width: calc(100% - 20px);
    justify-content: center;
    gap: 10px;
  }

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

  .admin-shell {
    margin-top: 14px;
    margin-bottom: 14px;
  }

  .admin-sidebar {
    gap: 12px;
  }

  .admin-status-card,
  .admin-quick-nav,
  .admin-panel-card {
    border-radius: 22px;
  }

  .slider-dots {
    flex: 0 1 auto;
    justify-content: center;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 0.94rem;
  }

  .info-rail {
    gap: 12px;
  }

  .rail-card,
  .section-card,
  .service-lead,
  .service-card,
  .application-form,
  .admin-panel-card,
  .admin-status-card,
  .maintenance-hero,
  .card {
    padding: 20px;
    border-radius: 24px;
  }

  .stats-showcase,
  .stats-band,
  .content-grid,
  .service-layout,
  .gallery-section,
  .docs-contact,
  .application-section,
  .automotive-section,
  .partner-strip {
    margin-top: 16px;
  }

  .service-cards,
  .vehicle-grid,
  .gallery-grid,
  .reference-grid,
  .application-summary,
  .application-filters,
  .backup-actions,
  .site-footer-rich {
    grid-template-columns: 1fr;
  }

  .visitor-chart {
    grid-template-columns: repeat(15, minmax(32px, 1fr));
    min-height: 190px;
  }

  .partner-track {
    gap: 12px;
    animation-duration: 20s;
  }

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

  body .reference-grid {
    display: grid;
    gap: 12px;
  }

  body .partner-marquee {
    display: none;
  }

  .admin-auth-card {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .admin-application-item,
  .admin-vehicle-item {
    padding: 14px;
    border-radius: 18px;
  }

  .application-title-wrap strong,
  .application-title-wrap span,
  .application-open-label {
    word-break: break-word;
  }

  .partner-logo {
    min-width: 138px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .section-heading h2,
  .service-lead h2,
  .section-card h2,
  .application-form h3,
  .automotive-page-hero h1 {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
    line-height: 1.1;
  }

  .section-text,
  .automotive-page-hero .section-text,
  .service-card p,
  .service-lead p,
  .contact-lines p,
  .panel-copy {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  

  .stat-feature {
    padding: 16px 18px;
    min-height: auto;
  }

  .stat-icon {
    width: 66px;
    height: 66px;
    border-radius: 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 10px;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-whatsapp,
  .scroll-top {
    width: 48px;
    height: 48px;
  }

  .contact-lines {
    gap: 10px;
  }

  .form-message {
    min-height: 0;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .page-shell,
  .maintenance-shell .container,
  .admin-shell {
    width: min(100% - 14px, 1380px);
  }

  .topbar {
    padding: 10px 12px;
    border-radius: 20px;
  }

  .admin-auth-shell {
    width: min(100% - 14px, 560px);
  }

  .admin-auth-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

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

  .brand strong {
    font-size: 0.94rem;
  }

  .brand span {
    font-size: 0.76rem;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .admin-overview-card strong {
    font-size: 1.7rem;
  }

  .admin-quick-nav {
    grid-auto-columns: minmax(120px, 1fr);
  }

  .visitor-chart {
    grid-template-columns: repeat(10, minmax(34px, 1fr));
    gap: 6px;
    padding: 14px 12px;
  }

  .slider-card {
    padding: 8px;
    gap: 8px;
  }

  .hero-copy {
    padding: 14px 14px 12px;
  }

  .hero-copy h1 {
    font-size: clamp(1.14rem, 6.1vw, 1.42rem);
    letter-spacing: -0.03em;
    line-height: 1.14;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
  }

  .slider {
    min-height: 300px;
  }

  .slider-overlay {
    left: 10px;
    right: 10px;
    bottom: 50px;
    width: auto;
    padding: 10px 10px 11px;
  }

  .slider-overlay strong {
    font-size: 0.8rem;
    line-height: 1.34;
  }

  .slider-overlay p {
    font-size: 0.73rem;
    line-height: 1.38;
  }

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

  body .reference-card {
    padding: 12px 8px;
  }

  body .reference-logo {
    min-height: 72px;
    padding: 8px;
  }

  body .reference-name {
    font-size: 0.74rem;
  }

  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
  }

  .slider-dots button {
    width: 10px;
    height: 10px;
  }

  .slider-dots button.active {
    width: 26px;
  }

  .stat-copy strong {
    font-size: 1.9rem;
  }

  .vehicle-card img {
    height: 210px;
  }

  .vehicle-card-body,
  .gallery-frame {
    padding: 18px;
  }

  .floating-whatsapp,
  .scroll-top {
    width: 44px;
    height: 44px;
    right: 12px;
  }

  .scroll-top {
    bottom: 66px;
  }

  .floating-whatsapp {
    bottom: 14px;
  }
}
