/* KMAE Public — Dark theme v3 (rebuilt from scratch) */

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --p-bg: #00040a;
  --p-surface: rgba(8, 18, 32, 0.88);
  --p-surface-solid: #071018;
  --p-surface-hover: rgba(12, 28, 44, 0.95);
  --p-border: rgba(0, 200, 245, 0.16);
  --p-border-strong: rgba(0, 199, 247, 0.42);
  --p-text: #ffffff;
  --p-muted: rgba(255, 255, 255, 0.78);
  --p-subtle: rgba(255, 255, 255, 0.55);
  --p-purple: #00c8f5;
  --p-pink: #00c7f7;
  --p-grad: linear-gradient(90deg, #0081c0, #00c7f7);
  --p-grad-soft: linear-gradient(135deg, rgba(0, 129, 192, 0.22), rgba(0, 199, 247, 0.12));
  --p-radius: 16px;
  --p-radius-sm: 12px;
  --p-radius-xs: 8px;
  --p-radius-full: 999px;
  --p-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
  --p-shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.45);
  --p-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --p-speed: 0.2s;
  --p-success: #34d399;
  --p-success-soft: rgba(52, 211, 153, 0.12);
  --p-danger: #ff6b6b;
  --p-danger-soft: rgba(255, 107, 107, 0.14);
  --p-warning: #fb923c;
  --p-warning-soft: rgba(251, 146, 60, 0.12);
  --p-info: #00c8f5;
  --p-info-soft: rgba(0, 200, 245, 0.12);
  --p-font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   Page containers
   ========================================================================== */

.kmae-form-wrap:not(.kmae-create-form),
.kmae-browse,
.kmae-my-offers,
.kmae-single-listing,
.kmae-swipe-browse,
.kmae-wizard:not(#kmae-listing-wizard),
.kmae-offers-hub {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: var(--p-font);
  color: var(--p-text);
}

.kmae-offers-hub {
  max-width: 1120px;
}

.kmae-single-listing {
  max-width: 720px;
}

.kmae-swipe-browse,
.kmae-browse,
.kmae-wizard:not(#kmae-listing-wizard) {
  max-width: 920px;
  padding: calc(var(--kmae-header-h, 72px) + 1.35rem) 1.25rem 2.5rem;
}

/* Theme page shell already clears the fixed header. */
.kmae-page .kmae-wizard:not(#kmae-listing-wizard),
.kmae-page .kmae-swipe-browse,
.kmae-page .kmae-browse,
.kmae-page-wrap .kmae-wizard:not(#kmae-listing-wizard),
.kmae-page-wrap .kmae-swipe-browse,
.kmae-page-wrap .kmae-browse {
  padding-top: 0.85rem;
}

.kmae-wizard:not(#kmae-listing-wizard) {
  max-width: 920px;
}

/* ==========================================================================
   Typography & utilities
   ========================================================================== */

.kmae-subtitle {
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.kmae-hint,
.kmae-wizard-panel-hint,
.kmae-wizard-mode-desc,
.kmae-map-hint {
  font-size: 0.875rem;
  color: #ffffff !important;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.kmae-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--p-muted);
}

.kmae-empty .kmae-btn {
  margin-top: 1rem;
}

.kmae-page-back {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--p-border);
}

.kmae-hub-menu .kmae-page-back,
.kmae-hub-menu__back {
  display: none !important;
}

.kmae-btn-back {
  min-width: 160px;
  text-align: center;
  justify-content: center;
}

.kmae-profile .kmae-page-back,
.kmae-my-offers .kmae-page-back {
  margin-top: 2rem;
}

.kmae-single-listing .kmae-page-back {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.kmae-divider {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--p-border);
}

.kmae-error-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.kmae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--p-radius-full);
  font-weight: 600;
  font-family: var(--p-font);
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--p-speed) var(--p-ease),
    border-color var(--p-speed) var(--p-ease),
    box-shadow var(--p-speed) var(--p-ease),
    transform var(--p-speed) var(--p-ease),
    opacity var(--p-speed) var(--p-ease);
}

.kmae-btn:hover {
  transform: translateY(-1px);
}

.kmae-btn:active {
  transform: translateY(0);
}

.kmae-btn-primary,
.kmae-hero-cta {
  background: var(--p-grad);
  color: var(--p-text);
  box-shadow: 0 4px 20px rgba(142, 45, 226, 0.35);
}

.kmae-btn-primary:hover,
.kmae-hero-cta:hover {
  box-shadow: 0 8px 28px rgba(255, 0, 128, 0.35);
}

.kmae-btn-secondary {
  background: var(--p-surface);
  color: var(--p-text);
  border-color: var(--p-border);
  backdrop-filter: blur(12px);
}

.kmae-btn-secondary:hover {
  background: var(--p-surface-hover);
  border-color: var(--p-border-strong);
}

.kmae-btn-danger {
  background: var(--p-danger-soft);
  color: var(--p-danger);
  border-color: rgba(248, 113, 113, 0.25);
}

.kmae-btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
}

.kmae-btn-success {
  background: linear-gradient(90deg, #059669, #10b981);
  color: var(--p-text);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.kmae-btn-warning {
  background: linear-gradient(90deg, #ea580c, #f97316);
  color: var(--p-text);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.kmae-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.kmae-btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.kmae-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.kmae-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ==========================================================================
   Notices
   ========================================================================== */

.kmae-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--p-radius-sm);
  margin-bottom: 1.25rem;
  border: 1px solid var(--p-border);
}

.kmae-notice-success {
  background: var(--p-success-soft);
  color: var(--p-success);
  border-color: rgba(52, 211, 153, 0.25);
}

.kmae-notice-error {
  background: var(--p-danger-soft);
  color: var(--p-danger);
  border-color: rgba(248, 113, 113, 0.25);
}

.kmae-notice-info {
  background: var(--p-info-soft);
  color: var(--p-info);
  border-color: rgba(96, 165, 250, 0.25);
}

.kmae-notice-inline {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.kmae-form .kmae-field {
  margin-bottom: 1.25rem;
}

.kmae-form label,
.kmae-wizard-mode-panel label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--p-text);
}

.kmae-form input[type="text"],
.kmae-form input[type="email"],
.kmae-form input[type="password"],
.kmae-form input[type="number"],
.kmae-form input[type="tel"],
.kmae-form input[type="file"],
.kmae-form select,
.kmae-form textarea,
.kmae-wizard-input,
.kmae-currency-input{
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  font-size: 1rem;
  font-family: var(--p-font);
  color: var(--p-text);
  background: var(--p-surface-solid);
  box-sizing: border-box;
  transition: border-color var(--p-speed) var(--p-ease), box-shadow var(--p-speed) var(--p-ease);
}

.kmae-wizard-input {
  max-width: 360px;
  margin: 0.35rem 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.kmae-cash-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.kmae-form input:focus,
.kmae-form select:focus,
.kmae-form textarea:focus,
.kmae-wizard-input:focus{
  outline: none;
  border-color: var(--p-border-strong);
  box-shadow: 0 0 0 3px rgba(142, 45, 226, 0.15);
}

.kmae-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.kmae-fieldset {
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--p-surface);
}

.kmae-fieldset legend {
  font-weight: 600;
  padding: 0 0.5rem;
  color: var(--p-text);
}

.kmae-checkbox {
  display: block;
  margin-bottom: 0.5rem;
  cursor: pointer;
  color: var(--p-text);
}

.kmae-account-type__options {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-top: 0.65rem;
  width: 100%;
  min-width: 0;
}

.kmae-account-type__option {
  display: flex;
  flex: 1 1 0;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border: 1.5px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  background: var(--p-surface);
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color var(--p-speed) var(--p-ease), background var(--p-speed) var(--p-ease);
}

.kmae-account-type__option:has(input:checked) {
  border-color: rgba(59, 130, 246, 0.75);
  background: rgba(59, 130, 246, 0.12);
}

.kmae-account-type__option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #3b82f6;
}

.kmae-account-type__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.kmae-account-type__text strong {
  font-size: 0.95rem;
  color: var(--p-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kmae-account-type__desc {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--p-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kmae-fixed-price-display {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0.35rem 0 0.85rem;
  font-size: 1.35rem;
}

.kmae-fixed-price-label,
.kmae-offers-awaiting {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--p-muted);
}

.kmae-offers-awaiting {
  margin: 0.25rem 0 0.85rem;
}

.kmae-pledge-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0.85rem;
}

.kmae-pledge-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--p-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--p-text);
}

.kmae-pledge-badge--pickup {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
}

.kmae-pledge-badge--extra {
  border-color: rgba(196, 181, 253, 0.5);
  background: rgba(167, 139, 250, 0.12);
  color: #ddd6fe;
}

.kmae-card-price {
  display: block;
  margin: 0.2rem 0 0.35rem;
  font-weight: 700;
  color: #fff;
}

.kmae-card-price--open {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--p-muted);
}

.kmae-card-price__label,
.kmae-swipe-value__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p-muted);
}

.kmae-photo-motor {
  margin: 1.25rem 0 1.5rem;
}

.kmae-photo-step {
  margin: 0 0 2rem;
}

.kmae-photo-step__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0.65rem 0;
  background: color-mix(in srgb, var(--p-bg, #0b1220) 92%, transparent);
}

.kmae-photo-step__intro h3 {
  margin: 0 0 0.5rem;
}

.kmae-photo-step__block-note {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  font-weight: 600;
}

.kmae-car-diagram {
  position: relative;
  max-width: 280px;
  margin: 0 auto 1rem;
}

.kmae-car-diagram__svg {
  width: 100%;
  height: auto;
  display: block;
}

.kmae-car-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #3b82f6;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.kmae-car-dot--optional {
  background: #64748b;
}

.kmae-car-dot.is-filled,
.kmae-car-dot-sample--filled {
  background: #10b981;
}

.kmae-car-dot__num {
  display: block;
  line-height: 1;
}

.kmae-car-diagram__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  font-size: 0.85rem;
  margin: 0 0 1.25rem;
  color: var(--p-muted, #94a3b8);
}

.kmae-car-dot-sample {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.kmae-car-dot-sample--required {
  background: #3b82f6;
}

.kmae-car-dot-sample--optional {
  background: #64748b;
}

.kmae-photo-step__footer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.kmae-photo-motor__progress {
  margin: 0.35rem 0 1rem;
  font-weight: 700;
  color: #93c5fd;
}

.kmae-photo-motor__slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.kmae-photo-slot {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1.5px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  background: var(--p-surface);
}

.kmae-photo-slot.is-filled {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.08);
}

.kmae-photo-slot__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.kmae-photo-slot__step {
  font-size: 0.75rem;
  font-weight: 700;
  color: #93c5fd;
}

.kmae-photo-slot__label {
  font-size: 0.95rem;
  color: var(--p-text);
}

.kmae-photo-slot__hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--p-muted);
}

.kmae-photo-slot__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmae-photo-slot__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kmae-photo-slot__placeholder {
  font-size: 0.8rem;
  color: var(--p-muted);
  padding: 0.5rem;
  text-align: center;
}

.kmae-photo-slot__capture {
  margin: 0;
  text-align: center;
}

.kmae-photo-slot__capture-btn {
  width: 100%;
}

.kmae-photo-slot__error {
  margin: 0;
  font-size: 0.8rem;
  color: #fca5a5;
}

.kmae-photo-motor__required-done {
  margin: 1rem 0;
}

.kmae-photo-motor__recommended {
  margin-top: 1.25rem;
}

.kmae-photo-motor__recommended h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.kmae-photo-motor__guarantee-hint {
  color: #a7f3d0 !important;
}

.kmae-trust-card {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--p-radius-sm);
  background: rgba(52, 211, 153, 0.08);
}

.kmae-history {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.kmae-history__title,
.kmae-history__heading,
.kmae-history__subhead,
.kmae-history__lead,
.kmae-history__fact,
.kmae-history__split,
.kmae-history__legacy,
.kmae-history__note {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.kmae-history__title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kmae-history__heading {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 0.35rem;
}

.kmae-history__block {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.kmae-history__lead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.kmae-history__lead--empty {
  font-weight: 600;
}

.kmae-history__check {
  color: inherit;
}

.kmae-history__facts,
.kmae-history__checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.28rem;
}

.kmae-history__facts li,
.kmae-history__checks li {
  line-height: 1.45;
}

.kmae-history__note,
.kmae-history__legacy,
.kmae-history__split {
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.88;
}

.kmae-history__block--legacy {
  padding-top: 0.45rem;
  border-top: 1px solid rgba(127, 127, 127, 0.22);
}

.kmae-history-admin-table {
  margin-top: 0.5rem;
  width: 100%;
}

.kmae-profile .kmae-history {
  gap: 1rem;
}

.kmae-profile .kmae-history__title {
  display: none;
}

.kmae-trust-card__score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.kmae-trust-card__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a7f3d0;
}

.kmae-trust-card__value {
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}

.kmae-trust-card__stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--p-muted);
  font-size: 0.9rem;
}

.kmae-trust-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.kmae-trust-badge {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}

.kmae-pending-ratings__list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.kmae-pending-ratings__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  background: var(--p-surface);
}

.kmae-rate-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kmae-rate-star {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--p-border);
  border-radius: 999px;
  cursor: pointer;
  background: var(--p-surface);
}

.kmae-rate-star:has(input:checked) {
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(251, 191, 36, 0.12);
}

.kmae-rate-star input {
  accent-color: #fbbf24;
}

.kmae-single-listing .kmae-trust-card {
  margin-top: 0.85rem;
}

@media (max-width: 380px) {
  .kmae-account-type__options {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .kmae-pending-ratings__list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

.kmae-offer-tab-hint,
.kmae-wizard-panel-hint {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--p-radius-sm);
  background: rgba(142, 45, 226, 0.1);
  border: 1px solid rgba(142, 45, 226, 0.2);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--p-muted);
}

.kmae-minimum-hint {
  background: var(--p-warning-soft);
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: var(--p-radius-xs);
  padding: 0.6rem 0.75rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--p-warning);
  font-size: 0.875rem;
}

.kmae-vehicle-fieldset {
  background: var(--p-surface);
}

/* ==========================================================================
   Tags & badges
   ========================================================================== */

.kmae-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.kmae-type-tag,
.kmae-summary-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 200, 245, 0.12);
  border: 1px solid rgba(0, 200, 245, 0.28);
  border-radius: var(--p-radius-full);
  color: #b8f0ff;
}

.kmae-summary-tag {
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  letter-spacing: 0.01em;
}

.kmae-summary-tag--accent {
  background: linear-gradient(90deg, rgba(0, 129, 192, 0.35), rgba(0, 199, 247, 0.28));
  border-color: rgba(0, 199, 247, 0.5);
  color: #ffffff;
}

.kmae-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--p-radius-full);
  background: rgba(148, 163, 184, 0.12);
  color: var(--p-muted);
  border: 1px solid var(--p-border);
}

.kmae-badge-active { background: var(--p-success-soft); color: var(--p-success); border-color: rgba(52, 211, 153, 0.25); }
.kmae-badge-awaiting_photos { background: rgba(251, 191, 36, 0.12); color: #F59E0B; border-color: rgba(251, 191, 36, 0.28); }
.kmae-badge-closed { background: var(--p-warning-soft); color: var(--p-warning); border-color: rgba(251, 146, 60, 0.25); }
.kmae-badge-archived { background: rgba(148, 163, 184, 0.1); color: var(--p-muted); }
.kmae-badge-accepted { background: var(--p-success-soft); color: var(--p-success); border-color: rgba(52, 211, 153, 0.25); }
.kmae-badge-pending { background: var(--p-info-soft); color: var(--p-info); border-color: rgba(96, 165, 250, 0.25); }
.kmae-badge-rejected { background: var(--p-danger-soft); color: var(--p-danger); border-color: rgba(248, 113, 113, 0.25); }
.kmae-badge-withdrawn { background: rgba(148, 163, 184, 0.1); color: var(--p-muted); }

/* ==========================================================================
   Browse grid & filters
   ========================================================================== */

.kmae-browse-header h2 {
  margin: 0 0 0.35rem;
  color: var(--p-text);
}

.kmae-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.kmae-browse-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--p-radius);
  overflow: hidden;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow);
  transition: transform var(--p-speed) var(--p-ease), box-shadow var(--p-speed) var(--p-ease), border-color var(--p-speed) var(--p-ease);
  backdrop-filter: blur(12px);
}

.kmae-browse-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--p-shadow-lg);
  border-color: var(--p-border-strong);
}

.kmae-browse-image {
  aspect-ratio: 4 / 5;
  background-color: var(--p-surface-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.kmae-browse-image .kmae-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.kmae-no-photo,
.kmae-no-image {
  color: var(--p-muted);
  font-size: 0.875rem;
  background: var(--p-surface-solid);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmae-browse-info {
  padding: 1rem;
}

.kmae-browse-info h3,
.kmae-browse-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--p-text);
}

.kmae-location {
  font-size: 0.85rem;
  color: var(--p-muted);
}

.kmae-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.kmae-filter-label {
  font-size: 0.8rem;
  color: var(--p-muted);
  margin-right: 0.35rem;
}

.kmae-filter-chip {
  padding: 0.4rem 0.9rem;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-full);
  text-decoration: none;
  color: var(--p-text);
  font-size: 0.85rem;
  transition: background var(--p-speed) var(--p-ease), border-color var(--p-speed) var(--p-ease), color var(--p-speed) var(--p-ease);
}

.kmae-filter-chip:hover,
.kmae-filter-chip.active {
  background: var(--p-grad);
  color: var(--p-text);
  border-color: transparent;
}

.kmae-card-meta,
.kmae-listing-meta,
.kmae-card-specs,
.kmae-swipe-specs {
  font-size: 0.85rem;
  color: var(--p-muted);
  margin: 0.35rem 0;
}

.kmae-card-price {
  font-weight: 700;
  color: var(--p-text);
}

/* ==========================================================================
   Single listing
   ========================================================================== */

.kmae-single-listing .kmae-single-content {
  margin-top: 1rem;
}

.kmae-single-image {
  width: 100%;
  border-radius: var(--p-radius);
  margin-bottom: 1.5rem;
}

.kmae-single-meta {
  display: flex;
  gap: 1rem;
  color: var(--p-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.kmae-offer-section,
.kmae-incoming-offers {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--p-border);
}

.kmae-offer-item,
.kmae-offer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  margin-bottom: 0.5rem;
}

.kmae-offer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kmae-contact-box {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
}

.kmae-incoming-offers-mini {
  margin: 0.75rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--p-border);
}

.kmae-incoming-offers-mini strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.kmae-owner-offers-link {
  margin-top: 1.5rem;
}

.kmae-offer-listing-link {
  color: var(--p-purple);
  text-decoration: none;
}

.kmae-offer-listing-link:hover {
  text-decoration: underline;
  color: var(--p-pink);
}

/* ==========================================================================
   Gallery & lightbox
   ========================================================================== */

.kmae-gallery {
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: var(--p-radius);
  overflow: hidden;
  /* A kitöltés az oldal világoskék-narancs arculatát követi, nem sötét. */
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(76, 149, 205, 0.28);
  box-shadow: 0 18px 46px rgba(38, 68, 90, 0.16);
}

.kmae-gallery-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #e0f8ff, #fff 56%, #ffefe2);
}

.kmae-gallery-slide {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--p-ease);
}

.kmae-gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Kitöltő háttér: maga a kép, elmosva és sötétítve. Így az álló vagy szokatlan
   arányú fotók mellett sem marad üres sáv, a képből mégsem vágunk le semmit.
   A nagyítás azért kell, hogy az elmosás ne fakítsa ki a széleket. */
.kmae-gallery-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--kmae-slide-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(26px) saturate(120%) brightness(1.06);
  opacity: 0.55;
  transform: scale(1.2);
  pointer-events: none;
}

/* A kép TELJES egészében látszik — semmit nem vágunk le belőle. */
.kmae-gallery-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.kmae-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(120, 190, 240, 0.32);
  border-radius: var(--p-radius-full);
  background: rgba(4, 20, 42, 0.62);
  color: #e7f1fb;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 180ms var(--p-ease), border-color 180ms var(--p-ease);
}

.kmae-gallery-nav:hover {
  background: rgba(10, 44, 77, 0.85);
  border-color: rgba(54, 170, 234, 0.6);
}

.kmae-gallery-prev { left: 10px; }
.kmae-gallery-next { right: 10px; }

/* A pöttyök a képre kerülnek, nem külön sávba — így nincs alattuk üres csík. */
.kmae-gallery-dots {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0;
  background: none;
  border: 0;
}

.kmae-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 180ms var(--p-ease), transform 180ms var(--p-ease);
}

.kmae-gallery-dot.active {
  background: #41c6ff;
  transform: scale(1.25);
}

.kmae-gallery--card {
  border-radius: var(--p-radius-sm);
}

.kmae-gallery--card .kmae-gallery-stage {
  aspect-ratio: 16 / 10;
}

.kmae-gallery--card .kmae-gallery-slide {
  position: absolute;
}

.kmae-gallery--card .kmae-gallery-slide.active {
  position: relative;
}

.kmae-gallery--card .kmae-gallery-img {
  border-radius: 0;
}

.kmae-zoomable {
  cursor: zoom-in;
}

.kmae-offer-images {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.kmae-offer-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--p-radius-xs);
  border: 1px solid var(--p-border);
}

/* Lightbox */
.kmae-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmae-lightbox[hidden] {
  display: none;
}

.kmae-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 30, 0.92);
  backdrop-filter: blur(8px);
}

.kmae-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 960px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmae-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--p-radius-sm);
  box-shadow: var(--p-shadow-lg);
}

.kmae-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-full);
  background: var(--p-surface);
  color: var(--p-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.kmae-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-full);
  background: var(--p-surface);
  color: var(--p-text);
  font-size: 1.5rem;
  cursor: pointer;
}

.kmae-lightbox-prev { left: -3.5rem; }
.kmae-lightbox-next { right: -3.5rem; }

.kmae-lightbox-nav[hidden] {
  display: none;
}

body.kmae-lightbox-open {
  overflow: hidden;
}

/* Gallery manager */
.kmae-gallery-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.kmae-gallery-manager-item {
  position: relative;
  border-radius: var(--p-radius-sm);
  border: 1px solid var(--p-border);
  background: var(--p-surface);
  overflow: hidden;
  cursor: grab;
  transition: border-color var(--p-speed) var(--p-ease), box-shadow var(--p-speed) var(--p-ease);
}

.kmae-gallery-manager-item.is-dragging {
  opacity: 0.6;
  cursor: grabbing;
}

.kmae-gallery-manager-item:hover {
  border-color: var(--p-border-strong);
}

.kmae-gallery-manager-view {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-surface-solid);
  overflow: hidden;
}

.kmae-gallery-manager-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kmae-gallery-manager-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--p-radius-full);
  background: var(--p-grad);
  color: var(--p-text);
}

.kmae-gallery-manager-actions {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  border-top: 1px solid var(--p-border);
}

.kmae-gallery-manager-actions button {
  flex: 1;
  padding: 0.35rem;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-xs);
  background: var(--p-surface-solid);
  color: var(--p-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color var(--p-speed) var(--p-ease), color var(--p-speed) var(--p-ease);
}

.kmae-gallery-manager-actions button:hover {
  border-color: var(--p-purple);
  color: var(--p-purple);
}

.kmae-gallery-manager-remove:hover {
  border-color: var(--p-danger);
  color: var(--p-danger);
  background: var(--p-danger-soft);
}

/* ==========================================================================
   Swipe browse
   ========================================================================== */

.kmae-swipe-browse {
  max-width: 480px;
}

.kmae-wizard-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 1rem 1.15rem;
  background:
    linear-gradient(135deg, rgba(0, 129, 192, 0.16), rgba(0, 199, 247, 0.06)),
    rgba(6, 14, 24, 0.92);
  border: 1px solid rgba(0, 200, 245, 0.28);
  border-radius: 18px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.kmae-wizard-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kmae-wizard-summary__restart {
  flex-shrink: 0;
}

.kmae-browse-header {
  text-align: left;
  margin-bottom: 1.35rem;
}

.kmae-browse-header__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00c8f5;
}

.kmae-browse-header h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.kmae-browse-header .kmae-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}

.kmae-swipe-stack {
  position: relative;
  height: 520px;
  margin: 1.5rem 0;
}

.kmae-swipe-card {
  position: absolute;
  inset: 0;
  border-radius: var(--p-radius);
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-lg);
  transition: transform 0.28s ease, opacity 0.28s ease;
  overflow: hidden;
}

.kmae-swipe-card-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-surface-solid);
  z-index: 0;
}

.kmae-swipe-card-photo .kmae-card-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border: none;
  outline: none;
  box-shadow: none;
}

.kmae-swipe-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(10, 11, 30, 0.95));
  color: var(--p-text);
  z-index: 1;
}

.kmae-swipe-card-info h3 {
  margin: 0 0 0.5rem;
  color: var(--p-text);
}

.kmae-swipe-card-info .kmae-type-tag {
  background: rgba(142, 45, 226, 0.25);
  color: #e9d5ff;
  border-color: rgba(142, 45, 226, 0.35);
}

.kmae-swipe-value {
  margin: 0.2rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  background: var(--p-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kmae-swipe-location {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  color: var(--p-muted);
}

.kmae-swipe-cta {
  margin-top: 0.65rem;
}

.kmae-swipe-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.kmae-swipe-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--p-border);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--p-shadow);
  background: var(--p-surface);
  color: var(--p-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--p-speed) var(--p-ease);
}

.kmae-swipe-pass:hover {
  border-color: var(--p-danger);
  color: var(--p-danger);
  background: var(--p-danger-soft);
}

.kmae-swipe-like {
  background: var(--p-grad);
  color: var(--p-text);
  border-color: transparent;
}

.kmae-swipe-like:hover {
  box-shadow: 0 8px 28px rgba(255, 0, 128, 0.35);
}

/* ==========================================================================
   Wizard & Hungary map
   ========================================================================== */

.kmae-wizard-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.kmae-wizard-header--step-only {
  margin-bottom: 1.15rem;
}

.kmae-wizard-step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--p-text);
  background: var(--p-grad);
  padding: 0.35rem 0.85rem;
  border-radius: var(--p-radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.kmae-wizard-header--step-only .kmae-wizard-step-num {
  margin-bottom: 0;
}

.kmae-wizard-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--p-text);
}

.kmae-wizard .kmae-subtitle {
  margin-bottom: 0;
}

.kmae-wizard-actions-top {
  text-align: center;
  margin-bottom: 1.25rem;
}

.kmae-wizard-orszag-btn {
  min-width: 200px;
}

.kmae-map-or-hint {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.kmae-wizard-map-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1.15fr);
  gap: 1.5rem 2rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.kmae-wizard-map-split__left {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.kmae-wizard-map-split__title {
  margin: 0;
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
}

.kmae-wizard-map-split__lead {
  margin: 0;
  max-width: 28rem;
  color: #ffffff !important;
  font-size: 1.02rem;
  line-height: 1.5;
}

.kmae-wizard-map-split__left .kmae-wizard-orszag-btn {
  margin-top: 0.35rem;
}

.kmae-wizard-map-split__right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.kmae-wizard-map .kmae-map-wrap {
  width: 100%;
  max-width: 100%;
  max-height: min(48dvh, 380px);
  aspect-ratio: var(--kmae-map-aspect, 1.58);
}

.kmae-wizard-map .kmae-map-status {
  margin-top: 0.75rem;
}

.kmae-wizard-map .kmae-county-label {
  font-size: 0.92em;
}

@media (max-width: 820px) {
  .kmae-wizard-map-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .kmae-wizard-map-split__left {
    text-align: center;
    align-items: center;
  }

  .kmae-wizard-map-split__lead {
    max-width: 34rem;
  }

  .kmae-wizard-map .kmae-map-wrap {
    max-height: min(52dvh, 420px);
  }
}

.kmae-map-wrap,
.kmae-map-wrap-flat,
.kmae-map-wrap-neon {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: var(--kmae-map-aspect, 1.58);
  max-height: min(70dvh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmae-hu-map {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: transparent;
}

.kmae-map-bg {
  fill: none;
  pointer-events: none;
}

.kmae-county-link {
  cursor: pointer;
  outline: none;
}

.kmae-county-path {
  fill: #1a2040;
  stroke: var(--p-purple);
  stroke-width: 0.6;
  stroke-linejoin: round;
  transition: fill 0.2s, stroke 0.2s, filter 0.2s;
}

.kmae-county-link:hover .kmae-county-path,
.kmae-county-link:focus .kmae-county-path {
  fill: var(--p-purple);
  stroke: var(--p-pink);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 8px rgba(255, 0, 128, 0.45));
}

.kmae-county-label {
  fill: var(--p-subtle);
  font-weight: 700;
  pointer-events: none;
  font-family: var(--p-font);
}

.kmae-county-link:hover .kmae-county-label,
.kmae-county-link:focus .kmae-county-label {
  fill: var(--p-text);
}

.kmae-map-hint {
  text-align: center;
  color: var(--p-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.kmae-map-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kmae-map-status.is-active {
  border-color: var(--p-border-strong);
  box-shadow: 0 0 20px rgba(142, 45, 226, 0.2);
}

.kmae-map-status-prefix {
  font-size: 0.95rem;
  color: var(--p-muted);
  font-weight: 600;
}

.kmae-map-status-name {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 800;
  color: var(--p-purple);
  letter-spacing: -0.02em;
}

.kmae-map-status.is-active .kmae-map-status-name {
  color: var(--p-pink);
}

.kmae-wizard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.kmae-wizard-grid-cats {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.kmae-wizard-grid-bodies {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.kmae-wizard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  padding: 1.1rem 0.75rem;
  background: var(--p-surface);
  border: 1.5px solid var(--p-border);
  border-radius: var(--p-radius);
  text-decoration: none;
  color: var(--p-text);
  min-height: 88px;
  transition: border-color var(--p-speed) var(--p-ease), box-shadow var(--p-speed) var(--p-ease), transform var(--p-speed) var(--p-ease), background var(--p-speed) var(--p-ease);
}

button.kmae-wizard-card {
  cursor: pointer;
  font: inherit;
  width: 100%;
}

.kmae-wizard-card:hover {
  border-color: var(--p-border-strong);
  box-shadow: 0 8px 24px rgba(142, 45, 226, 0.15);
  transform: translateY(-2px);
}

.kmae-wizard-card.is-selected {
  border-color: var(--p-purple);
  background: rgba(142, 45, 226, 0.12);
  box-shadow: 0 0 20px rgba(142, 45, 226, 0.25);
}

.kmae-wizard-card strong {
  font-size: 0.95rem;
  color: var(--p-text);
}

.kmae-wizard-card span {
  font-size: 0.8rem;
  color: var(--p-muted);
}

.kmae-wizard-card-icon {
  font-size: 1.25rem;
  color: var(--p-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--p-radius-sm);
  background: rgba(142, 45, 226, 0.12);
}

.kmae-wizard-card-body {
  text-align: center;
  min-height: auto;
  padding: 0.85rem 0.75rem;
}

.kmae-wizard-card-body strong {
  display: block;
  font-size: 0.95rem;
}

.kmae-wizard-nav {
  text-align: center;
  margin-top: 1.25rem;
  position: relative;
  z-index: 2;
}

.kmae-wizard-nav-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.kmae-wizard-nav .kmae-btn {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  min-width: 200px;
}

.kmae-wizard-mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.kmae-wizard-mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.15rem 1.1rem;
  border: 1.5px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  background: var(--p-surface);
  cursor: pointer;
  color: var(--p-text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
}

.kmae-wizard-mode-card strong {
  display: block;
  width: 100%;
  font-size: 1.1rem;
  color: var(--p-text);
}

.kmae-wizard-mode-desc {
  display: block;
  width: 100%;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #ffffff;
  font-weight: 500;
}

.kmae-wizard-mode-card:hover,
.kmae-wizard-mode-card.is-active {
  border-color: var(--p-purple);
  box-shadow: 0 4px 16px rgba(0, 200, 245, 0.18);
  background: rgba(0, 200, 245, 0.1);
}

.kmae-wizard-mode-panel {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.kmae-wizard-mode-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--p-text);
}

.kmae-range-wrap {
  margin: 0.75rem 0;
}

.kmae-wizard-range {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0.35rem 0;
  accent-color: var(--p-purple);
}

.kmae-wizard-range-out {
  display: block;
  font-weight: 700;
  color: var(--p-purple);
  font-size: 1.05rem;
}

/* ==========================================================================
   Offers hub
   ========================================================================== */

.kmae-offers-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.kmae-offers-columns-gap {
  min-height: 1px;
}

.kmae-offers-col h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--p-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kmae-offers-col-empty {
  padding: 1rem;
  background: var(--p-surface);
  border: 1px dashed var(--p-border);
  border-radius: var(--p-radius-sm);
  text-align: center;
  color: var(--p-muted);
}

.kmae-offers-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.kmae-offer-tile-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.kmae-offer-tile-wrap--pending { border: 2px solid #1c69d5; border-radius: 14px; }
.kmae-offer-tile-wrap--accepted { border: 2px solid #096a0c; border-radius: 14px; }
.kmae-offer-tile-wrap--rejected { border: 2px solid #e21311; border-radius: 14px; }
.kmae-offer-tile-wrap--withdrawn { border: 2px solid #8a9bb0; border-radius: 14px; }
.kmae-offer-tile-wrap--superseded { border: 2px solid #7e0b39; border-radius: 14px; }
.kmae-offer-tile-badge--pending { background: #e7f0ff; color: #1c69d5; }
.kmae-offer-tile-badge--accepted { background: #e5f6e6; color: #096a0c; }
.kmae-offer-tile-badge--rejected { background: #ffe8e7; color: #e21311; }
.kmae-offer-tile-badge--withdrawn { background: #eef1f5; color: #5c6b7c; }
.kmae-offer-tile-badge--superseded { background: #fde8f0; color: #7e0b39; }
.kmae-offer-tile-dismiss-form { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.kmae-offer-tile-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e21311;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.kmae-offer-tile-wrap:has(.kmae-offer-tile-dismiss) .kmae-offer-tile-head-badges { margin-right: 28px; }

a.kmae-offer-tile {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.75rem 0.85rem;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: var(--p-surface);
  border: 2px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  box-shadow: var(--p-shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
  backdrop-filter: blur(12px);
}

a.kmae-offer-tile:hover {
  border-color: var(--p-border-strong);
  box-shadow: var(--p-shadow-lg);
  transform: translateY(-1px);
}

.kmae-offer-tile--alert-good {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.06);
  animation: kmae-offer-pulse-good 1.4s ease-in-out infinite;
}

.kmae-offer-tile--alert-bad {
  border-color: var(--p-danger);
  background: var(--p-danger-soft);
}

.kmae-offer-tile--alert-bad .kmae-offer-tile-preview {
  background: rgba(248, 113, 113, 0.12);
  border-left-color: var(--p-danger);
}

.kmae-offer-tile--alert-bad .kmae-offer-tile-preview-label {
  color: var(--p-danger);
}

.kmae-offer-tile--alert-good .kmae-offer-tile-preview {
  background: rgba(248, 113, 113, 0.1);
  border-left-color: var(--p-danger);
}

.kmae-offer-tile--alert-good .kmae-offer-tile-preview-label {
  color: var(--p-danger);
}

@keyframes kmae-offer-pulse-good {
  0%, 100% {
    border-color: rgba(248, 113, 113, 0.35);
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.1);
  }
  50% {
    border-color: var(--p-danger);
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.08);
  }
}

.kmae-offer-tile-media {
  width: 72px;
  height: 72px;
  border-radius: var(--p-radius-xs);
  overflow: hidden;
  background: var(--p-surface-solid);
  border: 1px solid var(--p-border);
}

.kmae-offer-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kmae-offer-tile-media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(142, 45, 226, 0.15), rgba(255, 0, 128, 0.1));
}

.kmae-offer-tile-content { min-width: 0; }

.kmae-offer-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.kmae-offer-tile-primary { min-width: 0; }

.kmae-offer-tile-party {
  margin: 0 0 0.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--p-text);
  line-height: 1.25;
}

.kmae-offer-tile-amount {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--p-purple);
  line-height: 1.3;
}

.kmae-offer-tile-listing {
  display: inline-block;
  padding-left: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--p-muted);
  text-decoration: none;
}

.kmae-offer-tile-listing:hover {
  color: var(--p-purple);
  text-decoration: underline;
}

.kmae-offer-tile-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--p-text);
  line-height: 1.3;
}

.kmae-offer-tile-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.kmae-offer-tile-fact {
  padding: 0.45rem 0.6rem;
  background: var(--p-surface-solid);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-xs);
}

.kmae-offer-tile-fact-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--p-muted);
  margin-bottom: 0.15rem;
}

.kmae-offer-tile-fact-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--p-text);
}

.kmae-offer-tile-preview {
  padding: 0.5rem 0.65rem;
  background: var(--p-info-soft);
  border-left: 3px solid var(--p-info);
  border-radius: 0 var(--p-radius-xs) var(--p-radius-xs) 0;
  margin-bottom: 0.5rem;
}

.kmae-offer-tile-preview-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--p-info);
  margin-bottom: 0.2rem;
}

.kmae-offer-tile-preview p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--p-text);
  line-height: 1.4;
}

.kmae-offer-tile-cta {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--p-purple);
}

/* ==========================================================================
   Auth
   ========================================================================== */

.kmae-auth {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: var(--p-font);
  color: var(--p-text);
}

.kmae-auth-switch {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--p-muted);
}

.kmae-auth-switch a {
  color: var(--p-purple);
  font-weight: 600;
  text-decoration: none;
}

.kmae-auth-switch a:hover {
  color: var(--p-pink);
  text-decoration: underline;
}

.kmae-auth-logged-in .kmae-btn {
  margin-right: 0.5rem;
}

/* ==========================================================================
   Hero & landing sections
   ========================================================================== */

.kmae-hero {
  padding: 0;
  text-align: left;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
}

.kmae-hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-full);
  font-size: 0.85rem;
  color: var(--p-purple);
  margin-bottom: 1rem;
}

.kmae-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--p-text);
}

.kmae-hero-title span {
  display: block;
  background: var(--p-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kmae-hero-usp {
  max-width: 640px;
  margin: 0 auto 1rem;
  font-size: 1.05rem;
  color: var(--p-muted);
  line-height: 1.6;
}

.kmae-hero-sub {
  color: var(--p-muted);
  margin-bottom: 1.5rem;
}

.kmae-hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.kmae-hero-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.kmae-hero-step {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--p-text);
}

.kmae-hero-step span {
  display: block;
  font-size: 0.75rem;
  color: var(--p-purple);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.kmae-hero-autonext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.kmae-hero-autonext-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--p-text);
}

.kmae-hero-autonext-title span {
  background: var(--p-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kmae-hero-autonext-lead {
  font-size: 1.1rem;
  color: var(--p-muted);
  margin: 0 0 1.5rem;
}

.kmae-hero-autonext-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.kmae-hero-autonext-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmae-hero-autonext-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(142, 45, 226, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.kmae-hero-autonext-trails {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kmae-hero-autonext-car {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
}

.kmae-landing-features {
  padding: 2rem 0;
}

.kmae-landing-features-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.kmae-landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kmae-landing-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 1rem;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  text-align: center;
  transition: border-color var(--p-speed) var(--p-ease), transform var(--p-speed) var(--p-ease);
}

.kmae-landing-feature:hover {
  border-color: var(--p-border-strong);
  transform: translateY(-2px);
}

.kmae-landing-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--p-radius-sm);
  background: rgba(142, 45, 226, 0.12);
  color: var(--p-purple);
}

.kmae-landing-feature-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--p-muted);
}

.kmae-landing-search {
  padding: 2rem 0;
}

.kmae-landing-search-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  backdrop-filter: blur(12px);
}

.kmae-landing-search-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  color: var(--p-text);
}

.kmae-landing-search-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.kmae-landing-search-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kmae-landing-search-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--p-muted);
}

.kmae-landing-search-select,
.kmae-landing-search-input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  background: var(--p-surface-solid);
  color: var(--p-text);
  font-family: var(--p-font);
  font-size: 0.95rem;
}

.kmae-landing-search-btn {
  width: 100%;
}

.kmae-landing-popular {
  padding: 2rem 0;
}

.kmae-landing-popular-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.kmae-landing-popular-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--p-text);
}

.kmae-landing-popular-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--p-purple);
  text-decoration: none;
}

.kmae-landing-popular-link:hover {
  color: var(--p-pink);
  text-decoration: underline;
}

.kmae-landing-popular-empty {
  text-align: center;
  padding: 2rem;
  color: var(--p-muted);
}

.kmae-landing-popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.kmae-landing-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  overflow: hidden;
  transition: transform var(--p-speed) var(--p-ease), border-color var(--p-speed) var(--p-ease), box-shadow var(--p-speed) var(--p-ease);
}

.kmae-landing-card:hover {
  transform: translateY(-2px);
  border-color: var(--p-border-strong);
  box-shadow: var(--p-shadow-lg);
}

.kmae-landing-card-image {
  aspect-ratio: 16 / 10;
  background: var(--p-surface-solid);
  position: relative;
  overflow: hidden;
}

.kmae-landing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kmae-landing-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--p-muted);
}

.kmae-landing-card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--p-radius-full);
  background: rgba(10, 11, 30, 0.65);
  color: var(--p-pink);
  backdrop-filter: blur(4px);
}

.kmae-landing-card-body {
  padding: 0.85rem 1rem;
}

.kmae-landing-card-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--p-text);
}

.kmae-landing-card-price {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--p-purple);
}

/* ==========================================================================
   Vehicle specs & listing assistant
   ========================================================================== */

.kmae-vehicle-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem 1rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: var(--p-radius-sm);
  background: var(--p-surface);
  border: 1px solid var(--p-border);
}

.kmae-vehicle-spec-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--p-muted);
  margin-bottom: 0.15rem;
}

.kmae-vehicle-spec-value {
  display: block;
  font-weight: 700;
  color: var(--p-text);
}

/* ==========================================================================
   Theme compatibility overrides
   ========================================================================== */

main .ct-search-form,
main section.ct-no-results,
.entry-content .ct-search-form {
  display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 820px) {
  .kmae-offers-columns {
    grid-template-columns: 1fr;
    gap: 2rem 0;
  }

  .kmae-offers-columns-gap {
    display: none;
  }

  .kmae-offer-tile-facts {
    grid-template-columns: 1fr;
  }

  .kmae-lightbox-prev { left: 0.5rem; }
  .kmae-lightbox-next { right: 0.5rem; }
  .kmae-lightbox-close { top: 0.5rem; right: 0.5rem; }
}

@media (max-width: 640px) {
  .kmae-field-row {
    grid-template-columns: 1fr;
  }

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

  .kmae-wizard-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .kmae-hero-autonext-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .kmae-hero-autonext-actions {
    justify-content: center;
  }

  .kmae-hero-autonext-visual {
    order: -1;
  }

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

  .kmae-form-wrap:not(.kmae-create-form),
  .kmae-my-offers,
  .kmae-single-listing {
    padding: 1rem;
  }

  .kmae-swipe-browse,
  .kmae-browse,
  .kmae-wizard:not(#kmae-listing-wizard) {
    padding: calc(var(--kmae-header-h, 64px) + 1.1rem) 1rem 2rem;
  }

  .kmae-page .kmae-wizard:not(#kmae-listing-wizard),
  .kmae-page .kmae-swipe-browse,
  .kmae-page .kmae-browse,
  .kmae-page-wrap .kmae-wizard:not(#kmae-listing-wizard),
  .kmae-page-wrap .kmae-swipe-browse,
  .kmae-page-wrap .kmae-browse {
    padding-top: 0.65rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .kmae-landing-features-grid {
    grid-template-columns: 1fr;
  }

  .kmae-swipe-stack {
    height: 460px;
  }
}

/* Page shell helpers */
.kmae-page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: calc(var(--kmae-header-h, 72px) + 1.25rem) 1.25rem 2.5rem;
  font-family: var(--p-font);
  color: var(--p-text);
}

.kmae-page-content {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 1.5rem;
  box-shadow: var(--p-shadow-lg);
  backdrop-filter: blur(12px);
}

.kmae-page-title {
  color: var(--p-text);
  margin-bottom: 0.5rem;
}

.kmae-profile,
.kmae-browse-page-wrap {
  font-family: var(--p-font);
  color: var(--p-text);
}

.kmae-card,
.kmae-offer-hub-card {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
  transition: transform var(--p-speed) var(--p-ease), box-shadow var(--p-speed) var(--p-ease), border-color var(--p-speed) var(--p-ease);
}

.kmae-card:hover,
.kmae-offer-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--p-border-strong);
  box-shadow: var(--p-shadow-lg);
}

.kmae-icon {
  display: inline-flex;
  vertical-align: middle;
}

.kmae-trust-card__seller {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.kmae-company-fields[hidden],
[data-kmae-private-name][hidden] {
  display: none !important;
}

.kmae-badge-inline {
  margin-left: 0.35rem;
  vertical-align: middle;
  font-size: 0.7rem;
}

.kmae-education__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1rem 0 2rem;
}

.kmae-education__card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  background: var(--p-surface);
}

.kmae-education__card h4 {
  margin: 0 0 0.6rem;
}

.kmae-education__card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.kmae-education__section {
  margin-top: 1.5rem;
}

.kmae-education__video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 1.5rem;
}

.kmae-education__video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--p-radius);
}

.kmae-education__video figcaption {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--p-muted, #5a6570);
}

/* ==========================================================================
   Browse wizard validation + empty states
   ========================================================================== */

.kmae-wizard-form-errors {
  margin: 0.35rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 200, 245, 0.28);
  background: rgba(0, 200, 245, 0.1);
}

.kmae-wizard-form-errors.is-guide {
  border-color: rgba(0, 200, 245, 0.28);
  background: rgba(0, 200, 245, 0.1);
}

.kmae-wizard-form-errors.is-error {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 70, 70, 0.12);
}

.kmae-wizard-form-guide {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.45;
}

.kmae-wizard-form-error {
  margin: 0;
  color: #ff6b6b;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
}

.kmae-wizard-form-guide + .kmae-wizard-form-guide,
.kmae-wizard-form-error + .kmae-wizard-form-error,
.kmae-wizard-form-guide + .kmae-wizard-form-error,
.kmae-wizard-form-error + .kmae-wizard-form-guide {
  margin-top: 0.4rem;
}

.kmae-wizard-input.is-invalid,
.kmae-wizard-mode-panel .kmae-wizard-input:invalid {
  border-color: rgba(255, 107, 107, 0.65);
}

.kmae-swipe-empty {
  margin: 0.5rem 0 2rem;
}

.kmae-swipe-empty__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 2.4rem 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(0, 200, 245, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 199, 247, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.96), rgba(4, 10, 18, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.kmae-swipe-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: #00c8f5;
  background: rgba(0, 200, 245, 0.12);
  border: 1px solid rgba(0, 200, 245, 0.28);
  margin-bottom: 0.35rem;
}

.kmae-swipe-empty__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.kmae-swipe-empty__text {
  margin: 0 0 0.75rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.55;
}

.kmae-swipe-empty .kmae-btn {
  min-width: 160px;
}

.kmae-map-hint {
  color: #ffffff !important;
}

.kmae-wizard-card:hover {
  box-shadow: 0 8px 24px rgba(0, 200, 245, 0.15);
}

.kmae-wizard-card.is-selected {
  background: rgba(0, 200, 245, 0.12);
  box-shadow: 0 0 20px rgba(0, 200, 245, 0.25);
}

/* === KMAE hub-menu layout lock (page shell) === */
.kmae-page--hub-menu,
.kmae-page:has(.kmae-hub-menu) {
  padding: calc(var(--kmae-header-h, 72px) + 12px) 24px 56px !important;
  max-width: none !important;
  width: 100% !important;
}
.kmae-page:has(.kmae-hub-menu) .kmae-container,
.kmae-page:has(.kmae-hub-menu) .kmae-page__content {
  max-width: none !important;
  width: 100% !important;
}
.kmae-hub-menu-shell,
.kmae-hub-menu {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 900px) {
  .kmae-page--hub-menu,
  .kmae-page:has(.kmae-hub-menu) {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .kmae-hub-menu-shell,
  .kmae-hub-menu {
    width: 100% !important;
    max-width: none !important;
  }
}
.kmae-upload-preview{display:flex;flex-wrap:wrap;gap:14px;margin-top:16px;padding:14px;border-radius:14px;background:#071d3a;border:1px solid #164a83}.kmae-upload-preview__item{position:relative;width:132px;height:100px;padding:0;border:2px solid #2b6ca8;border-radius:10px;overflow:hidden;background:#0b274b;cursor:pointer}.kmae-upload-preview__item img{width:100%;height:100%;object-fit:cover;display:block}.kmae-upload-preview__item span{position:absolute;left:5px;bottom:5px;padding:3px 7px;border-radius:5px;background:#0b78d0;color:#fff;font-size:11px}.kmae-upload-preview__controls{position:absolute;right:4px;top:4px;display:flex;gap:2px}.kmae-upload-preview__controls button{border:0;border-radius:4px;background:#06203e;color:#fff;cursor:pointer}.kmae-upload-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(2,12,28,.92);display:flex;align-items:center;justify-content:center}.kmae-upload-lightbox img{max-width:92vw;max-height:88vh}.kmae-upload-lightbox button{position:absolute;top:20px;right:24px;font-size:32px;color:#fff;background:none;border:0;cursor:pointer}
.kmae-gallery-manager-up,.kmae-gallery-manager-down{display:none!important}.kmae-upload-preview__item.is-dragging{opacity:.55}

/* Botcsapda mezője: ember nem látja, de a képernyőolvasók és a botok szempontjából "ott van". Nem display:none, mert azt a botok egy része felismeri. */
.kmae-form-extra{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Conversation thread: info banner, official cards, agreement, actions. */
.kmae-conversation-action {
  min-height: 44px;
}

/* Business engine: buyer vehicle feedback, scoped to the profile task panel. */
.kmae-profile .kmae-profile-vehicle-feedback {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(0, 200, 245, 0.25);
  border-radius: 16px;
  background: rgba(0, 200, 245, 0.06);
}
.kmae-profile .kmae-profile-vehicle-feedback__form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 200, 245, 0.2);
}
.kmae-profile .kmae-profile-vehicle-feedback__form h4,
.kmae-profile .kmae-profile-vehicle-feedback__form fieldset {
  margin: 0;
}
.kmae-profile .kmae-profile-vehicle-feedback__form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  padding: 0;
  border: 0;
}
.kmae-profile .kmae-profile-vehicle-feedback__form legend {
  width: 100%;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.kmae-profile .kmae-profile-vehicle-feedback__form label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.kmae-withdraw-confirm-open { overflow: hidden; }
.kmae-withdraw-confirm { position: fixed; inset: 0; z-index: 2400; display: grid; place-items: center; padding: 24px; }
.kmae-withdraw-confirm[hidden] { display: none; }
.kmae-withdraw-confirm__backdrop { position: absolute; inset: 0; background: rgba(9, 24, 51, 0.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.kmae-withdraw-confirm__card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 28px 26px 22px;
  border: 1px solid rgba(0, 199, 247, 0.35);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 255, 0.96));
  box-shadow: inset 0 1px 0 #fff, 0 18px 48px rgba(9, 24, 51, 0.22);
  text-align: center;
}
.kmae-withdraw-confirm__topline {
  position: absolute;
  top: 0;
  left: 22%;
  width: 56%;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, #fd6907, #1c69d5, transparent);
}
.kmae-withdraw-confirm__title { margin: 0; color: #163f7a; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.kmae-withdraw-confirm__text { margin: 12px 0 0; color: #465463; font-size: 15px; line-height: 1.5; }
.kmae-withdraw-confirm__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
#kmae-hub-dismiss-confirm .kmae-withdraw-confirm__card { width: min(100%, 520px); }
#kmae-hub-dismiss-confirm .kmae-withdraw-confirm__btn { white-space: nowrap; }
.kmae-withdraw-confirm__btn {
  min-width: 132px;
  padding: 11px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.kmae-withdraw-confirm__btn--cancel {
  border: 1px solid rgba(0, 199, 247, 0.6);
  background: rgba(255, 255, 255, 0.9);
  color: #008fbd;
}
.kmae-withdraw-confirm__btn--ok {
  border: 1px solid rgba(253, 105, 7, 0.85);
  background: linear-gradient(110deg, #ff8a33, #fd6907);
  color: #fff;
}
.kmae-withdraw-confirm__btn:disabled { opacity: 0.65; cursor: default; }
