/* TrendUp — Liquid Glass final cascade
   Chargé après les feuilles historiques pour que le rendu soit réellement visible.
   Palette conservée : noir, blanc et orange TrendUp. */
:root {
  --tu-glass-panel: rgba(255,255,255,.54);
  --tu-glass-panel-strong: rgba(255,255,255,.68);
  --tu-glass-line: rgba(255,255,255,.82);
  --tu-glass-shadow: 0 18px 48px rgba(28,38,55,.09), inset 0 1px 0 rgba(255,255,255,.92);
  --tu-glass-blur: blur(26px) saturate(1.55);
}
html { background: #eef1f6; }
body {
  background:
    radial-gradient(ellipse 48rem 34rem at -12% 4%, rgba(255,106,0,.16), transparent 68%),
    radial-gradient(ellipse 42rem 30rem at 112% 18%, rgba(119,155,214,.16), transparent 66%),
    radial-gradient(ellipse 38rem 28rem at 52% 100%, rgba(255,186,132,.13), transparent 70%),
    #eef1f6;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 28%, rgba(255,255,255,.68), transparent 23%),
    radial-gradient(circle at 86% 72%, rgba(255,255,255,.52), transparent 26%);
}
.app-shell {
  background: linear-gradient(145deg, rgba(255,255,255,.66), rgba(247,249,253,.58));
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  backdrop-filter: blur(30px) saturate(1.35);
}
.content { background: transparent; }
.topbar, .bottom-nav, .rail {
  background: rgba(255,255,255,.58) !important;
  border-color: rgba(255,255,255,.86) !important;
  box-shadow: 0 12px 34px rgba(25,35,52,.075), inset 0 1px 0 rgba(255,255,255,.94) !important;
  -webkit-backdrop-filter: var(--tu-glass-blur) !important;
  backdrop-filter: var(--tu-glass-blur) !important;
}
.hero, .profile-guest, .profile-hero, .listing-card, .shop-card,
.trust-strip__item, .stat, .menu-row, .category-card, .collection-card,
.notification-card, .message-card, .video-info-card, .product-panel,
.wallet-history, .glass-surface, .search, .search-box, .cat,
.filter-chip, .tab-btn, .settings-section, .wallet-profile-shortcut {
  background: var(--tu-glass-panel) !important;
  border: 1px solid var(--tu-glass-line) !important;
  box-shadow: var(--tu-glass-shadow) !important;
  -webkit-backdrop-filter: var(--tu-glass-blur) !important;
  backdrop-filter: var(--tu-glass-blur) !important;
}
.hero {
  background:
    radial-gradient(120% 140% at 94% 0%, rgba(255,139,61,.24), transparent 58%),
    linear-gradient(140deg, rgba(255,255,255,.68), rgba(255,244,235,.52)) !important;
}
.profile-guest {
  background:
    radial-gradient(circle at 88% 8%, rgba(255,255,255,.78), transparent 35%),
    linear-gradient(145deg, rgba(255,255,255,.68), rgba(255,247,240,.55)) !important;
}
.listing-card, .shop-card, .notification-card, .message-card,
.category-card, .collection-card, .stat, .menu-row {
  border-radius: 20px;
}
.search, .search-box, .filter-chip, .tab-btn, .cat {
  background: rgba(255,255,255,.48) !important;
}
.modal__backdrop {
  background: rgba(18,25,38,.24) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.35) !important;
  backdrop-filter: blur(24px) saturate(1.35) !important;
}
.modal__panel {
  background: rgba(250,251,253,.84) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.45) !important;
  backdrop-filter: blur(28px) saturate(1.45) !important;
}
.btn--ghost, .icon-btn, .wallet-glass-card__refresh {
  background: rgba(255,255,255,.52);
  border-color: rgba(255,255,255,.86);
  box-shadow: 0 8px 22px rgba(25,35,52,.07), inset 0 1px 0 rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
body.dark-mode {
  background:
    radial-gradient(ellipse 48rem 34rem at -12% 4%, rgba(255,106,0,.18), transparent 68%),
    radial-gradient(ellipse 42rem 30rem at 112% 18%, rgba(60,100,160,.18), transparent 66%),
    #080e18;
}
body.dark-mode .app-shell {
  background: linear-gradient(145deg, rgba(15,24,38,.72), rgba(8,14,24,.68));
}
body.dark-mode .topbar, body.dark-mode .bottom-nav, body.dark-mode .rail {
  background: rgba(11,19,31,.66) !important;
  border-color: rgba(148,163,184,.2) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
body.dark-mode .hero, body.dark-mode .profile-guest, body.dark-mode .profile-hero,
body.dark-mode .listing-card, body.dark-mode .shop-card, body.dark-mode .trust-strip__item,
body.dark-mode .stat, body.dark-mode .menu-row, body.dark-mode .category-card,
body.dark-mode .collection-card, body.dark-mode .notification-card, body.dark-mode .message-card,
body.dark-mode .video-info-card, body.dark-mode .product-panel, body.dark-mode .wallet-history,
body.dark-mode .glass-surface, body.dark-mode .search, body.dark-mode .search-box,
body.dark-mode .cat, body.dark-mode .filter-chip, body.dark-mode .tab-btn,
body.dark-mode .settings-section, body.dark-mode .wallet-profile-shortcut {
  background: rgba(20,31,47,.62) !important;
  border-color: rgba(174,190,211,.2) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.23), inset 0 1px 0 rgba(255,255,255,.075) !important;
  -webkit-backdrop-filter: var(--tu-glass-blur) !important;
  backdrop-filter: var(--tu-glass-blur) !important;
}
body.dark-mode .hero {
  background: linear-gradient(140deg, rgba(28,40,58,.74), rgba(40,29,28,.54)) !important;
}
body.dark-mode .modal__panel { background: rgba(10,17,28,.9) !important; }
body.dark-mode .modal__backdrop { background: rgba(0,0,0,.4) !important; }
body.dark-mode .btn--ghost, body.dark-mode .icon-btn {
  background: rgba(25,38,56,.68);
  border-color: rgba(174,190,211,.22);
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .bottom-nav, .rail, .hero, .profile-guest, .profile-hero,
  .listing-card, .shop-card, .trust-strip__item, .stat, .menu-row,
  .category-card, .collection-card, .notification-card, .message-card,
  .video-info-card, .product-panel, .wallet-history, .glass-surface,
  .search, .search-box, .cat, .filter-chip, .tab-btn, .settings-section,
  .wallet-profile-shortcut, .modal__panel {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background-color: rgba(255,255,255,.94) !important;
  }
  body.dark-mode .topbar, body.dark-mode .bottom-nav, body.dark-mode .rail,
  body.dark-mode .hero, body.dark-mode .profile-guest, body.dark-mode .listing-card,
  body.dark-mode .shop-card, body.dark-mode .modal__panel {
    background-color: rgba(12,19,30,.97) !important;
  }
}
@media (max-width: 719px) {
  .app-shell { background: rgba(255,255,255,.48); }
  .content { background: transparent; }
  .bottom-nav { box-shadow: 0 -10px 34px rgba(24,34,52,.09), inset 0 1px 0 rgba(255,255,255,.94) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .listing-card, .shop-card, .notification-card, .message-card { transition: none !important; }
}


/* Stronger, intentional Liquid Glass treatment */
:root {
  --tu-glass-panel: rgba(255,255,255,.72);
  --tu-glass-panel-strong: rgba(255,255,255,.82);
  --tu-glass-line: rgba(255,255,255,.92);
  --tu-glass-shadow: 0 20px 54px rgba(20,30,48,.13), 0 3px 12px rgba(255,106,0,.045), inset 0 1px 0 rgba(255,255,255,.98);
  --tu-glass-blur: blur(30px) saturate(1.72);
}
.app-shell {
  background: linear-gradient(145deg, rgba(255,255,255,.56), rgba(247,249,253,.46)) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.45);
  backdrop-filter: blur(32px) saturate(1.45);
}
.topbar {
  background: linear-gradient(115deg, rgba(255,255,255,.82), rgba(255,248,242,.66)) !important;
  border-bottom: 1px solid rgba(255,255,255,.96) !important;
  box-shadow: 0 12px 36px rgba(20,30,48,.10), inset 0 1px 0 #fff !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.8) !important;
  backdrop-filter: blur(32px) saturate(1.8) !important;
}
.listing-card, .shop-card, .hero, .profile-guest, .profile-hero,
.wallet-history, .glass-surface, .menu-row, .category-card,
.collection-card, .notification-card, .message-card, .product-panel,
.wallet-profile-shortcut, .modal__panel {
  background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(255,250,246,.68)) !important;
  border: 1px solid rgba(255,255,255,.96) !important;
  box-shadow: 0 18px 46px rgba(23,34,52,.10), inset 0 1px 0 #fff !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.65) !important;
  backdrop-filter: blur(24px) saturate(1.65) !important;
}
body.dark-mode .topbar {
  background: linear-gradient(115deg, rgba(17,28,44,.88), rgba(30,24,22,.78)) !important;
  border-color: rgba(255,255,255,.16) !important;
}
body.dark-mode .listing-card, body.dark-mode .shop-card, body.dark-mode .hero,
body.dark-mode .profile-guest, body.dark-mode .profile-hero, body.dark-mode .wallet-history,
body.dark-mode .glass-surface, body.dark-mode .menu-row, body.dark-mode .category-card,
body.dark-mode .collection-card, body.dark-mode .notification-card, body.dark-mode .message-card,
body.dark-mode .product-panel, body.dark-mode .wallet-profile-shortcut,
body.dark-mode .modal__panel {
  background: linear-gradient(145deg, rgba(24,37,56,.88), rgba(13,22,36,.78)) !important;
  border-color: rgba(190,204,224,.24) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
@media (max-width: 1023px) {
  .bottom-nav {
    display: grid !important;
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom, 0px)) !important;
    border: 1px solid rgba(255,255,255,.94) !important;
    border-radius: 24px !important;
    background: linear-gradient(120deg, rgba(255,255,255,.82), rgba(255,247,239,.70)) !important;
    box-shadow: 0 18px 46px rgba(19,29,45,.16), 0 3px 12px rgba(255,106,0,.08), inset 0 1px 0 #fff !important;
    -webkit-backdrop-filter: blur(32px) saturate(1.9) !important;
    backdrop-filter: blur(32px) saturate(1.9) !important;
    z-index: 120 !important;
  }
  .app-main { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (pointer: coarse) {
  .bottom-nav {
    display: grid !important;
    z-index: 120 !important;
  }
  .rail { display: none !important; }
  .app-shell {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 760px !important;
  }
}
