html {
  scroll-behavior: smooth;
}

body.auction-portal-page {
  --ap-primary: var(--primary-color1, #f28f16);
  --ap-primary-deep: #c56d05;
  --ap-secondary: #113f87;
  --ap-secondary-deep: #0b2856;
  --ap-ink: var(--title-color, #13141a);
  --ap-muted: var(--text-color, #5e5e5e);
  --ap-border: rgba(17, 63, 135, 0.12);
  --ap-surface: #ffffff;
  --ap-surface-soft: #f6f8fc;
  --ap-surface-warm: #fff8ef;
  --ap-shadow: 0 24px 56px rgba(10, 31, 63, 0.1);
  --ap-shadow-soft: 0 14px 30px rgba(10, 31, 63, 0.08);
  --ap-radius-xl: 30px;
  --ap-radius-lg: 24px;
  --ap-radius-md: 18px;
  --ap-radius-sm: 14px;
  --ap-header-height: 112px;
  margin: 0;
  min-height: 100vh;
  color: var(--ap-ink);
  background:
    radial-gradient(circle at top left, rgba(242, 143, 22, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(17, 63, 135, 0.09), transparent 32%),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fb 46%, #f8f3eb 100%);
  font-family: var(--font-montserrat, "Montserrat", sans-serif);
}

body.auction-portal-page *,
body.auction-portal-page *::before,
body.auction-portal-page *::after {
  box-sizing: border-box;
}

body.auction-portal-page img {
  display: block;
  max-width: 100%;
}

body.auction-portal-page a {
  color: inherit;
  text-decoration: none;
}

body.auction-portal-page button,
body.auction-portal-page input {
  font: inherit;
}

body.auction-portal-page p {
  font-family: var(--font-open-sans, "Open Sans", sans-serif);
}

body.auction-portal-page [hidden] {
  display: none !important;
}

body.auction-portal-page.ap-modal-open {
  overflow: hidden;
}

body.auction-portal-page .btn {
  box-shadow: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ap-page,
.ap-hero,
.ap-section,
#home,
#about,
#auctions,
#contact {
  scroll-margin-top: 150px;
}

.ap-page {
  padding-bottom: 72px;
}

.ap-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  backdrop-filter: blur(18px);
}

.ap-header__utility {
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(90deg, #0e2c5f 0%, #113f87 55%, #1d5cc0 100%);
}

.ap-header__utility-inner {
  padding: 12px 0;
  font-size: 14px;
}

.ap-header__utility-inner marquee {
  display: block;
  width: 100%;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.ap-header__utility-inner a {
  font-weight: 700;
  color: #fff;
  margin-left: 18px;
}

.ap-header__utility-inner .bi {
  vertical-align: middle;
}

.ap-header__utility-inner a:hover {
  color: #fff3d6;
}

.ap-navbar {
  position: relative;
  padding: 5px 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ap-shadow-soft);
}

.ap-brand {
  margin-right: 18px;
}

.ap-brand img {
  width: auto;
  height: 50px;
  max-width: 220px;
  object-fit: contain;
}

.ap-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(17, 63, 135, 0.12);
  border-radius: 16px;
  color: var(--ap-secondary);
  background: rgba(17, 63, 135, 0.06);
}

.ap-nav__toggle i {
  font-size: 1.4rem;
}

.ap-nav__panel {
  align-items: center;
}

.ap-nav__links {
  gap: 4px;
}

.ap-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px !important;
  border-radius: 999px;
  color: var(--ap-ink) !important;
  font-size: 15px;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.ap-nav__link:hover,
.ap-nav__link:focus-visible {
  color: var(--ap-secondary) !important;
  background: rgba(17, 63, 135, 0.08);
  transform: translateY(-1px);
}

.ap-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-btn,
.ap-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.ap-btn:hover,
.ap-btn:focus-visible,
.ap-action-btn:hover,
.ap-action-btn:focus-visible {
  transform: translateY(-2px);
}

.ap-action-btn {
  border: none;
}

.ap-action-btn--full {
  width: 100%;
}

.ap-table-action {
  padding: 10px 18px !important;
  font-size: 14px !important;
}

.ap-view-btn {
  border: none;
  background: transparent;
  padding: 0;
}

.ap-view-btn i {
  color: var(--ap-primary);
  font-size: 16px;
}

.ap-btn--primary {
  color: #fff !important;
  border: 0;
  background: linear-gradient(135deg, var(--ap-primary) 0%, #ffb451 100%);
  box-shadow: 0 16px 32px rgba(242, 143, 22, 0.22);
}

.ap-btn--primary:hover,
.ap-btn--primary:focus-visible {
  box-shadow: 0 18px 34px rgba(242, 143, 22, 0.28);
}

.ap-btn--secondary {
  color: var(--ap-secondary) !important;
  border: 1px solid rgba(17, 63, 135, 0.14);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(17, 63, 135, 0.08);
}

.ap-btn--secondary:hover,
.ap-btn--secondary:focus-visible {
  color: #fff !important;
  border-color: var(--ap-secondary);
  background: var(--ap-secondary);
}

.ap-btn--small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

.ap-btn--full {
  width: 100%;
}

.ap-hero {
  padding: 34px 0 26px;
}

.ap-hero-card,
.ap-spotlight__card,
.ap-feature-card,
.ap-catalog,
.ap-contact,
.ap-contact-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ap-shadow);
}

.ap-hero-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: var(--ap-radius-xl);
}

.ap-hero-card::before,
.ap-hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ap-hero-card::before {
  top: -80px;
  right: -70px;
  width: 220px;
  height: 220px;
  background: rgba(17, 63, 135, 0.07);
}

.ap-hero-card::after {
  bottom: -90px;
  left: -80px;
  width: 240px;
  height: 240px;
  background: rgba(242, 143, 22, 0.08);
}

.ap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ap-secondary);
  background: rgba(17, 63, 135, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ap-kicker--dark {
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.1);
}

.ap-hero-card h1,
.ap-section__heading h2,
.ap-contact__intro h2 {
  margin: 0;
  color: var(--ap-ink);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-title-2.ap-hero-title h1 {
  max-width: 12ch;
  margin-bottom: 12px;
  font-family: var(--font-montserrat, "Montserrat", sans-serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
}

.section-title-2.ap-hero-title p,
.ap-section__heading p,
.ap-feature-card p,
.ap-contact__intro p,
.ap-contact-card p,
.ap-spotlight__body p,
.ap-empty-state p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 16px;
  line-height: 1.75;
}

.section-title-2.ap-hero-title p {
  max-width: 58ch;
  margin-top: 0;
}

.ap-stat {
  height: 100%;
  padding: 18px 20px;
  border: 1px solid rgba(17, 63, 135, 0.1);
  border-radius: 10px;
  background: rgba(246, 248, 252, 0.96);
}

.ap-stat strong {
  display: block;
  color: var(--ap-secondary);
  font-size: 1.8rem;
  line-height: 1;
}

.ap-stat span {
  display: block;
  margin-top: 10px;
  color: var(--ap-muted);
  font-size: 14px;
}

.ap-spotlight__card {
  overflow: hidden;
  height: 100%;
  border-radius: var(--ap-radius-xl);
}

.ap-spotlight__media {
  position: relative;
  min-height: 270px;
  background: linear-gradient(135deg, #173f7d 0%, #0d274f 100%);
}

.ap-spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-spotlight__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 39, 79, 0.04) 0%, rgba(13, 39, 79, 0.64) 100%);
}

.ap-spotlight__media .ap-status {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
}

.ap-spotlight__body {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.ap-spotlight__body h2 {
  margin: 0;
  font-size: 1.35rem;
  font-family: var(--font-montserrat, "Montserrat", sans-serif);
  font-weight: 600;
  line-height: 1.24;
}

.ap-spotlight__eyebrow {
  color: var(--ap-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ap-spotlight__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.ap-spotlight__facts div {
  padding: 14px;
  border-radius: 16px;
  background: var(--ap-surface-soft);
}

.ap-spotlight__facts dt {
  margin-bottom: 6px;
  color: var(--ap-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ap-spotlight__facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.ap-section {
  padding: 28px 0;
}

.ap-section__heading {
  margin-bottom: 24px;
}

.ap-section__heading .section-title-2 h2 {
  margin-bottom: 5px;
}

.ap-feature-card {
  height: 100%;
  padding: 28px;
  border-radius: var(--ap-radius-lg);
}

.ap-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--ap-secondary);
  background: linear-gradient(135deg, rgba(17, 63, 135, 0.12), rgba(242, 143, 22, 0.16));
  font-size: 24px;
}

.ap-feature-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-montserrat, "Montserrat", sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.ap-catalog {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--ap-radius-xl);
}

.ap-catalog::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 63, 135, 0.03), transparent 26%),
    linear-gradient(180deg, transparent 62%, rgba(242, 143, 22, 0.03) 100%);
  pointer-events: none;
}

.ap-catalog__content,
.ap-catalog__summary,
.ap-catalog__controls,
.ap-loading,
.ap-empty-state {
  position: relative;
  z-index: 1;
}

.ap-catalog__summary {
  margin-bottom: 20px;
}

.ap-catalog__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ap-primary-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ap-catalog__summary h3 {
  margin: 0;
  font-family: var(--font-montserrat, "Montserrat", sans-serif);
  font-size: clamp(2rem, 4vw, 2.4rem);
  font-weight: 700;
}

.ap-catalog__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(17, 63, 135, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(17, 63, 135, 0.08);
}

.ap-filter-tabs,
.ap-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ap-filter-tab,
.ap-view-switch__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ap-muted);
  background: var(--ap-surface-soft);
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.ap-filter-tab strong {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ap-secondary);
  background: rgba(17, 63, 135, 0.1);
  font-size: 12px;
  text-align: center;
}

.ap-filter-tab:hover,
.ap-filter-tab:focus-visible,
.ap-view-switch__button:hover,
.ap-view-switch__button:focus-visible {
  color: var(--ap-secondary);
  transform: translateY(-1px);
}

.ap-filter-tab.is-active,
.ap-view-switch__button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--ap-secondary) 0%, #2667cb 100%);
  box-shadow: 0 16px 28px rgba(17, 63, 135, 0.22);
}

.ap-filter-tab.is-active strong {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.ap-loading {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

html.auction-js .ap-catalog.is-loading .ap-loading {
  display: grid;
}

html.auction-js .ap-catalog.is-loading .ap-catalog__content {
  display: none;
}

.ap-skeleton-card {
  padding: 20px;
  border-radius: var(--ap-radius-lg);
  background: #fff;
  box-shadow: var(--ap-shadow-soft);
}

.ap-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #ecf1f7;
}

.ap-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: ap-shimmer 1.2s infinite;
}

.ap-skeleton--media {
  height: 220px;
  margin-bottom: 18px;
}

.ap-skeleton--line {
  height: 14px;
  margin-top: 12px;
}

.ap-skeleton--line-lg {
  width: 72%;
}

.ap-skeleton--line-sm {
  width: 48%;
}

@keyframes ap-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.ap-view-panel:not(.is-active) {
  display: none;
}

.ap-auction-grid > [data-auction-card][hidden] {
  display: none !important;
}

.product-card5.ap-auction-card {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.product-card5.ap-auction-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(10, 31, 63, 0.14);
}

.ap-auction-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #183e7d, #10284f);
}

.ap-auction-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ap-auction-card:hover .ap-auction-card__media img {
  transform: scale(1.04);
}

.ap-auction-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 63, 0.03) 0%, rgba(10, 31, 63, 0.56) 100%);
}

.ap-auction-card__badges {
  position: absolute;
  inset: 18px 18px auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ap-auction-card__body {
  display: grid;
  gap: 16px;
  padding: 15px;
}

.ap-auction-card .product-content h6 {
  margin-bottom: 15px;
  line-height: 1;
}

.ap-auction-card .product-content h6 a {
  display: inline-block;
  min-height: 38px;
}

.ap-auction-features.features {
  padding-top: 18px !important;
  padding-bottom: 10px !important;
}

.ap-auction-features.features li {
  align-items: flex-start !important;
  gap: 8px !important;
  padding-right: 10px;
}

.ap-auction-features.features li i {
  color: var(--ap-primary);
  font-size: 14px;
  line-height: 18px;
}

.ap-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 143, 22, 0.18);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(242, 143, 22, 0.1) 0%, rgba(255, 248, 237, 0.96) 100%);
}

.ap-countdown__label {
  color: var(--ap-primary-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ap-countdown__value {
  color: var(--ap-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ap-auction-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.ap-status,
.ap-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ap-status--live {
  color: #fff;
  background: linear-gradient(135deg, var(--ap-primary) 0%, #ffbf64 100%);
}

.ap-status--upcoming {
  color: #fff;
  background: linear-gradient(135deg, var(--ap-secondary) 0%, #2a69ce 100%);
}

.ap-pill {
  color: #fff;
  background: rgba(10, 31, 63, 0.58);
  backdrop-filter: blur(8px);
}

.ap-pill--ghost {
  color: var(--ap-secondary);
  background: rgba(17, 63, 135, 0.08);
}

.ap-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(17, 63, 135, 0.1);
  border-radius: var(--ap-radius-lg);
  background: #fff;
  box-shadow: var(--ap-shadow-soft);
}

.ap-auction-table {
  width: 100%;
  border-collapse: collapse;
}

.ap-auction-table thead th {
  padding: 18px 16px;
  color: var(--ap-muted);
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f7fb 100%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.ap-auction-table tbody tr {
  transition: background-color 0.25s ease;
}

.ap-auction-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(17, 63, 135, 0.08);
}

.ap-auction-table tbody tr:hover {
  background: rgba(17, 63, 135, 0.025);
}

.ap-auction-table td {
  padding: 18px 16px;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.6;
}

.ap-table__image {
  width: 88px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
}

.ap-table__name {
  display: grid;
  gap: 4px;
}

.ap-table__name strong {
  color: var(--ap-ink);
}

.ap-table__name span {
  color: var(--ap-muted);
  font-size: 13px;
}

.ap-empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 52px 24px;
  border: 1px dashed rgba(17, 63, 135, 0.18);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.96));
  text-align: center;
}

.ap-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--ap-secondary);
  background: rgba(17, 63, 135, 0.08);
  font-size: 28px;
}

.ap-empty-state h3 {
  margin: 0;
  font-size: 1.5rem;
}

.ap-contact {
  padding: 28px;
  border-radius: var(--ap-radius-xl);
}

.ap-contact__intro {
  display: grid;
  align-content: start;
  gap: 16px;
  height: 100%;
}

.ap-contact__intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.ap-contact__intro .section-title-2 p {
  margin-bottom: 0;
}

.ap-contact-card {
  height: 100%;
  padding: 24px 22px;
  border-radius: 22px;
}

.ap-contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 18px;
  color: var(--ap-primary);
  background: rgba(242, 143, 22, 0.12);
  font-size: 22px;
}

.ap-contact-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ap-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ap-contact-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.ap-contact-card a:hover {
  color: var(--ap-secondary);
}

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

.ap-modal__overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(6, 15, 29, 0.76);
  transition: opacity 0.25s ease;
}

.ap-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 185, 95, 0.2), transparent 28%),
    linear-gradient(160deg, #0f2a56 0%, #112f62 48%, #0a2147 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: scale(0.94);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.ap-modal.is-visible .ap-modal__overlay {
  opacity: 1;
}

.ap-modal.is-visible .ap-modal__dialog {
  opacity: 1;
  transform: scale(1);
}

.ap-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.ap-modal__close:hover,
.ap-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.ap-modal__header {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
  padding-right: 36px;
}

.ap-modal__header h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  line-height: 1.15;
}

.ap-modal__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.ap-login-form {
  display: grid;
  gap: 18px;
}

.ap-form-field {
  display: grid;
  gap: 10px;
}

.ap-form-field label {
  font-size: 14px;
  font-weight: 700;
}

.ap-form-field input {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.ap-form-field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.ap-form-field input:focus {
  border-color: rgba(255, 189, 95, 0.72);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(242, 143, 22, 0.12);
}

.ap-form-field.is-invalid input {
  border-color: rgba(255, 112, 112, 0.92);
  background: rgba(255, 112, 112, 0.08);
}

.ap-form-field__message {
  display: none;
  margin: 0;
  color: #ffb5b5;
  font-size: 13px;
}

.ap-form-field.is-invalid .ap-form-field__message {
  display: block;
}

.ap-password-field {
  position: relative;
}

.ap-password-field input {
  padding-right: 78px;
}

.ap-password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  color: #ffcf91;
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-50%);
}

.ap-login-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ap-login-form__meta a {
  color: #ffd8a5;
  font-size: 14px;
  font-weight: 700;
}

.ap-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.ap-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--ap-primary);
}

@media (min-width: 992px) {
  .ap-catalog__controls {
    position: sticky;
    top: calc(var(--ap-header-height) + 20px);
    z-index: 10;
  }
}

@media (max-width: 1199.98px) {
  .section-title-2.ap-hero-title h1 {
    max-width: 14ch;
  }

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

@media (max-width: 991.98px) {
  body.auction-portal-page {
    --ap-header-height: 90px;
  }

  .ap-page,
  .ap-hero,
  .ap-section,
  #home,
  #about,
  #auctions,
  #contact {
    scroll-margin-top: 116px;
  }

  .ap-navbar {
    padding: 14px 14px;
  }

  .ap-nav__panel {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(17, 63, 135, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--ap-shadow-soft);
  }

  .ap-nav__links {
    gap: 6px;
  }

  .ap-nav__link {
    justify-content: flex-start;
    width: 100%;
  }

  .ap-nav__actions {
    width: 100%;
  }

  .ap-nav__actions .ap-btn {
    width: 100%;
  }

  .ap-catalog__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .ap-filter-tabs,
  .ap-view-switch {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .ap-page {
    padding-bottom: 52px;
  }

  .ap-hero {
    padding-top: 24px;
  }

  .ap-hero-card,
  .ap-feature-card,
  .ap-catalog,
  .ap-contact,
  .ap-contact-card,
  .ap-spotlight__body,
  .ap-modal__dialog {
    padding: 22px;
  }

  .ap-brand img {
    height: 46px;
  }

  .ap-spotlight__facts,
  .ap-loading {
    grid-template-columns: 1fr;
  }

  .ap-filter-tabs,
  .ap-view-switch {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ap-filter-tab,
  .ap-view-switch__button {
    justify-content: space-between;
    width: 100%;
  }

  .ap-auction-card__footer,
  .ap-countdown {
    flex-direction: column;
    align-items: flex-start;
  }

  .ap-auction-table,
  .ap-auction-table thead,
  .ap-auction-table tbody,
  .ap-auction-table tr,
  .ap-auction-table th,
  .ap-auction-table td {
    display: block;
    width: 100%;
  }

  .ap-auction-table thead {
    display: none;
  }

  .ap-auction-table tbody {
    display: grid;
    gap: 14px;
    padding: 16px;
  }

  .ap-auction-table tbody tr {
    padding: 16px;
    border: 1px solid rgba(17, 63, 135, 0.1);
    border-radius: 18px;
    background: #fff;
  }

  .ap-auction-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border: 0 !important;
    text-align: right;
  }

  .ap-auction-table td::before {
    content: attr(data-label);
    color: var(--ap-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
  }

  .ap-table__image {
    margin-left: auto;
  }

  .ap-login-form__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ap-modal {
    align-items: end;
  }

  .ap-modal__dialog {
    width: 100%;
    border-radius: 28px 28px 0 0;
  }
}

@media (max-width: 575.98px) {
  .section-title-2.ap-hero-title h1,
  .ap-section__heading h2,
  .ap-contact__intro h2,
  .ap-modal__header h2 {
    max-width: none;
  }

  .ap-catalog__summary h3 {
    font-size: 1.45rem;
  }
}
