/* ============================================
   TEUSubastas — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Syne:wght@600;700;800&display=swap');

/* Banner prototipo (revisión cliente) */
.proto-banner {
  background: rgba(0, 68, 231, 0.06);
  border-bottom: 1px solid rgba(0, 68, 231, 0.15);
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.proto-banner strong { color: var(--accent-warm); }
.proto-banner a { color: var(--accent); }

:root {
  /* Marca TEUS — teuscontainer.com */
  --teus-blue: #0044E7;
  --teus-blue-dark: #0038c0;
  --teus-blue-light: #3369ed;
  --gray-dark: #333333;
  --white: #ffffff;

  --bg-deep: #ffffff;
  --bg-primary: #f8f9fb;
  --bg-secondary: #eef1f6;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f7fa;
  --bg-elevated: #e8ecf2;
  --bg-overlay: rgba(51, 51, 51, 0.52);
  --bg-nav-dark: #333333;
  --border: rgba(51, 51, 51, 0.12);
  --border-accent: rgba(0, 68, 231, 0.28);

  --accent: var(--teus-blue);
  --accent-bright: var(--teus-blue-light);
  --accent-dark: var(--teus-blue-dark);
  --accent-glow: rgba(0, 68, 231, 0.22);
  --accent-subtle: rgba(0, 68, 231, 0.08);

  --accent-warm: #e8734a;
  --accent-warm-bright: #f0936a;
  --accent-warm-dark: #c75a32;
  --accent-warm-glow: rgba(232, 115, 74, 0.28);
  --accent-warm-subtle: rgba(232, 115, 74, 0.1);

  --text-primary: #333333;
  --text-secondary: #555555;
  --text-muted: #777777;
  --text-on-blue: #ffffff;
  --text-on-dark: #ffffff;

  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --warning: var(--accent-warm-bright);
  --sold: #333333;
  --sold-bg: #e2e5ea;
  --sold-border: #b8bcc4;
  --unsold: #b91c1c;
  --unsold-bg: #fde4e4;
  --unsold-border: #f0a8a8;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 32px var(--accent-glow);

  --header-height: 96px;
  --logo-block-h: 68px;
  --logo-teus-h: calc(var(--logo-block-h) * 1.14);
  --logo-macedo-h: calc(var(--logo-block-h) * 0.9);
  --logo-macedo-w: calc(var(--logo-macedo-h) * 1734 / 429);
  --topbar-height: 40px;
  --container: 1280px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  margin-top: 0.75rem;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: rgba(51, 51, 51, 0.06);
  color: var(--text-primary);
}

.btn-ghost:hover { background: rgba(51, 51, 51, 0.1); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn:disabled:not(.btn-sold):not(.btn-unsold), .btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-sold,
.btn-sold:disabled {
  background: var(--sold-bg);
  color: var(--sold);
  border: 1.5px solid var(--sold-border);
  cursor: default;
  opacity: 1;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  box-shadow: none !important;
  transform: none !important;
}

.btn-unsold,
.btn-unsold:disabled {
  background: var(--unsold-bg);
  color: var(--unsold);
  border: 1.5px solid var(--unsold-border);
  cursor: default;
  opacity: 1;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  box-shadow: none !important;
  transform: none !important;
}

.lot-upcoming-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--accent-warm-subtle);
  border: 1px solid rgba(232, 115, 74, 0.35);
  border-left: 4px solid var(--accent-warm);
  border-radius: var(--radius-md);
  pointer-events: none;
  user-select: none;
}

.lot-upcoming-notice-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(232, 115, 74, 0.25);
}

.lot-upcoming-notice-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-warm-dark);
  margin-bottom: 0.2rem;
}

.lot-upcoming-notice-date {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
}

.btn-bid {
  background: linear-gradient(135deg, var(--accent-warm-bright), var(--accent-warm-dark));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--accent-warm-glow);
}

.btn-secondary {
  background: var(--gray-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: #444444;
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Top Bar ---- */
.topbar {
  position: relative;
  z-index: 1000;
  background: var(--teus-blue);
  color: var(--text-on-blue);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}

.topbar a { color: var(--text-on-blue); }

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-contact a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.95;
}

.topbar-contact a:hover { opacity: 1; text-decoration: underline; }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-user span { font-weight: 500; }

/* ---- Header / Nav ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--teus-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow-x: clip;
}

.header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logos nav actions";
  align-items: center;
  min-height: var(--header-height);
  height: auto;
  padding-block: 0.5rem;
  gap: 0.65rem 1rem;
}

.header-logos {
  display: flex;
  align-items: center;
  grid-area: logos;
  flex-shrink: 0;
  gap: 0.4rem;
  height: var(--logo-teus-h);
}

.header-logos .logo {
  gap: 0;
}

.header .logo--macedo,
.header .logo--teus-header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header .logo--macedo {
  min-width: 0;
}

.logo-powered--header {
  line-height: 0;
}

.header .logo--macedo .logo-brand {
  display: block;
  width: var(--logo-macedo-w);
  height: var(--logo-macedo-h);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.header .logo--macedo .logo-img--macedo {
  display: block;
  height: var(--logo-macedo-h);
  width: var(--logo-macedo-w);
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.header .logo--teus-header .logo-powered {
  display: block;
  height: var(--logo-teus-h);
  position: relative;
}

.header .logo-img--teus-header {
  display: block;
  height: var(--logo-teus-h);
  width: auto;
  object-fit: contain;
}

/* Logos header/footer: sin blend, filtros ni fondos artificiales */
.header-logos,
.header .logo--macedo .logo-brand,
.header .logo--teus-header .logo-powered,
.footer-brand .logo-brand,
.footer-brand .logo-powered,
.footer-bottom .logo-powered {
  background: none;
  border-radius: 0;
}

.header .logo--macedo .logo-brand::after,
.header .logo--teus-header .logo-powered::after,
.footer-brand .logo-brand::after,
.footer-brand .logo-powered::after,
.footer-bottom .logo-powered::after {
  display: none;
}

.header .logo--macedo .logo-img--macedo,
.footer-brand .logo-img--macedo {
  filter: invert(1);
}

.header .logo-img--teus-header,
.footer-brand .logo-img--teus,
.footer-bottom .logo-img--teus {
  filter: none;
}

.header .nav {
  grid-area: nav;
  justify-self: stretch;
  justify-content: center;
  min-width: 0;
  z-index: 3;
}

.header .header-actions {
  grid-area: actions;
  flex-shrink: 0;
  z-index: 3;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-brand,
.logo-powered {
  position: relative;
  display: inline-flex;
  line-height: 0;
}

.logo-brand::after,
.logo-powered::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 2px;
}

.logo-brand::after {
  background: linear-gradient(135deg, rgba(51, 105, 237, 0.95), rgba(0, 68, 231, 0.9));
  mix-blend-mode: color;
}

.logo-powered::after {
  background: linear-gradient(180deg, var(--teus-blue-light), var(--teus-blue-dark));
  mix-blend-mode: color;
}

.logo-img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.logo-img--macedo {
  filter: invert(1);
}

.logo--footer .logo-img--macedo {
  width: min(260px, 70vw);
  max-height: 56px;
}

.logo-img--teus {
  height: 34px;
  filter: drop-shadow(0 0 8px rgba(0, 114, 188, 0.2));
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.powered-by-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.powered-by--inline {
  margin-top: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.88);
}

.nav a:hover, .nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav a.active { color: var(--white); font-weight: 600; }

.header-actions .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.header-actions .btn-outline:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.header-actions .btn-primary {
  background: var(--white);
  color: var(--teus-blue);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header-actions .btn-primary:hover {
  background: #f0f4ff;
  color: var(--teus-blue-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ---- User Action Bar ---- */
.user-bar {
  background: var(--bg-nav-dark);
  border-bottom: none;
  padding: 0.6rem 0;
  color: var(--text-on-dark);
}

.user-bar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.user-bar a:hover, .user-bar a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.user-bar .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.user-bar-verify {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  padding: 0.4rem 0.65rem 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
}

.user-bar-verify-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.user-bar .verify-resend-btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.user-bar .verify-resend-wait {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.verify-resend-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.verify-resend-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.verify-resend-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

.verify-resend-wait {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.verify-notice {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--accent-warm-subtle);
  border: 1px solid rgba(232, 115, 74, 0.35);
  border-left: 4px solid var(--accent-warm);
  border-radius: var(--radius-md);
}

.verify-notice p {
  margin: 0 0 0.65rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.verify-notice .verify-resend-btn {
  border-color: rgba(0, 68, 231, 0.25);
  background: var(--white);
  color: var(--accent);
}

.verify-notice .verify-resend-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--border-accent);
}

.verify-notice .verify-resend-wait {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.lot-bid-btn--verify {
  opacity: 1;
  cursor: not-allowed;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(51, 51, 51, 0.55) 0%, rgba(51, 51, 51, 0.35) 50%, rgba(0, 68, 231, 0.2) 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 75% at 50% 40%, rgba(0, 0, 0, 0.2) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 80%, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem 1.5rem 2.5rem;
  max-width: 800px;
}

.hero-content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 130%);
  height: 115%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.06) 52%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 25%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 6px 24px rgba(0, 0, 0, 0.22));
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 14px rgba(0, 0, 0, 0.28);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn-secondary {
  background: var(--white);
  color: var(--gray-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.hero-actions .btn-secondary:hover {
  background: var(--bg-secondary);
  color: var(--gray-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
}

.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero carousel arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.hero-nav:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.hero-nav.prev { left: 1.5rem; }
.hero-nav.next { right: 1.5rem; }

/* ---- Sections ---- */
.section {
  padding: 2.5rem 0 3.5rem;
}

.section-dark { background: var(--bg-primary); }
.section-darker { background: var(--bg-secondary); }

.section-header {
  margin-bottom: 2rem;
}

.section-header.center { text-align: center; }
.section-header.center .section-title::after { margin-left: auto; margin-right: auto; }
.section-header.center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---- Auction Cards (Home grid) ---- */
.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.auction-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  group: auction;
}

.auction-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.auction-card:hover .auction-card-bg { transform: scale(1.08); }

.auction-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 1rem 0.95rem;
  background: none;
  border: none;
  transition: opacity var(--transition);
}

.auction-card-overlay::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(8, 12, 22, 0.96) 0%,
    rgba(8, 12, 22, 0.78) 35%,
    rgba(8, 12, 22, 0.45) 62%,
    rgba(8, 12, 22, 0) 100%
  );
}

.auction-card:hover .auction-card-overlay::before {
  background: linear-gradient(
    to top,
    rgba(8, 12, 22, 0.98) 0%,
    rgba(8, 12, 22, 0.82) 35%,
    rgba(8, 12, 22, 0.48) 62%,
    rgba(8, 12, 22, 0) 100%
  );
}

.auction-card-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.status-active {
  background: linear-gradient(135deg, var(--accent-warm-bright), var(--accent-warm-dark));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: pulse-glow 2s infinite;
}

.status-finished {
  background: rgba(8, 16, 32, 0.92);
  color: #e8eef5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.status-upcoming {
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  border: 1px solid rgba(0, 68, 231, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-warm-glow); }
  50% { box-shadow: 0 0 20px 4px var(--accent-warm-glow); }
}

.auction-card h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.auction-card-meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.auction-card-meta {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.auction-card-meta .date { color: #c5d9ff; font-weight: 600; }

.auction-card-remaining {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
}

.auction-card-countdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.auction-card .auction-card-countdown {
  font-weight: 700;
  color: #fcd34d;
}

.auction-card-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #f1f5f9;
  background: rgba(12, 20, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* ---- Institutional ---- */
.institutional {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.institutional-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.institutional-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.institutional-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  opacity: 0.3;
  transform: translate(12px, 12px);
  z-index: -1;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.feature-item h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.feature-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* ---- Lot Cards (Auction detail) ---- */
.auction-header {
  padding: 1.5rem 0 1.5rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.auction-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.auction-header-top:has(+ .auction-header-desc) {
  margin-bottom: 0.65rem;
}

.auction-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--accent);
  flex: 1 1 auto;
  min-width: 0;
}

.auction-header-desc {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  width: 100%;
}

.auction-status-badge {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auction-status-badge.active {
  background: var(--accent-subtle);
  color: var(--accent-bright);
  border: 1px solid var(--border-accent);
}

.auction-status-badge.finished {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.auction-dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.auction-dates-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: min(100%, 14rem);
}

.date-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.date-item .icon {
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.date-item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-item span { font-weight: 600; font-size: 0.95rem; }

.auction-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.auction-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.auction-share-btn:active {
  transform: scale(0.98);
}

.auction-share-btn.is-copied {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
}

.auction-share-btn-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.auction-active-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
}

.auction-active-banner-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: 0 0 0 1px var(--border-accent);
}

.auction-active-banner-content {
  min-width: 0;
  flex: 1;
}

.auction-active-banner-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.auction-active-banner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auction-active-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  transition: color var(--transition);
}

.auction-active-banner-link:hover {
  color: var(--accent);
}

.auction-active-banner-arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.auction-active-banner-link:hover .auction-active-banner-arrow {
  transform: translateX(4px);
}

.lot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  padding: 3rem 0;
}

@media (min-width: 769px) {
  .lot-grid--single {
    grid-template-columns: 1fr;
  }
}

.lot-grid--single .lot-card {
  display: flex;
  flex-direction: column;
}

.lot-grid--single .lot-body {
  order: 1;
}

.lot-grid--single .lot-footer {
  order: 2;
}

.lot-grid--single .lot-gallery {
  order: 3;
  border-top: 1px solid var(--border);
}

.lot-grid--single .lot-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
  padding: 0.35rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

.lot-grid--single .lot-details .row {
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
}

.lot-grid--single .lot-details .row:last-child {
  border-bottom: none;
}

.lot-grid--single .lot-details dt {
  flex: 0 0 auto;
  min-width: 6.5rem;
}

.lot-grid--single .lot-details dd {
  margin-left: 0;
  text-align: right;
  flex: 1 1 auto;
}

.lot-grid--single .lot-countdown-row {
  justify-content: flex-start;
}

.lot-grid--single .lot-countdown-row dd {
  text-align: left;
  flex: 0 0 auto;
  margin-left: 0.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-weight: 700;
}

.lot-grid--single .lot-bid-block {
  margin-top: 0;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.lot-grid--single .lot-ends {
  font-size: 0.88rem;
  line-height: 1.35;
}

.lot-grid--single .lot-bid-msg {
  margin-bottom: 0.65rem !important;
  min-height: 0 !important;
}

.lot-grid--single .lot-bid-form {
  display: grid;
  grid-template-columns: 1fr minmax(9rem, 11rem);
  gap: 0.65rem;
  align-items: stretch;
}

.lot-grid--single .lot-bid-form input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.lot-grid--single .lot-bid-form input::-webkit-outer-spin-button,
.lot-grid--single .lot-bid-form input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.lot-grid--single .lot-bid-form input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.lot-grid--single .lot-bid-form .btn,
.lot-grid--single .lot-bid-form .lot-bid-btn {
  width: auto;
  min-height: 3rem;
  margin: 0;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .lot-grid--single .lot-gallery {
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 0;
  }

  .lot-grid--single .lot-body {
    padding: 2rem 2.25rem 0.75rem;
  }

  .lot-grid--single .lot-footer {
    padding: 0 2.25rem 1.5rem;
  }

  .lot-grid--single .lot-title {
    font-size: 1.55rem;
    margin-bottom: 0.65rem;
  }

  .lot-grid--single .lot-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 72ch;
    margin-bottom: 1.15rem;
  }
}

@media (max-width: 480px) {
  .lot-grid--single .lot-bid-form {
    grid-template-columns: 1fr;
  }

  .lot-grid--single .lot-bid-form .btn,
  .lot-grid--single .lot-bid-form .lot-bid-btn {
    width: 100%;
  }
}

.lot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.lot-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.lot-gallery {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-elevated);
}

.lot-gallery--clickable {
  cursor: zoom-in;
}

.lot-gallery--clickable:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.lot-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lot-gallery img.lot-gallery-placeholder {
  object-fit: contain;
  padding: 1.25rem;
  background: var(--bg-elevated);
}

.auction-card-bg--placeholder {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--bg-elevated);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.lot-card:hover .gallery-nav { opacity: 1; }
.gallery-nav.prev { left: 0.5rem; }
.gallery-nav.next { right: 0.5rem; }

.gallery-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
}

.gallery-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.gallery-dots span.active { background: var(--accent-bright); }

.lot-gallery-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
}

.lot-gallery-zoom {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.55rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.lot-gallery--clickable:hover .lot-gallery-zoom,
.lot-gallery--clickable:focus-visible .lot-gallery-zoom {
  opacity: 1;
}

.lot-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lot-gallery-modal[hidden] {
  display: none;
}

.lot-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.lot-gallery-modal__content {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem;
}

.lot-gallery-modal__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lot-gallery-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lot-gallery-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
}

.lot-gallery-modal__prev { left: 0.25rem; }
.lot-gallery-modal__next { right: 0.25rem; }

.lot-gallery-modal__counter {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
}

body.lot-gallery-modal-open {
  overflow: hidden;
}

.lot-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.lot-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.lot-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.lot-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.lot-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  flex: 1;
}

.lot-details dt {
  color: var(--text-muted);
  display: inline;
}

.lot-details dd {
  display: inline;
  font-weight: 600;
  margin-left: 0.25rem;
}

.lot-details .row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.lot-details .row:last-child { border-bottom: none; }

.lot-shipping-origin-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.lot-shipping-origin-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.lot-winner {
  color: var(--text-secondary);
  font-family: monospace;
  letter-spacing: 0.05em;
}

.lot-footer { padding: 0 1.25rem 1.25rem; }

.lot-bid-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lot-bid-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}

.lot-bid-form .btn {
  width: 100%;
}

.lot-bid-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---- Account Page ---- */
.page-header {
  padding: 1rem 0 1.5rem;
  text-align: center;
}

.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.page-header .divider {
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto;
  border-radius: 2px;
}

.page-header p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.back-link:hover { color: var(--accent-bright); }

.account-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover { border-color: var(--border-accent); color: var(--text-primary); }

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
  color: #fff;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group label .required { color: var(--danger); }

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.field-error {
  font-size: 0.82rem;
  color: var(--danger);
  line-height: 1.4;
  margin: 0;
}

.field-error[hidden] {
  display: none;
}

.form-group--checkbox .field-error {
  padding-left: 1.85rem;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-form .form-group--checkbox {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group textarea { min-height: 140px; resize: vertical; }

.form-row-split {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-link {
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: underline;
}

.form-link:hover { color: var(--accent); }

/* ---- Data Tables ---- */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--bg-elevated);
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(0, 68, 231, 0.04); }
.data-table-action-col {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}
.data-table-action {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 68, 231, 0.06);
}
.data-table-action:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-winning { background: var(--accent-subtle); color: var(--accent-bright); }
.badge-outbid { background: var(--danger-bg); color: var(--danger); }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.filter-bar {
  margin-bottom: 1.5rem;
}

.filter-bar label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.filter-bar select {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
}

/* ---- Auth Pages ---- */
.auth-page {
  min-height: calc(100vh - var(--topbar-height) - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--bg-primary);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.auth-card h1 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-footer a { color: var(--accent-bright); font-weight: 600; }

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  color: #1f1f1f;
  transform: none;
}

.btn-google__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.form-group .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85em;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checkbox-group input { margin-top: 0.2rem; accent-color: var(--accent); }

/* ---- Contact ---- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h4 { margin-bottom: 0.25rem; }
.contact-item p { color: var(--text-secondary); font-size: 0.9rem; }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  margin-top: 1rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: var(--border-accent); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent-bright); }

.faq-question .icon {
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Legal / Terms ---- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent-bright);
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-dark);
  border-top: none;
  padding: 3rem 0 0;
  margin-top: auto;
  color: var(--text-on-dark);
}

.footer > .container {
  padding-bottom: 2rem;
}

.footer-bottom {
  width: 100%;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
  line-height: 1.65;
}

.footer-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-logos .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo--footer .logo-img--teus {
  height: 48px;
  width: auto;
  filter: none;
}

.footer h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.footer a:hover { color: var(--white); }

.footer-phone-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
}

.footer-phone-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  font-weight: 600;
}

.contact-phone-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-phone-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-bottom .powered-by {
  margin: 0 auto;
}

/* ---- WhatsApp FAB ---- */
/* ---- Flash toasts ---- */
.flash-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: auto;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.flash-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.45;
  pointer-events: auto;
  animation: flash-in 0.28s ease-out;
}

.flash-toast-success {
  border-color: rgba(0, 68, 231, 0.25);
  background: #f0f4ff;
}

.flash-toast-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: #fff5f5;
}

.flash-toast-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
}

.flash-toast-success .flash-toast-icon {
  background: var(--teus-blue);
  color: var(--white);
}

.flash-toast-error .flash-toast-icon {
  background: var(--danger);
  color: var(--white);
}

.flash-toast-text {
  flex: 1;
  padding-top: 0.1rem;
}

.flash-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
  margin: -0.15rem -0.15rem 0 0;
}

.flash-toast-close:hover {
  color: var(--text-primary);
}

.flash-toast.is-hiding {
  animation: flash-out 0.22s ease-in forwards;
}

@keyframes flash-in {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flash-out {
  to {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform var(--transition);
}

.whatsapp-fab:hover { transform: scale(1.1); }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

.empty-state--auction {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state-icon {
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 1.65rem;
  line-height: 1;
  flex-shrink: 0;
}

.empty-state--active .empty-state-icon {
  background: var(--accent-subtle);
  box-shadow: 0 0 0 4px rgba(0, 68, 231, 0.06);
}

.empty-state--upcoming .empty-state-icon {
  background: var(--accent-warm-subtle);
  box-shadow: 0 0 0 4px rgba(232, 115, 74, 0.08);
}

.empty-state--finished .empty-state-icon {
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.04);
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.empty-state-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  max-width: 30ch;
}

.empty-state--upcoming {
  border-color: rgba(232, 115, 74, 0.28);
}

.empty-state--finished {
  border-color: var(--border);
  border-style: solid;
}

.auction-lots-empty {
  margin: 1.75rem 0 2.5rem;
}

.auction-lots-empty .empty-state--auction {
  padding: 2.75rem 2rem;
}

.auction-lots-empty .empty-state-text {
  max-width: 40ch;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .institutional { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  :root {
    --logo-block-h: 62px;
    --logo-teus-h: calc(var(--logo-block-h) * 1.14);
    --logo-macedo-h: calc(var(--logo-block-h) * 0.9);
    --logo-macedo-w: calc(var(--logo-macedo-h) * 1734 / 429);
  }

  .header .nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .flash-stack {
    top: 0.75rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    align-items: stretch;
  }

  :root {
    --header-height: auto;
    --header-toggle-space: 2.65rem;
    --logo-block-h: clamp(52px, calc((100vw - 6.25rem - var(--header-toggle-space)) / 4.65), 72px);
    --logo-teus-h: calc(var(--logo-block-h) * 1.14);
    --logo-macedo-h: calc(var(--logo-block-h) * 0.9);
    --logo-macedo-w: calc(var(--logo-macedo-h) * 1734 / 429);
  }

  .header .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logos"
      "actions";
    align-items: center;
    gap: 0.5rem;
    padding-block: 0.55rem;
    position: relative;
  }

  .header-logos {
    grid-area: logos;
    width: 100%;
    max-width: 100%;
    height: var(--logo-teus-h);
    margin: 0;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(0.3rem, 1.2vw, 0.55rem);
    padding: 0 var(--header-toggle-space) 0 0;
    min-width: 0;
  }

  .header .logo--macedo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .header .logo--teus-header {
    flex: 0 0 auto;
  }

  .header .logo--macedo .logo-brand {
    width: var(--logo-macedo-w);
    max-width: 100%;
    height: var(--logo-macedo-h);
  }

  .header .logo--macedo .logo-img--macedo {
    height: var(--logo-macedo-h);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }

  .header .logo--teus-header .logo-powered,
  .header .logo-img--teus-header {
    height: var(--logo-teus-h);
  }

  .header .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    grid-column: 1 / -1;
    background: var(--teus-blue-dark);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
  }

  .header .nav a {
    color: rgba(255, 255, 255, 0.9);
  }

  .nav.open { display: flex; }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 0.55rem;
    right: 1.5rem;
    margin: 0;
    padding: 0.35rem 0.15rem;
    line-height: 1;
    z-index: 4;
  }

  .header-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .header-actions .btn {
    justify-content: center;
    min-width: 0;
  }

  .header-actions .btn-primary:only-of-type,
  .header-actions .btn-outline:only-of-type {
    grid-column: 1 / -1;
  }

  /* Topbar: sin sesión no aporta nada en mobile (contacto oculto) → ocultar */
  .topbar:not(:has(.topbar-user)) {
    display: none;
  }

  .topbar:has(.topbar-user) {
    height: auto;
    padding: 0.4rem 0;
  }

  .topbar:has(.topbar-user) .container {
    justify-content: center;
  }

  .topbar-contact {
    display: none;
  }

  .topbar-user {
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  .auth-page {
    min-height: calc(100vh - var(--header-height));
  }

  .auth-card {
    padding: 1.75rem 1.35rem;
  }

  .auth-card .subtitle {
    margin-bottom: 1.35rem;
  }

  .auth-card .btn-google {
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
    gap: 0.45rem;
  }

  .auth-card .btn-google__icon {
    width: 0.95rem;
    height: 0.95rem;
  }

  .auth-divider {
    margin: 1rem 0;
    font-size: 0.85rem;
  }

  .user-bar .container {
    gap: 0.5rem;
  }

  .user-bar-verify {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    border-radius: var(--radius-md);
    flex-wrap: wrap;
  }

  .user-bar-verify-label {
    white-space: normal;
  }

  .user-bar a {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  .hero-stats { gap: 1.5rem; }
  .hero-nav { display: none; }

  .form-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }

  .auction-header-top { flex-direction: column; }
  .auction-dates {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.15rem 0;
  }

  .auction-dates-meta {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .auction-share-btn {
    width: calc(100% + 2.3rem);
    margin: 0.85rem -1.15rem 0;
    padding: 0.85rem 1.15rem;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--bg-secondary);
  }

  .auction-share-btn:hover {
    background: var(--accent-subtle);
  }

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

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .account-tabs { flex-direction: column; }
  .tab-btn { justify-content: center; }
}

@media (max-width: 480px) {
  :root {
    --header-toggle-space: 2.45rem;
    --logo-block-h: clamp(50px, calc((100vw - 5.5rem - var(--header-toggle-space)) / 4.65), 68px);
  }

  .header-logos {
    padding-right: var(--header-toggle-space);
  }

  .nav-toggle {
    right: 1rem;
  }

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

  .header-actions .btn-outline,
  .header-actions .btn-primary {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* Cotizador de envío */
.shipping-quote-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.shipping-quote-header .divider {
  margin-left: 0;
}

.shipping-quote-intro {
  margin: 0;
  max-width: 62ch;
  color: var(--text-secondary);
  line-height: 1.6;
}

.shipping-quote-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 1rem;
  align-items: start;
}

.shipping-quote-controls {
  grid-column: 1;
  grid-row: 1;
}

.shipping-quote-result {
  grid-column: 1;
  grid-row: 2;
}

.shipping-quote-notices {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shipping-quote-map-wrap {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.shipping-quote-controls,
.shipping-quote-result,
.shipping-quote-notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.shipping-quote-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.shipping-quote-origin-select {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg-card);
}

.shipping-quote-origin-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.shipping-quote-search-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shipping-quote-search {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.shipping-quote-geolocate {
  width: 100%;
  justify-content: center;
}

.shipping-quote-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.shipping-quote-status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.shipping-quote-status--info {
  color: var(--text-secondary);
}

.shipping-quote-status--error {
  color: var(--danger);
}

.shipping-quote-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.shipping-quote-result-row strong {
  text-align: right;
  max-width: 58%;
  word-break: break-word;
}

.shipping-quote-result-row--price {
  align-items: flex-start;
  padding-top: 0.65rem;
  border-bottom: none;
}

.shipping-quote-result-row--price:last-of-type {
  border-bottom: none;
}

.shipping-quote-price-label {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-secondary);
  padding-top: 0.2rem;
}

.shipping-quote-result-row--price strong {
  max-width: none;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--accent);
  white-space: nowrap;
}

.shipping-quote-price-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.shipping-quote-iva-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.shipping-quote-price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
  min-width: 0;
}

.shipping-quote-price-uyu {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.shipping-quote-rate-inline {
  display: block;
  margin-top: 0.35rem;
}

.shipping-quote-formula {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.shipping-quote-formula-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.shipping-quote-currency-note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.shipping-quote-notice__title {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.shipping-quote-notice p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.shipping-quote-notice p strong {
  display: inline;
  font-weight: 700;
  color: var(--text-primary);
}

.shipping-quote-unload-prices {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.shipping-quote-unload-prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.shipping-quote-unload-prices li span {
  color: var(--text-secondary);
}

.shipping-quote-unload-prices li strong {
  display: inline;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.shipping-quote-unload-prices li strong small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.shipping-quote-notice p + .shipping-quote-unload-prices {
  margin-top: 0.5rem;
}

.shipping-quote-map {
  height: min(520px, 70vh);
  width: 100%;
  background: var(--bg-secondary);
}

.shipping-quote-map .leaflet-container {
  font: inherit;
}

.shipping-quote-map .leaflet-pane,
.shipping-quote-map .leaflet-top,
.shipping-quote-map .leaflet-bottom {
  z-index: auto;
}

.shipping-quote-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.legend-dot--origin {
  background: var(--accent);
}

.legend-dot--dest {
  background: var(--accent-warm);
}

.shipping-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 2px solid #fff;
}

.shipping-map-marker--origin {
  background: var(--accent);
  width: 36px !important;
  height: 36px !important;
}

.shipping-map-marker--dest {
  background: var(--accent-warm);
  width: 32px !important;
  height: 32px !important;
}

@media (max-width: 900px) {
  .shipping-quote-layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .shipping-quote-controls {
    grid-column: 1;
    grid-row: 1;
  }

  .shipping-quote-result {
    grid-column: 1;
    grid-row: 2;
  }

  .shipping-quote-map-wrap {
    grid-column: 1;
    grid-row: 3;
  }

  .shipping-quote-notices {
    grid-column: 1;
    grid-row: 4;
  }

  .shipping-quote-map {
    height: 360px;
  }
}
