/* ==========================================================================
   DE CLUB PARFUM · FLAGSHIP DESIGN SYSTEM v5 (BBVA / Wallet / Disney+ / Prime)
   Arquitectura visual de nivel producción: Midnight Sapphire + Champagne Gold,
   superficies traslúcidas multicapa, jerarquía táctil de 4 niveles y modo claro.
   ========================================================================== */
:root {
  /* Paleta Principal Midnight Sapphire (Inspiración BBVA / Disney+ / Prime) */
  --bg-main: #050d1a;
  --bg-surface: #0a172b;
  --bg-card: #0e1f38;
  --bg-elevated: #152b4a;
  --border-hairline: rgba(148, 197, 255, 0.14);
  --border-subtle: rgba(148, 197, 255, 0.08);
  --border-active: rgba(229, 196, 131, 0.62);

  /* Acentos Cromáticos de Alta Gama */
  --gold-accent: #e5c483;
  --gold-bright: #f5dda9;
  --gold-muted: #a88950;
  --accent-cyan: #22d3ee;
  --accent-blue: #1d9bf0;
  --accent-sapphire: #1973b8;

  /* Jerarquía Tipográfica de Alto Contraste */
  --text-main: #f8fafc;
  --text-secondary: #a3b8d4;
  --text-tertiary: #6882a3;

  /* Estados Semánticos */
  --badge-green: #2ecc71;
  --badge-orange: #f59e0b;
  --badge-gray: #7f8c8d;

  /* Geometría y Curvaturas Orgánicas (Wallet / Instagram / iOS) */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));

  /* Tipografía Flagship */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Sistema Táctil de Botones y Controles (Jerarquía BBVA / Wallet) */
  --btn-bg: rgba(16, 36, 66, 0.88);
  --btn-bg-hover: rgba(24, 52, 92, 0.96);
  --btn-border: rgba(148, 197, 255, 0.22);
  --btn-border-hover: rgba(229, 196, 131, 0.65);
  --btn-text: #f8fafc;
  --btn-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --btn-active-bg: linear-gradient(135deg, #f4dca8 0%, #deb873 52%, #c5984e 100%);
  --btn-active-border: rgba(255, 248, 230, 0.78);
  --btn-active-text: #061326;
  --btn-shadow: 0 2px 8px rgba(2, 8, 20, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --btn-active-shadow: 0 6px 18px rgba(222, 184, 115, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);

  /* Sombras Arquitectónicas Multicapa */
  --card-shadow: 0 10px 28px rgba(2, 8, 20, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --card-shadow-hover: 0 16px 36px rgba(2, 8, 20, 0.58), 0 0 0 1px rgba(229, 196, 131, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   MODO CLARO · BBVA DAYLIGHT & FOTOCASA / GMAIL PORCELAIN
   ========================================================================== */
body.theme-light {
  --bg-main: #f2f6fc;
  --bg-surface: #e6eef9;
  --bg-card: #ffffff;
  --bg-elevated: #dbe7f7;
  --border-hairline: rgba(11, 37, 75, 0.11);
  --border-subtle: rgba(11, 37, 75, 0.06);
  --border-active: rgba(154, 110, 34, 0.55);

  --gold-accent: #94681d;
  --gold-bright: #b07d27;
  --gold-muted: #755216;
  --accent-cyan: #0284c7;
  --accent-blue: #0066cc;
  --accent-sapphire: #072146;

  --text-main: #072146;
  --text-secondary: #3b5374;
  --text-tertiary: #677f9e;

  --btn-bg: #e9f0fa;
  --btn-bg-hover: #dbe7f7;
  --btn-border: rgba(11, 37, 75, 0.16);
  --btn-border-hover: rgba(148, 104, 29, 0.55);
  --btn-text: #072146;
  --btn-active-bg: linear-gradient(135deg, #0b2d5c 0%, #144687 100%);
  --btn-active-border: #072146;
  --btn-active-text: #ffffff;
  --btn-shadow: 0 2px 6px rgba(7, 33, 70, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --btn-active-shadow: 0 6px 16px rgba(11, 45, 92, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);

  --card-shadow: 0 8px 24px rgba(7, 33, 70, 0.06), 0 1px 3px rgba(7, 33, 70, 0.04);
  --card-shadow-hover: 0 14px 32px rgba(7, 33, 70, 0.11), 0 0 0 1px rgba(20, 70, 135, 0.20);
}

body.theme-light .app-header {
  background: rgba(242, 246, 252, 0.88);
  border-bottom-color: rgba(11, 37, 75, 0.09);
}

body.theme-light .app-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(7, 33, 70, 0.08);
}

body.theme-light .bottom-nav {
  background: rgba(255, 255, 255, 0.94);
  border-top-color: rgba(11, 37, 75, 0.10);
  box-shadow: 0 -6px 24px rgba(7, 33, 70, 0.06);
}

body.theme-light .card-stage {
  background: radial-gradient(circle at 50% 44%, rgba(25, 115, 184, 0.14) 0%, rgba(219, 231, 247, 0.65) 58%, transparent 82%), linear-gradient(180deg, #eef3fb 0%, #dfe9f6 100%) !important;
  border-bottom-color: rgba(11, 37, 75, 0.08);
}

body.theme-light .card-stage svg {
  filter: drop-shadow(0 8px 14px rgba(7, 33, 70, 0.16));
}

body.theme-light .clean-modal-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
  border-color: rgba(11, 37, 75, 0.14);
  box-shadow: 0 28px 70px rgba(7, 33, 70, 0.22), inset 0 1px 0 #ffffff;
}

body.theme-light .notif-dropdown-panel {
  background: #ffffff;
  border-color: rgba(11, 37, 75, 0.16);
  box-shadow: 0 22px 54px rgba(7, 33, 70, 0.18);
}

body.theme-light .card-perfume,
body.theme-light .card-perfume-list {
  background: #ffffff !important;
  box-shadow: var(--card-shadow);
}

body.theme-light .hero-stat-pill {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(7, 33, 70, 0.05);
}

body.theme-light .catalog-hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #eaf2fc 100%);
  border-color: rgba(20, 70, 135, 0.15);
  box-shadow: var(--card-shadow);
}

/* ==========================================================================
   RESET GLOBAL Y ATMÓSFERA DEL LIENZO
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  background-image:
    radial-gradient(ellipse 85% 420px at 50% -90px, rgba(25, 115, 184, 0.22) 0%, rgba(14, 165, 233, 0.06) 48%, transparent 80%),
    radial-gradient(circle 520px at 92% 12%, rgba(229, 196, 131, 0.06) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.theme-light {
  background-image:
    radial-gradient(ellipse 85% 380px at 50% -100px, rgba(25, 115, 184, 0.10) 0%, transparent 75%),
    radial-gradient(circle 460px at 90% 8%, rgba(180, 136, 52, 0.06) 0%, transparent 70%);
}

/* Scrollbars finos de estilo nativo */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 197, 255, 0.20);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 196, 131, 0.45);
}

/* Números tabulares para precios, gramos, sprays y KPIs (estilo BBVA / Wallet) */
.kpi-num,
.hero-stat-pill strong,
.card-price-pvp,
.notif-badge-dot,
.vitrina-shelf-count,
.zone-count {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   HEADER CRISTALINO CON ELEVACIÒN DINÁMICA AL HACER SCROLL
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 13, 26, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-hairline);
  padding: calc(11px + var(--safe-top)) 20px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), border-color 0.25s ease;
}

.app-header.is-scrolled {
  background: rgba(7, 18, 36, 0.94);
  border-bottom-color: rgba(148, 197, 255, 0.22);
  box-shadow: 0 10px 30px rgba(2, 6, 16, 0.55);
}

.brand-col {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.12;
  background: linear-gradient(135deg, #ffffff 0%, #e2ecfa 58%, #e5c483 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text-main);
}

body.theme-light .brand-name {
  background: linear-gradient(135deg, #072146 0%, #144687 65%, #94681d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-accent);
  opacity: 0.92;
  margin-top: 1px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-pill, .notif-pill {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--btn-shadow);
  transition: all 0.2s var(--ease-spring);
}

.currency-pill:hover, .notif-pill:hover, .user-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
  transform: translateY(-1px);
}

.notif-badge-dot {
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
  color: #041022;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.45);
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  border-radius: var(--radius-full);
  padding: 4px 12px 4px 5px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.avatar-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3d9a4 0%, #c99d52 100%);
  color: #061326;
  font-weight: 800;
  font-size: 11px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL Y TIPOGRAFÍA EDITORIAL MODERNA
   ========================================================================== */
.main-wrapper {
  flex: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 16px calc(92px + var(--safe-bottom));
}

.catalog-hero-banner {
  background:
    radial-gradient(circle at 92% 18%, rgba(34, 211, 238, 0.14) 0%, transparent 55%),
    linear-gradient(135deg, rgba(25, 64, 118, 0.55) 0%, rgba(11, 25, 46, 0.96) 100%);
  border: 1px solid rgba(148, 197, 255, 0.20);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--card-shadow);
}

.hero-stats-row {
  display: flex;
  gap: 10px;
}

.hero-stat-pill {
  background: rgba(6, 15, 30, 0.68);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.hero-stat-pill strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--gold-accent);
}

.hero-stat-pill span {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.section-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent-cyan);
  margin-bottom: 4px;
  font-weight: 800;
}

.section-h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
  color: var(--text-main);
  line-height: 1.2;
}

.section-p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   INPUTS, SELECTORES Y FORMULARIOS (CORRECCIÓN MURO + FOCUS GLOW BBVA)
   ========================================================================== */
.catalog-controls-grid {
  display: grid;
  grid-template-columns: 1fr 220px 210px;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 780px) {
  .catalog-controls-grid {
    grid-template-columns: 1fr;
  }
}

.clean-input,
.search-input-box,
.clean-select,
textarea.clean-input,
input.clean-input {
  font-family: var(--font-sans);
  background: rgba(9, 21, 40, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.45;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-spring), background 0.2s ease;
}

body.theme-light .clean-input,
body.theme-light .search-input-box,
body.theme-light .clean-select,
body.theme-light textarea.clean-input,
body.theme-light input.clean-input {
  background: #ffffff;
  border-color: rgba(11, 37, 75, 0.16);
  color: var(--text-main);
  box-shadow: inset 0 1px 2px rgba(7, 33, 70, 0.04);
}

.clean-input::placeholder,
.search-input-box::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
}

.clean-select {
  cursor: pointer;
}

.clean-select option {
  background: var(--bg-surface);
  color: var(--text-main);
}

body.theme-light .clean-select option {
  background: #ffffff;
  color: #072146;
}

.clean-input:focus,
.search-input-box:focus,
.clean-select:focus,
textarea.clean-input:focus {
  border-color: var(--accent-cyan);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.theme-light .clean-input:focus,
body.theme-light .search-input-box:focus,
body.theme-light .clean-select:focus,
body.theme-light textarea.clean-input:focus {
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.14);
}

/* Buscador Predictivo Instantáneo */
.search-container {
  position: relative;
  margin-bottom: 14px;
}

.search-input-box {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 13.5px;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: var(--text-tertiary);
  pointer-events: none;
}

.predictive-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(10, 23, 43, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 48px rgba(2, 6, 16, 0.85);
  z-index: 45;
  max-height: 310px;
  overflow-y: auto;
  display: none;
}

body.theme-light .predictive-dropdown {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(7, 33, 70, 0.16);
}

.predictive-dropdown.open {
  display: block;
  animation: subviewGlideIn 0.18s var(--ease-spring) both;
}

.predictive-item {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-hairline);
  cursor: pointer;
  transition: background 0.15s ease;
}

.predictive-item:hover {
  background: var(--bg-elevated);
}

.predictive-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.predictive-house {
  font-size: 10.5px;
  color: var(--gold-accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* ==========================================================================
   CHIPS HORIZONTALES Y CAJAS KPI (ESTILO BBVA / APPLE WALLET)
   ========================================================================== */
.filter-scroll-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  margin-bottom: 16px;
}

.filter-scroll-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: all 0.2s var(--ease-spring);
}

.filter-chip:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--btn-active-bg) !important;
  color: var(--btn-active-text) !important;
  font-weight: 800;
  border: 1px solid var(--btn-active-border) !important;
  box-shadow: var(--btn-active-shadow);
}

.showcase-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .showcase-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kpi-box {
  background: linear-gradient(180deg, rgba(21, 43, 74, 0.72) 0%, rgba(14, 31, 56, 0.94) 100%);
  border: 1px solid var(--border-hairline);
  padding: 14px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

body.theme-light .kpi-box {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
}

.kpi-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-accent);
  display: block;
  letter-spacing: -0.3px;
}

.kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

/* ==========================================================================
   TARJETAS DE PERFUMES Y MODOS DE VISTA (FOTOCASA / PRIME / WALLET)
   ========================================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.catalog-grid.mode-compact {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .catalog-grid.mode-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.catalog-grid.mode-list {
  grid-template-columns: 1fr;
  gap: 9px;
}

.card-perfume-list {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s var(--ease-spring), border-color 0.22s ease, box-shadow 0.22s ease;
}

.card-perfume-list:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: var(--card-shadow-hover);
}

.card-perfume {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: transform 0.26s var(--ease-spring), border-color 0.26s ease, box-shadow 0.26s ease;
}

.card-perfume:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 196, 131, 0.42);
  box-shadow: var(--card-shadow-hover);
}

.card-stage {
  height: 128px;
  background: radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.12) 0%, transparent 65%), linear-gradient(180deg, #102340 0%, #071224 100%);
  display: grid;
  place-items: center;
  position: relative;
  border-bottom: 1px solid rgba(148, 197, 255, 0.08);
}

/* Pedestal de estudio fotográfico para fotos reales de frascos */
.card-stage .fx-photo-img,
.card-perfume-list .fx-photo-img,
.clean-modal-card .fx-photo-img {
  border-radius: 10px !important;
  padding: 4px;
  background: radial-gradient(circle at 50% 38%, #ffffff 62%, #eef3fa 100%) !important;
  box-shadow: 0 8px 20px rgba(2, 8, 20, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.32);
  transition: transform 0.28s var(--ease-spring);
}

.card-perfume:hover .card-stage .fx-photo-img {
  transform: scale(1.035);
}

.card-id-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(5, 13, 26, 0.72);
  backdrop-filter: blur(8px);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-hairline);
}

.card-owned-pill {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 9.5px;
  font-weight: 700;
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.16);
  border: 1px solid rgba(46, 204, 113, 0.42);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.clean-flacon {
  width: 50px;
  height: 74px;
  border-radius: 6px 6px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(255,255,255,0.20), var(--perfume-color, #8c774a), #050d1a);
  box-shadow: 0 10px 22px rgba(0,0,0,0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clean-flacon::before {
  content: '';
  position: absolute;
  top: -12px;
  width: 18px;
  height: 12px;
  background: linear-gradient(90deg, #2b2c30, #e5c483, #2b2c30);
  border-radius: 2px 2px 0 0;
}

.flacon-label {
  font-size: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.95);
  text-align: center;
  padding: 0 4px;
  line-height: 1.15;
}

.btn-fav-card {
  position: static;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: rgba(248, 250, 252, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.22s var(--ease-spring), color 0.18s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65));
  padding: 0;
  box-shadow: none;
  outline: none;
}

body.theme-light .card-body .btn-fav-card:not(.active),
body.theme-light .card-perfume-list .btn-fav-card:not(.active) {
  color: #647d9e;
  filter: none;
}

.btn-fav-card:active {
  transform: scale(1.28);
}

.btn-fav-card.active {
  color: var(--gold-accent);
  border: none;
  background: transparent;
  filter: drop-shadow(0 2px 8px rgba(229, 196, 131, 0.55));
}

@keyframes starPopBurst {
  0% { transform: scale(0.75); }
  50% { transform: scale(1.34) rotate(-8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.btn-fav-card.star-burst {
  animation: starPopBurst 0.36s var(--ease-spring);
}

.card-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand {
  font-size: 10px;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 800;
  margin-bottom: 2px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.28;
}

.card-details-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.mini-badge {
  background: rgba(15, 34, 62, 0.72);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}

body.theme-light .mini-badge {
  background: #edf3fc;
  border-color: rgba(11, 37, 75, 0.10);
}

.mini-badge-accord {
  color: var(--gold-accent);
  background: rgba(229, 196, 131, 0.10);
  border-color: rgba(229, 196, 131, 0.28);
  font-weight: 700;
}

body.theme-light .mini-badge-accord {
  background: rgba(148, 104, 29, 0.09);
  border-color: rgba(148, 104, 29, 0.25);
}

.card-pyramid-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-note-line {
  display: block;
}

.note-tag-label {
  color: var(--gold-accent);
  font-weight: 700;
}

.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-hairline);
  padding-top: 10px;
  margin-top: auto;
}

.card-price-pvp {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.card-price-sub {
  font-size: 9.5px;
  color: var(--text-tertiary);
  display: block;
}

.btn-card-quick-own {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  font-weight: 700;
  font-family: var(--btn-font);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}

.btn-card-quick-own.owned {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
  box-shadow: var(--btn-active-shadow);
}

.btn-detail {
  background: rgba(25, 115, 184, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-weight: 800;
  font-family: var(--btn-font);
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(2, 8, 20, 0.25);
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}

.btn-detail:hover {
  background: var(--btn-active-bg);
  border-color: var(--btn-active-border);
  color: var(--btn-active-text);
}

.btn-text-link {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  font-family: var(--btn-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2px;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--btn-shadow);
  transition: all 0.18s var(--ease-spring);
}

.btn-text-link:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
}

.btn-market-star {
  background: transparent !important;
  border: none !important;
  text-decoration: none !important;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s var(--ease-spring);
}

.btn-market-star:hover {
  transform: scale(1.18);
  text-decoration: none !important;
}

/* Barra de nivel líquido para telemetría de Mi Vitrina */
.vitrina-liquid-meter {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 197, 255, 0.12);
  overflow: hidden;
  margin: 4px 0 6px;
}

body.theme-light .vitrina-liquid-meter {
  background: rgba(11, 37, 75, 0.09);
}

.vitrina-liquid-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9 0%, #22d3ee 55%, #2ecc71 100%);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.45);
  transition: width 0.45s var(--ease-spring);
}

@keyframes sprayMistPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.card-perfume.spray-mist-flash {
  animation: sprayMistPulse 0.65s var(--ease-spring);
}

/* ==========================================================================
   MODALES & BOTTOM SHEETS NATIVOS (ESTILO APPLE WALLET / DISNEY+ / BBVA)
   ========================================================================== */
@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.clean-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 18, 0.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalBackdropFadeIn 0.22s var(--ease-snappy) both;
  will-change: opacity;
}

body.theme-light .clean-modal-backdrop {
  background: rgba(7, 33, 70, 0.45);
}

.clean-modal-backdrop.modal-closing {
  opacity: 0 !important;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 1, 1) !important;
  pointer-events: none !important;
}

.clean-modal-backdrop.modal-closing .clean-modal-card {
  transform: translateY(28px) scale(0.96) !important;
  opacity: 0 !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s cubic-bezier(0.4, 0, 1, 1) !important;
}

@media (max-width: 640px) {
  .clean-modal-backdrop.modal-closing .clean-modal-card {
    transform: translate3d(0, 100%, 0) !important;
    opacity: 0.5 !important;
  }
}

.clean-modal-card {
  background: linear-gradient(180deg, #0e213d 0%, #09162a 100%);
  border: 1px solid rgba(148, 197, 255, 0.22);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  position: relative;
  box-shadow: 0 28px 70px rgba(2, 6, 16, 0.88), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  will-change: transform, opacity;
}

body.theme-light .clean-modal-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
  border-color: rgba(11, 37, 75, 0.14);
  box-shadow: 0 24px 60px rgba(7, 33, 70, 0.22);
}

.modal-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  z-index: 5;
  transition: all 0.18s var(--ease-spring);
}

.modal-close-icon:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  transform: scale(1.06);
}

/* Segmented Tabs estilo iOS / BBVA */
.modal-tabs-segmented {
  display: flex;
  width: 100%;
  background: rgba(5, 13, 26, 0.65);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  margin-bottom: 14px;
  gap: 4px;
}

body.theme-light .modal-tabs-segmented {
  background: #e6eef9;
}

.tab-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 10px;
}

.tab-pill {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  padding: 7px 12px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  box-shadow: var(--btn-shadow);
  transition: all 0.18s var(--ease-spring);
  line-height: 1.25;
}

.tab-pill:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
}

.tab-pill.active {
  color: var(--btn-active-text) !important;
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  box-shadow: var(--btn-active-shadow);
  font-weight: 800;
}

/* Pirámide Olfativa Completa */
.pyramid-block {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
}

.pyramid-level {
  margin-bottom: 12px;
}

.pyramid-level:last-child {
  margin-bottom: 0;
}

.pyramid-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.pyramid-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

/* Calibrador de Tara */
.size-selector-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.size-btn {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  border-radius: var(--radius-xs);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}

.size-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
}

.size-btn.active {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
  box-shadow: var(--btn-active-shadow);
  font-weight: 800;
}

/* Estado del Mercado */
.status-pill {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-disponible {
  background: rgba(46, 204, 113, 0.16);
  border: 1px solid rgba(46, 204, 113, 0.55);
  color: #2ecc71;
}

.status-reservado {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fbbf24;
}

.status-vendido {
  background: rgba(127, 140, 141, 0.2);
  border: 1px solid #7f8c8d;
  color: #95a5a6;
}

.btn-status-set {
  flex: 1;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  padding: 5px 6px;
  border-radius: var(--radius-xs);
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}

.btn-status-set:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
}

.btn-status-set.active {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
  box-shadow: var(--btn-active-shadow);
  font-weight: 800;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN INFERIOR (DOCK CRISTALINO CON INDICADOR LUMINOSO)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border-hairline);
  padding: 6px 10px calc(6px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  box-shadow: 0 -8px 28px rgba(2, 6, 16, 0.55);
}

body.in-subpage .bottom-nav {
  display: none !important;
}
body.in-subpage .main-wrapper {
  padding-bottom: calc(24px + var(--safe-bottom)) !important;
}

.nav-item {
  position: relative;
  background: none;
  border: none;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.22s var(--ease-spring), transform 0.16s var(--ease-spring);
}

.nav-item::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--gold-accent));
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  transition: transform 0.26s var(--ease-spring), opacity 0.22s ease;
}

.nav-item.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.nav-item:active {
  transform: scale(0.90);
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-item.active {
  color: var(--gold-accent);
  font-weight: 800;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.24s var(--ease-spring), filter 0.24s ease;
}

.nav-item.active svg {
  transform: translateY(-1px) scale(1.12);
  filter: drop-shadow(0 3px 10px rgba(229, 196, 131, 0.48));
}

/* ==========================================================================
   SISTEMA TÁCTIL Y JERARQUÍA DE BOTONES (4 NIVELES + ONDA RIPPLE)
   ========================================================================== */
.btn-gold {
  background: var(--btn-active-bg) !important;
  color: var(--btn-active-text) !important;
  border: 1px solid var(--btn-active-border) !important;
  font-weight: 800 !important;
  font-family: var(--btn-font) !important;
  letter-spacing: 0.25px !important;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  box-shadow: var(--btn-active-shadow) !important;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s var(--ease-spring);
}

.btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-clean {
  background: var(--btn-bg) !important;
  border: 1px solid var(--btn-border) !important;
  color: var(--btn-text) !important;
  font-weight: 700 !important;
  font-family: var(--btn-font) !important;
  letter-spacing: 0.2px !important;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.btn-clean:hover {
  background: var(--btn-bg-hover) !important;
  border-color: var(--btn-border-hover) !important;
  color: var(--btn-text) !important;
}

/* Coherencia tipográfica, superficie táctil y soporte de onda Ripple */
button:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
.btn-gold,
.btn-clean,
.btn-detail,
.filter-chip,
.tab-pill,
.subtab-pill,
.size-btn,
.analytics-cajetilla,
.vitrina-cajetilla-btn,
.community-cajetilla-btn,
.market-cajetilla-btn,
.currency-pill,
.notif-pill,
.user-btn,
.btn-card-quick-own,
.btn-status-set,
.btn-wear-today,
.zone-step,
.btn-follow-topic,
.btn-toggle-follow-user,
.btn-dm-collector,
.btn-wall-like,
.btn-layer-vote,
.btn-vote-comm-battle,
.btn-add-lab-ing,
.btn-add-aroma-select,
.btn-clone-community-formula,
.btn-like-community-formula,
.btn-publish-combo-wall,
.btn-resume-draft,
.modal-fam-chip,
.btn-text-link,
.chat-icon-btn,
.chat-back-btn,
.chip-remove,
.btn-delete-single-notif,
.btn-toggle-single-notif,
.btn-delete-decant,
.btn-delete-layering,
.btn-delete-chat,
.fab-scroll-top {
  font-family: var(--btn-font) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  background: var(--btn-bg) !important;
  border: 1px solid var(--btn-border) !important;
  color: var(--btn-text) !important;
  box-shadow: var(--btn-shadow);
  outline: none !important;
  cursor: pointer;
  transition: transform 0.16s var(--ease-spring), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
}

/* Herencia tipográfica limpia preservando insignias con contraste propio */
button:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) span:not(.notif-badge-dot):not(.user-avatar):not(.pill-count-badge),
button:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) strong,
button:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) div,
.btn-gold *:not(.notif-badge-dot):not(.pill-count-badge),
.btn-clean *:not(.notif-badge-dot):not(.pill-count-badge),
.btn-detail *,
.filter-chip *,
.tab-pill *,
.subtab-pill *,
.size-btn *,
.analytics-cajetilla *,
.community-cajetilla-btn *,
.market-cajetilla-btn * {
  font-family: inherit !important;
  color: inherit !important;
}

/* Hover elevado sutil */
button:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
.btn-clean:hover,
.filter-chip:hover,
.tab-pill:hover,
.subtab-pill:hover,
.size-btn:hover,
.analytics-cajetilla:hover,
.vitrina-cajetilla-btn:hover,
.community-cajetilla-btn:hover,
.market-cajetilla-btn:hover,
.currency-pill:hover,
.notif-pill:hover,
.user-btn:hover {
  background: var(--btn-bg-hover) !important;
  border-color: var(--btn-border-hover) !important;
  color: var(--btn-text) !important;
}

/* Nivel 1 (CTA Primario BBVA / Wallet) y Estado Activo / Seleccionado Luminoso */
button.btn-gold:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.active:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
a.btn-gold,
.btn-gold,
.filter-chip.active,
.tab-pill.active,
.subtab-pill.active,
.size-btn.active,
.analytics-cajetilla.active,
.community-cajetilla-btn.active,
.market-cajetilla-btn.active,
.btn-status-set.active,
.btn-card-quick-own.owned,
.zone-step.active,
.modal-fam-chip.active {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
  box-shadow: var(--btn-active-shadow) !important;
  font-weight: 800 !important;
}

button.btn-gold:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.active:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
a.btn-gold:hover,
.btn-gold:hover {
  background: var(--btn-active-bg) !important;
  border-color: var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
  filter: brightness(1.06);
}

button.active:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) svg,
button.btn-gold:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) svg,
.btn-gold svg,
.analytics-cajetilla.active svg,
.community-cajetilla-btn.active svg,
.market-cajetilla-btn.active svg {
  color: var(--btn-active-text) !important;
  stroke: var(--btn-active-text) !important;
}

/* Nivel 2 Especializado: Botón técnico FICHA con identidad zafiro-cian */
button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
.btn-detail {
  background: rgba(25, 115, 184, 0.24) !important;
  border: 1px solid rgba(56, 189, 248, 0.44) !important;
  color: #e0f2fe !important;
  box-shadow: 0 2px 8px rgba(2, 8, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
.btn-detail:hover {
  background: rgba(25, 115, 184, 0.40) !important;
  border-color: rgba(34, 211, 238, 0.72) !important;
  color: #ffffff !important;
}

body.theme-light button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light .btn-detail {
  background: #e6f0fc !important;
  border-color: rgba(20, 70, 135, 0.26) !important;
  color: #0b3b78 !important;
  box-shadow: 0 1px 4px rgba(7, 33, 70, 0.06) !important;
}

body.theme-light button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
body.theme-light button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
body.theme-light .btn-detail:hover {
  background: #d4e5fb !important;
  border-color: rgba(20, 70, 135, 0.48) !important;
  color: #072146 !important;
}

/* Nivel 3 Semántico Destructivo: Botones tonales rubí estilo Apple Wallet / Gmail */
button#btn-profile-logout,
button#btn-remove-from-vitrina,
button#btn-clear-all-notifs,
button.btn-delete-single-notif:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-delete-decant:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-delete-layering:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-delete-chat:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-del-carrier:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-del-lab-ing:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.chip-remove:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  background: rgba(239, 68, 68, 0.13) !important;
  border: 1px solid rgba(248, 113, 113, 0.38) !important;
  color: #fca5a5 !important;
}

button#btn-profile-logout:hover,
button#btn-remove-from-vitrina:hover,
button#btn-clear-all-notifs:hover,
button.btn-delete-single-notif:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.btn-delete-decant:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.btn-delete-layering:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.btn-delete-chat:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.btn-del-carrier:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.btn-del-lab-ing:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.chip-remove:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover {
  background: rgba(239, 68, 68, 0.24) !important;
  border-color: rgba(248, 113, 113, 0.68) !important;
  color: #fee2e2 !important;
}

body.theme-light button#btn-profile-logout,
body.theme-light button#btn-remove-from-vitrina,
body.theme-light button#btn-clear-all-notifs,
body.theme-light button.btn-delete-single-notif:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.btn-delete-decant:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.btn-delete-layering:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.btn-delete-chat:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.btn-del-carrier:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.btn-del-lab-ing:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.chip-remove:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  background: #fef2f2 !important;
  border-color: rgba(220, 38, 38, 0.28) !important;
  color: #dc2626 !important;
}

button.btn-del-carrier:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-del-lab-ing:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

/* Destacado Champagne para acceso a Rankings y Burbuja de Chat del Mercado */
button#btn-muro-to-rankings {
  background: linear-gradient(135deg, rgba(229, 196, 131, 0.18) 0%, rgba(16, 36, 66, 0.94) 100%) !important;
  border-color: rgba(229, 196, 131, 0.55) !important;
  color: var(--gold-bright) !important;
}

body.theme-light button#btn-muro-to-rankings {
  background: linear-gradient(135deg, rgba(180, 136, 52, 0.14) 0%, #ffffff 100%) !important;
  border-color: rgba(148, 104, 29, 0.45) !important;
  color: #7c5412 !important;
}

button.market-chat-bubble:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  background: var(--btn-active-bg) !important;
  color: var(--btn-active-text) !important;
  border: 1px solid var(--btn-active-border) !important;
  box-shadow: 0 10px 26px rgba(2, 8, 20, 0.62), 0 0 0 1px rgba(229, 196, 131, 0.35) !important;
  overflow: visible !important;
}

/* Insignias internas con contraste garantizado (Avisos, Avatar, Contadores de Seguidores) */
.notif-badge-dot {
  color: #041022 !important;
  font-weight: 800 !important;
}

.user-avatar {
  color: #061326 !important;
  font-weight: 800 !important;
}

.pill-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  background: rgba(5, 13, 26, 0.55);
  border: 1px solid rgba(148, 197, 255, 0.20);
  color: #e8f1fc !important;
}

body.theme-light .pill-count-badge {
  background: rgba(7, 33, 70, 0.08);
  border-color: rgba(7, 33, 70, 0.14);
  color: #072146 !important;
}

button.active .pill-count-badge {
  background: rgba(5, 13, 26, 0.86) !important;
  border-color: rgba(5, 13, 26, 0.45) !important;
  color: #f8dfa5 !important;
}

body.theme-light button.active .pill-count-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

/* Respuesta física inmediata al tacto */
button:active:not(:disabled):not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
.btn-gold:active,
.btn-clean:active,
.btn-detail:active,
.filter-chip:active,
.tab-pill:active,
.subtab-pill:active,
.analytics-cajetilla:active,
.vitrina-cajetilla-btn:active,
.community-cajetilla-btn:active,
.market-cajetilla-btn:active {
  transform: scale(0.962) !important;
}

button:disabled:not(.nav-item) {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Onda táctil interactiva (Tactile Ripple Wave) */
.tactile-ripple-host {
  position: relative;
  overflow: hidden;
}

@keyframes tactileRippleExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.15);
    opacity: 0.42;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
}

.tactile-ripple-wave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(56, 189, 248, 0.22) 60%, transparent 100%);
  animation: tactileRippleExpand 0.48s var(--ease-spring) forwards;
  z-index: 2;
}

/* Excepciones intencionales: barra inferior dock y estrellas de favoritos */
.bottom-nav .nav-item {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-tertiary) !important;
  transform: none !important;
}
.bottom-nav .nav-item.active {
  color: var(--gold-accent) !important;
}
.bottom-nav .nav-item svg {
  color: inherit !important;
  stroke: currentColor !important;
}
.btn-fav-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.btn-fav-card.active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--gold-accent) !important;
}
.btn-market-star {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
button.chat-row-main:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-align: left !important;
}
button.chat-row-main:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover {
  background: rgba(148, 197, 255, 0.06) !important;
  border: none !important;
}
body.theme-light button.chat-row-main:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover {
  background: rgba(7, 33, 70, 0.04) !important;
}

/* ==========================================================================
   TOAST FLOTANTE & FAB VOLVER ARRIBA
   ========================================================================== */
.app-toast {
  position: fixed;
  bottom: calc(84px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.96);
  background: rgba(11, 26, 48, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #f8fafc;
  border: 1px solid rgba(229, 196, 131, 0.55);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s var(--ease-spring);
  z-index: 140;
  box-shadow: 0 14px 36px rgba(2, 6, 16, 0.75);
  max-width: calc(100vw - 28px);
  text-align: center;
}

body.theme-light .app-toast {
  background: rgba(7, 33, 70, 0.95);
  color: #ffffff;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.fab-scroll-top {
  position: fixed;
  right: 20px;
  bottom: calc(82px + var(--safe-bottom));
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--btn-active-bg) !important;
  color: var(--btn-active-text) !important;
  border: 1px solid var(--btn-active-border) !important;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(2, 8, 20, 0.55) !important;
  cursor: pointer;
  z-index: 55;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.24s var(--ease-spring), transform 0.24s var(--ease-spring);
}

.fab-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   BOTTOM SHEETS MÓVILES CON ASA TÁCTIL (WALLET / INSTAGRAM)
   ========================================================================== */
@keyframes m3SheetUpDesktop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes m3SheetUpMobile {
  from {
    opacity: 0.6;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes m3SheetUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.clean-modal-card {
  animation: m3SheetUpDesktop 0.28s var(--ease-spring) both;
}

@media (max-width: 640px) {
  .clean-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .clean-modal-card {
    border-radius: 26px 26px 0 0;
    max-height: 92vh;
    padding: 24px 18px calc(24px + var(--safe-bottom));
    animation: m3SheetUpMobile 0.32s cubic-bezier(0.32, 0.72, 0, 1) both;
  }
  .clean-modal-card::before {
    content: '';
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 197, 255, 0.28);
    margin: -10px auto 14px;
  }
  body.theme-light .clean-modal-card::before {
    background: rgba(11, 37, 75, 0.18);
  }
}

/* ==========================================================================
   TRANSICIONES DE PANTALLA DUAL-LAYER (ESTILO BBVA / iOS / DISNEY+)
   ========================================================================== */
.main-wrapper {
  position: relative;
  overflow-x: clip;
}

.app-screen-stage {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 160px);
}

.app-screen {
  width: 100%;
  background: transparent;
  min-height: calc(100vh - 160px);
  touch-action: pan-y;
}

.app-screen.current {
  position: relative;
  width: 100%;
}

.app-screen.outgoing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none !important;
  z-index: 1;
}

.app-screen.incoming {
  position: relative;
  width: 100%;
  z-index: 2;
  background: var(--bg-main);
  box-shadow: -18px 0 44px rgba(2, 6, 16, 0.55);
}

@keyframes nativeSlideInFromRight {
  0% {
    transform: translate3d(100%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes nativeSlideOutToLeft {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(-22%, 0, 0) scale(0.985);
    opacity: 0.18;
  }
}

@keyframes nativeSlideInFromLeft {
  0% {
    transform: translate3d(-100%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes nativeSlideOutToRight {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(22%, 0, 0) scale(0.985);
    opacity: 0.18;
  }
}

@keyframes screenSlideInRight {
  0% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes screenSlideInLeft {
  0% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes screenFadeScale {
  0% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes subviewGlideIn {
  0% {
    opacity: 0.65;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.subview-animate-in {
  animation: subviewGlideIn 0.22s var(--ease-spring) both;
}

.app-screen.enter-from-right {
  animation: nativeSlideInFromRight 0.28s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  will-change: transform;
}

.app-screen.exit-to-left {
  animation: nativeSlideOutToLeft 0.28s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  will-change: transform, opacity;
}

.app-screen.enter-from-left {
  animation: nativeSlideInFromLeft 0.28s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  will-change: transform;
}

.app-screen.exit-to-right {
  animation: nativeSlideOutToRight 0.28s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  will-change: transform, opacity;
}

.app-screen.enter-fade,
.app-screen.exit-fade,
.screen-transition-right,
.screen-transition-left,
.screen-transition-fade,
.screen-transition-instant {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.tab-content-enter {
  animation: screenFadeScale 0.15s ease-out both;
}

::view-transition-old(root) {
  animation: 0.18s cubic-bezier(0.4, 0, 1, 1) both fadeOut;
}
::view-transition-new(root) {
  animation: 0.24s cubic-bezier(0.16, 1, 0.3, 1) both fadeIn;
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   PANEL DE NOTIFICACIONES, BARRAS OLFATIVAS Y TIENDAS OFICIALES
   ========================================================================== */
.notif-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: 90vw;
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 54px rgba(2, 6, 16, 0.85);
  padding: 14px;
  z-index: 120;
  display: none;
}

.notif-dropdown-panel.open {
  display: block;
  animation: m3SheetUp 0.2s var(--ease-spring);
}

.notif-item-row {
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  border-left: 3px solid var(--gold-accent);
  background: var(--bg-card);
}

.notif-item-row.read {
  border-left-color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.62;
}

.card-olfactive-bars {
  background: transparent;
  border: none;
  padding: 0;
  margin: 3px 0 5px;
}

body.theme-light .card-olfactive-bars {
  background: transparent;
}

.olfactive-bar-track {
  height: 4px;
  background: rgba(148, 197, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  margin: 3px 0 2px;
}

body.theme-light .olfactive-bar-track {
  background: rgba(11, 37, 75, 0.10);
}

.store-chip-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.25px;
  transition: transform 0.16s var(--ease-spring), opacity 0.16s ease, box-shadow 0.16s ease;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.store-badge-link:hover {
  transform: translateY(-1px);
  opacity: 0.95;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.icon-square-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s, transform 0.16s var(--ease-spring);
}

.icon-square-btn:hover {
  border-color: var(--gold-accent);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.icon-square-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #071426;
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 90;
  pointer-events: none;
}

/* ==========================================================================
   MERCADO SPLIT-VIEW, AUTH GATE Y ADAPTACIÓN MÓVIL
   ========================================================================== */
.market-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.market-split-layout > div {
  min-width: 0;
}

@media (max-width: 920px) {
  .market-split-layout {
    grid-template-columns: 1fr;
  }
}

.market-chat-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 16px;
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--card-shadow);
}

@media (max-width: 920px) {
  .market-chat-sidebar {
    position: static;
    max-height: none;
  }
}

body.auth-locked .app-header,
body.auth-locked .bottom-nav,
body.auth-locked .main-wrapper,
body.auth-locked .fab-scroll-top { display: none !important; }
#auth-gate {
  position: fixed; inset: 0; z-index: 1000; overflow-y: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(25, 115, 184, 0.28), transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(229, 196, 131, 0.14), var(--bg-main) 65%);
  display: flex; align-items: center; justify-content: center;
  padding: calc(20px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
}
.auth-gate-card {
  width: 100%; max-width: 420px; margin: auto;
  background: linear-gradient(180deg, rgba(16, 35, 64, 0.96) 0%, rgba(9, 21, 40, 0.98) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg); padding: 26px 22px;
  box-shadow: 0 28px 70px rgba(2, 6, 16, 0.80), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.theme-light .auth-gate-card {
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(7, 33, 70, 0.16);
}
.auth-gate-error {
  display: none; color: #f87171; font-size: 12px; margin-bottom: 10px;
  background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-xs); padding: 8px 10px;
}

img, svg, video { max-width: 100%; }
.main-wrapper { overflow-x: hidden; }
.app-header { gap: 8px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.brand-col { flex-shrink: 1; min-width: 0; }
.header-tools { flex-shrink: 0; gap: 6px; }
.user-btn { max-width: 150px; min-width: 0; }
.user-btn > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 19.5px; letter-spacing: -0.3px; }
  .main-wrapper { padding-left: 12px; padding-right: 12px; }
  .currency-pill, .notif-pill { padding: 5px 9px; }
  .user-btn { max-width: 112px; padding-right: 9px; }
  .nav-item { font-size: 9.5px; }
}
@media (max-width: 360px) {
  #header-currency-btn { display: none; }
  .user-btn { max-width: 90px; }
}

.info-wrap { position: relative; display: inline-flex; }
.info-dot {
  width: 20px; height: 20px; border-radius: 50%; padding: 0; cursor: pointer;
  background: transparent; color: var(--gold-accent); border: 1px solid var(--gold-accent);
  font-size: 12px; font-weight: 700; line-height: 1; display: grid; place-items: center;
}
.info-note {
  display: none; position: absolute; top: 26px; left: 0; z-index: 100;
  width: min(300px, calc(100vw - 40px)); max-width: calc(100vw - 40px);
  padding: 10px 12px; font-size: 11.5px; line-height: 1.45;
  background: var(--bg-card); color: var(--text-main);
  border: 1px solid var(--gold-accent); border-radius: var(--radius-xs);
  box-shadow: 0 12px 32px rgba(0,0,0,0.65);
  box-sizing: border-box; word-break: break-word; white-space: normal;
}
@media (max-width: 600px) {
  .info-note {
    left: -12px;
    width: calc(100vw - 48px);
    max-width: 310px;
  }
}
.info-wrap.open .info-note { display: block; }
.lab-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  background: var(--bg-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full); padding: 3px 4px 3px 10px;
}
.chip-remove {
  width: 18px; height: 18px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(231,76,60,0.15); color: #e74c3c; font-size: 14px; line-height: 1;
  display: grid; place-items: center; padding: 0;
}
.zone-step {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--bg-card); color: var(--gold-accent); border: 1px solid var(--border-hairline);
  font-size: 14px; line-height: 1; display: grid; place-items: center;
}

@media (max-width: 600px) {
  .notif-dropdown-panel {
    position: fixed;
    top: calc(var(--safe-top) + 58px);
    left: 10px; right: 10px;
    width: auto; max-width: none;
    max-height: calc(100vh - var(--safe-top) - 140px);
    overflow-y: auto;
  }
}

/* ==========================================================================
   CHATS DEL MERCADO: BURBUJA COMPACTA + CAJÓN LATERAL
   ========================================================================== */
.market-chat-bubble {
  position: fixed; right: 14px; bottom: calc(92px + var(--safe-bottom)); z-index: 55;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); cursor: grab;
  background: var(--gold-accent); color: #061326; font-size: 16px; font-weight: 800;
  box-shadow: 0 6px 20px rgba(2, 8, 20, 0.55);
  display: inline-flex; align-items: center; justify-content: center;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s ease, opacity 0.15s ease;
}
.market-chat-bubble:active {
  transform: scale(0.94);
}
.market-chat-bubble.is-dragging {
  cursor: grabbing !important;
  opacity: 0.94;
  transform: scale(1.08) !important;
  box-shadow: 0 10px 28px rgba(229, 196, 131, 0.5);
  transition: none !important;
}

.market-chat-bubble.chat-shape-pill {
  width: 42px; height: 36px; border-radius: 999px; padding: 0;
  font-size: 15px; font-weight: 700;
}
.market-chat-bubble.chat-shape-square {
  width: 36px; height: 36px; border-radius: 9px; font-size: 15px;
}
.market-chat-bubble.chat-shape-tab {
  width: 32px; height: 36px; padding: 0; font-size: 15px;
}

.market-chat-bubble.pos-tab-right,
.market-chat-bubble.chat-shape-tab.pos-tab-right {
  width: 30px !important; height: 36px !important;
  border-radius: 10px 0 0 10px !important;
  border-right: none !important;
  padding: 0 !important;
}
.market-chat-bubble.pos-tab-left,
.market-chat-bubble.chat-shape-tab.pos-tab-left {
  width: 30px !important; height: 36px !important;
  border-radius: 0 10px 10px 0 !important;
  border-left: none !important;
  padding: 0 !important;
}

.market-chat-drawer {
  position: fixed;
  top: var(--app-header-h, calc(60px + var(--safe-top)));
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  background: rgba(10, 23, 43, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-left: 1px solid var(--border-active);
  border-top: 1px solid var(--border-hairline);
  box-shadow: -16px 0 48px rgba(2, 6, 16, 0.72);
  padding-bottom: calc(8px + var(--safe-bottom));
  animation: m3SheetUp 0.22s var(--ease-spring);
}
body.theme-light .market-chat-drawer {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -12px 0 40px rgba(7, 33, 70, 0.18);
}
.market-chat-drawer.dock-left {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--border-active);
  border-top: 1px solid var(--border-hairline);
  box-shadow: 16px 0 48px rgba(2, 6, 16, 0.72);
  animation: m3SheetLeft 0.22s var(--ease-spring);
}
@keyframes m3SheetLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px; border-bottom: 1px solid var(--border-hairline); }
.chat-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  min-height: 48px;
  flex-shrink: 0;
  gap: 8px;
}
.chat-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--gold-accent);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  transition: background 0.15s ease;
}
.chat-back-btn:hover { background: var(--bg-card); }
.chat-back-arrow { font-size: 20px; line-height: 1; font-weight: 700; }
.chat-partner-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-hairline);
  flex-shrink: 0;
}
.chat-partner-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-accent), #8f6f36);
  color: #061326;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.chat-partner-info { min-width: 0; flex: 1; }
.chat-partner-name { font-size: 14px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-partner-sub { font-size: 11px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.chat-icon-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 17px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.chat-icon-btn:hover { background: var(--bg-card); color: var(--text-main); border-color: var(--border-hairline); }
.chat-list { flex: 1; overflow-y: auto; }
.chat-row { display: flex; align-items: center; border-bottom: 1px solid var(--border-hairline); padding-right: 6px; }
.chat-row-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; background: none; border: none; color: var(--text-main); padding: 12px; cursor: pointer; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-accent); color: #061326; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; }
.chat-bubble { align-self: flex-start; max-width: 82%; background: var(--bg-card); border: 1px solid var(--border-hairline); padding: 9px 12px; border-radius: 16px 16px 16px 4px; font-size: 13px; overflow-wrap: anywhere; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.chat-bubble.mine { align-self: flex-end; background: linear-gradient(135deg, rgba(25, 115, 184, 0.42) 0%, rgba(14, 58, 110, 0.65) 100%); border-color: rgba(56, 189, 248, 0.32); border-radius: 16px 16px 4px 16px; }
body.theme-light .chat-bubble.mine { background: #e0edff; border-color: rgba(20, 70, 135, 0.2); }
.chat-time { font-size: 9.5px; color: var(--text-tertiary); text-align: right; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border-hairline); }

/* ==========================================================================
   SUBMENÚS FLOTANTES DE COMUNIDAD, MI VITRINA Y MERCADO
   ========================================================================== */
.community-bottom-subbar {
  position: fixed;
  bottom: calc(58px + var(--safe-bottom));
  left: 0;
  right: 0;
  z-index: 48;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  pointer-events: none;
}
.community-subbar-container {
  pointer-events: auto;
  width: 100%;
  max-width: 500px;
  background: rgba(7, 18, 36, 0.92);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 5px 6px;
  box-shadow: 0 10px 30px rgba(2, 6, 16, 0.65);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  position: relative;
}
body.theme-light .community-subbar-container {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(7, 33, 70, 0.12);
  border-color: rgba(11, 37, 75, 0.12);
}
.community-cajetilla-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 3px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  font-family: var(--btn-font);
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  min-height: 40px;
  transition: all 0.18s var(--ease-spring);
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--btn-shadow);
}
.community-cajetilla-btn span {
  font-size: 9.5px;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.1;
}
body.theme-light .community-cajetilla-btn span,
body.theme-light .community-cajetilla-btn svg {
  color: #072146;
}
.community-cajetilla-btn svg {
  color: #ffffff;
  transition: color 0.12s ease;
}
.community-cajetilla-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
}
.community-cajetilla-btn:active {
  transform: scale(0.95);
}
.community-cajetilla-btn.active {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  box-shadow: var(--btn-active-shadow);
}
.community-cajetilla-btn.active span {
  color: var(--btn-active-text) !important;
  font-weight: 800;
}
.community-cajetilla-btn.active svg {
  color: var(--btn-active-text) !important;
}

.community-top-subbar {
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
}

body.in-tab-comunidad .main-wrapper {
  padding-bottom: calc(72px + var(--safe-bottom)) !important;
}

/* Submenú inferior de Mi Vitrina (con contraste AAA garantizado sobre texto dorado activo) */
.vitrina-bottom-subbar {
  position: fixed;
  bottom: calc(58px + var(--safe-bottom));
  left: 0;
  right: 0;
  z-index: 48;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  pointer-events: none;
}
.vitrina-subbar-container {
  pointer-events: auto;
  width: 100%;
  max-width: 500px;
  background: rgba(7, 18, 36, 0.92);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 5px 6px;
  box-shadow: 0 10px 30px rgba(2, 6, 16, 0.65);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  position: relative;
}
body.theme-light .vitrina-subbar-container {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(7, 33, 70, 0.12);
  border-color: rgba(11, 37, 75, 0.12);
}
.vitrina-cajetilla-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  min-height: 40px;
  transition: all 0.18s var(--ease-spring);
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--btn-shadow);
}
.vitrina-cajetilla-btn .vitrina-tab-label,
.vitrina-cajetilla-btn span {
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--btn-font);
  color: #ffffff;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.vitrina-cajetilla-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
}
.vitrina-cajetilla-btn.active {
  background: linear-gradient(180deg, #1b467e 0%, #0d2649 100%) !important;
  border: 1px solid rgba(229, 196, 131, 0.78) !important;
  color: var(--gold-accent) !important;
  box-shadow: 0 6px 18px rgba(13, 38, 73, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.vitrina-cajetilla-btn.active .vitrina-tab-label,
.vitrina-cajetilla-btn.active span {
  color: var(--gold-accent) !important;
  font-weight: 800;
}
body.theme-light .vitrina-cajetilla-btn .vitrina-tab-label,
body.theme-light .vitrina-cajetilla-btn span {
  color: #072146;
}
body.theme-light .vitrina-cajetilla-btn.active {
  background: linear-gradient(180deg, #0b2d5c 0%, #072146 100%) !important;
  border-color: #072146 !important;
}
body.theme-light .vitrina-cajetilla-btn.active .vitrina-tab-label,
body.theme-light .vitrina-cajetilla-btn.active span {
  color: #f4dca8 !important;
}
body.in-tab-vitrina .main-wrapper {
  padding-bottom: calc(75px + var(--safe-bottom)) !important;
}

/* Barra Superior Sticky de Mi Vitrina */
.vitrina-sticky-nav-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(5, 13, 26, 0.88);
  padding: 6px 0 10px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body.theme-light .vitrina-sticky-nav-bar {
  background: rgba(242, 246, 252, 0.92);
}

/* Submenú inferior de Mercado */
.market-bottom-subbar {
  position: fixed;
  bottom: calc(58px + var(--safe-bottom));
  left: 0;
  right: 0;
  z-index: 48;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  pointer-events: none;
}
.market-subbar-container {
  pointer-events: auto;
  width: 100%;
  max-width: 500px;
  background: rgba(7, 18, 36, 0.92);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 5px 6px;
  box-shadow: 0 10px 30px rgba(2, 6, 16, 0.65);
  display: grid;
  grid-template-columns: 0.85fr 1.18fr 0.78fr 1.24fr;
  gap: 5px;
  position: relative;
}
body.theme-light .market-subbar-container {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(7, 33, 70, 0.12);
  border-color: rgba(11, 37, 75, 0.12);
}
.market-cajetilla-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 4px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  font-family: var(--btn-font);
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  min-height: 40px;
  transition: all 0.18s var(--ease-spring);
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--btn-shadow);
}
.market-cajetilla-btn span {
  font-size: 9.2px;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.12;
  letter-spacing: -0.05px;
}
body.theme-light .market-cajetilla-btn span,
body.theme-light .market-cajetilla-btn svg {
  color: #072146;
}
.market-cajetilla-btn svg {
  color: #ffffff;
  transition: color 0.12s ease;
}
.market-cajetilla-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
}
.market-cajetilla-btn:active {
  transform: scale(0.95);
}
.market-cajetilla-btn.active {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  box-shadow: var(--btn-active-shadow);
}
.market-cajetilla-btn.active span {
  color: var(--btn-active-text) !important;
  font-weight: 800;
}
.market-cajetilla-btn.active svg {
  color: var(--btn-active-text) !important;
}

body.in-tab-mercado .main-wrapper {
  padding-bottom: calc(142px + var(--safe-bottom)) !important;
}

/* ==========================================================================
   VISTA 4: ESTANTERÍA DE BALDAS ILUMINADAS (VITRINA DE CRISTAL)
   ========================================================================== */
.vitrina-shelf-cabinet {
  background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.10) 0%, transparent 65%), linear-gradient(180deg, #0b192e 0%, #071120 100%);
  border-radius: var(--radius-md);
  padding: 16px 12px 14px;
  border: 1px solid rgba(148, 197, 255, 0.16);
  box-shadow: inset 0 2px 18px rgba(0, 0, 0, 0.65), 0 12px 32px rgba(2, 6, 16, 0.55);
  margin-bottom: 24px;
}

.vitrina-shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.vitrina-shelf-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.2px;
}

.vitrina-shelf-count {
  color: var(--teal-accent, #2dd4bf);
  font-size: 13px;
  font-weight: 700;
}

.vitrina-shelf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b92a5;
}

.vitrina-shelf-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 36, 66, 0.78);
  border: 1px solid rgba(148, 197, 255, 0.16);
  border-radius: 20px;
  padding: 8px 14px;
  margin-bottom: 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vitrina-shelf-search-bar:focus-within {
  border-color: #2dd4bf;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.28);
}

.vitrina-shelf-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
}

.vitrina-shelf-search-input::placeholder {
  color: #8ba3c4;
  font-size: 12px;
}

.vitrina-shelf-level {
  position: relative;
  margin-bottom: 24px;
}

.vitrina-shelf-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  align-items: flex-end;
  min-height: 94px;
  padding: 0 4px;
}

.shelf-bottle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 92px;
  cursor: pointer;
  padding-bottom: 1px;
  transition: transform 0.22s var(--ease-spring);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.shelf-bottle-item:hover {
  transform: translateY(-6px) scale(1.07);
  z-index: 2;
}

.shelf-bottle-item:active {
  transform: translateY(-2px) scale(0.98);
}

.vitrina-shelf-plank {
  position: relative;
  width: 100%;
  height: 4px;
  background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 45%, #042f2e 100%);
  border-top: 1.5px solid #5eead4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 14px rgba(45, 212, 191, 0.45);
  margin-top: 2px;
  border-radius: 2px;
}

.vitrina-shelf-plank::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 9px;
  background: linear-gradient(180deg, rgba(2, 8, 20, 0.62) 0%, transparent 100%);
  pointer-events: none;
}

/* Botón Cuadrado de Añadir / Tick en Escenario de Frasco */
.btn-card-stage-add {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.18s var(--ease-spring), background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-card-stage-add:hover {
  transform: scale(1.10);
}
.btn-card-stage-add:active {
  transform: scale(0.94);
}
.btn-card-stage-add.active {
  background: var(--gold-accent) !important;
  color: #061326 !important;
  border-color: var(--gold-accent) !important;
  box-shadow: 0 2px 10px rgba(229, 196, 131, 0.55) !important;
}

.btn-vitrina-size-chip.active {
  background: var(--gold-accent) !important;
  color: #061326 !important;
  border-color: var(--gold-accent) !important;
}
