:root {
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Sora', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* GS25 Color Palette Tokens */
  --gs25-blue: #0078FF;
  --gs25-cyan: #00B2FE;
  --gs25-dark-blue: #0052CC;
  --gs25-orange: #FF6B00;
  --gs25-orange-light: #FFF4ED;
  --gs25-bg: #F4F8FC;
  --gs25-card-bg: #FFFFFF;
  --gs25-border: #E2E8F0;
  --gs25-text-main: #0F172A;
  --gs25-text-sub: #475569;
  --gs25-text-muted: #94A3B8;

  --sky-glow: rgba(0, 120, 255, 0.22);
  --orange-glow: rgba(255, 107, 0, 0.25);
  --emerald-glow: rgba(16, 185, 129, 0.22);
  --purple-glow: rgba(99, 102, 241, 0.22);
}

/* ================= BASE & RESET ================= */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-body);
  scroll-behavior: smooth;
  color-scheme: light;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-body);
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
  width: 100%;
  position: relative;
  background-color: #f4f8fc;
  color: #0f172a;
}

:focus-visible {
  outline: 3px solid rgba(0, 120, 255, 0.5);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  #mainAppWrapper {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Mobile layout: keep the content breathable and prevent the fixed UI from
     competing with the page.  These overrides intentionally stay scoped to
     the app breakpoint so the desktop density remains unchanged. */
  #mainAppWrapper > main {
    padding: 1rem 0.75rem 1.5rem !important;
    gap: 1rem;
  }

  #mainAppWrapper > main > [id^="tab-"] {
    gap: 1rem;
  }

  .app-header > div {
    height: 3.25rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    gap: 0.5rem !important;
  }

  .app-header .flex.items-center.gap-2.sm\:gap-3 {
    gap: 0.4rem !important;
  }

  #btnHeaderInstallPwa,
  #authBox #btnOpenAuth {
    display: none !important;
  }

  #tetHeaderBadge {
    max-width: 7.8rem;
    overflow: hidden;
    padding: 0.3rem 0.5rem !important;
  }

  #tetHeaderBadge span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #tab-checkin {
    gap: 1rem !important;
  }

  #tab-checkin > .rounded-3xl {
    border-radius: 1.35rem;
  }

  #tab-checkin > .rounded-3xl:first-child {
    padding: 1rem !important;
  }

  #tab-checkin > .rounded-3xl:first-child .flex.flex-col.sm\:flex-row {
    gap: 0.7rem;
  }

  #tab-checkin > .rounded-3xl:first-child h2 {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  #tab-checkin > .glass-card {
    padding: 1.1rem !important;
    gap: 1rem !important;
  }

  #tab-checkin > .glass-card button#btnCheckInToday {
    padding: 0.8rem 1rem !important;
    border-radius: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .mobile-bottom-dock {
    height: calc(4.25rem + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0.3rem 0.35rem env(safe-area-inset-bottom, 0.3rem) !important;
  }

  .mobile-bottom-dock button {
    min-width: 0;
    flex: 1 1 0;
    padding: 0.35rem 0.15rem !important;
  }

  .mobile-bottom-dock button span {
    font-size: 0.58rem !important;
    white-space: nowrap;
  }

  #pwaFloatingBanner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0.7rem !important;
    gap: 0.5rem !important;
    border-radius: 1rem;
  }

  #pwaFloatingBanner img {
    width: 2rem;
    height: 2rem;
  }

  #pwaFloatingBanner p {
    display: none;
  }

  #pwaFloatingBanner h4 {
    font-size: 0.68rem;
  }
}

@media (max-width: 380px) {
  #tetHeaderBadge { display: none !important; }
  #btnHamburger { width: 2.25rem; }
  .app-header img { max-width: 4.25rem; }
  #pwaFloatingBanner { left: 0.5rem; right: 0.5rem; }
}

/* Keep the music page stable on touch screens. The playlist follows the
   document scroll on mobile instead of creating a second scroll surface. */
#tab-music {
  width: 100%;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

#musicPagePlaylistItems > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 767px) {
  #musicPagePlaylistItems {
    max-height: none;
    overflow: visible;
    touch-action: pan-y;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 120, 255, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 178, 254, 0.07) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(255, 107, 0, 0.04) 0px, transparent 50%);
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-image: radial-gradient(rgba(15, 23, 42, .08) .7px, transparent .7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

button,
.font-black,
.font-bold {
  font-feature-settings: "ss01" 1, "ss02" 1;
}

.font-mono,
[id*="Display"],
[id*="Count"],
[id*="Value"] {
  font-variant-numeric: tabular-nums;
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 120, 255, 0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 120, 255, 0.65);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#filterContainer {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}

#filterContainer:active {
  cursor: grabbing;
}

/* ================= GS25 SURFACES, CARDS & ELEVATION ================= */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -2px rgba(0, 120, 255, 0.06);
}

.glass-card {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.glass-card::after,
.exercise-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-110%);
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.48) 48%, transparent 68%);
  transition: opacity .2s ease;
}

.glass-card:hover::after,
.exercise-card:hover::after {
  opacity: 1;
  animation: cardSheen .9s ease forwards;
}

.glass-card:hover {
  border-color: rgba(0, 120, 255, 0.4);
  box-shadow: 0 12px 30px -8px rgba(0, 120, 255, 0.14);
  transform: translateY(-4px);
}

/* GS25 Signature Category Banner Bar */
.gs25-category-bar {
  background: linear-gradient(90deg, #0078ff 0%, #0099ff 50%, #00b2fe 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 120, 255, 0.25);
}

/* Exercise Card Hover & Presentation */
.exercise-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.exercise-card:hover {
  border-color: rgba(0, 120, 255, 0.45);
  box-shadow: 0 14px 32px -8px rgba(0, 120, 255, 0.16), 0 0 0 1px rgba(0, 120, 255, 0.15);
  transform: translateY(-6px) rotateX(1deg);
}

#landingAuthSubmitBtn,
#btnHeaderInstallPwa,
#pwaFloatingBanner button {
  background-size: 200% 100%;
  animation: ctaGradient 4s ease-in-out infinite;
}

.nav-item {
  position: relative;
  overflow: hidden;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .25s cubic-bezier(.16,1,.3,1);
  opacity: .7;
}
.nav-item:hover::after,
.nav-item:focus-visible::after { transform: scaleX(1); }

.custom-scrollbar::-webkit-scrollbar {
  height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 120, 255, 0.3);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 120, 255, 0.6);
}

/* GS25 Glow Effects */
.cyan-glow, .glow-sky {
  box-shadow: 0 0 20px -3px rgba(0, 120, 255, 0.22);
}
.glow-orange {
  box-shadow: 0 0 20px -3px rgba(255, 107, 0, 0.25);
}
.glow-pink {
  box-shadow: 0 0 20px -3px rgba(244, 114, 182, 0.22);
}
.glow-emerald {
  box-shadow: 0 0 20px -3px rgba(16, 185, 129, 0.22);
}

/* ================= ANIMATIONS & KEYFRAMES ================= */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-scale-up {
  animation: scaleUp 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 120, 255, 0.25);
    border-color: rgba(0, 120, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 28px rgba(0, 120, 255, 0.5);
    border-color: rgba(0, 120, 255, 0.9);
  }
}

@keyframes soundWave {
  0%, 100% {
    height: 4px;
  }
  50% {
    height: 18px;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes ambientDrift {
  0% { transform: scale(1) translate3d(0, 0, 0); filter: hue-rotate(0deg); }
  50% { transform: scale(1.08) translate3d(0, -1%, 0); }
  100% { transform: scale(1.02) translate3d(1%, 1%, 0); filter: hue-rotate(8deg); }
}

@keyframes cardSheen {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}

@keyframes premiumCardIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tabEnter {
  from { opacity: 0; transform: translateY(12px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes glowFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-16px,0) scale(1.06); }
}

@keyframes progressPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0,178,254,.55); }
  50% { box-shadow: 0 0 18px rgba(0,178,254,.95); }
}

@keyframes ctaGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tab-enter {
  animation: tabEnter .48s cubic-bezier(.16,1,.3,1) both;
}

.exercise-card,
.routine-day-card,
.weekly-day-card {
  animation: premiumCardIn .55s cubic-bezier(.16,1,.3,1) both;
}

#exerciseGrid > :nth-child(2), #routineMenGrid > :nth-child(2), #routineWomenGrid > :nth-child(2), #routineLowerUpperGrid > :nth-child(2) { animation-delay: .045s; }
#exerciseGrid > :nth-child(3), #routineMenGrid > :nth-child(3), #routineWomenGrid > :nth-child(3), #routineLowerUpperGrid > :nth-child(3) { animation-delay: .09s; }
#exerciseGrid > :nth-child(4), #routineMenGrid > :nth-child(4), #routineWomenGrid > :nth-child(4), #routineLowerUpperGrid > :nth-child(4) { animation-delay: .135s; }
#exerciseGrid > :nth-child(5), #routineMenGrid > :nth-child(5), #routineWomenGrid > :nth-child(5), #routineLowerUpperGrid > :nth-child(5) { animation-delay: .18s; }

.motion-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.motion-reveal.is-visible { opacity: 1; transform: translateY(0); }

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: .001ms !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(90deg, #0078ff, #00b2fe, #ff6b00);
  animation: progressPulse 2.4s ease-in-out infinite;
  transition: width .12s ease-out;
}

#landingAuthGate > div.fixed {
  animation: glowFloat 8s ease-in-out infinite;
}

button, a, input, select, textarea {
  transition-timing-function: cubic-bezier(.16,1,.3,1);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(0,178,254,.42);
  outline-offset: 3px;
}

.animate-fade-in {
  animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shimmer-loading {
  background: linear-gradient(90deg, rgba(241, 245, 249, 0.8) 25%, rgba(226, 232, 240, 0.9) 50%, rgba(241, 245, 249, 0.8) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}

/* Sound Wave Bars */
.sound-bar {
  display: inline-block;
  width: 3px;
  background-color: #0078ff;
  border-radius: 9999px;
  margin: 0 1px;
}
.sound-bar:nth-child(1) { height: 8px; animation: soundWave 1.2s infinite ease-in-out 0.1s; }
.sound-bar:nth-child(2) { height: 16px; animation: soundWave 1.2s infinite ease-in-out 0.3s; }
.sound-bar:nth-child(3) { height: 12px; animation: soundWave 1.2s infinite ease-in-out 0.2s; }
.sound-bar:nth-child(4) { height: 6px; animation: soundWave 1.2s infinite ease-in-out 0.4s; }

/* Custom Seek / Range Input */
input[type="range"].custom-range {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 120, 255, 0.15);
  height: 5px;
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s ease;
}
input[type="range"].custom-range:hover {
  height: 7px;
}
input[type="range"].custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0078ff;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 120, 255, 0.5);
  transition: transform 0.15s ease;
}
input[type="range"].custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* ================= INPUT & FORM FIELD DEFAULTS ================= */
input, select, textarea {
  font-family: var(--font-body);
}

@media (max-width: 639px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ================= WORKOUT CHECKBOX & PROGRESS ================= */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background-color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}
.custom-checkbox:hover {
  border-color: #0078ff;
}
.custom-checkbox:checked {
  background-color: #0078ff;
  border-color: #0078ff;
  box-shadow: 0 0 10px rgba(0, 120, 255, 0.4);
}
.custom-checkbox:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: #ffffff;
}

/* Pink variant for female routine */
.custom-checkbox-pink:hover {
  border-color: #ec4899;
}
.custom-checkbox-pink:checked {
  background-color: #ec4899;
  border-color: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}
.custom-checkbox-pink:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: #ffffff;
}

/* Orange variant for Lower/Upper routine */
.custom-checkbox-orange:hover {
  border-color: #ff6b00;
}
.custom-checkbox-orange:checked {
  background-color: #ff6b00;
  border-color: #ff6b00;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}
.custom-checkbox-orange:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: #ffffff;
}

/* ================= MODAL & SIDEBAR TRANSITIONS ================= */
#mobileSidebarContainer.sidebar-closed {
  pointer-events: none !important;
  visibility: hidden;
}
#mobileSidebarContainer.sidebar-open {
  pointer-events: auto !important;
  visibility: visible;
}
#sidebarDrawer {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
}
.sidebar-closed #sidebarDrawer {
  transform: translateX(-100%);
}
.sidebar-open #sidebarDrawer {
  transform: translateX(0);
}
.sidebar-closed #sidebarOverlay {
  opacity: 0;
}
.sidebar-open #sidebarOverlay {
  opacity: 1;
}

/* ================= REST TIMER CIRCLE ================= */
.timer-progress-ring__circle {
  transition: stroke-dashoffset 0.35s linear;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* GS25 Tab Navigation Styles */
.tab-nav.active-tab {
  background: linear-gradient(135deg, #0078ff 0%, #00b2fe 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 120, 255, 0.3);
}

.tab-nav-pink.active-tab {
  background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.tab-nav-emerald.active-tab {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Mobile Bottom Bar Dock */
.mobile-bottom-dock {
  padding-bottom: env(safe-area-inset-bottom, 8px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

/* ================= WEEKLY SCHEDULE & SMART ROUTINE STYLES ================= */
.weekly-day-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
.weekly-day-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s;
}
.weekly-day-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 120, 255, 0.15);
}
.weekly-day-card.day-push:hover::after, .weekly-day-card.day-push.active::after { background: #0078ff; }
.weekly-day-card.day-pull:hover::after, .weekly-day-card.day-pull.active::after { background: #00b2fe; }
.weekly-day-card.day-legs:hover::after, .weekly-day-card.day-legs.active::after { background: #10b981; }
.weekly-day-card.day-upper:hover::after, .weekly-day-card.day-upper.active::after { background: #ff7a00; }
.weekly-day-card.day-lower:hover::after, .weekly-day-card.day-lower.active::after { background: #f43f5e; }
.weekly-day-card.day-full:hover::after, .weekly-day-card.day-full.active::after { background: #6366f1; }
.weekly-day-card.day-rest {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.weekly-day-card.day-rest:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.06);
}

@keyframes dayHighlightPulse {
  0% {
    box-shadow: 0 0 0 2px rgba(0, 120, 255, 0.9), 0 0 25px rgba(0, 120, 255, 0.35);
    border-color: #0078ff;
    transform: scale(1.01);
  }
  70% {
    box-shadow: 0 0 0 2px rgba(0, 120, 255, 0.3), 0 0 15px rgba(0, 120, 255, 0.15);
  }
  100% {
    box-shadow: none;
    transform: scale(1);
  }
}
.day-session-target.highlight-pulse {
  animation: dayHighlightPulse 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* GS25 Badge styles */
.badge-compound {
  background: #e0f2fe;
  color: #0078ff;
  border: 1px solid rgba(0, 120, 255, 0.25);
  font-weight: 700;
}
.badge-isolation {
  background: #f0fdf4;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-weight: 700;
}

/* AI Insight Accordion & Pill */
.ai-reason-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}
.ai-reason-drawer.expanded {
  max-height: 400px;
  opacity: 1;
  margin-top: 0.75rem;
}

.volume-progress-fill {
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= SMART PLANNER UI ================= */
.smart-choice-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
}
.smart-choice-card:hover {
  border-color: #0078ff;
  background: #f8fafc;
  transform: translateY(-1px);
}
.smart-choice-card.active {
  background: #f0f7ff;
  border-color: #0078ff;
  box-shadow: 0 0 15px -3px rgba(0, 120, 255, 0.25);
}

.smart-segmented-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.smart-segmented-btn:hover {
  border-color: #0078ff;
  color: #0078ff;
}
.smart-segmented-btn.active {
  background: #0078ff !important;
  border-color: #0078ff !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 120, 255, 0.3);
}
.smart-segmented-btn.active * {
  color: #ffffff !important;
}
.smart-segmented-btn.active .subtext,
.smart-segmented-btn.active span:last-child {
  color: #e0f2fe !important;
  opacity: 0.95;
}

.smart-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.smart-chip:hover {
  border-color: #0078ff;
  color: #0078ff;
  transform: translateY(-1px);
}
.smart-chip.active {
  background: #e0f2fe;
  border-color: #0078ff;
  color: #0078ff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 120, 255, 0.15);
}

.smart-chip-avoid.active {
  background: #ffe4e6;
  border-color: #f43f5e;
  color: #e11d48;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.15);
}

.smart-removable-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  transition: all 0.2s;
}
.smart-removable-chip:hover {
  background: #fee2e2;
}

.smart-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}
.smart-accordion-body.open {
  max-height: 1200px;
  opacity: 1;
}

/* ================= PRINT STYLES ================= */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: Arial, Helvetica, sans-serif !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  header, footer, .mobile-bottom-dock, #authModal, #restTimerModal, #playlistModal, #exerciseModal, #aiInsightModal, #savePlanModal, #excludedExModal, #workoutDayModal, #calendarSetGoalModal, .no-print, button, .nav-item, #tab-exercises, #tab-checkin, #tab-routine, #tab-routine-female, #tab-routine-lowerupper {
    display: none !important;
  }
  .glass-card, .glass-panel, div {
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .print-page-break {
    page-break-before: always;
  }
  .print-avoid-break {
    page-break-inside: avoid;
  }
}

/* ================= SAFE AREA INSETS (NOTCH, DYNAMIC ISLAND & PWA) ================= */
.app-header {
  padding-top: env(safe-area-inset-top, 0px);
  padding-top: max(env(safe-area-inset-top, 0px), 0px);
}

.mobile-bottom-dock {
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 0.375rem);
  height: calc(4rem + env(safe-area-inset-bottom, 0px)) !important;
}

@media all and (display-mode: standalone) {
  .app-header {
    padding-top: max(env(safe-area-inset-top, 0px), 8px);
  }
}

/* ================= TẾT NGUYÊN ĐÁN COUNTDOWN STYLES ================= */
.tet-badge-pulse {
  animation: tetPulse 2.5s ease-in-out infinite;
}

@keyframes tetPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.15);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
  }
}

/* ================= 10-MINUTE WORKOUT MOBILE VIEWPORT ================= */
#tenMinutePlayer {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
}

