/* app-theme.css v1 — Android WebView only (html.vibe-app). Desktop and the mobile browser stay unchanged. */

html.vibe-app,
html.vibe-app body {
  background-color: transparent !important;
  min-height: 100%;
}

html.vibe-app body {
  isolation: isolate;
}

html.vibe-app #vibe-app-wall {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg, #0a0a0a);
  background-image: var(--app-wallpaper, var(--wallpaper, var(--theme-wallpaper, var(--pack-page, none))));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

html.vibe-app #vibe-app-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg, #0a0a0a) 40%, transparent) 0%,
      color-mix(in srgb, var(--bg, #0a0a0a) 62%, transparent) 42%,
      color-mix(in srgb, var(--bg, #0a0a0a) 78%, transparent) 100%
    );
}

html.vibe-app:not(.vibe-app-wall) #vibe-app-wall {
  background-image: none;
  background-color: var(--bg, #0a0a0a);
}

html.vibe-app:not(.vibe-app-wall) #vibe-app-scrim {
  background: none;
}

/* Let the art show through the page chrome. Do not crop pack art into a header strip. */
html.vibe-app.vibe-app-wall nav.vibe-bar,
html.vibe-app.vibe-app-wall.pack-bar nav.vibe-bar,
html.vibe-app.vibe-app-wall .vibe-dock,
html.vibe-app.vibe-app-wall nav.vibe-dock {
  background-color: color-mix(in srgb, var(--bg, #0a0a0a) 70%, transparent) !important;
  background-image: none !important;
  border-color: var(--line, rgba(255, 255, 255, 0.06));
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}

html.vibe-app main,
html.vibe-app main.vm-page,
html.vibe-app main.cat-page,
html.vibe-app main.desk-page,
html.vibe-app main.opts-page,
html.vibe-app main.desk,
html.vibe-app #vibe-shell,
html.vibe-app .vm-page,
html.vibe-app .cat-page {
  background-color: transparent !important;
  background-image: none;
}

/* Semi-transparent cards so theme art shows through, with enough tint for text. */
html.vibe-app.vibe-app-wall .vu-panel,
html.vibe-app.vibe-app-wall .lb-card,
html.vibe-app.vibe-app-wall .mf-card,
html.vibe-app.vibe-app-wall .wk-card,
html.vibe-app.vibe-app-wall .wk-wrap,
html.vibe-app.vibe-app-wall .in-card,
html.vibe-app.vibe-app-wall .th-card,
html.vibe-app.vibe-app-wall .vcp-card,
html.vibe-app.vibe-app-wall .desk-card,
html.vibe-app.vibe-app-wall .board-card,
html.vibe-app.vibe-app-wall .opts-card,
html.vibe-app.vibe-app-wall .chart-card,
html.vibe-app.vibe-app-wall .hold-panel,
html.vibe-app.vibe-app-wall .swap-card,
html.vibe-app.vibe-app-wall .swap-box,
html.vibe-app.vibe-app-wall .swap-panel,
html.vibe-app.vibe-app-wall .tok-card,
html.vibe-app.vibe-app-wall .wl-card,
html.vibe-app.vibe-app-wall .wallet-card,
html.vibe-app.vibe-app-wall .modal-card,
html.vibe-app.vibe-app-wall .app-onb-card,
html.vibe-app.vibe-app-wall .app-sheet-card,
html.vibe-app.vibe-app-wall .dep-addr-card,
html.vibe-app.vibe-app-wall .home-card,
html.vibe-app.vibe-app-wall .hub-card,
html.vibe-app.vibe-app-wall .sg-card,
html.vibe-app.vibe-app-wall .call-card,
html.vibe-app.vibe-app-wall .coin-card,
html.vibe-app.vibe-app-wall .vp-card,
html.vibe-app.vibe-app-wall .recap-card,
html.vibe-app.vibe-app-wall .week-card {
  background-color: color-mix(in srgb, var(--surface, #111113) 76%, transparent) !important;
  border-color: var(--line, rgba(255, 255, 255, 0.08));
  color: var(--text, #f4f4f5);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  backdrop-filter: blur(14px) saturate(1.12);
}

/* Rows, pills, tabs, sticky strips — use theme vars even when art is off. */
html.vibe-app .tok-row,
html.vibe-app .hold-row,
html.vibe-app .hist-row,
html.vibe-app .lb-row,
html.vibe-app .vu-row,
html.vibe-app .in-tabs,
html.vibe-app .sg-tabs,
html.vibe-app .vcp-pill,
html.vibe-app .vcp-pills,
html.vibe-app nav.in-tabs,
html.vibe-app .in-tabs-app {
  border-color: var(--line, rgba(255, 255, 255, 0.06));
  color: var(--text, #f4f4f5);
}

html.vibe-app.vibe-app-wall .tok-row,
html.vibe-app.vibe-app-wall .hold-row,
html.vibe-app.vibe-app-wall .hist-row,
html.vibe-app.vibe-app-wall .lb-row,
html.vibe-app.vibe-app-wall .vu-row,
html.vibe-app.vibe-app-wall nav.in-tabs,
html.vibe-app.vibe-app-wall .in-tabs-app,
html.vibe-app.vibe-app-wall .sg-tabs {
  background-color: color-mix(in srgb, var(--surface, #111113) 70%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

html.vibe-app .in-tabs button.on,
html.vibe-app .sg-tabs button.on,
html.vibe-app .vcp-pill.on,
html.vibe-app .in-tabs .on,
html.vibe-app [aria-selected="true"] {
  color: var(--bg, #0a0a0a);
  background: var(--mint, #14f195);
}

html.vibe-app .in-tabs button,
html.vibe-app .sg-tabs button,
html.vibe-app .vcp-pill {
  color: var(--text, #f4f4f5);
}

/* Insights tab sheet and other sheets */
html.vibe-app .in-tabs-sheet,
html.vibe-app .app-sheet-card,
html.vibe-app .opts-pop,
html.vibe-app .opts-sheet,
html.vibe-app .find-sheet,
html.vibe-app .dep-sheet,
html.vibe-app .done-sheet,
html.vibe-app .av-sheet,
html.vibe-app .th-done-sheet,
html.vibe-app .app-sheet {
  background-color: color-mix(in srgb, var(--bg, #0a0a0a) 88%, transparent) !important;
  color: var(--text, #f4f4f5);
  border-color: var(--line, rgba(255, 255, 255, 0.08));
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
}

html.vibe-app .in-tabs-sheet-head,
html.vibe-app .opts-pop .opts-sheet-head,
html.vibe-app .opts-sheet-head,
html.vibe-app .find-sheet-head {
  background: color-mix(in srgb, var(--bg, #0a0a0a) 80%, transparent);
  color: var(--text, #f4f4f5);
  border-color: var(--line, rgba(255, 255, 255, 0.06));
}

html.vibe-app .in-tabs-sheet-x,
html.vibe-app .in-tabs-sheet-list button,
html.vibe-app .in-tabs-sheet a {
  color: var(--text, #f4f4f5);
}

html.vibe-app .in-tabs-sheet-x:hover,
html.vibe-app .in-tabs-sheet-x:focus-visible,
html.vibe-app .in-tabs-sheet-on,
html.vibe-app .in-tabs-sheet-list button:hover {
  color: var(--mint, #14f195);
}

/* Gradient actions and the floating action pill */
html.vibe-app .app-act-main,
html.vibe-app .app-onb-mark,
html.vibe-app a.btn-go,
html.vibe-app .btn-go,
html.vibe-app .swap-go,
html.vibe-app .cta-go,
html.vibe-app .hero-cta,
html.vibe-app button.swap-submit,
html.vibe-app .hold-buy,
html.vibe-app .coin-buy {
  background: linear-gradient(135deg, var(--mint, #14f195), var(--purple, #a855f7)) !important;
  color: #0a0a0a;
  border-color: transparent;
}

html.vibe-app .app-act {
  border-color: var(--line, rgba(255, 255, 255, 0.08));
  background: color-mix(in srgb, var(--surface, #111113) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text, #f4f4f5);
}

html.vibe-app .app-act:active {
  background: color-mix(in srgb, var(--surface-2, #17171b) 80%, transparent);
}

/* Accent tints that used to be locked to classic purple / mint */
html.vibe-app .side-item.on,
html.vibe-app .vibe-dock a.on,
html.vibe-app .vibe-dock button.on {
  background: color-mix(in srgb, var(--purple, #a855f7) 22%, transparent);
  color: var(--text, #f4f4f5);
}

html.vibe-app .swap-ad .hero-banner {
  border-color: color-mix(in srgb, var(--purple, #a855f7) 28%, transparent);
  background: color-mix(in srgb, var(--bg, #0a0a0a) 70%, transparent);
}

/* More / options sheet: keep readable, let a hint of art through */
html.vibe-app.vibe-app-wall .vibe-side {
  background-color: color-mix(in srgb, var(--bg, #0a0a0a) 88%, #000) !important;
}

html.vibe-app.vibe-app-wall.pack-side .vibe-side::before {
  opacity: 0.28;
}

/* Chart / heat accents follow the theme */
html.vibe-app .hist-amt-in,
html.vibe-app .pnl-up,
html.vibe-app .chg.up,
html.vibe-app .pos {
  color: var(--mint, #14f195);
}

html.vibe-app [style*="#14f195"] {
  /* no-op hook; inline chart colors are remapped in app-theme.js */
}

/* Theme gallery cards already carry their own art; just tint the chrome */
html.vibe-app.vibe-app-wall .th-card-body,
html.vibe-app.vibe-app-wall .th-cta-bar {
  background-color: color-mix(in srgb, var(--surface, #111113) 78%, transparent);
  color: var(--text, #f4f4f5);
  border-color: var(--line, rgba(255, 255, 255, 0.08));
}

/* Keep text readable on any leftover solid classic-dark chips */
html.vibe-app body,
html.vibe-app main,
html.vibe-app h1,
html.vibe-app h2,
html.vibe-app h3 {
  color: var(--text, #f4f4f5);
}

html.vibe-app .muted,
html.vibe-app .sub,
html.vibe-app .lede,
html.vibe-app p.note {
  color: var(--muted, #a1a1aa);
}

/* Home hero: stop mixing in classic purple / cyan that ignore the theme */
html.vibe-app .hv-hero,
html.vibe-app .ap {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--surface-2, #17171b) 88%, var(--purple, #a855f7)),
    var(--surface, #111113)
  ) !important;
}

html.vibe-app.vibe-app-wall .hv-hero,
html.vibe-app.vibe-app-wall .hm-card,
html.vibe-app.vibe-app-wall .hv-mood,
html.vibe-app.vibe-app-wall .hv-tile,
html.vibe-app.vibe-app-wall .hv-box,
html.vibe-app.vibe-app-wall .ap-card {
  background-color: color-mix(in srgb, var(--surface, #111113) 76%, transparent) !important;
  background-image: none;
  border-color: var(--line, rgba(255, 255, 255, 0.08));
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  backdrop-filter: blur(14px) saturate(1.12);
}

html.vibe-app .hv-bg .o1,
html.vibe-app .hv-vibee::before {
  background: radial-gradient(circle, var(--purple, #a855f7) 0%, transparent 70%) !important;
}

html.vibe-app .hv-bg .o2 {
  background: radial-gradient(circle, var(--cyan, #22d3ee) 0%, transparent 70%) !important;
}

html.vibe-app .hv-copy h1 em {
  background: linear-gradient(90deg, var(--purple, #a855f7), var(--cyan, #22d3ee));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.vibe-app .hv-tile {
  --ac: var(--purple, #a855f7);
}

html.vibe-app .hv-swapviz span:first-child {
  background: linear-gradient(135deg, var(--purple, #a855f7), var(--mint, #14f195));
  color: #0a0a0a;
}

html.vibe-app .hm-btn-primary,
html.vibe-app .hv-box button {
  background: var(--mint, #14f195);
  color: #0a0a0a;
}
