/* VT shell: sidebar navy + dock + dashboard bento.
   Global stage uses gold tokens from app.css — do NOT override :root here. */

:root {
  --vt-navy: #0d2137;
  --vt-navy-2: #122b44;
  --vt-cyan: #00aeef;
  --vt-cyan-2: #4fc3f7;
  --vt-cyan-deep: #0094d4;
  --vt-green: #27ae60;
  --vt-purple: #8e44ad;
  --vt-orange: #f39c12;
  --vt-yellow: #f1c40f;
  --vt-gold: #c5933a;
  --vt-gold-2: #e0b45a;
  --vt-gold-deep: #a67c00;
}

/* Stage / body: dorado (último tema pre-DreamHost) */
body.is-app {
  background: #f7f1e4 !important;
}
body.is-app .app-bg {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 255, 255, 0.92), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(224, 180, 90, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 45% at 92% 12%, rgba(197, 147, 58, 0.16), transparent 55%),
    linear-gradient(165deg, #fbf6eb 0%, #f3ead7 45%, #ebe0c8 100%) !important;
}
body.is-app .app-bg::before {
  display: block !important;
  content: "" !important;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
body.is-app .app-bg::after {
  display: block !important;
  content: "" !important;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  right: -8vw;
  top: 18vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 147, 58, 0.28), transparent 68%);
  filter: blur(8px);
}

.app-shell--app {
  background: transparent;
}

/* Sidebar: mantener navy actual */
.app-shell--app .sidebar {
  background: linear-gradient(180deg, #16324f 0%, var(--vt-navy) 40%, #0a1a2c 100%) !important;
  color: #fff !important;
  border-right: 0 !important;
  border-radius: 0 28px 28px 0;
  box-shadow: 10px 0 30px rgba(13, 33, 55, 0.25);
}

.app-shell--app .brand-mark__glyph {
  background: linear-gradient(145deg, var(--vt-gold-2), var(--vt-gold-deep)) !important;
  border-color: rgba(197, 147, 58, 0.55) !important;
  box-shadow: 0 6px 16px rgba(166, 124, 0, 0.35) !important;
  text-shadow: none !important;
  border-radius: 14px;
}

.app-shell--app .sidebar .nav-group-label {
  color: #a8c0d4 !important;
  opacity: 0.85;
}

.app-shell--app .sidebar .nav-item {
  color: rgba(255, 255, 255, 0.92) !important;
  border-radius: 14px;
  gap: 0.75rem;
}
.app-shell--app .sidebar .nav-item:hover {
  background: rgba(197, 147, 58, 0.18) !important;
  color: #fff !important;
}
.app-shell--app .sidebar .nav-item.is-active {
  background: rgba(0, 0, 0, 0.28) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: inset 3px 0 0 var(--vt-gold) !important;
}

.app-shell--app .nav-icon {
  width: 1.55rem;
  height: 1.55rem;
}
.app-shell--app .nav-icon svg {
  width: 1.35rem !important;
  height: 1.35rem !important;
  overflow: visible;
  fill: initial !important;
  stroke: initial !important;
  stroke-width: initial !important;
}
.app-shell--app .nav-icon svg .stroke {
  fill: none !important;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.nav-badge {
  margin-left: auto;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.nav-badge--money {
  min-width: 0;
  height: auto;
  padding: 0.15rem 0.45rem;
  background: rgba(241, 196, 15, 0.22);
  color: var(--vt-yellow);
  font-size: 0.72rem;
}

.app-shell--app .sidebar-foot {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}
.app-shell--app .sidebar .user-chip,
.app-shell--app .sidebar .user-chip strong { color: #fff; }
.app-shell--app .sidebar .user-chip small { color: #a8c0d4; }

/* Logout: dorado (no ghost blanco) */
.app-shell--app .sidebar .logout-form .btn-ghost,
.app-shell--app .sidebar .logout-form .btn {
  background: linear-gradient(90deg, #a67c00, #c5933a 40%, #e0b45a 50%, #c5933a 60%, #a67c00) !important;
  color: #fff !important;
  border: 1px solid rgba(224, 180, 90, 0.65) !important;
  box-shadow: 0 4px 12px rgba(166, 124, 0, 0.28) !important;
  font-weight: 700;
}
.app-shell--app .sidebar .logout-form .btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.app-shell--app .app-stage { background: transparent; }
.app-shell--app .main { padding-bottom: 6.5rem; }
.app-shell--app .app-footer { display: none; }
.app-shell--app .mobile-nav { display: none !important; }

/* Cards / botones del stage: marco dorado */
.app-shell--app .app-stage .card,
.app-shell--app .app-stage .hero-panel,
.app-shell--app .app-stage .panel-soft {
  border: 1px solid rgba(197, 147, 58, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 28px rgba(38, 52, 79, 0.08),
    0 0 0 1px rgba(197, 147, 58, 0.08);
}
.app-shell--app .app-stage .btn-primary {
  background: linear-gradient(90deg, #a67c00, #c5933a 35%, #e0b45a 50%, #c5933a 65%, #a67c00) !important;
  border-color: rgba(197, 147, 58, 0.55) !important;
  box-shadow: 0 6px 16px rgba(166, 124, 0, 0.28) !important;
}
.app-shell--app .app-stage .page-kicker {
  color: var(--vt-gold-deep);
}

/* ——— Dashboard bento (cyan tiles only here) ——— */
.vt-dash { color: var(--vt-navy); }
.vt-dash__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.vt-dash__bar h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  color: var(--vt-navy);
  letter-spacing: -0.03em;
}
.vt-dash__bar-meta { display: flex; align-items: center; gap: 0.65rem; }
.vt-dash__avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--vt-gold-2), var(--vt-gold-deep));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.vt-dash__kicker {
  margin: 0 0 0.85rem;
  color: var(--vt-gold-deep);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.vt-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
}

.vt-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 30px rgba(13, 33, 55, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.vt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(13, 33, 55, 0.2);
  color: inherit;
}
.vt-card__pad { padding: 1rem 1.05rem 1.05rem; }
.vt-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.vt-card__sub {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.92;
}
.vt-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.vt-card__badge {
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.24);
  font-weight: 800;
  font-size: 0.82rem;
}

.vt-card--hoy {
  grid-column: span 5;
  grid-row: span 2;
  background: #fff;
  color: var(--vt-navy);
  min-height: 280px;
  border: 1px solid rgba(197, 147, 58, 0.25);
}
.vt-hoy-date {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.75rem;
}
.vt-hoy-date strong {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--vt-navy);
}
.vt-hoy-date span { font-weight: 700; color: #5d7388; }
.vt-photo-grid { display: grid; gap: 0.4rem; }
.vt-photo-grid--33 { grid-template-columns: repeat(3, 1fr); }
.vt-photo-grid--22 { grid-template-columns: repeat(2, 1fr); }
.vt-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #f3ead7;
}

.vt-card--inbox {
  grid-column: span 3;
  background: linear-gradient(160deg, #2ecc71, #27ae60 60%, #1e8449);
  color: #fff;
  min-height: 170px;
}
.vt-card--tasks {
  grid-column: span 4;
  background: linear-gradient(160deg, #9b59b6, #8e44ad 55%, #6c3483);
  color: #fff;
  min-height: 170px;
}
.vt-card--goals {
  grid-column: span 4;
  background: linear-gradient(160deg, #e0b45a, #c5933a 50%, #a67c00);
  color: #fff;
  min-height: 240px;
}
.vt-card--goals .vt-photo-grid--22 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 140px;
}
.vt-card--finance {
  grid-column: span 3;
  background: linear-gradient(160deg, #2ecc71, #1e8449 70%);
  color: #fff;
  min-height: 240px;
}
.vt-card--agenda {
  grid-column: 1 / span 12;
  background: #fff;
  color: var(--vt-navy);
  min-height: 180px;
  border: 1px solid rgba(197, 147, 58, 0.25);
}

.vt-money {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.vt-spark {
  width: 100%;
  max-width: 150px;
  height: 34px;
  margin: 0.2rem 0 0.55rem;
}
.vt-task-preview {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.vt-task-preview li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
}
.vt-check {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  flex: 0 0 auto;
}
.vt-check.is-on {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--vt-purple);
}

.vt-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.vt-timeline li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.65rem;
  align-items: start;
}
.vt-timeline strong {
  display: block;
  font-size: 0.8rem;
  color: #5d7388;
}
.vt-timeline a {
  color: var(--vt-navy);
  font-weight: 700;
  text-decoration: none;
}
.vt-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
}
.vt-dot--cyan { background: var(--vt-cyan); }
.vt-dot--orange { background: var(--vt-orange); }
.vt-dot--green { background: var(--vt-green); }
.vt-dot--purple { background: var(--vt-purple); }

.vt-agenda-foot {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid #efe4c8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #5d7388;
}
.vt-agenda-foot a { color: var(--vt-gold-deep); text-decoration: none; }

/* Dock: mantener */
.vt-dock {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(13, 33, 55, 0.18);
  border: 1px solid rgba(197, 147, 58, 0.28);
}
.vt-dock a {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5d7388;
  text-decoration: none;
}
.vt-dock a svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vt-dock a.is-active { color: var(--vt-gold-deep); }
.vt-dock__plus {
  width: 3.3rem !important;
  height: 3.3rem !important;
  margin: 0 0.25rem;
  background: linear-gradient(145deg, var(--vt-gold-2), var(--vt-gold-deep)) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(166, 124, 0, 0.4);
}
.vt-dock__plus svg { stroke: #fff; stroke-width: 2.4; }

/* ——— Onboarding visual ——— */
.onboarding-journey {
  display: grid;
  gap: 1rem;
}
.onboarding-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(197, 147, 58, 0.3);
}
.onboarding-progress__ring {
  width: 88px;
  height: 88px;
}
.onboarding-progress__copy strong {
  display: block;
  font-size: 1.05rem;
  color: var(--vt-navy);
}
.onboarding-progress__copy span {
  color: #5d7388;
  font-size: 0.92rem;
}
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.onboarding-tile {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(197, 147, 58, 0.22);
  box-shadow: 0 10px 24px rgba(38, 52, 79, 0.06);
  text-decoration: none;
  color: inherit;
  min-height: 148px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.onboarding-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(38, 52, 79, 0.1);
  color: inherit;
}
.onboarding-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.onboarding-tile__num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--vt-gold-2), var(--vt-gold-deep));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}
.onboarding-tile__icon {
  width: 2.2rem;
  height: 2.2rem;
}
.onboarding-tile h2 {
  margin: 0;
  font-size: 1.05rem;
}
.onboarding-tile p {
  margin: 0;
  color: #5d7388;
  font-size: 0.9rem;
  flex: 1;
}
.onboarding-tile__meter {
  height: 8px;
  border-radius: 999px;
  background: #f0e6d0;
  overflow: hidden;
}
.onboarding-tile__meter > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--vt-gold-deep), var(--vt-gold-2));
}
.onboarding-tile__stat {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vt-gold-deep);
}

@media (max-width: 980px) {
  .vt-card--hoy,
  .vt-card--inbox,
  .vt-card--tasks,
  .vt-card--goals,
  .vt-card--finance,
  .vt-card--agenda { grid-column: span 6; grid-row: auto; }
}
@media (max-width: 720px) {
  .app-shell--app .sidebar { display: none; }
  .vt-bento { grid-template-columns: 1fr; }
  .vt-card--hoy,
  .vt-card--inbox,
  .vt-card--tasks,
  .vt-card--goals,
  .vt-card--finance,
  .vt-card--agenda { grid-column: span 1; }
}
