:root {
  --bg: #050509;
  --panel: #101018;
  --panel-2: #171724;
  --line: rgba(142, 65, 255, 0.34);
  --text: #f5f7fb;
  --muted: #a8adbd;
  --blue: #00d9ff;
  --violet: #9b35ff;
  --magenta: #d22cff;
  --danger: #ff3b6a;
  --success: #28e6a0;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body.portal-body {
  background:
    radial-gradient(circle at 72% 0%, rgba(0, 91, 255, 0.18), transparent 30%),
    radial-gradient(circle at 18% 12%, rgba(155, 53, 255, 0.12), transparent 25%),
    #040407;
}

.hidden {
  display: none !important;
}

.client-hidden {
  display: none !important;
}

.auth-required .portal-header,
.auth-required .portal-main {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 5, 9, 0.82);
  backdrop-filter: blur(16px);
}

.auth-card {
  width: min(480px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 23, 36, 0.98), rgba(10, 10, 16, 0.98));
  box-shadow: var(--shadow);
}

.auth-brand {
  margin-bottom: 20px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tabs button,
.portal-tabs button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.active,
.portal-tabs button.active {
  color: var(--text);
  border-color: rgba(0, 91, 255, 0.75);
  background: linear-gradient(180deg, rgba(0, 78, 255, 0.55), rgba(26, 20, 135, 0.62));
  box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.08), 0 0 18px rgba(0, 80, 255, 0.28);
}

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

.auth-form h1 {
  font-size: 34px;
  line-height: 1;
}

.auth-alert {
  padding: 12px 14px;
  border: 1px solid rgba(255, 59, 106, 0.55);
  border-radius: var(--radius);
  background: rgba(255, 59, 106, 0.12);
  color: #ffd7df;
  font-weight: 800;
}

.auth-version {
  color: var(--success);
  font-weight: 800;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 18px clamp(18px, 2.2vw, 30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 4, 8, 0.92);
  backdrop-filter: blur(20px);
}

.portal-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.portal-tabs button {
  white-space: nowrap;
  padding: 0 17px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.header-balance,
.profile-dot,
.menu-button,
.language-select {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(3, 3, 9, 0.72);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.02);
}

.language-select {
  min-width: 72px;
  padding: 0 12px;
  color: var(--text);
  font-weight: 900;
  outline: none;
}

.language-select option {
  background: #090a12;
  color: var(--text);
}

.header-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  color: var(--text);
  white-space: nowrap;
}

.header-balance strong {
  color: #407cff;
}

.profile-dot {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  color: var(--text);
}

.profile-button {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.profile-button img,
.profile-photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text);
}

.profile-fallback svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-button {
  padding: 0 18px;
  color: var(--text);
}

.menu-wrap {
  position: relative;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 6px;
  width: min(292px, calc(100vw - 28px));
  max-height: 72vh;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 16, 26, 0.98), rgba(5, 5, 12, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 28px rgba(124, 60, 255, 0.12);
}

.menu-dropdown button,
.menu-dropdown a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.menu-dropdown button:hover,
.menu-dropdown a:hover {
  border-color: rgba(0, 217, 255, 0.28);
  background: linear-gradient(90deg, rgba(0, 140, 255, 0.14), rgba(124, 60, 255, 0.14));
}

.admin-only {
  display: none;
}

.is-admin .admin-only {
  display: inline-flex;
}

.portal-main {
  padding: 0 clamp(18px, 2vw, 30px) 34px;
}

.portal-view {
  display: none;
}

.portal-view.active {
  display: block;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(600px, 720px) 1fr;
  gap: 22px;
  align-items: center;
  min-height: clamp(430px, 30vw, 490px);
  padding: clamp(42px, 4vw, 58px) clamp(28px, 4vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(4, 4, 8, 0.98) 0%, rgba(4, 4, 8, 0.84) 42%, rgba(4, 4, 8, 0.18) 100%),
    url("assets/hero-car.png") center right / cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel h1 {
  max-width: 760px;
  margin: 16px 0 22px;
  text-transform: uppercase;
  font-family: Impact, "Arial Black", Inter, sans-serif;
  font-size: clamp(48px, 4.75vw, 70px);
  line-height: 0.98;
  font-weight: 900;
  text-shadow: 0 0 26px rgba(60, 128, 255, 0.22);
}

.hero-panel h1 span {
  display: block;
  color: #2e77ff;
}

.hero-panel p {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-panel .eyebrow {
  color: #1686ff;
  font-size: 14px;
  letter-spacing: 2px;
}

.hero-cta {
  margin-top: 28px;
  min-width: 300px;
  min-height: 64px;
  justify-content: center;
  border-color: rgba(0, 85, 255, 0.56);
  background: linear-gradient(90deg, rgba(5, 8, 20, 0.9), rgba(25, 10, 44, 0.72));
  box-shadow: 0 0 26px rgba(65, 80, 255, 0.26);
  font-size: 18px;
}

.compact {
  align-self: end;
}

.cards.three {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.six {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 240px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px 26px;
  background:
    linear-gradient(145deg, rgba(18, 18, 30, 0.94), rgba(8, 8, 14, 0.94));
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.32);
}

.feature-card .btn {
  margin-top: auto;
  justify-content: center;
  min-height: 58px;
}

.feature-card h3 {
  margin: 4px 0 0;
}

.feature-card p {
  min-height: 48px;
  margin: 0;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(0, 95, 255, 0.12);
  color: var(--blue);
  font-size: 34px;
  box-shadow: 0 0 28px rgba(0, 115, 255, 0.18);
}

.card-icon.violet {
  color: #7f40ff;
  background: rgba(109, 54, 255, 0.12);
}

.card-icon.purple {
  color: var(--violet);
  background: rgba(155, 53, 255, 0.12);
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding: 28px 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(8, 8, 13, 0.82);
}

.benefit-strip article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
}

.benefit-strip article > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.benefit-strip b {
  display: block;
  color: var(--text);
  line-height: 1.2;
}

.benefit-strip span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--blue);
  font-size: 42px;
}

.benefit-icon.amber {
  color: #ff9f32;
}

.benefit-icon.gold {
  color: #ffc354;
}

.benefit-icon.violet {
  color: #7f5cff;
}

.wizard {
  display: grid;
  gap: 18px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.wizard-steps button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
}

.wizard-steps button.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(155, 53, 255, 0.16);
}

.wizard-page {
  display: none;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(16, 16, 24, 0.82);
}

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

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-box {
  margin-bottom: 18px;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) 1fr;
  gap: 10px 16px;
  color: var(--muted);
}

.review-grid b {
  color: var(--text);
}

.public-header .main-nav a,
.auth-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.public-header .main-nav a:hover,
.auth-tabs a.active,
.auth-tabs a:hover {
  color: var(--text);
  border-color: rgba(0, 221, 255, 0.55);
  background: rgba(0, 140, 255, 0.18);
  box-shadow: 0 0 22px rgba(0, 140, 255, 0.18);
}

.public-main {
  display: block;
}

.public-section {
  padding-block: 28px;
}

.public-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 30px;
  color: var(--muted);
}

.public-footer a {
  color: var(--text);
  text-decoration: none;
}

.static-auth-page {
  min-height: 100vh;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.profile-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
}

.profile-tabs button.active {
  color: var(--text);
  border-color: rgba(0, 221, 255, 0.55);
  background: rgba(0, 140, 255, 0.16);
}

.profile-panel {
  display: none;
}

.profile-panel.active {
  display: block;
}

.form-grid,
.upload-grid,
.option-grid,
.stats-grid,
.admin-layout,
.filter-bar,
.admin-dashboard-grid,
.admin-management-grid,
.gallery-grid,
.mini-stats,
.spec-grid {
  display: grid;
  gap: 14px;
}

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

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

.check-card,
.upload-zone {
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.check-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.check-card b {
  grid-column: 2;
  color: var(--blue);
}

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

.upload-zone:hover,
label:has(input[type="file"]):hover {
  border-color: rgba(0, 217, 255, 0.36);
  box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.12);
}

.upload-zone.has-file,
label.has-file {
  border-color: rgba(0, 208, 132, 0.48);
  background: rgba(0, 208, 132, 0.07);
}

.file-status {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.has-file .file-status {
  color: var(--success);
}

.total-line {
  margin-top: 18px;
  font-size: 22px;
}

.total-line strong {
  color: var(--success);
}

.order-list,
.ticket-list {
  display: grid;
  gap: 14px;
}

.order-card,
.ticket-card,
.stats-grid article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(16, 16, 24, 0.84);
}

.order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.order-card p {
  grid-column: 1 / -1;
  margin: 0;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ticket-message {
  margin: 10px 0;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.ticket-message.admin-msg {
  border-left: 3px solid var(--blue);
}

.translate-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 217, 255, 0.06);
}

.translate-link:hover {
  border-color: rgba(124, 60, 255, 0.7);
  color: var(--text);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.16);
}

.ticket-reply {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.compact-form {
  margin-bottom: 18px;
  max-width: 720px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.home-stats,
#adminKpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid strong {
  display: block;
  font-size: 48px;
  color: var(--violet);
}

.stats-grid small {
  color: var(--muted);
}

.queue-card {
  gap: 10px;
}

.queue-card button {
  width: 100%;
  margin-top: 4px;
}

.queue-card.ready strong {
  color: var(--cyan);
}

.queue-card.waiting strong {
  color: var(--warning);
}

.queue-card.progress strong {
  font-size: clamp(26px, 2vw, 34px);
  color: var(--success);
}

.admin-layout {
  grid-template-columns: 1.4fr 1fr 0.9fr;
  align-items: start;
}

.filter-bar {
  grid-template-columns: 1.2fr 0.8fr auto;
  align-items: end;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(0, 217, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(16, 16, 24, 0.68);
}

.catalog-card {
  min-height: 360px;
}

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

.spec-grid span,
.mini-stats span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.spec-grid b,
.mini-stats b {
  color: var(--text);
}

.profile-card,
.clean-item,
.mini-table li,
.gallery-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(16, 16, 24, 0.78);
}

.profile-card,
.clean-item {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.profile-card.wide {
  grid-column: span 2;
}

.profile-card strong {
  font-size: 42px;
  color: var(--success);
}

.profile-card small,
.clean-item span {
  color: var(--muted);
}

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

.admin-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}

.admin-management-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

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

.user-detail .compact-form {
  max-width: none;
  margin-bottom: 0;
}

.mini-table ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mini-table li {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.history-open {
  width: 100%;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.history-open:hover {
  color: var(--text);
}

.profile-settings {
  margin-bottom: 22px;
}

.profile-photo-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: end;
}

.profile-photo-preview {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(0, 217, 255, 0.32);
  border-radius: 12px;
  background: rgba(0, 217, 255, 0.08);
  color: var(--text);
  font-size: 36px;
}

.json-detail {
  max-height: 62vh;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.32);
  color: var(--muted);
  white-space: pre-wrap;
}

.package-edit {
  gap: 12px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-check input {
  width: auto;
}

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

.hidden-row {
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.forum-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.forum-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.forum-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.forum-tabs button.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(0, 140, 255, 0.42), rgba(124, 60, 255, 0.42));
  box-shadow: 0 0 22px rgba(0, 140, 255, 0.18);
}

.forum-panel {
  display: none;
}

.forum-panel.active {
  display: block;
}

.feed-list {
  display: grid;
  gap: 18px;
}

.feed-composer,
.feed-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(16, 16, 24, 0.78);
}

.feed-composer {
  margin-bottom: 18px;
}

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

.feed-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.feed-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 140, 255, 0.35), rgba(124, 60, 255, 0.35));
  color: var(--text);
  font-weight: 900;
  overflow: hidden;
  flex: 0 0 42px;
}

.feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-media {
  display: grid;
  gap: 8px;
}

.post-media img,
.post-media video {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #000;
}

.feed-actions,
.feed-comments {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 7px;
}

.feed-comments {
  grid-template-columns: 1fr;
}

.feed-comments small {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.text-danger {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.profile-flag-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  font-size: 34px;
  font-weight: 900;
}

.inline-reply {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

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

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.gallery-card div {
  padding: 18px;
}

.gallery-card small {
  color: var(--muted);
}

.option-price {
  display: grid;
  grid-template-columns: 1fr 90px auto auto auto;
  gap: 8px;
  align-items: center;
}

.option-create {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compact-check {
  min-height: 40px;
  white-space: nowrap;
}

.btn.danger {
  border-color: rgba(255, 59, 106, 0.46);
  color: #ffd6df;
}

.btn.danger:hover {
  background: rgba(255, 59, 106, 0.14);
}

.notification-wrap {
  position: relative;
}

.icon-btn {
  position: relative;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.icon-btn span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--blue);
  color: #031018;
  font-size: 12px;
  font-weight: 900;
}

.notification-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: min(360px, calc(100vw - 28px));
  max-height: 440px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(10, 10, 18, 0.98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
}

.notification-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.notification-actions {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 18, 0.98);
}

.notification-item.unread {
  border-left: 3px solid var(--blue);
  background: rgba(0, 217, 255, 0.06);
}

.notification-item span,
.notification-item small {
  color: var(--muted);
}

.work-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.count-pill {
  padding: 11px 12px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 900;
}

.work-select {
  width: 100%;
  margin-bottom: 12px;
}

.work-detail {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-head span {
  display: block;
  color: var(--muted);
}

.status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-links {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.file-links a {
  color: var(--blue);
  font-weight: 800;
}

.upload-ready-form,
.admin-note-form {
  display: grid;
  gap: 10px;
}

.upload-ready-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.upload-ready-form .wide,
.upload-ready-form button,
.admin-note-form {
  grid-column: 1 / -1;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.locked-note {
  color: var(--warning);
  font-weight: 800;
}

.highlight {
  outline: 2px solid var(--blue);
  box-shadow: 0 0 28px rgba(0, 217, 255, 0.28);
}

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

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(13, 13, 22, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.required-modal {
  z-index: 140;
}

.country-panel {
  width: min(520px, 100%);
}

.country-panel h2 {
  margin-top: 0;
  font-size: clamp(30px, 6vw, 48px);
}

.empty {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(0, 217, 255, 0.06), transparent 35%),
    radial-gradient(circle at 85% 12%, rgba(155, 53, 255, 0.18), transparent 25%),
    #050509;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 9, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  letter-spacing: 3px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.18), rgba(155, 53, 255, 0.24));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(155, 53, 255, 0.32);
}

.brand-mark.large {
  width: 92px;
  height: 92px;
  font-size: 34px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  padding: 9px 0;
}

.main-nav a:hover,
.admin-link {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-size: 24px;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 72px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding-bottom: 44px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 9, 0.96) 0%, rgba(5, 5, 9, 0.67) 48%, rgba(5, 5, 9, 0.16) 100%),
    url("assets/price-banner.png") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-content {
  width: min(820px, 100%);
}

.eyebrow,
.status,
.label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 10vw, 118px);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 0 32px rgba(155, 53, 255, 0.35);
}

h2 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  margin-bottom: 16px;
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  width: min(680px, 100%);
  font-size: clamp(18px, 2.3vw, 24px);
  color: #eef3ff;
}

.hero-actions,
.hero-stats,
.card-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-stats {
  margin-top: 32px;
  gap: 16px;
}

.hero-stats span {
  min-width: 138px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(16, 16, 24, 0.78);
}

.hero-stats strong {
  display: block;
  color: var(--violet);
  font-size: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, 0.7);
  box-shadow: 0 0 26px rgba(0, 217, 255, 0.18);
}

.btn.primary {
  background: linear-gradient(135deg, var(--violet), #0da9ff);
  border-color: transparent;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.link-button:hover {
  color: var(--violet);
}

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

.btn.locked-download,
.btn.locked-download:hover {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.18);
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.dashboard-strip,
.admin-section {
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.7), rgba(5, 5, 9, 0));
}

.profile-grid,
.product-grid,
.payment-flow,
.auth-grid,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.password-panel {
  margin-top: 22px;
  max-width: 760px;
}

.profile-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.profile-grid > article,
.product-card,
.service-card,
.form-panel,
.logo-drop,
.admin-grid article,
.payment-flow > div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 23, 36, 0.92), rgba(10, 10, 16, 0.92));
  box-shadow: var(--shadow);
}

.profile-grid > article,
.product-card,
.service-card,
.form-panel,
.logo-drop,
.admin-grid article,
.payment-flow > div {
  padding: 22px;
}

.balance-panel strong {
  display: block;
  margin: 10px 0;
  font-size: 76px;
  line-height: 0.9;
  color: var(--success);
}

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

.clean-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.clean-list b {
  color: var(--blue);
}

.logo-drop {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 260px;
  border-style: dashed;
}

.product-card.featured {
  display: grid;
  gap: 22px;
  min-height: 330px;
}

.price-line {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.price-line strong {
  font-size: 72px;
  line-height: 0.9;
  color: var(--violet);
}

.screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.screenshots div {
  display: grid;
  place-items: center;
  min-height: 154px;
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(155, 53, 255, 0.16)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 18px);
  color: var(--muted);
}

.screenshots div:first-child {
  grid-column: 1 / -1;
}

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

.admin-section.locked .admin-grid,
.admin-section.locked .table-wrap {
  opacity: 0.35;
  pointer-events: none;
}

.admin-section.locked::after {
  content: "Админ панелът се отключва след вход с админ профил.";
  display: block;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(155, 53, 255, 0.12);
  color: var(--text);
  font-weight: 800;
}

.admin-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

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

.admin-list-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

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

.admin-list-item div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.service-card p {
  min-height: 78px;
}

.service-card.feature-card {
  gap: 10px;
  padding: 24px 26px;
}

.service-card.feature-card p {
  min-height: 48px;
  margin: 0;
}

.card-bottom {
  justify-content: space-between;
  margin-top: auto;
}

.card-bottom b {
  color: var(--magenta);
}

.credit-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
}

.credit-card strong {
  display: block;
  margin: 14px 0;
  font-size: 48px;
}

.credit-card .price {
  color: var(--blue);
}

.payment-flow {
  margin-top: 24px;
}

.payment-details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.payment-details div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
}

form {
  margin: 0;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #08080e;
  color: var(--text);
  padding: 12px;
  font: inherit;
}

textarea {
  resize: vertical;
}

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

.form-note {
  margin: 0;
  font-size: 13px;
}

.inquiry-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(16, 16, 24, 0.82);
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(16, 16, 24, 0.82);
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

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

.gallery img,
.business-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}

.contact-field-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.38fr) 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-field-row span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.contact-field-row strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-field-row .muted-value {
  color: rgba(160, 167, 184, 0.72);
  font-weight: 700;
}

.contact-note {
  padding: 14px 16px;
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  background: rgba(0, 217, 255, 0.08);
  color: var(--text);
}

.contact-placeholder {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-height: 220px;
  padding: 32px;
  text-align: center;
}

.contact-placeholder strong {
  color: var(--text);
  font-size: 28px;
}

.contact-placeholder span {
  color: var(--muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-badges span {
  padding: 9px 12px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 140, 255, 0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.content-section {
  margin-top: 28px;
}

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

.why-grid,
.legal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid article,
.why-grid article,
.trust-grid article,
.legal-grid article,
.warning-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.82), rgba(8, 10, 16, 0.78));
  box-shadow: var(--shadow);
}

.process-grid article,
.why-grid article,
.trust-grid article,
.legal-grid article {
  padding: 22px;
}

.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  font-weight: 900;
}

.process-grid h3,
.why-grid b,
.trust-grid strong,
.legal-grid h3 {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 20px;
}

.process-grid p,
.why-grid span,
.trust-grid span,
.legal-grid p {
  color: var(--muted);
  line-height: 1.55;
}

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

.trust-section {
  padding-bottom: 4px;
}

.warning-panel {
  margin-bottom: 18px;
  padding: 18px;
  border-color: rgba(255, 176, 32, 0.42);
  background: linear-gradient(145deg, rgba(255, 176, 32, 0.12), rgba(17, 24, 39, 0.72));
}

.warning-panel h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.warning-panel p {
  color: var(--muted);
}

.empty-state {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: var(--muted);
}

.empty-state strong {
  color: var(--text);
  font-size: 18px;
}

.inline-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.inline-check input {
  width: auto;
  margin-top: 4px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(0, 217, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(10, 10, 16, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (max-width: 1050px) {
  .main-nav {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 10, 16, 0.98);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .profile-grid,
  .cards,
  .credit-grid,
  .admin-grid,
  .admin-tools,
  .benefit-strip,
  .form-grid,
  .option-grid,
  .upload-grid,
  .admin-layout,
  .admin-dashboard-grid,
  .admin-management-grid,
  .admin-user-grid,
  .gallery-grid,
  .home-stats,
  #adminKpis,
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-header {
    grid-template-columns: auto auto 1fr;
  }

  .user-chip {
    justify-self: end;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    background-position: center right;
  }

  .header-balance {
    min-height: 44px;
    padding: 0 12px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 54px 16px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-bg {
    background:
      linear-gradient(0deg, rgba(5, 5, 9, 0.95), rgba(5, 5, 9, 0.52)),
      url("assets/hero-car.png") center right / cover no-repeat;
  }

  .profile-grid,
  .profile-photo-form,
  .product-grid,
  .payment-flow,
  .auth-grid,
  .two-col,
  .cards,
  .credit-grid,
  .admin-grid,
  .admin-tools,
  .benefit-strip,
  .form-grid,
  .option-grid,
  .upload-grid,
  .admin-layout,
  .admin-dashboard-grid,
  .admin-management-grid,
  .admin-user-grid,
  .gallery-grid,
  .home-stats,
  #adminKpis,
  .filter-bar,
  .spec-grid,
  .mini-stats,
  .stats-grid,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .option-price {
    grid-template-columns: 1fr;
  }

  .profile-card.wide {
    grid-column: auto;
  }

  .portal-header {
    grid-template-columns: 1fr auto;
  }

  .portal-header .brand {
    min-width: 0;
  }

  .user-chip {
    grid-column: 1 / -1;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .public-header {
    align-items: stretch;
  }

  .public-header .brand {
    max-width: calc(100% - 110px);
  }

  .public-header .main-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .public-actions {
    width: 100%;
    justify-content: stretch;
  }

  .public-actions .btn {
    flex: 1;
  }

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

  .profile-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 620px;
    align-items: end;
    background:
      linear-gradient(0deg, rgba(4, 4, 8, 0.98) 0%, rgba(4, 4, 8, 0.74) 52%, rgba(4, 4, 8, 0.22) 100%),
      url("assets/hero-car.png") center right / cover no-repeat;
  }

  .hero-panel h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .wizard-steps {
    grid-template-columns: 1fr 1fr;
  }

  .ticket-reply,
  .option-price,
  .order-card {
    grid-template-columns: 1fr;
  }

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

  .payment-details div {
    grid-template-columns: 1fr;
  }

  .clean-list li,
  .card-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-line strong,
  .balance-panel strong {
    font-size: 58px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .portal-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    min-height: auto;
    padding: 18px 16px;
  }

  .portal-header .brand {
    min-width: 0;
    max-width: calc(100vw - 120px);
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .brand strong {
    font-size: 20px;
    line-height: 1;
  }

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

  .nav-toggle {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(124, 60, 255, 0.5);
    border-radius: 12px;
    background: rgba(16, 16, 26, 0.82);
    color: var(--text);
    font-size: 28px;
  }

  .main-nav {
    position: static;
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 217, 255, 0.28);
    border-radius: var(--radius);
    background: rgba(10, 10, 16, 0.98);
  }

  .main-nav.open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .user-chip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 56px 56px;
    gap: 10px;
    width: 100%;
  }

  .language-select {
    grid-column: 1 / -1;
    width: 100%;
  }

  .header-balance {
    grid-column: 1 / span 2;
    min-width: 0;
    width: 100%;
    padding: 0 14px;
    font-size: 15px;
    justify-content: center;
  }

  .header-balance strong {
    flex: 0 0 auto;
  }

  .notification-wrap {
    grid-column: 3;
  }

  .profile-dot {
    grid-column: 4;
  }

  .notification-wrap,
  .profile-dot {
    width: 56px;
    height: 56px;
  }

  .menu-wrap {
    grid-column: 1 / -1;
    width: 100%;
  }

  .menu-button {
    width: 100%;
    justify-content: center;
  }

  .menu-dropdown {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 10px;
  }

  .portal-main {
    padding: 0 16px 28px;
  }

  .hero-panel {
    min-height: 520px;
    padding: 28px 20px;
    align-items: end;
    background:
      linear-gradient(0deg, rgba(4, 4, 8, 0.98) 0%, rgba(4, 4, 8, 0.75) 55%, rgba(4, 4, 8, 0.18) 100%),
      url("assets/hero-car.png") center right / cover no-repeat;
  }

  .hero-panel h1 {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .hero-panel p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions .btn,
  .feature-card .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: normal;
  }

  .cards.six,
  .cards,
  .product-grid,
  .process-grid,
  .why-grid,
  .why-grid.large,
  .trust-grid,
  .legal-grid,
  .home-stats,
  .benefit-strip,
  .credit-grid,
  .profile-grid,
  .form-grid,
  .option-grid,
  .upload-grid,
  .gallery-grid,
  .admin-layout,
  .admin-dashboard-grid,
  .admin-management-grid,
  #adminKpis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card,
  .feature-card,
  .product-card,
  .profile-card,
  .queue-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .service-card h3,
  .feature-card h3,
  .product-card h3 {
    font-size: clamp(24px, 8vw, 34px);
    overflow-wrap: anywhere;
  }

  .service-card p,
  .feature-card p,
  .product-card p {
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .benefit-strip {
    padding: 22px 18px;
  }

  .benefit-strip article {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  .benefit-icon {
    width: 48px;
    height: 48px;
    font-size: 34px;
  }

  .benefit-strip b,
  .benefit-strip span {
    overflow-wrap: anywhere;
  }
}
