/* ADD CAR PAGE */
.product-edit {
  padding: 40px 0 60px;
  background: var(--bg-section);
  min-height: 100vh;
}
.product-edit__title { margin-bottom: 24px; }

.product-form {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-form__row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 14px;
}

.product-form__label {
  width: 230px;
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 10px;
  flex-shrink: 0;
}

.product-form__field {
  flex: 1;
  min-width: 0; /* Предотвращает переполнение flex-элементов */
  max-width: 100%;
}

.product-form__field .input,
.product-form__field select {
  width: 100%;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-input-wrapper .input {
  flex: 1;
}

.color-preview {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--border-subtle);
  background: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-preview:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.product-form__field textarea.input {
  min-height: 110px;
}

.upload-area {
  border-radius: 12px;
  border: 1px dashed var(--border-subtle);
  background: var(--bg-main);
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.upload-area--over {
  border-color: var(--accent);
  background-color: rgba(245,180,0,0.06);
}

.upload-area__title {
  font-size: 14px;
  margin-bottom: 6px;
}

.upload-area__btn {
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
}

.upload-preview {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  flex-wrap: nowrap;
  height: 70px;
  width: 100%;
  max-width: 100%;
  min-width: 0; /* Предотвращает переполнение flex-элементов */
  align-items: center;
  /* Стили для скроллбара */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-main);
  /* Плавная прокрутка */
  scroll-behavior: smooth;
  /* Фиксация длины - блок не растягивается */
  box-sizing: border-box;
}

.upload-preview::-webkit-scrollbar {
  height: 6px;
}

.upload-preview::-webkit-scrollbar-track {
  background: var(--bg-main);
  border-radius: 3px;
}

.upload-preview::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.upload-preview::-webkit-scrollbar-thumb:hover {
  background: var(--accent-soft);
}

.upload-preview__item {
  width: 66px;
  height: 49px;
  min-width: 66px;
  max-width: 66px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  flex: 0 0 66px;
  box-sizing: border-box;
}

/* Автодополнение для бренда */
.brand-autocomplete {
  position: relative;
  width: 100%;
}

.brand-autocomplete__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.brand-autocomplete__item {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-autocomplete__item:last-child {
  border-bottom: none;
}

.brand-autocomplete__item:hover,
.brand-autocomplete__item--selected {
  background-color: var(--bg-section);
  color: var(--accent);
}

.brand-autocomplete__dropdown::-webkit-scrollbar {
  width: 6px;
}

.brand-autocomplete__dropdown::-webkit-scrollbar-track {
  background: var(--bg-main);
  border-radius: 3px;
}

.brand-autocomplete__dropdown::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.brand-autocomplete__dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--accent-soft);
}

.upload-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-form__success {
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent-soft);
  display: none;
}

.product-form__success--visible {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .product-form__row {
    flex-direction: column;
    gap: 8px;
  }
  .product-form__label {
    width: 100%;
    padding-top: 0;
  }
}

/* PARTNER DASHBOARD (ЛК партнера) */

.partner-page {
  padding: 40px 0 60px;
  background: var(--bg-section);
  min-height: 100vh;
}

.partner-page__title {
  margin-bottom: 24px;
}

.partner-layout {
  max-width: 960px;
  margin: 0 auto;
}

.partner-profile {
  margin-bottom: 32px;
}

.partner-profile__card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 20px 20px 18px;
}

.partner-profile__title {
  font-size: 20px;
  margin-bottom: 18px;
}

.partner-profile__top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.avatar-upload {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-upload__placeholder {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.avatar-upload__plus {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.avatar-upload__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.avatar-upload--has-image .avatar-upload__img {
  display: block;
}

.avatar-upload--has-image .avatar-upload__placeholder {
  display: none;
}

.avatar-upload--over {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(245, 180, 0, 0.5);
}

.avatar-upload__edit {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0,0,0,0.4);
  background: rgba(0,0,0,0.7);
  font-size: 11px;
  color: var(--text-main);
  cursor: pointer;
}

.partner-profile__fields {
  flex: 1;
  min-width: 0;
}

.partner-profile__fields .input {
  width: 100%;
  margin-bottom: 10px;
}

.partner-profile__fields .input--textarea {
  min-height: 120px;
}

.partner-profile__actions {
  margin-top: 8px;
}

.partner-profile__success {
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent-soft);
  display: none;
}

.partner-profile__success--visible {
  display: block;
}

/* Pickup requests section */

.partner-pickup {
  margin-top: 28px;
}

.partner-pickup__header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.partner-pickup__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.partner-pickup__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-pickup__filter {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.partner-pickup__filter--active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.partner-pickup__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-pickup__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}

.partner-pickup__card--urgent {
  border-color: rgba(169, 50, 38, 0.45);
}

.partner-pickup__card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.partner-pickup__card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.partner-pickup__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.partner-pickup__comment {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.partner-pickup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-pickup__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(31, 78, 121, 0.1);
  color: #1f4e79;
  font-size: 12px;
  font-weight: 600;
}

.partner-pickup__badge--urgent {
  background: rgba(192, 57, 43, 0.12);
  color: #a93226;
}

.partner-pickup__empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-card);
}

/* Catalog section */

.partner-catalog {
  margin-top: 32px;
}

.partner-catalog__header {
  margin-bottom: 16px;
}

.partner-catalog__search {
  margin-bottom: 16px;
  max-width: 520px;
}

.partner-catalog__title {
  font-size: 20px;
  margin-bottom: 4px;
}

.partner-catalog__meta {
  font-size: 13px;
  color: var(--text-muted);
}

.partner-catalog__tabs {
  margin-top: 8px;
  margin-bottom: 8px;
  display: inline-flex;
  gap: 6px;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.partner-catalog__tab {
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s ease;
}

.partner-catalog__tab--active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 2px 8px rgba(245, 180, 0, 0.3);
}

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

.partner-catalog__grid--spareparts {
  display: none;
}

@media (max-width: 1024px) {
  .partner-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .partner-catalog__grid {
    grid-template-columns: 1fr;
  }
}

/* Reuse car-card styles, add modifications */

.car-card--partner {
  position: relative;
}

.car-card__edit {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  font-size: 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0,0,0,0.65);
  background: rgba(0,0,0,0.85);
  color: var(--text-main);
  cursor: pointer;
}

.car-card--add {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--border-subtle);
  background: rgba(0,0,0,0.4);
}

.car-card--add .car-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.car-card--add-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.car-card--add-title {
  font-size: 15px;
}

.car-card__top-btns {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.car-card__edit {
  position: static;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0,0,0,0.65);
  background: rgba(0,0,0,0.85);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.car-card__edit:hover {
  background: rgba(0,0,0,0.95);
}

.car-card__delete {
  position: static;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(220, 53, 69, 0.8);
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.car-card__delete:hover {
  background: rgba(220, 53, 69, 1);
  border-color: rgba(220, 53, 69, 1);
  transform: scale(1.05);
}

.postpone-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.postpone-modal--visible {
  display: flex;
}

.postpone-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.postpone-modal__content {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.postpone-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.postpone-modal__title {
  margin: 0;
  font-size: 22px;
  color: var(--accent);
}

.postpone-modal__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.postpone-modal__text,
.postpone-modal__label {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.postpone-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.postpone-modal__actions .btn {
  flex: 1;
}

.postpone-modal__reason {
  resize: vertical;
  min-height: 72px;
}

.lead-view-resume-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  display: none;
}

.lead-view-resume-hint--visible {
  display: block;
}

/* Responsive profile */

@media (max-width: 768px) {
  .partner-page {
    padding: 28px 0 40px;
  }
  .partner-profile__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .avatar-upload {
    margin-bottom: 8px;
  }
}

/* Avatar edit icon top-right */
.avatar-upload__edit {
  top: 10px;
  bottom: auto;
  right: 10px;
  font-size: 14px;
  padding: 6px 8px;
}

/* Hover animation for product edit button */
.car-card__edit {
  transition: background-color .2s ease, transform .2s ease;
}
.car-card__edit:hover {
  background-color: rgba(245,180,0,0.85);
  transform: scale(1.05);
}

/* ADMIN PAGE */

.admin-page {
  padding: 40px 0 60px;
  background: var(--bg-section);
  min-height: 100vh;
}

.admin-layout {
  max-width: 1040px;
  margin: 0 auto;
}

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

.admin-header__title {
  font-size: 22px;
  margin-bottom: 6px;
}

.admin-header__subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

@media (min-width: 769px) {
  .admin-header__actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

.admin-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  padding: 4px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.admin-tabs__btn {
  flex: 1;
  min-width: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-tabs__btn--active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 2px 8px rgba(245, 180, 0, 0.3);
}

.admin-tabs__btn:hover:not(.admin-tabs__btn--active) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.admin-crm-btn {
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Мобильные стили */
@media (max-width: 768px) {
  .admin-header__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
  
  .admin-tabs {
    width: 100%;
    max-width: 100%;
  }
  
  .admin-tabs__btn {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .admin-crm-btn {
    width: 100%;
    max-width: 100%;
  }
}

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

/* responsive columns */
@media (max-width: 1024px) {
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* create-card */
.admin-card--create {
  border-style: dashed;
  border-width: 1px;
  border-color: var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.admin-card--create:hover {
  border-color: var(--accent);
  background-color: rgba(245, 180, 0, 0.06);
  transform: translateY(-1px);
}

.admin-card--create-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 6px;
}

.admin-card--create-text {
  font-size: 14px;
}

/* view mode rows */

.admin-card__name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.admin-card__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.admin-card__label {
  color: var(--text-muted);
}

.admin-card__value {
  text-align: right;
}

/* actions */

.admin-card__actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-card__btn {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.admin-card__btn--edit:hover {
  background-color: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.admin-card__btn--delete {
  border-color: #6b1f1f;
}

.admin-card__btn--delete:hover {
  background-color: #b32626;
  border-color: #b32626;
  transform: translateY(-1px);
}

/* edit/create mode inputs */

.admin-card__field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-card__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-card__field-label {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-card__field-input {
  width: 100%;
  font-size: 13px;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-main);
}

.admin-card__field-input::placeholder {
  color: #666666;
}

/* admin: partner type checkboxes */
.admin-card__field-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.admin-card__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.admin-card__checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  outline: none;
  margin: 0;
  cursor: pointer;
}

.admin-card__checkbox input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.admin-card__checkbox span {
  white-space: nowrap;
}


/* mobile spacing */
@media (max-width: 768px) {
  .admin-page {
    padding: 28px 0 40px;
  }
}


/* LK HEADER */

.lk-header {
  width: 100%;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  margin-bottom: 24px;
}

.lk-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lk-header__logo {
  font-size: 20px;
  font-weight: 600;
}

.lk-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-switch__btn {
  padding: 6px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-switch__btn:hover {
  background: rgba(245, 180, 0, 0.1);
}

.lang-switch__btn--active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 2px 8px rgba(245, 180, 0, 0.3);
}

/* Currency switch */
.price-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input-wrapper .input {
  flex: 1;
}

.currency-switch {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.currency-switch__btn {
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 40px;
  text-align: center;
}

.currency-switch__btn:hover {
  background: rgba(245, 180, 0, 0.1);
}

.currency-switch__btn--active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 2px 8px rgba(245, 180, 0, 0.3);
}

.lk-header__logout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: 0.2s ease;
}

.lk-header__crm-switch {
  appearance: none;
  border: 1px solid var(--accent, #c4a574);
  background: transparent;
  color: var(--text-main);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 8px;
}

.lk-header__crm-switch:hover {
  background: var(--accent, #c4a574);
  color: #000;
}

.lk-header__logout:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.lk-header__icon {
  font-size: 14px;
}

/* LOGIN PAGE */
.login-page {
  min-height: 100vh;
  background: var(--bg-section);
  display:flex;
  align-items:center;
  justify-content:center;
}
.login-box {
  background: var(--bg-card);
  padding:40px;
  border-radius:var(--radius-card);
  text-align:center;
  width:340px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.login-title { font-size:18px; font-weight:600; }
.login-input {
  width:100%; padding:12px 16px; border-radius:50px;
  border:1px solid var(--border-subtle); background:#fff;
}
.login-button {
  padding:12px 16px; border-radius:50px; border:none;
  background:#fff; cursor:pointer; transition:.2s;
}
.login-button:hover { background:var(--accent); color:#000; }


/* Car page header layout */
.car-page__header {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.car-page__header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.car-page__title {
  margin-bottom: 0;
}

.car-page__subtitle {
  margin-top: 4px;
}

/* Finance full-width section already uses background; ensure it spans full width */
.finance {
  width: 100%;
}

/* Center finance-slide images vertically */
.finance-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Finance lists without default bullets */


/* Mobile: round images in finance slider stronger */
@media (max-width: 640px) {
  .finance-slide img {
    border-radius: 30px;
  }
}

.finance-list {
  list-style: none;
  padding-left: 0;
}
.finance-list li {
  position: relative;
  padding-left: 24px;
  margin: 6px 0;
}
.finance-list li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
}


/* Added improvements */

/* Finance full-width background */
.finance {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Finance slide images rounding on mobile */
@media(max-width:768px){
  .finance-slide img {
    border-radius:30px;
  }
}

/* Ensure finance-slide images are vertically centered */
.finance-slide {
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Modern gallery thumbs */
.car-gallery__thumb img {
  border-radius:12px;
  object-fit:cover;
}

/* Car-summary height sync placeholder */

/* Desktop vertical centering for finance slider */
@media (min-width: 961px) {
  .finance__slider-wrapper {
    display: flex;
    align-items: center;
  }
  .finance-slider {
    width: 100%;
  }
  .finance-slider__track {
    display: flex;
    align-items: center;
  }
}

/* Mobile: finance-slide image border-radius 30px */
@media (max-width: 960px) {
  .finance-slide img {
    border-radius: 30px !important;
  }
}

/* Desktop: equal heights for gallery and summary */
@media (min-width: 961px) {
  .car-page__top {
    align-items: stretch;
  }
  .car-gallery,
  .car-summary {
    height: 100%;
  }
}

/* Desktop: match car-summary height to main gallery image */
@media (min-width: 961px) {
  .car-summary {
    min-height: 360px;
  }
}


