/* ==========================================================================
   Agencia 24 — diseño del panel: fondo con imagen, barra lateral de cristal y panel flotante.
   Las secciones «panel» y «barra lateral» son las hojas de estilo de los dos diseños de referencia,
   con sus colores fijos cambiados por variables (el acento y el fondo se eligen en Apariencia).
   ========================================================================== */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

:root {
  /* de serie, los colores de los diseños de referencia; /appearance.css pone los elegidos en Apariencia */
  --accent: #ff7322; --accent-rgb: 255, 115, 34; --accent-hi: #ff7a22; --accent-dark: #ee5300; --accent-light: #ffa15d;
  --side-accent: #e50914; --side-accent-rgb: 229, 9, 20; --side-accent-hover: #f40a16;
  --bg-image: url("/img/fondo-panel.jpg"); --bg-dim: 0.12;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --color-teal: #2cd5c4; --color-green: #26c281;
  /* los colores del resto del panel, en cristal */
  --bg: rgba(8, 9, 12, 0.46); --side: transparent;
  --panel: rgba(255, 255, 255, 0.06); --panel2: rgba(255, 255, 255, 0.09); --panel3: rgba(255, 255, 255, 0.15);
  --line: rgba(255, 255, 255, 0.12); --line2: rgba(255, 255, 255, 0.18);
  --text: #ffffff; --muted: #a4a8b7; --dim: #7f8496;
  --accent2: var(--accent-light); --accent-soft: rgba(var(--accent-rgb), 0.16);
  --r: 18px;
}

/* ==========================================================================
   PANEL (diseño de referencia)
   ========================================================================== */
/* Main Dashboard Container */
.dashboard-app-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 36px;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Background Room Image */
.dashboard-background-image {
  position: fixed;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.01);
}

/* Very subtle vignette - kept gentle so background shows vibrantly through glass */
.dashboard-background-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(8, 9, 12, 0.1) 0%, rgba(5, 6, 8, 0.28) 100%);
  pointer-events: none;
}

/* Main Dashboard Wrapper with side margins */
.dashboard-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1440px;
  width: 96%;
  margin: 0 auto;
}

/* ----------------------------------------------------
   2. Main Glassmorphic Dashboard Panel (Increased Height)
   ---------------------------------------------------- */
.dashboard-main-glass-panel {
  flex: 1;
  min-width: 0;
  min-height: 780px;
  border-radius: 30px;
  /* Crystal transparent glass gradient */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(22, 24, 30, 0.42) 45%,
    rgba(14, 15, 20, 0.48) 100%
  );
  backdrop-filter: blur(calc(40px * var(--glass-k))) saturate(210%);
  -webkit-backdrop-filter: blur(calc(40px * var(--glass-k))) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    0 35px 85px -12px rgba(0, 0, 0, 0.68),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 25px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: 1fr 345px;
  position: relative;
  overflow: hidden;
}

/* Ambient Warm Glow inside Glass */
.ambient-backlight-glow {
  position: absolute;
  right: 200px;
  top: 100px;
  width: 520px;
  height: 480px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.28) 0%, rgba(var(--accent-rgb), 0.08) 45%, transparent 72%);
  filter: blur(52px);
  pointer-events: none;
  z-index: 1;
}

/* Left Content Area (Expanded Height & Vertical Flow) */
.panel-left-content {
  padding: 34px 36px 32px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  min-width: 0;
}

.tab-view-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

/* ----------------------------------------------------
   3. Header Section (Title + 3 Metrics)
   ---------------------------------------------------- */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-title-wrap {
  display: flex;
  align-items: center;
}

.dashboard-title {
  font-size: 25px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.title-card-icon {
  font-size: 21px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

.header-metrics-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(calc(20px * var(--glass-k))) saturate(180%);
  -webkit-backdrop-filter: blur(calc(20px * var(--glass-k))) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 26px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.header-metric-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-icon-circle {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 10.5px;
  color: #a4a8b7;
  font-weight: 500;
  line-height: 1.2;
}

.metric-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

/* Section Title Utility */
.section-title {
  font-size: 17.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------------------
   4. Statistic Section & Taller Glowing Chart
   ---------------------------------------------------- */
.statistic-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.statistic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-container {
  position: relative;
}

.filter-pill-btn {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: #d8dae6;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.filter-pill-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(25, 27, 34, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 4px;
  min-width: 135px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 20;
}

.dropdown-item {
  padding: 8px 12px;
  font-size: 11px;
  color: #b4b6c2;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item.selected {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Inner Statistic Card (Taller & Spacious) */
.statistic-card {
  background: radial-gradient(circle at 86% 42%, rgba(var(--accent-rgb), 0.22) 0%, rgba(255, 255, 255, 0.04) 65%), rgba(18, 20, 26, 0.38);
  backdrop-filter: blur(calc(24px * var(--glass-k))) saturate(180%);
  -webkit-backdrop-filter: blur(calc(24px * var(--glass-k))) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 24px 26px 20px;
  position: relative;
  overflow: visible;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stat-card-headings {
  display: flex;
  flex-direction: column;
}

.stat-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.stat-card-subtitle {
  font-size: 11.5px;
  color: #9aa0b0;
  margin-top: 3px;
}

.stat-card-legend {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #c0c3d2;
  cursor: pointer;
  transition: opacity 0.2s;
}

.legend-item:hover {
  color: #ffffff;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.cyan {
  background: #2cd5c4;
  box-shadow: 0 0 8px rgba(44, 213, 196, 0.7);
}

.legend-dot.green {
  background: #26c281;
  box-shadow: 0 0 8px rgba(38, 194, 129, 0.7);
}

.legend-dot.orange {
  background: var(--accent-hi);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
}

/* Chart Container & Tooltip (Taller Height) */
.chart-container {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.chart-svg {
  width: 100%;
  height: 165px;
  overflow: visible;
  display: block;
}

/* Tooltip on March */
.chart-tooltip-pin {
  position: absolute;
  left: 40%;
  top: -8px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.tooltip-bubble {
  background: rgba(25, 27, 34, 0.88);
  backdrop-filter: blur(calc(16px * var(--glass-k)));
  -webkit-backdrop-filter: blur(calc(16px * var(--glass-k)));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.tooltip-badge {
  background: #2cd5c4;
  color: #0b1514;
  font-size: 8px;
  font-weight: 800;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooltip-text {
  display: flex;
  flex-direction: column;
}

.tooltip-label {
  font-size: 9px;
  color: #9aa0b0;
  line-height: 1.1;
}

.tooltip-amount {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.tooltip-line {
  width: 1.5px;
  height: 24px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.45) 0px,
    rgba(255, 255, 255, 0.45) 3px,
    transparent 3px,
    transparent 6px
  );
}

.tooltip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent-hi);
  box-shadow: 0 0 8px var(--accent-hi);
}

/* X-Axis Labels */
.chart-x-axis {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px 0;
}

.x-label {
  font-size: 12px;
  color: #8c90a2;
  font-weight: 500;
  transition: color 0.2s;
}

.x-label.highlight {
  color: #ffffff;
  font-weight: 600;
}

/* ----------------------------------------------------
   5. Bottom Row (Goals + Other Savings - Taller & Spacious)
   ---------------------------------------------------- */
.bottom-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Goals Column */
.goals-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.add-goals-btn {
  font-size: 11.5px;
  color: #a4a8b7;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.add-goals-btn:hover {
  color: #ffffff;
}

.goals-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.goal-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(calc(16px * var(--glass-k)));
  -webkit-backdrop-filter: blur(calc(16px * var(--glass-k)));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px 18px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.goal-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.goal-watermark {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  opacity: 0.08;
  color: #ffffff;
  pointer-events: none;
}

.goal-percentage {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.goal-progress-bar {
  height: 6.5px;
  border-radius: 3.5px;
  background: rgba(255, 255, 255, 0.14);
  margin: 12px 0 8px;
  overflow: hidden;
}

.goal-progress-fill {
  height: 100%;
  border-radius: 3.5px;
  background: linear-gradient(90deg, var(--accent-hi), var(--accent-light));
  transition: width 0.6s ease;
}

.goal-title {
  font-size: 11.5px;
  color: #9ca0b0;
  font-weight: 500;
}

/* Other Savings Column */
.other-savings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.other-savings-header {
  display: flex;
  align-items: center;
}

.savings-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(calc(16px * var(--glass-k)));
  -webkit-backdrop-filter: blur(calc(16px * var(--glass-k)));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px 20px;
  min-height: 130px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  box-sizing: border-box;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.savings-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.savings-info {
  display: flex;
  flex-direction: column;
}

.savings-label {
  font-size: 11.5px;
  color: #9ca0b0;
  font-weight: 500;
}

.savings-amount {
  display: flex;
  align-items: baseline;
  margin-top: 5px;
}

.currency-symbol {
  color: var(--accent-hi);
  font-size: 17px;
  font-weight: 700;
  margin-right: 4px;
}

.amount-number {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.savings-growth-badge {
  background: rgba(44, 213, 196, 0.18);
  border: 1px solid rgba(44, 213, 196, 0.35);
  border-radius: 12px;
  padding: 3.5px 10px;
  font-size: 11px;
  color: #2cd5c4;
  font-weight: 700;
  width: fit-content;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.savings-bar-chart {
  display: flex;
  align-items: flex-end;
}

.bars-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bar-track {
  width: 13px;
  height: 62px;
  display: flex;
  align-items: flex-end;
}

.bar-fill {
  width: 100%;
  background: var(--accent-hi);
  border-radius: 3.5px;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.45);
  transition: height 0.5s ease;
}

.bar-label {
  font-size: 10px;
  color: #8c90a2;
  margin-top: 6px;
}

/* ----------------------------------------------------
   6. Right Side Panel (Taller, Transparent & Ultra Glassy)
   ---------------------------------------------------- */
.right-panel {
  padding: 34px 26px 30px;
  background: rgba(12, 14, 18, 0.3);
  backdrop-filter: blur(calc(20px * var(--glass-k)));
  -webkit-backdrop-filter: blur(calc(20px * var(--glass-k)));
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 2;
}

/* Right Panel Header Icons */
.right-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glass-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.glass-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: scale(1.06);
}

.red-notification-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #f54336;
  border-radius: 50%;
  box-shadow: 0 0 6px #f54336;
}

/* User Profile */
.user-profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2px;
}

.avatar-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-tier-tag {
  font-size: 11px;
  color: #9ca0b0;
  margin-top: 8px;
  letter-spacing: 0.1px;
}

.user-full-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  letter-spacing: -0.2px;
}

/* Action Buttons Grid */
.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 6px 0;
}

.action-btn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.action-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  cursor: pointer;
}

.action-btn-item:hover .action-circle-btn,
.action-btn-item.active .action-circle-btn {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.action-btn-label {
  font-size: 11px;
  color: #a4a8b7;
  margin-top: 6px;
  text-align: center;
  font-weight: 500;
}

/* Credit Card Section (VISA - Taller Aspect Ratio) */
.credit-card-container {
  position: relative;
  width: 100%;
  margin: 6px 0 4px;
}

.card-underlay-layer {
  position: absolute;
  bottom: -6px;
  left: 14px;
  right: 14px;
  height: 22px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 1;
}

.premium-visa-card {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 160px;
  border-radius: 18px;
  overflow: hidden;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 
    0 18px 36px -4px rgba(0, 0, 0, 0.65),
    0 8px 18px -2px rgba(var(--accent-rgb), 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #151419;
  box-sizing: border-box;
}

.card-top-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.visa-logo {
  font-family: system-ui, -apple-system, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.card-chip-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emv-gold-chip {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fae082 0%, #caa03a 100%);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.chip-line.horizontal {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.chip-line.vertical {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.chip-core {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 7px;
  right: 7px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 2px;
}

.card-bottom-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.card-balance-info {
  display: flex;
  flex-direction: column;
}

.card-balance-title {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.card-balance-value {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.15;
}

.card-expiry-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.card-expiry-title {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.card-expiry-value {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Last Transaction Section */
.last-transaction-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.transaction-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.transaction-item-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(calc(12px * var(--glass-k)));
  -webkit-backdrop-filter: blur(calc(12px * var(--glass-k)));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.transaction-item-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.transaction-avatar-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.transaction-details {
  display: flex;
  flex-direction: column;
}

.sender-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.transaction-timestamp {
  font-size: 10px;
  color: #9aa0b0;
  line-height: 1.2;
  margin-top: 3px;
}

.transaction-amount-wrap {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.amount-badge {
  background: rgba(var(--accent-rgb), 0.22);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 11px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
}

.transaction-category {
  font-size: 9.5px;
  color: #9aa0b0;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.clock-symbol {
  font-size: 9px;
}

.see-all-transactions-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 12px;
  color: #c0c3d2;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-top: 3px;
}

.see-all-transactions-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.see-all-transactions-btn:hover svg {
  transform: translateX(3px);
  stroke: #ffffff;
}

.see-all-transactions-btn svg {
  transition: transform 0.2s;
}


/* ==========================================================================
   Ultra-realistic Glassmorphic Sidebar with macOS Dock Magnification
   ========================================================================== */

.sidebar-container {
  position: relative;
  width: 74px;
  padding: 16px 0 20px 0;
  border-radius: 28px;
  box-sizing: border-box;
  user-select: none;
  z-index: 100;
  overflow: visible;

  /* Frosted Glass Translucency */
  background: linear-gradient(
    180deg,
    rgba(90, 93, 102, 0.38) 0%,
    rgba(55, 58, 66, 0.35) 25%,
    rgba(32, 34, 40, 0.42) 65%,
    rgba(20, 22, 26, 0.52) 100%
  );
  -webkit-backdrop-filter: blur(24px) saturate(180%) contrast(108%);
  backdrop-filter: blur(24px) saturate(180%) contrast(108%);

  /* Multi-layer Glass Borders & Depth */
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 
    0 30px 60px -10px rgba(0, 0, 0, 0.6),
    0 12px 28px -6px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 14px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 1px 0 rgba(255, 255, 255, 0.1);

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Glass Specular Reflection Highlight Overlay */
.sidebar-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   macOS Traffic Lights
   ========================================================================== */
.sidebar-traffic-lights {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 14px;
  display: flex;
  gap: 5.5px;
  align-items: center;
  padding-left: 21px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.sidebar-traffic-lights .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.sidebar-traffic-lights .dot-red {
  background-color: #ff5f56;
  box-shadow: 0 0 4px rgba(255, 95, 86, 0.7);
}

.sidebar-traffic-lights .dot-yellow {
  background-color: #ffbd2e;
  box-shadow: 0 0 4px rgba(255, 189, 46, 0.7);
}

.sidebar-traffic-lights .dot-green {
  background-color: #27c93f;
  box-shadow: 0 0 4px rgba(39, 201, 63, 0.7);
}

/* ==========================================================================
   Brand Logo / Header Section (Fixed 30px height to prevent vertical jump)
   ========================================================================== */
.sidebar-brand-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  box-sizing: border-box;
}

/* Collapsed Logo: Bold "S" */
.sidebar-brand-collapsed {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-brand-logo {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.5px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Expanded Header: "SideBar UI" + Bell with badge */
.sidebar-brand-expanded {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
  box-sizing: border-box;
}

.sidebar-expanded-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Notification Bell with red '4' badge */
.sidebar-bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  margin-right: 4px;
}

.sidebar-bell-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--side-accent);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(var(--side-accent-rgb), 0.6);
}

/* Floating Expand/Collapse Button on Right Edge */
.sidebar-expand-btn {
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35);
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  z-index: 10;
}

.sidebar-expand-btn:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.sidebar-expand-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* "Collapse" Tooltip Pill */
.sidebar-collapse-pill {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: var(--side-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  animation: fadeIn 0.2s ease forwards;
}

/* ==========================================================================
   Laser Glowing Glass Dividers (Fixed 1px height, 8px margin)
   ========================================================================== */
.sidebar-divider {
  position: relative;
  z-index: 2;
  height: 1px;
  margin: 8px 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.15) 80%,
    transparent 100%
  );
  box-shadow: 0 0 8px 0.5px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   User Profile Section & Card (Fixed 44px height)
   ========================================================================== */
.sidebar-profile-section {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.sidebar-profile-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 17px;
  cursor: pointer;
  box-sizing: border-box;
}

.sidebar-avatar-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sidebar-profile-card:hover .sidebar-avatar-wrapper {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.65);
}

.sidebar-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Profile Details (Expanded) */
.sidebar-profile-details {
  display: flex;
  flex-direction: column;
  margin-left: 12px;
  flex: 1;
  text-align: left;
  overflow: hidden;
}

.sidebar-profile-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sidebar-profile-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sidebar-profile-chevron {
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
  margin-left: 6px;
}

/* ==========================================================================
   Search Row: Lozenge + Input Box (Fixed 28px height)
   ========================================================================== */
.sidebar-search-row {
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 17px;
  gap: 10px;
  margin-bottom: 4px;
  box-sizing: border-box;
}

.sidebar-menu-lozenge {
  width: 40px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-menu-lozenge::before {
  content: '';
  width: 13px;
  height: 7.5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: rotate(-25deg);
  position: absolute;
}

.sidebar-lozenge-dot {
  position: relative;
  z-index: 2;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 3px #ffffff;
}

/* Search Box (Expanded) */
.sidebar-search-box {
  flex: 1;
  height: 26px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  overflow: hidden;
}

.sidebar-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.8px;
  width: 100%;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sidebar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9.5px;
  font-weight: 600;
}

/* ==========================================================================
   Section Labels (MENU, DISCOVERY, GENERAL - Fixed 16px height)
   ========================================================================== */
.sidebar-section {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-section-title {
  width: 100%;
  height: 16px;
  display: flex;
  align-items: center;
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-bottom: 4px;
  padding-left: 20px;
  box-sizing: border-box;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sidebar-container.collapsed .sidebar-section-title {
  justify-content: center;
  padding-left: 0;
}

/* ==========================================================================
   Navigation Items & List (Fixed 38px height on EVERY item)
   ========================================================================== */
.sidebar-nav-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.sidebar-nav-item {
  position: relative;
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 17px;
  background: transparent;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.sidebar-nav-item:focus,
.sidebar-nav-item:focus-visible,
.sidebar-nav-item:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.sidebar-nav-item:hover {
  color: #ffffff;
  border: none !important;
  outline: none !important;
}

/* Icon Slot (Fixed 40px width - Anchors icons perfectly in place) */
.sidebar-nav-icon-slot {
  width: 40px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* macOS Dock Icon Spring Magnification Wrapper */
.sidebar-dock-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

/* Label (Smooth Slide-in without vertical jitter) */
.sidebar-nav-label {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.1px;
}

/* Red Badge '7' on "My List" */
.sidebar-item-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--side-accent);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(var(--side-accent-rgb), 0.5);
  flex-shrink: 0;
}

/* Active State: Clean Red Bar without any white borders */
.sidebar-nav-item.active {
  background: var(--side-accent) !important;
  color: #ffffff !important;
  height: 38px;
  width: 100%;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.sidebar-nav-item.active .sidebar-nav-label {
  color: #ffffff;
  font-weight: 600;
}

.sidebar-nav-item.active:hover {
  background: var(--side-accent-hover) !important;
  border: none !important;
  outline: none !important;
}

/* Active State for badge circle */
.sidebar-nav-item.active .sidebar-badge-circle {
  background: rgba(255, 255, 255, 0.22);
  border: none !important;
  box-shadow: none !important;
}

/* Frosted Glass Badge Circles (Play, Plus, Star) */
.sidebar-badge-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.sidebar-nav-item:hover .sidebar-badge-circle {
  background: rgba(255, 255, 255, 0.28);
}

/* SVG Icon Base */
.sidebar-svg-icon {
  display: block;
}

/* ==========================================================================
   Tooltips (Collapsed Mode Only)
   ========================================================================== */
.sidebar-container.collapsed .sidebar-nav-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: rgba(18, 19, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.2px;
  z-index: 200;
}

.sidebar-container.collapsed .sidebar-nav-item[data-tooltip]::before {
  content: '';
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  border-width: 4px 6px 4px 0;
  border-style: solid;
  border-color: transparent rgba(18, 19, 22, 0.88) transparent transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 200;
}

.sidebar-container.collapsed .sidebar-nav-item[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sidebar-container.collapsed .sidebar-nav-item[data-tooltip]:hover::before {
  opacity: 1;
}

/* Fade In Helper */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* ==========================================================================
   Encaje con el panel de Agencia 24
   ========================================================================== */
html, body { background-color: #0b0c10; min-height: 100vh; }
body { font-family: var(--font-family); overflow-x: hidden; -moz-osx-font-smoothing: grayscale; }

/* el fondo se oscurece lo que diga Apariencia (para que el texto se lea con cualquier imagen) */
.dashboard-background-image::before { content: ''; position: absolute; inset: 0; background: rgb(5, 6, 8); opacity: var(--bg-dim); pointer-events: none; }

/* marco: barra lateral flotante + panel de cristal, con aire alrededor (como .dashboard-wrapper) */
.app { position: relative; z-index: 10; display: flex; align-items: flex-start; gap: 22px; grid-template-columns: none; height: auto; min-height: 100vh;
  width: 100%; max-width: none; margin: 0 auto; padding: 24px 36px; box-sizing: border-box; }   /* el panel aprovecha todo el ancho de la pantalla */
.main.dashboard-main-glass-panel { display: block; overflow: hidden; overflow: clip; min-height: calc(100vh - 48px); }
.main-inner { position: relative; z-index: 2; }

/* cabecera de las demás secciones: mismo tipo de título que el panel */
.topbar { position: static; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; padding: 34px 36px 6px; min-height: 0; }
.topbar h1 { font-size: 25px; font-weight: 700; letter-spacing: -0.4px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); margin: 0; }
.topbar .sub { color: #a4a8b7; }
.content { padding: 20px 36px 40px; }
#banner { padding: 0 36px; margin-top: 12px; }
body[data-route="dashboard"] .topbar { display: none; }
body[data-route="dashboard"] .content { padding: 0; }

/* superficies del resto del panel, en cristal */
.card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15); }
.modal-bg { background: rgba(4, 5, 8, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { background: rgba(24, 26, 32, 0.9); -webkit-backdrop-filter: blur(34px) saturate(190%); backdrop-filter: blur(34px) saturate(190%); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px; box-shadow: 0 35px 85px -12px rgba(0, 0, 0, 0.7), inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.25); }
.toast { background: rgba(25, 27, 34, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 14px; }
select option, select optgroup { background: #1c1e25; color: #fff; }
button, .btn { border-radius: 12px; transition: background .2s ease, border-color .2s ease, opacity .15s, transform .2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .2s ease; }
button.primary, .btn.primary { background: linear-gradient(135deg, var(--accent-hi) 0%, var(--accent-dark) 100%); box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.38); }
button.primary:hover, .btn.primary:hover { background: linear-gradient(135deg, var(--accent-hi) 0%, var(--accent-dark) 100%); box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.55); filter: brightness(1.06); }
button.primary:disabled { box-shadow: none; filter: none; }
input, select, textarea { border-radius: 12px; }
.chip { border-radius: 20px; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.16); }
.chip.on { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12); }
.sticky { top: 24px; }
.section-title h2, .card-head h2, .card-head b { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
::selection { background: rgba(var(--accent-rgb), 0.45); }
.brand .logo { box-shadow: 0 6px 20px rgba(var(--accent-rgb), .35); }

/* ---------------- Inicio: lo que el diseño no traía ---------------- */
body[data-route="dashboard"] #view { display: grid; grid-template-columns: minmax(0, 1fr) 345px; min-height: calc(100vh - 50px); }
.panel-left-content { justify-content: flex-start; }
.dash-top { display: flex; flex-direction: column; gap: 26px; min-height: calc(100vh - 116px); justify-content: space-between; }
.right-panel { justify-content: flex-start; gap: 22px; }
.title-card-icon { font-size: 21px; }
.dash-push { border-color: rgba(var(--accent-rgb), 0.55); color: #fff; background: rgba(var(--accent-rgb), 0.22); }
.dash-push:hover { background: rgba(var(--accent-rgb), 0.34); }
.metric-icon-circle svg.i { width: 13px; height: 13px; stroke: rgba(255, 255, 255, 0.75); }
a.add-goals-btn { text-decoration: none; }
.legend-item { background: none; border: 0; padding: 0; font: inherit; font-size: 11px; }
.legend-item:hover { background: none; }
.legend-item.dim { opacity: 0.45; }
.legend-dot.accent { background: var(--accent-hi); box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7); }
.legend-dot.silver { background: rgba(255, 255, 255, 0.75); box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }
.chart-container { margin-top: 44px; }
.chart-svg path { transition: opacity .25s ease; }
.chart-tooltip-pin { transition: left .28s cubic-bezier(0.4, 0, 0.2, 1), top .28s cubic-bezier(0.4, 0, 0.2, 1); will-change: left, top; }
.tooltip-badge { background: var(--color-teal); text-transform: uppercase; }
.tooltip-dot { border-color: var(--accent-hi); box-shadow: 0 0 8px var(--accent-hi); }
.tooltip-bubble { white-space: nowrap; }
.chart-hit { position: absolute; inset: -30px 0 0 0; z-index: 6; cursor: crosshair; }
.chart-x-axis .x-label { text-transform: capitalize; }
.currency-symbol { color: var(--accent-hi); font-size: 14px; margin-right: 6px; }
.savings-growth-badge.down { background: rgba(245, 67, 54, 0.16); border-color: rgba(245, 67, 54, 0.35); color: #ff8d85; }
.savings-growth-badge.flat { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #c0c3d2; }
.bar-fill { min-height: 3px; }
.goal-watermark svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }
.glass-icon-btn { padding: 0; }
.glass-icon-btn svg.i { width: 17px; height: 17px; }
.right-menu { position: relative; }
.right-menu .dropdown-menu { min-width: 170px; }
.right-menu .dropdown-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #d8dae6; text-decoration: none; }
.right-menu .dropdown-item svg.i { width: 14px; height: 14px; }
.avatar-initial { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #fff; text-transform: uppercase;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.9), rgba(20, 22, 28, 0.9)); }
.action-btn-item { text-decoration: none; }
.action-circle-btn { padding: 0; }
.action-circle-btn svg.i { width: 19px; height: 19px; }
a.premium-visa-card { text-decoration: none; cursor: pointer; transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .25s ease; }
a.premium-visa-card:hover { transform: translateY(-3px); }
.premium-visa-card { box-shadow: 0 18px 36px -4px rgba(0, 0, 0, 0.65), 0 8px 18px -2px rgba(var(--accent-rgb), 0.3); }
.plan-card-art { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; }
.plan-card-dark { position: absolute; top: 0; right: 0; bottom: 0; width: 31%; z-index: 1; background: linear-gradient(135deg, #0d0d10 0%, #17161b 48%, #0b0b0d 52%, #131217 100%); box-shadow: -6px 0 14px rgba(0, 0, 0, 0.45); }
.visa-logo { font-size: 14px; letter-spacing: 1px; }
.transaction-avatar-wrap { display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #fff; }
.transaction-avatar-wrap svg.i { width: 17px; height: 17px; }
.amount-badge.off { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #c0c3d2; }
.transaction-item-card { text-decoration: none; color: inherit; cursor: pointer; }
.see-all-transactions-btn { width: 100%; text-decoration: none; font-family: inherit; }
.dash-more { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.dash-more .section-title { margin: 6px 0 0; }
.dash-more .section-title h2 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.2px; margin: 0; }
.dash-more .grid2 { margin-top: 6px; }

/* ---------------- barra lateral: lo que hace falta para vivir dentro del panel ---------------- */
.sidebar-container { position: sticky; top: 24px; flex: none; max-height: calc(100vh - 48px); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; will-change: width; }
.sidebar-scroll { position: relative; z-index: 2; width: 100%; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; display: flex; flex-direction: column; align-items: center; }
.sidebar-scroll::-webkit-scrollbar { display: none; }
a.sidebar-nav-item { text-decoration: none; font: inherit; flex: none; }
button.sidebar-nav-item { font: inherit; border-radius: 0; flex: none; }
.sidebar-nav-item svg.i { width: 19px; height: 19px; display: block; }
.sidebar-nav-item.active svg.i { stroke: #fff; }
.sidebar-container.collapsed .sidebar-nav-label, .sidebar-container.collapsed .sidebar-item-badge, .sidebar-container.collapsed .sidebar-profile-chevron,
.sidebar-container.collapsed .sidebar-collapse-pill, .sidebar-container.collapsed .sidebar-version { display: none; }
.sidebar-nav-item.sb-hide, .sidebar-section.sb-hide, .sidebar-divider.sb-hide { display: none; }
.sidebar-expand-btn { border-radius: 50%; }
.sidebar-expand-btn:hover { background: #ffffff; }
.sidebar-bell-btn { background: none; border: 0; padding: 0; border-radius: 0; }
.sidebar-bell-btn:hover { background: none; }
.sidebar-avatar-initial { font-size: 16px; font-weight: 700; color: #fff; text-transform: uppercase; line-height: 1; }
.sidebar-profile-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profile-switch { white-space: nowrap; }
.sidebar-profile-switch span { overflow: hidden; text-overflow: ellipsis; }
.sidebar-menu-lozenge { position: relative; cursor: pointer; }
.sidebar-version { position: relative; z-index: 2; margin-top: 8px; font-size: 8.5px; letter-spacing: .9px; color: rgba(255, 255, 255, 0.4); }
/* entradas y salidas (las mismas duraciones y desplazamientos que en el diseño) */
.sb-in-fade { animation: sbFade .15s ease both; }
.sb-out-fade { animation: sbFade .15s ease both reverse; }
.sb-in-x6 { animation: sbX6 .2s ease both; }
.sb-out-x6 { animation: sbX6 .2s ease both reverse; }
.sb-in-x8 { animation: sbX8 .2s ease both; }
.sb-out-x8 { animation: sbX8 .2s ease both reverse; }
.sb-in-w { animation: sbW .2s ease both; }
.sb-out-w { animation: sbW .2s ease both reverse; }
@keyframes sbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sbX6 { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: translateX(0); } }
@keyframes sbX8 { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes sbW { from { opacity: 0; width: 0; } to { opacity: 1; width: 100%; } }
/* etiqueta flotante en modo contraído (misma que la del diseño, fuera de la barra para que el desplazamiento no la corte) */
.sidebar-tip { position: fixed; z-index: 300; transform: translateY(-50%) translateX(-4px); background: rgba(18, 19, 22, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff;
  padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.2px; }
.sidebar-tip::before { content: ''; position: absolute; left: -6px; top: 50%; transform: translateY(-50%); border-width: 4px 6px 4px 0; border-style: solid; border-color: transparent rgba(18, 19, 22, 0.88) transparent transparent; }
.sidebar-tip.on { opacity: 1; transform: translateY(-50%) translateX(0); }
/* elegir cliente (Agencia 24) */
.sidebar-pop { position: fixed; z-index: 310; width: 250px; max-height: min(420px, calc(100vh - 40px)); display: flex; flex-direction: column; background: rgba(25, 27, 34, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); animation: sbX6 .18s ease both; font-family: var(--font-family); }
.sidebar-pop h4 { margin: 6px 8px 6px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); font-weight: 700; }
.sidebar-pop input { height: 30px; font-size: 12px; margin: 0 0 6px; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); }
.sidebar-pop .list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sidebar-pop button { justify-content: flex-start; width: 100%; background: transparent; border: 0; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: #c9ccd8; text-align: left; white-space: normal; }
.sidebar-pop button:hover, .sidebar-pop button.on { background: rgba(255, 255, 255, 0.14); color: #fff; }
.sidebar-pop button.on::after { content: '✓'; margin-left: auto; color: var(--accent-light); }

/* ---------------- Apariencia ---------------- */
.apgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.apbg { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); background: #0b0c10 var(--bg-image) center / cover no-repeat; }
.apbg::after { content: ''; position: absolute; inset: 0; background: rgb(5, 6, 8); opacity: var(--bg-dim); }
.apbg.drop { outline: 2px dashed var(--accent); outline-offset: 3px; }
.apbg span { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 11.5px; padding: 3px 9px; border-radius: 10px; background: rgba(18, 19, 22, 0.75); border: 1px solid rgba(255, 255, 255, 0.16); }
.apsw { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.apsw button { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35); }
.apsw button:hover { transform: scale(1.1); }
.apsw button.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.35); }
.apsw input[type=color] { width: 44px; height: 34px; border-radius: 10px; }
.apdemo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.apdemo .bar { width: 150px; height: 34px; line-height: 34px; padding: 0 14px; font-size: 12.5px; font-weight: 600; color: #fff; }
.apdemo .bar.side { background: var(--side-accent); }
.apdemo .prog { flex: 1; min-width: 140px; }

/* ---------------- tamaños de pantalla ---------------- */
@media (max-width: 1280px) {
  /* en ventanas medianas el marco aprieta sus márgenes para dejar sitio al contenido */
  .app { padding: 18px; gap: 16px; }
  .sidebar-container { top: 18px; max-height: calc(100vh - 36px); }
  .main.dashboard-main-glass-panel { min-height: calc(100vh - 36px); }
  .topbar { padding: 28px 26px 6px; }
  .content { padding: 18px 26px 34px; }
  #banner { padding: 0 26px; }
  .panel-left-content { padding: 28px 26px; }
  .right-panel { padding: 28px 20px; }
  .dash-top { min-height: calc(100vh - 92px); }
}
@media (max-width: 1200px) {
  body[data-route="dashboard"] #view { grid-template-columns: minmax(0, 1fr) 310px; }
}
@media (max-width: 990px) {
  body[data-route="dashboard"] #view { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .dash-top { min-height: 0; }
  .right-panel { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .apgrid { grid-template-columns: 1fr; }
}
@media (max-width: 990px) {
  /* en pantallas estrechas la barra queda como un muelle fijo y, al desplegarla, pasa por encima del contenido */
  .app { padding: 12px 12px 12px 98px; gap: 0; }
  .sidebar-container { position: fixed; left: 12px; top: 12px; max-height: calc(100vh - 24px); }
  .main.dashboard-main-glass-panel { min-height: calc(100vh - 24px); border-radius: 24px; }
  .topbar { padding: 22px 18px 4px; flex-wrap: wrap; }
  .content { padding: 16px 18px 30px; }
  #banner { padding: 0 18px; }
  .panel-left-content { padding: 24px 18px; }
  .right-panel { padding: 24px 18px; }
  .stat-card-top { flex-direction: column; gap: 10px; }
}
@media (max-width: 640px) {
  .bottom-sections-grid, .goals-cards-row { grid-template-columns: 1fr; }
  .header-metrics-pill { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-in-fade, .sb-out-fade, .sb-in-x6, .sb-out-x6, .sb-in-x8, .sb-out-x8, .sb-in-w, .sb-out-w, .sidebar-pop { animation-duration: 1ms; }
}

/* ---- ajustes tras comparar con el diseño ---- */
:root { --glass-k: 1; }
.stat-card-title, .user-full-name, .transaction-section-title { text-transform: none; letter-spacing: normal; margin: 0; }
.stat-card-title { color: #ffffff; }
.statistic-card h3, .statistic-card p, .right-panel h3, .right-panel h4 { margin-bottom: 0; }
/* la pastilla «Contraer» flota fuera de la barra: aparece al acercarse a la cabecera (si no, taparía el título de la sección) */
.sidebar-collapse-pill { animation: none; opacity: 0; transform: translateY(-50%) translateX(-4px); transition: opacity .2s ease, transform .2s ease; }
.sidebar-brand-wrapper:hover .sidebar-collapse-pill, .sidebar-expand-btn:hover .sidebar-collapse-pill, .sidebar-expand-btn:focus-visible .sidebar-collapse-pill { opacity: 1; transform: translateY(-50%); }
/* la barra tiene más secciones que la del diseño: si no caben, se desliza y se difumina por abajo */
.sidebar-scroll.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent); }
.tooltip-bubble { transform: translateX(var(--tip-shift, 0px)); transition: transform .28s cubic-bezier(0.4, 0, 0.2, 1); }
.apsw .colorrow input.hexin { width: 104px; }
.transaction-details { min-width: 0; }
.sender-name, .transaction-timestamp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transaction-amount-wrap { flex-shrink: 0; }
.transaction-category { white-space: nowrap; }
/* estrecho: nada empuja el panel más allá de su ancho */
.panel-left-content, .dash-top, .dash-more, .statistic-section, .bottom-sections-grid > * { min-width: 0; }
.statistic-header { flex-wrap: wrap; gap: 10px; }
.statistic-header > .row { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }

/* ---- móvil: la barra se guarda y se abre con un botón de menú (el diseño no trae versión de móvil) ---- */
.sidebar-fab, .sidebar-veil { display: none; }
@media (max-width: 760px) {
  .app { padding: 6px; }
  .main { padding-bottom: 0; }
  .sidebar-container { left: 8px; top: 8px; max-height: calc(100vh - 16px); z-index: 210; transition: transform .32s cubic-bezier(0.32, 0.72, 0, 1), opacity .2s ease; }
  .sidebar-container.collapsed { transform: translateX(calc(-100% - 30px)); opacity: 0; pointer-events: none; }
  .main.dashboard-main-glass-panel { min-height: calc(100vh - 12px); border-radius: 22px; }
  .sidebar-fab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: fixed; left: 16px; top: 18px; z-index: 190; width: 42px; height: 42px; padding: 0; border-radius: 50%;
    background: rgba(40, 42, 50, 0.55); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3); }
  .sidebar-fab span { display: block; width: 16px; height: 2px; border-radius: 2px; background: #fff; }
  .sidebar-fab:active { transform: scale(0.94); }
  .sidebar-veil { display: block; position: fixed; inset: 0; z-index: 200; background: rgba(4, 5, 8, 0.55); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.sb-open .sidebar-veil { opacity: 1; pointer-events: auto; }
  .topbar { padding: 20px 12px 4px 66px; min-height: 62px; }
  .content { padding: 14px 12px 28px; overflow-x: auto; }   /* si algo no cabe en el móvil, se desliza: nunca queda cortado */
  #banner { padding: 0 12px; }
  .panel-left-content, .right-panel { padding: 20px 12px; }
  .dashboard-header { padding-left: 54px; min-height: 44px; }
  .dashboard-header .header-metrics-pill { margin-left: -54px; width: calc(100% + 54px); }
  .sidebar-tip { display: none; }
  .sidebar-collapse-pill { display: none; }
}
.savings-growth-badge { white-space: nowrap; }
/* el panel ya no ocupa toda la ventana: las tablas anchas se deslizan dentro de su tarjeta en vez de cortarse */
.card:has(> table), .content > table, .tablewrap { overflow-x: auto; }
.card:has(> table) { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }

/* cabeceras y rejillas que no empujan el panel */
.topbar { flex-wrap: wrap; row-gap: 10px; }
.topbar > .row, #topActions { flex-wrap: wrap; justify-content: flex-end; }
.editor > *, .grid2 > *, .grid3 > * { min-width: 0; }

/* ---------------- «Crear y publicar»: botón fijo del menú y ventana del asistente ---------------- */
.sidebar-create-sec { padding-top: 2px; }
.sidebar-nav-item.sidebar-create { color: #fff; }
.sidebar-nav-item.sidebar-create .sidebar-dock-icon-wrapper { background: var(--accent); border-radius: 9px; width: 28px; height: 28px; display: grid; place-items: center; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent); }
.sidebar-nav-item.sidebar-create .sidebar-nav-label { font-weight: 650; }
.sidebar-section-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pcgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 22px; align-items: start; }
.pcleft { gap: 14px; min-width: 0; }
.pcstep { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.02); }
.pcstep > h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pcstep > h3 .n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; display: grid; place-items: center; flex: none; }
.pcstep > h3 .sum { font-weight: 400; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pcthumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pcthumbs .pt { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; position: relative; background: #07080c; border: 1px solid var(--line); flex: none; }
.pcthumbs .pt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcthumbs .pt button { position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; line-height: 1; padding: 0; cursor: pointer; }
.pcthumbs .pt b { position: absolute; left: 4px; bottom: 3px; font-size: 10px; color: #fff; text-shadow: 0 1px 3px #000; }
.pcdest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pcdest button { padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.pcdest button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pcdest button[disabled] { opacity: .45; cursor: not-allowed; }
.pcdest button small { color: var(--muted); font-size: 11.5px; }
.pctpl { display: flex; gap: 10px; align-items: center; }
.pctpl .tt { width: 54px; height: 96px; border-radius: 8px; overflow: hidden; background: #07080c; border: 1px solid var(--line); flex: none; display: grid; place-items: center; font-size: 20px; }
.pctpl .tt img { width: 100%; height: 100%; object-fit: cover; }
.pcright { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pcprev { background: #07080c; border: 1px solid var(--line); border-radius: 14px; min-height: 280px; max-height: 58vh; display: flex; align-items: center; justify-content: flex-start; gap: 8px; overflow-x: auto; padding: 10px; }
.pcprev.one { justify-content: center; }
.pcprev img, .pcprev video { max-height: calc(58vh - 22px); max-width: 100%; border-radius: 8px; flex: none; display: block; }
.pcprev .ph { color: var(--muted); font-size: 13px; text-align: center; width: 100%; padding: 30px 16px; }
.pccap { font-size: 13px; line-height: 1.5; white-space: pre-wrap; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; max-height: 150px; overflow: auto; }
.pcpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pcpick .card { cursor: pointer; overflow: hidden; }
.pcpick .card .thumb { aspect-ratio: 9/16; }
.pcpick .card .meta { padding: 6px 8px; font-size: 12px; }
@media (max-width: 900px) { .pcgrid { grid-template-columns: minmax(0, 1fr); } .pcright { position: static; order: -1; } .pcprev { min-height: 160px; max-height: 36vh; } .pcprev img, .pcprev video { max-height: calc(36vh - 22px); } .pcdest { grid-template-columns: 1fr; } }

.pcstep > h3 { text-transform: none; letter-spacing: 0; }
.pcstep > h3 .sum { text-transform: none; }
