/* ═══════════════════════════════════════════════════════════════════════════════
   ✦ ANHAD — iOS 18 NATIVE OVERRIDE SYSTEM
   
   Loaded AFTER trendora-premium.css to apply pure Apple iOS design language.
   - iOS 18 exact color palette
   - SF Pro Display typography
   - Ambient light orbs (Apple-style)
   - Emoji icon system
   - iOS component standards (HIG)
   - iOS spring animations
═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   § 1. SF PRO DISPLAY FONT IMPORT
═══════════════════════════════════════════════════════════════════════════════ */
/* PERF: @import url('https://fonts.cdnfonts.com/css/sf-pro-display') REMOVED
   This was render-blocking — waited for CDN before first paint.
   The font stack already falls back to -apple-system / BlinkMacSystemFont / Inter
   which are visually identical on their respective platforms. */

/* ═══════════════════════════════════════════════════════════════════════════════
   § 2. iOS 18 EXACT COLOR TOKENS
═══════════════════════════════════════════════════════════════════════════════ */
:root {
  /* ── iOS System Colors ── */
  --ios-blue: #007AFF;
  --ios-green: #34C759;
  --ios-indigo: #5856D6;
  --ios-orange: #FF9500;
  --ios-pink: #FF2D55;
  --ios-purple: #AF52DE;
  --ios-red: #FF3B30;
  --ios-teal: #5AC8FA;
  --ios-yellow: #FFCC00;
  --ios-mint: #00C7BE;
  --ios-cyan: #32ADE6;

  /* ── iOS Backgrounds ── */
  --ios-bg-primary: #FFFFFF;
  --ios-bg-secondary: #F2F2F7;
  --ios-bg-tertiary: #FFFFFF;
  --ios-bg-grouped: #F2F2F7;

  /* ── iOS Labels ── */
  --ios-label-primary: #000000;
  --ios-label-secondary: rgba(60, 60, 67, 0.6);
  --ios-label-tertiary: rgba(60, 60, 67, 0.3);
  --ios-label-quaternary: rgba(60, 60, 67, 0.18);

  /* ── iOS Separators ── */
  --ios-separator: rgba(60, 60, 67, 0.29);
  --ios-separator-opaque: #C6C6C8;

  /* ── iOS Fill ── */
  --ios-fill-primary: rgba(120, 120, 128, 0.2);
  --ios-fill-secondary: rgba(120, 120, 128, 0.16);
  --ios-fill-tertiary: rgba(118, 118, 128, 0.12);

  /* ── iOS Animation Curves ── */
  --ios-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ios-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ios-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ── Override Trendora tokens with iOS values ── */
  --surface-secondary: var(--ios-bg-secondary);
  --surface-tertiary: var(--ios-bg-secondary);
  --text-primary: var(--ios-label-primary);
  --text-secondary: var(--ios-label-secondary);
  --text-tertiary: var(--ios-label-tertiary);
  --text-quaternary: var(--ios-label-quaternary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 3. GLOBAL TYPOGRAPHY — SF Pro Display System
═══════════════════════════════════════════════════════════════════════════════ */
/* PERF: text-rendering: optimizeLegibility moved to headings only.
   On * selector it forced expensive text shaping on EVERY element. */
* {
  font-family: 'SF Pro Display', 'SF Pro Text', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.greeting__salutation,
.hero-card__title,
.section-header__title {
  text-rendering: optimizeLegibility;
}

html {
  /* PERF: scroll-behavior: smooth REMOVED — let native scrolling handle it */
  overflow-y: auto;
  /* html is the single scroll root */
  overflow-x: hidden;
  height: auto;
  /* Must NOT be 100vh/dvh — content must grow freely */
}

body {
  background-color: var(--ios-bg-secondary);
  /* body must be overflow:visible so html remains THE scroll container */
  overflow: visible;
  overflow-x: hidden;
}

/* Mini player padding handled by nav-glass.css .app padding-bottom */

/* ═══════════════════════════════════════════════════════════════════════════════
   § 4. AMBIENT LIGHT ORBS — Apple-Style Background Magic
   FIX: Increased opacity and size for visibility
═══════════════════════════════════════════════════════════════════════════════ */
.ios-orb-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ios-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.35), transparent 70%);
  top: -8%;
  left: -8%;
  animation-delay: 0s;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 148, 58, 0.25), transparent 70%);
  top: 35%;
  right: -12%;
  animation-delay: -7s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(90, 200, 250, 0.25), transparent 70%);
  bottom: 5%;
  left: 25%;
  animation-delay: -14s;
}

.orb-4 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.25), transparent 70%);
  top: 18%;
  left: 45%;
  animation-delay: -3s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -40px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(40px, 30px) scale(1.02);
  }
}

/* PERF: Kill orbs on mobile — #1 GPU killer (4 blur(60px) elements running 24/7) */
@media (max-width: 768px) {
  .ios-orb-container {
    display: none !important;
  }
}

.is-mobile .ios-orb-container {
  display: none !important;
}

.reduce-motion .ios-orb-container {
  display: none !important;
}

/* Desktop: reduce orb intensity */
@media (min-width: 769px) {
  .ios-orb {
    opacity: 0.25;
    filter: blur(80px);
    /* Spread blur wider to reduce sharpness = less GPU work */
    animation-duration: 40s;
    /* Slower = less frequent GPU updates */
  }
}

/* Dark mode orbs — more vivid on black */
.dark-mode .ios-orb {
  opacity: 0.3;
  filter: blur(50px);
}

.dark-mode .orb-1 {
  background: radial-gradient(circle, rgba(0, 122, 255, 0.5), transparent 70%);
}

.dark-mode .orb-2 {
  background: radial-gradient(circle, rgba(175, 82, 222, 0.45), transparent 70%);
}

.dark-mode .orb-3 {
  background: radial-gradient(circle, rgba(90, 200, 250, 0.35), transparent 70%);
}

.dark-mode .orb-4 {
  background: radial-gradient(circle, rgba(255, 149, 0, 0.35), transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 5. iOS GLASS EFFECTS
═══════════════════════════════════════════════════════════════════════════════ */
.ios-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
}

.dark-mode .ios-glass {
  background: rgba(28, 28, 30, 0.72);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 6. EMOJI ICON SYSTEM
═══════════════════════════════════════════════════════════════════════════════ */
.ios-emoji {
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  flex-shrink: 0;
}

.ios-emoji--sm {
  font-size: 1.25rem;
  width: 1.5rem;
  height: 1.5rem;
}

.ios-emoji--lg {
  font-size: 1.75rem;
  width: 2.5rem;
  height: 2.5rem;
}

.ios-emoji--nav {
  font-size: 1.5rem;
  width: 1.75rem;
  height: 1.75rem;
  transition: transform 0.2s var(--ios-spring), opacity 0.2s ease;
  opacity: 0.5;
}

.nav-tab--active .ios-emoji--nav,
.nav-tab[aria-current="page"] .ios-emoji--nav {
  opacity: 1 !important;
  transform: scale(1.35) translateY(-3px) !important;
  /* PERF FIX: Removed filter:drop-shadow() — the same optimization as nav-glass.css.
     scale+translateY is GPU-composited; filter:drop-shadow forces a paint layer. */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 7. iOS COMPONENT OVERRIDES
═══════════════════════════════════════════════════════════════════════════════ */

/* ── App Container — Ensure it sits above orbs ── */
.app {
  position: relative;
  z-index: auto;
}

/* ── Header ──
   Scoped to .home-header — this file is Home-exclusive (only linked by
   index.html) but, like trendora-premium.css/desktop-responsive.css, was
   never removed from <head> once loaded, so its bare .header/.header__btn
   rules used to bleed onto other pages' own same-named elements. See
   trendora-premium.css's header section for the full explanation. */
.header.home-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent !important;
}

.dark-mode .home-header {
  background: transparent !important;
}

.home-header.header--compact {
  background: transparent !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: none;
}

.dark-mode .home-header.header--compact {
  background: transparent !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ── Header Emoji Buttons ── */
.home-header .header__btn .ios-emoji {
  font-size: 1.2rem;
  width: auto;
  height: auto;
}

/* ── Cards — Premium EXTRA rounded curve ── */
.hero-card {
  border-radius: 24px;
  box-shadow: none !important;
  background: transparent !important;
}

.hero-card__image-wrapper {
  border-radius: 24px;
}

/* ── Practice Cards — TALLER CLAYMORPHISM ── */
.practice-card {
  border-radius: 30px !important;
  padding: 12px 10px 10px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ios-bg-primary);
  box-shadow:
    0 0.5px 0 rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 3px 8px rgba(0, 0, 0, 0.04);
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s var(--ios-ease);
}

.practice-card:active {
  transform: scale(0.96);
  background: var(--ios-bg-secondary);
}

/* Restore warm tints with EXTREME 3D Claymorphism */
.practice-card--nitnem {
  background: linear-gradient(165deg, #FFF8F0 0%, #FFEFD8 50%, #FFE8D0 100%) !important;
  box-shadow:
    12px 12px 28px rgba(212, 148, 58, 0.22),
    6px 6px 14px rgba(212, 148, 58, 0.12),
    -10px -10px 25px rgba(255, 255, 255, 0.95),
    inset 6px 6px 16px rgba(255, 255, 255, 0.95),
    inset -6px -6px 16px rgba(212, 148, 58, 0.15),
    0 0 0 3px rgba(212, 148, 58, 0.15) !important;
  border: 3px solid rgba(255, 255, 255, 0.8) !important;
}

.practice-card--sehaj {
  background: linear-gradient(165deg, #F8F5FF 0%, #F0EBFF 50%, #E8E8FF 100%) !important;
  box-shadow:
    12px 12px 28px rgba(88, 86, 214, 0.18),
    6px 6px 14px rgba(88, 86, 214, 0.10),
    -10px -10px 25px rgba(255, 255, 255, 0.95),
    inset 6px 6px 16px rgba(255, 255, 255, 0.95),
    inset -6px -6px 16px rgba(88, 86, 214, 0.12),
    0 0 0 3px rgba(88, 86, 214, 0.15) !important;
  border: 3px solid rgba(255, 255, 255, 0.8) !important;
}

.practice-card--hukam {
  background: linear-gradient(165deg, #FFF8F0 0%, #FFF0E8 50%, #FFE8D8 100%) !important;
  box-shadow:
    12px 12px 28px rgba(255, 149, 0, 0.18),
    6px 6px 14px rgba(255, 149, 0, 0.10),
    -10px -10px 25px rgba(255, 255, 255, 0.95),
    inset 6px 6px 16px rgba(255, 255, 255, 0.95),
    inset -6px -6px 16px rgba(255, 149, 0, 0.12),
    0 0 0 3px rgba(255, 149, 0, 0.15) !important;
  border: 3px solid rgba(255, 255, 255, 0.8) !important;
}

/* Practice Cards — Pressed State with Inset Shadows */
.practice-card--nitnem:active {
  transform: scale(0.94) translateY(2px) !important;
  box-shadow:
    inset 12px 12px 25px rgba(180, 130, 50, 0.3),
    inset 6px 6px 15px rgba(180, 130, 50, 0.2),
    inset -8px -8px 20px rgba(255, 255, 255, 0.7),
    0 0 0 2px rgba(212, 148, 58, 0.2),
    4px 4px 15px rgba(212, 148, 58, 0.25) !important;
}

.practice-card--sehaj:active {
  transform: scale(0.94) translateY(2px) !important;
  box-shadow:
    inset 12px 12px 25px rgba(70, 60, 180, 0.25),
    inset 6px 6px 15px rgba(70, 60, 180, 0.15),
    inset -8px -8px 20px rgba(255, 255, 255, 0.7),
    0 0 0 2px rgba(88, 86, 214, 0.2),
    4px 4px 15px rgba(88, 86, 214, 0.2) !important;
}

.practice-card--hukam:active {
  transform: scale(0.94) translateY(2px) !important;
  box-shadow:
    inset 12px 12px 25px rgba(200, 130, 40, 0.25),
    inset 6px 6px 15px rgba(200, 130, 40, 0.15),
    inset -8px -8px 20px rgba(255, 255, 255, 0.7),
    0 0 0 2px rgba(255, 149, 0, 0.2),
    4px 4px 15px rgba(255, 149, 0, 0.2) !important;
}

/* Practice card emoji icon */
.practice-card__ring-icon .ios-emoji {
  font-size: 1.25rem;
  width: auto;
  height: auto;
  filter: none;
}

/* ── Quick Access Cards — SQUARCLE CLAYMORPHISM ── */
.quick-card {
  border-radius: 22px;
  padding: 14px 20px;
  margin-bottom: 10px;
  transition: transform 0.3s var(--ios-ease);
  box-shadow:
    10px 10px 24px rgba(0, 0, 0, 0.06),
    -8px -8px 20px rgba(255, 255, 255, 0.9),
    inset 4px 4px 12px rgba(255, 255, 255, 0.8),
    inset -4px -4px 12px rgba(0, 0, 0, 0.04) !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
}

.quick-card:active {
  transform: scale(0.96);
  box-shadow:
    inset 8px 8px 16px rgba(0, 0, 0, 0.08),
    inset -8px -8px 16px rgba(255, 255, 255, 0.9) !important;
}

/* Bottom spacing for last card — handled by .app padding-bottom in nav-glass.css */

/* Light mode colored card backgrounds */
.quick-card--green {
  background: linear-gradient(140deg, #E8F5E9 0%, #C8E6C9 100%);
}

.quick-card--gold {
  background: linear-gradient(140deg, #FFF8E1 0%, #FFECB3 100%);
}

.quick-card--purple {
  background: linear-gradient(140deg, #EDE7F6 0%, #D1C4E9 100%);
}

.quick-card--blue {
  background: linear-gradient(140deg, #E3F2FD 0%, #BBDEFB 100%);
}

.quick-card--rose {
  background: linear-gradient(140deg, #FFEBEE 0%, #FFCDD2 100%);
}

/* Quick card emoji */
.quick-card__icon .ios-emoji {
  font-size: 1.4rem;
  width: auto;
  height: auto;
}

.quick-card__icon {
  background: rgba(255, 255, 255, 0.85);
  width: 44px;
  height: 44px;
}

/* ── Event Card — more rounded + padding ── */
.event-card {
  border-radius: 22px;
  padding: 16px 20px;
  box-shadow: none !important;
}

.event-card__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.event-card__info {
  flex: 1;
  min-width: 0;
}

.event-card__guru-img-wrapper {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
}

.event-card__guru-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  image-orientation: from-image;
  box-shadow: 0 4px 16px rgba(212, 148, 58, 0.2);
  border: 2px solid rgba(212, 148, 58, 0.3);
}

.event-card__countdown-wrapper {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}

/* ── Section spacing ── */
.section-header {
  margin-bottom: 12px;
  margin-top: 6px;
}

.practice-grid {
  gap: 12px;
  margin-bottom: 12px;
}

/* ── Progress bar — Ultimate Claymorphism ── */
.progress-inline {
  border-radius: 36px !important;
  padding: 14px 20px !important;
  margin-bottom: 16px !important;
  background: linear-gradient(165deg, #f5f5f7 0%, #ebebf0 100%) !important;
  box-shadow:
    12px 12px 24px rgba(0, 0, 0, 0.08),
    -10px -10px 20px rgba(255, 255, 255, 0.95),
    inset 6px 6px 16px rgba(255, 255, 255, 0.95),
    inset -6px -6px 16px rgba(0, 0, 0, 0.05) !important;
  border: 3px solid rgba(255, 255, 255, 0.6) !important;
}

.progress-inline__fill {
  background: linear-gradient(135deg, var(--ios-blue) 0%, #0055CC 100%);
}

.progress-inline__text {
  color: var(--ios-blue);
}

/* ── Buttons — iOS 12px radius & NORMAL STYLE ── */
.hero-card__play-btn {
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Header Buttons Completely Flat (No Shadow) */
.home-header .header__btn,
.home-header .header-btn--glass {
  border-radius: 50% !important;
  background: #f0f0f3 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

.install-banner__cta {
  border-radius: 12px;
  background: var(--ios-blue);
  min-height: 44px;
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.install-banner__cta:hover {
  background: #0071EB;
  transform: scale(1.02);
}

.install-banner__cta:active {
  transform: scale(0.97);
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 7.5. MINI PLAYER — FIX: Position ABOVE nav bar, hide when not playing
═══════════════════════════════════════════════════════════════════════════════ */
.mini-player {
  position: fixed;
  /* Place it snugly directly above the navigation bar */
  bottom: calc(98px + max(env(safe-area-inset-bottom, 0px), 4px)) !important;
  left: 50%;
  transform: translateX(-50%) translateY(200%);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.28, 0.84, 0.42, 1),
    opacity 0.3s ease;
}

/* Only show when --visible class is added (when kirtan is playing) */
.mini-player--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dark-mode .mini-player {
  background: rgba(28, 28, 30, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── Bottom Nav — stays same, no collision now ── */
.bottom-nav {
  padding-bottom: calc(var(--space-3, 12px) + env(safe-area-inset-bottom, 34px));
}

.bottom-nav__glass {
  background: rgba(249, 249, 249, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.dark-mode .bottom-nav__glass {
  background: rgba(22, 22, 24, 0.78);
  border-color: rgba(255, 255, 255, 0.10);
}

.nav-tab {
  gap: 2px;
}

.nav-tab__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.nav-tab--active .nav-tab__label,
.nav-tab[aria-current="page"] .nav-tab__label {
  color: var(--ios-blue);
}

/* ── Radio Sheet — iOS Bottom Sheet ── */
.sheet {
  border-radius: 22px 22px 0 0;
}

.sheet__option {
  min-height: 44px;
  border-radius: 22px;
}

.sheet__cancel {
  border-radius: 22px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ios-blue);
  min-height: 50px;
}

.sheet__option-icon .ios-emoji {
  font-size: 1.5rem;
}

/* ── Install Banner ── */
.install-banner {
  border-radius: 22px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 8. iOS ANIMATIONS & MICRO-INTERACTIONS
═══════════════════════════════════════════════════════════════════════════════ */

@keyframes iosFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ios-animate-in {
  animation: iosFadeInUp 0.5s var(--ios-ease) forwards;
}

/* Staggered list animation */
.ios-stagger>*:nth-child(1) {
  animation-delay: 0.05s;
}

.ios-stagger>*:nth-child(2) {
  animation-delay: 0.1s;
}

.ios-stagger>*:nth-child(3) {
  animation-delay: 0.15s;
}

.ios-stagger>*:nth-child(4) {
  animation-delay: 0.2s;
}

.ios-stagger>*:nth-child(5) {
  animation-delay: 0.25s;
}

.ios-stagger>*:nth-child(6) {
  animation-delay: 0.3s;
}

.ios-stagger>*:nth-child(7) {
  animation-delay: 0.35s;
}

.ios-stagger>*:nth-child(8) {
  animation-delay: 0.4s;
}

.ios-haptic:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

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

  100% {
    background-position: 200% 0;
  }
}

.ios-skeleton {
  background: linear-gradient(90deg,
      #F2F2F7 25%,
      #E5E5EA 50%,
      #F2F2F7 75%);
  background-size: 200% 100%;
  animation: iosShimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 9. SECTION HEADER — iOS Style
═══════════════════════════════════════════════════════════════════════════════ */
.section-header__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ios-label-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 10. GREETING — iOS Large Title Style
═══════════════════════════════════════════════════════════════════════════════ */
/* greeting__salutation — respect golden 3D foil from trendora-premium.css */
.greeting__salutation {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.25;
}

.greeting__gurbani {
  line-height: 1.65;
  color: #D4943A;
  font-family: 'MFJashan', 'Noto Sans Gurmukhi', sans-serif;
  font-weight: normal;
  font-size: 1.55rem;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 8px rgba(212, 148, 58, 0.2);
}

.greeting__translation {
  color: var(--ios-label-tertiary);
  line-height: 1.47;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 11. HERO CAROUSEL — iOS Refinements
═══════════════════════════════════════════════════════════════════════════════ */
.hero-carousel {
  margin-bottom: 28px;
}

.hero-carousel__dot--active {
  width: 22px;
  height: 7px;
  min-height: 7px;
  border-radius: 9999px;
  background: var(--accent, #D4943A);
  box-shadow: 0 2px 8px rgba(212, 148, 58, 0.35);
}

.hero-carousel__dot {
  min-height: 7px !important;
  max-height: 7px;
  width: 7px;
  height: 7px;
}

.hero-card__badge--live {
  background: rgba(255, 59, 48, 0.92);
}

.hero-card__badge--curated {
  background: rgba(88, 86, 214, 0.88);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 12. DARK MODE — iOS Complete Dark Palette
═══════════════════════════════════════════════════════════════════════════════ */
.dark-mode {
  --ios-bg-primary: #000000;
  --ios-bg-secondary: #1C1C1E;
  --ios-bg-tertiary: #2C2C2E;
  --ios-bg-grouped: #000000;
  --ios-label-primary: #FFFFFF;
  --ios-label-secondary: rgba(235, 235, 245, 0.6);
  --ios-label-tertiary: rgba(235, 235, 245, 0.3);
  --ios-label-quaternary: rgba(235, 235, 245, 0.18);
  --ios-separator: rgba(84, 84, 88, 0.65);
  --ios-separator-opaque: #38383A;
  --ios-fill-primary: rgba(120, 120, 128, 0.36);
  --ios-fill-secondary: rgba(120, 120, 128, 0.32);
  --ios-fill-tertiary: rgba(118, 118, 128, 0.24);

  background-color: var(--ios-bg-primary);
}

/* Dark Mode Scroll State Fix - Disable transitions during scroll.
   Scoped to the cards that actually carry transitions. As `.scrolling *` this
   matched every node in the document, so each add/remove of the .scrolling
   class on <html> (twice per scroll gesture) invalidated the computed
   transition of the entire tree — a full-document style recalc mid-scroll. */
[data-theme="dark"].scrolling .quick-card,
[data-theme="dark"].scrolling .practice-card,
[data-theme="dark"].scrolling .event-card,
[data-theme="dark"].scrolling .hero-card,
[data-theme="dark"].scrolling .glass-card,
[data-theme="dark"].scrolling .stat-card {
  transition: none !important;
}

[data-theme="dark"] .practice-card--nitnem {
  background: linear-gradient(165deg, #2C2315 0%, #3A2D1A 100%) !important;
  box-shadow:
    15px 15px 35px rgba(0, 0, 0, 0.5),
    inset 6px 6px 15px rgba(255, 255, 255, 0.06),
    inset -6px -6px 15px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(212, 148, 58, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .practice-card--sehaj {
  background: linear-gradient(165deg, #1E1B2E 0%, #2A2545 100%) !important;
  box-shadow:
    15px 15px 35px rgba(0, 0, 0, 0.5),
    inset 6px 6px 15px rgba(255, 255, 255, 0.06),
    inset -6px -6px 15px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(88, 86, 214, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .practice-card--hukam {
  background: linear-gradient(165deg, #2C2112 0%, #3A2B16 100%) !important;
  box-shadow:
    15px 15px 35px rgba(0, 0, 0, 0.5),
    inset 6px 6px 15px rgba(255, 255, 255, 0.06),
    inset -6px -6px 15px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(255, 149, 0, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.05) !important;
}

/* Dark mode Progress Card — Deep Claymorphism without white outer glow */
[data-theme="dark"] .progress-inline {
  background: linear-gradient(165deg, #202022 0%, #151515 100%) !important;
  box-shadow:
    15px 15px 35px rgba(0, 0, 0, 0.6),
    inset 4px 4px 12px rgba(255, 255, 255, 0.05),
    inset -4px -4px 12px rgba(0, 0, 0, 0.8) !important;
  border: 2px solid rgba(255, 255, 255, 0.03) !important;
}

[data-theme="dark"] .quick-card--green {
  background: linear-gradient(140deg, #1B3F27 0%, #234E32 100%) !important;
}

[data-theme="dark"] .quick-card--gold {
  background: linear-gradient(140deg, #4A3A22 0%, #5C4A2E 100%) !important;
}

[data-theme="dark"] .quick-card--purple {
  background: linear-gradient(140deg, #2E2A4A 0%, #3B365E 100%) !important;
}

[data-theme="dark"] .quick-card--blue {
  background: linear-gradient(140deg, #1C304A 0%, #263E5E 100%) !important;
}

[data-theme="dark"] .quick-card--teal {
  background: linear-gradient(140deg, #18423B 0%, #22564D 100%) !important;
}

[data-theme="dark"] .quick-card--rose {
  background: linear-gradient(140deg, #4A2222 0%, #5E2E2E 100%) !important;
}

/* Ultimate Dark Mode Claymorphism for Quick Cards - 3D Pumping Out Effect */
[data-theme="dark"] .quick-card {
  background: #0D0D0F !important;
  box-shadow:
    /* Strong outer shadow for 3D lift - pumping out effect */
    25px 25px 50px rgba(0, 0, 0, 0.7),
    15px 15px 30px rgba(0, 0, 0, 0.5),
    -8px -8px 25px rgba(255, 255, 255, 0.04),
    /* Inner highlights - strong top-left glow for 3D pop */
    inset 10px 10px 25px rgba(255, 255, 255, 0.08),
    inset 5px 5px 12px rgba(255, 255, 255, 0.05),
    /* Inner shadows - deep bottom-right for depth */
    inset -10px -10px 25px rgba(0, 0, 0, 0.6),
    inset -5px -5px 12px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  transform: translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .quick-card:active {
  box-shadow:
    /* Pressed state - deep inset shadows */
    inset 15px 15px 35px rgba(0, 0, 0, 0.7),
    inset -8px -8px 20px rgba(255, 255, 255, 0.06),
    inset 5px 5px 12px rgba(255, 255, 255, 0.04) !important;
  background: #0A0A0C !important;
  transform: translateY(0) scale(0.98);
}

[data-theme="dark"] .quick-card__icon {
  background: rgba(20, 20, 22, 0.95) !important;
  border: none !important;
  box-shadow:
    /* Strong 3D shadow for icon - popping out */
    0 8px 20px rgba(0, 0, 0, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 4px 4px 10px rgba(255, 255, 255, 0.1),
    inset -3px -3px 8px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-1px);
}

/* Improve emoji visibility in dark mode for Quick Access cards */
[data-theme="dark"] .quick-card__icon .ios-emoji {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3)) !important;
  opacity: 1 !important;
}

/* More vibrant dark mode colors for Quick Access card variants */
[data-theme="dark"] .quick-card--green {
  background: #0D0D0F !important;
  border: none !important;
}

[data-theme="dark"] .quick-card--gold {
  background: #0D0D0F !important;
  border: none !important;
}

[data-theme="dark"] .quick-card--purple {
  background: #0D0D0F !important;
  border: none !important;
}

[data-theme="dark"] .quick-card--blue {
  background: #0D0D0F !important;
  border: none !important;
}

[data-theme="dark"] .quick-card--rose {
  background: #0D0D0F !important;
  border: none !important;
}

[data-theme="dark"] .quick-card--teal {
  background: #0D0D0F !important;
  border: none !important;
}

[data-theme="dark"] .event-card {
  background: #0D0D0F !important;
  box-shadow:
    /* Strong outer shadow for 3D lift - pumping out effect */
    25px 25px 50px rgba(0, 0, 0, 0.7),
    15px 15px 30px rgba(0, 0, 0, 0.5),
    -8px -8px 25px rgba(255, 255, 255, 0.04),
    /* Inner highlights - strong top-left glow for 3D pop */
    inset 10px 10px 25px rgba(255, 255, 255, 0.08),
    inset 5px 5px 12px rgba(255, 255, 255, 0.05),
    /* Inner shadows - deep bottom-right for depth */
    inset -10px -10px 25px rgba(0, 0, 0, 0.6),
    inset -5px -5px 12px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  transform: translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .event-card:active {
  box-shadow:
    /* Pressed state - deep inset shadows */
    inset 15px 15px 35px rgba(0, 0, 0, 0.7),
    inset -8px -8px 20px rgba(255, 255, 255, 0.06),
    inset 5px 5px 12px rgba(255, 255, 255, 0.04) !important;
  background: #0A0A0C !important;
  transform: translateY(0) scale(0.98);
}

/* Hero Cards - Dark Claymorphism 3D Effect */
[data-theme="dark"] .hero-card {
  background: #0D0D0F !important;
  box-shadow: none !important;
  border: none !important;
  transform: translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .hero-card:active {
  box-shadow: none !important;
  background: #0A0A0C !important;
  transform: translateY(0) scale(0.98);
}

/* Enhancing Hero Play button visibility in Dark Mode - REMOVE CLAYMORPHISM */
[data-theme="dark"] .hero-card__image-wrapper::before,
[data-theme="dark"] .hero-card__image-wrapper::after {
  box-shadow: none !important;
  border: none !important;
  mix-blend-mode: normal !important;
}

[data-theme="dark"] .hero-card__play-btn {
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Practice Cards - Dark Claymorphism 3D Effect */
[data-theme="dark"] .practice-card {
  background: #0D0D0F !important;
  box-shadow:
    /* Strong outer shadow for 3D lift - pumping out effect */
    25px 25px 50px rgba(0, 0, 0, 0.7),
    15px 15px 30px rgba(0, 0, 0, 0.5),
    -8px -8px 25px rgba(255, 255, 255, 0.04),
    /* Inner highlights - strong top-left glow for 3D pop */
    inset 10px 10px 25px rgba(255, 255, 255, 0.08),
    inset 5px 5px 12px rgba(255, 255, 255, 0.05),
    /* Inner shadows - deep bottom-right for depth */
    inset -10px -10px 25px rgba(0, 0, 0, 0.6),
    inset -5px -5px 12px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  transform: translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .practice-card:active {
  box-shadow:
    /* Pressed state - deep inset shadows */
    inset 15px 15px 35px rgba(0, 0, 0, 0.7),
    inset -8px -8px 20px rgba(255, 255, 255, 0.06),
    inset 5px 5px 12px rgba(255, 255, 255, 0.04) !important;
  background: #0A0A0C !important;
  transform: translateY(0) scale(0.98);
}

/* Glass Cards - Dark Claymorphism 3D Effect */
[data-theme="dark"] .glass-card {
  background: #0D0D0F !important;
  box-shadow:
    /* Strong outer shadow for 3D lift - pumping out effect */
    25px 25px 50px rgba(0, 0, 0, 0.7),
    15px 15px 30px rgba(0, 0, 0, 0.5),
    -8px -8px 25px rgba(255, 255, 255, 0.04),
    /* Inner highlights - strong top-left glow for 3D pop */
    inset 10px 10px 25px rgba(255, 255, 255, 0.08),
    inset 5px 5px 12px rgba(255, 255, 255, 0.05),
    /* Inner shadows - deep bottom-right for depth */
    inset -10px -10px 25px rgba(0, 0, 0, 0.6),
    inset -5px -5px 12px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  transform: translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .glass-card:active {
  box-shadow:
    /* Pressed state - deep inset shadows */
    inset 15px 15px 35px rgba(0, 0, 0, 0.7),
    inset -8px -8px 20px rgba(255, 255, 255, 0.06),
    inset 5px 5px 12px rgba(255, 255, 255, 0.04) !important;
  background: #0A0A0C !important;
  transform: translateY(0) scale(0.98);
}

/* Stat Cards - Dark Claymorphism 3D Effect */
[data-theme="dark"] .stat-card {
  background: #0D0D0F !important;
  box-shadow:
    /* Strong outer shadow for 3D lift - pumping out effect */
    25px 25px 50px rgba(0, 0, 0, 0.7),
    15px 15px 30px rgba(0, 0, 0, 0.5),
    -8px -8px 25px rgba(255, 255, 255, 0.04),
    /* Inner highlights - strong top-left glow for 3D pop */
    inset 10px 10px 25px rgba(255, 255, 255, 0.08),
    inset 5px 5px 12px rgba(255, 255, 255, 0.05),
    /* Inner shadows - deep bottom-right for depth */
    inset -10px -10px 25px rgba(0, 0, 0, 0.6),
    inset -5px -5px 12px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  transform: translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .stat-card:active {
  box-shadow:
    /* Pressed state - deep inset shadows */
    inset 15px 15px 35px rgba(0, 0, 0, 0.7),
    inset -8px -8px 20px rgba(255, 255, 255, 0.06),
    inset 5px 5px 12px rgba(255, 255, 255, 0.04) !important;
  background: #0A0A0C !important;
  transform: translateY(0) scale(0.98);
}

/* Generic Cards - Dark Claymorphism 3D Effect */
[data-theme="dark"] .card {
  background: #0D0D0F !important;
  box-shadow:
    /* Strong outer shadow for 3D lift - pumping out effect */
    25px 25px 50px rgba(0, 0, 0, 0.7),
    15px 15px 30px rgba(0, 0, 0, 0.5),
    -8px -8px 25px rgba(255, 255, 255, 0.04),
    /* Inner highlights - strong top-left glow for 3D pop */
    inset 10px 10px 25px rgba(255, 255, 255, 0.08),
    inset 5px 5px 12px rgba(255, 255, 255, 0.05),
    /* Inner shadows - deep bottom-right for depth */
    inset -10px -10px 25px rgba(0, 0, 0, 0.6),
    inset -5px -5px 12px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  transform: translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .card:active {
  box-shadow:
    /* Pressed state - deep inset shadows */
    inset 15px 15px 35px rgba(0, 0, 0, 0.7),
    inset -8px -8px 20px rgba(255, 255, 255, 0.06),
    inset 5px 5px 12px rgba(255, 255, 255, 0.04) !important;
  background: #0A0A0C !important;
  transform: translateY(0) scale(0.98);
}

/* Nitnem Page Bani Cards - Dark Claymorphism 3D Effect */
[data-theme="dark"] .bani-card__link {
  background: #0D0D0F !important;
  box-shadow:
    /* Strong outer shadow for 3D lift - pumping out effect */
    25px 25px 50px rgba(0, 0, 0, 0.7),
    15px 15px 30px rgba(0, 0, 0, 0.5),
    -8px -8px 25px rgba(255, 255, 255, 0.04),
    /* Inner highlights - strong top-left glow for 3D pop */
    inset 10px 10px 25px rgba(255, 255, 255, 0.08),
    inset 5px 5px 12px rgba(255, 255, 255, 0.05),
    /* Inner shadows - deep bottom-right for depth */
    inset -10px -10px 25px rgba(0, 0, 0, 0.6),
    inset -5px -5px 12px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  transform: translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .bani-card__link:active {
  box-shadow:
    /* Pressed state - deep inset shadows */
    inset 15px 15px 35px rgba(0, 0, 0, 0.7),
    inset -8px -8px 20px rgba(255, 255, 255, 0.06),
    inset 5px 5px 12px rgba(255, 255, 255, 0.04) !important;
  background: #0A0A0C !important;
  transform: translateY(0) scale(0.98);
}

[data-theme="dark"] .hero-card__play-btn svg {
  color: #FFFFFF !important;
}

/* Flat styling for Header Buttons */
[data-theme="dark"] .home-header .header__btn,
[data-theme="dark"] .home-header .header-btn--glass {
  background: #2a2a2d !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Removed conflicting progress-inline block here to let lines 813-820 apply! */

/* .dark-mode .greeting__salutation — golden gradient preserved from trendora-premium.css */

[data-theme="dark"] .greeting__gurbani {
  color: #E8B84A !important;
  text-shadow: 0 0 20px rgba(212, 148, 58, 0.3) !important;
}

[data-theme="dark"] .section-header__title {
  color: #FFFFFF !important;
}

/* Remove glow from Carousel dots in dark mode */
[data-theme="dark"] .hero-carousel__dot--active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 13. ACCESSIBILITY — iOS Touch Targets & Focus States
═══════════════════════════════════════════════════════════════════════════════ */
button:not(.hero-carousel__dot),
a,
.quick-card,
.practice-card {
  min-height: 44px;
}

:focus-visible {
  outline: 3.5px solid rgba(0, 122, 255, 0.4);
  outline-offset: 2px;
  border-radius: 22px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 14. NANAKSHAHI DATE CHIP - Extreme Claymorphism Pill
═══════════════════════════════════════════════════════════════════════════════ */
.greeting__nanakshahi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  padding: 10px 20px;
  background: linear-gradient(145deg, #FFFAF5 0%, #FFF8E8 50%, #FFECB3 100%);
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  color: #B8860B;
  letter-spacing: 0.02em;
  width: fit-content;
  text-align: center;
  border: 1px solid rgba(212, 148, 58, 0.25);
  box-shadow:
    12px 12px 30px rgba(0, 0, 0, 0.08),
    -6px -6px 20px rgba(255, 255, 255, 0.95),
    inset 2px 2px 8px rgba(255, 255, 255, 0.9),
    inset -2px -2px 8px rgba(212, 148, 58, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.greeting__nanakshahi:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    16px 16px 40px rgba(0, 0, 0, 0.1),
    -8px -8px 30px rgba(255, 255, 255, 0.98),
    inset 2px 2px 8px rgba(255, 255, 255, 0.95),
    inset -2px -2px 8px rgba(212, 148, 58, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Dark mode Nanakshahi - warm golden clay */
.dark-mode .greeting__nanakshahi,
[data-theme="dark"] .greeting__nanakshahi {
  background: linear-gradient(145deg, #3A3028 0%, #2A2218 100%);
  color: #E8B84A;
  border: 1px solid rgba(212, 148, 58, 0.35);
  box-shadow:
    12px 12px 30px rgba(0, 0, 0, 0.4),
    -6px -6px 20px rgba(60, 60, 67, 0.15),
    inset 2px 2px 8px rgba(212, 148, 58, 0.08),
    inset -2px -2px 8px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 15. REDUCED MOTION
═══════════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ios-orb {
    animation: none !important;
  }

  .ios-animate-in {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .ios-stagger>* {
    animation-delay: 0s !important;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
   § 16. AUTO MODE / DYNAMIC CARD PALETTE OVERRIDES
   ═════════════════════════════════════════════════════════════════════════════ */
[data-theme-mode="auto"] .practice-card,
[data-theme-mode="auto"] .practice-card--nitnem,
[data-theme-mode="auto"] .practice-card--sehaj,
[data-theme-mode="auto"] .practice-card--hukam {
  background: var(--sky-card-bg-glass) !important;
  border: 1.5px solid var(--sky-card-border) !important;
  box-shadow: 0 8px 32px var(--sky-card-shadow),
    inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
  color: var(--sky-card-text) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

[data-theme-mode="auto"] .practice-card__title {
  color: var(--sky-card-text) !important;
}

[data-theme-mode="auto"] .practice-card__status {
  color: var(--sky-card-text2) !important;
}

[data-theme-mode="auto"] .practice-card__ring-bg {
  stroke: var(--sky-card-border) !important;
}

[data-theme-mode="auto"] .practice-card__ring-fill {
  stroke: var(--sky-card-accent) !important;
}

[data-theme-mode="auto"] .practice-card__ring-icon {
  color: var(--sky-card-accent) !important;
}

[data-theme-mode="auto"] .practice-card__ring-icon .ios-emoji {
  filter: drop-shadow(0 2px 8px var(--sky-card-shadow)) !important;
}

/* Quick Access Grid Overrides for Auto Mode */
[data-theme-mode="auto"] .quick-card,
[data-theme-mode="auto"] .quick-card--green,
[data-theme-mode="auto"] .quick-card--gold,
[data-theme-mode="auto"] .quick-card--purple,
[data-theme-mode="auto"] .quick-card--blue,
[data-theme-mode="auto"] .quick-card--rose,
[data-theme-mode="auto"] .quick-card--teal {
  background: var(--sky-card-bg-glass) !important;
  border: 1.5px solid var(--sky-card-border) !important;
  box-shadow: 0 8px 32px var(--sky-card-shadow),
    inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
  color: var(--sky-card-text) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

[data-theme-mode="auto"] .quick-card__title {
  color: var(--sky-card-text) !important;
}

[data-theme-mode="auto"] .quick-card__subtitle {
  color: var(--sky-card-text2) !important;
}

[data-theme-mode="auto"] .quick-card__icon {
  background: var(--sky-card-icon-bg) !important;
  border: none !important;
  box-shadow: 0 4px 12px var(--sky-card-shadow) !important;
}

[data-theme-mode="auto"] .quick-card__chevron {
  color: var(--sky-card-text2) !important;
}

[data-theme-mode="auto"] .quick-card__meta,
[data-theme-mode="auto"] .quick-card__meta-value,
[data-theme-mode="auto"] .quick-card__progress {
  color: var(--sky-card-accent) !important;
}

/* Active Pressed States for Auto Mode Cards */
[data-theme-mode="auto"] .practice-card:active,
[data-theme-mode="auto"] .practice-card--nitnem:active,
[data-theme-mode="auto"] .practice-card--sehaj:active,
[data-theme-mode="auto"] .practice-card--hukam:active,
[data-theme-mode="auto"] .quick-card:active,
[data-theme-mode="auto"] .quick-card--green:active,
[data-theme-mode="auto"] .quick-card--gold:active,
[data-theme-mode="auto"] .quick-card--purple:active,
[data-theme-mode="auto"] .quick-card--blue:active,
[data-theme-mode="auto"] .quick-card--rose:active,
[data-theme-mode="auto"] .quick-card--teal:active {
  transform: scale(0.96) !important;
  background: var(--sky-card-bg) !important;
  box-shadow: inset 0 4px 14px var(--sky-card-shadow) !important;
}

/* Upcoming Event Card Overrides for Auto Mode */
[data-theme-mode="auto"] .event-card {
  background: var(--sky-card-bg-glass) !important;
  border: 1.5px solid var(--sky-card-border) !important;
  box-shadow: 0 8px 32px var(--sky-card-shadow),
    inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
  color: var(--sky-card-text) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

[data-theme-mode="auto"] .event-card__title {
  color: var(--sky-card-text) !important;
}

[data-theme-mode="auto"] .event-card__eyebrow {
  color: var(--sky-card-accent) !important;
}

[data-theme-mode="auto"] .event-card__description,
[data-theme-mode="auto"] .event-card__date,
[data-theme-mode="auto"] .event-card__countdown,
[data-theme-mode="auto"] .event-card__countdown-label {
  color: var(--sky-card-text2) !important;
}

[data-theme-mode="auto"] .event-card__learn-more {
  background: var(--sky-card-icon-bg) !important;
  color: var(--sky-card-text) !important;
  border: 1.5px solid var(--sky-card-border) !important;
}

/* Progress Bar Overrides for Auto Mode */
[data-theme-mode="auto"] .progress-inline {
  background: var(--sky-card-bg-glass) !important;
  border: 1.5px solid var(--sky-card-border) !important;
  box-shadow: 0 8px 32px var(--sky-card-shadow),
    inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

[data-theme-mode="auto"] .progress-inline__fill {
  background: var(--sky-card-accent) !important;
}

[data-theme-mode="auto"] .progress-inline__text {
  color: var(--sky-card-text) !important;
}

/* Header Buttons Overrides for Auto Mode */
/* .header__back/.glass-nav__back deliberately NOT scoped to .home-header
   here — both are shared component classes used by 13+ other pages'
   (Settings, Profile, Journey, legal pages, etc.) own back buttons, not
   Home-exclusive, so this glassmorphism treatment is plausibly an
   intentional shared style rather than a Home-specific leak. Only
   .header__btn/.header-btn--glass are confirmed Home-exclusive. */
[data-theme-mode="auto"] .home-header .header__btn,
[data-theme-mode="auto"] .home-header .header-btn--glass,
[data-theme-mode="auto"] .header__back,
[data-theme-mode="auto"] .glass-nav__back {
  background: var(--sky-card-bg-glass) !important;
  border: 1px solid var(--sky-card-border) !important;
  box-shadow: 0 4px 12px var(--sky-card-shadow) !important;
  color: var(--sky-card-text) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

[data-theme-mode="auto"] .home-header .header__btn svg,
[data-theme-mode="auto"] .home-header .header-btn--glass svg,
[data-theme-mode="auto"] .header__back svg,
[data-theme-mode="auto"] .glass-nav__back svg {
  color: var(--sky-card-text) !important;
}

[data-theme-mode="auto"] .home-header .header__btn img,
[data-theme-mode="auto"] .home-header .header-btn--glass img,
[data-theme-mode="auto"] .header__back img {
  filter: brightness(0) invert(1) !important;
}

[data-theme-mode="auto"] .home-header .header__btn:active,
[data-theme-mode="auto"] .home-header .header-btn--glass:active,
[data-theme-mode="auto"] .header__back:active,
[data-theme-mode="auto"] .glass-nav__back:active {
  background: var(--sky-card-bg) !important;
}

/* Tab Bar Navigation Overrides for Auto Mode */
[data-theme-mode="auto"] .tab-bar,
[data-theme-mode="auto"] .bottom-nav__glass {
  background: var(--sky-card-bg-glass) !important;
  border: 1px solid var(--sky-card-border) !important;
  box-shadow: 0 -8px 32px var(--sky-card-shadow) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

[data-theme-mode="auto"] .tab-item {
  color: var(--sky-card-text2) !important;
}

[data-theme-mode="auto"] .tab-item.active {
  color: var(--sky-card-accent) !important;
  background: var(--sky-card-icon-bg) !important;
}

[data-theme-mode="auto"] .tab-item.active .tab-icon {
  filter: drop-shadow(0 2px 8px var(--sky-card-shadow)) !important;
}

/* =========================================================================
   § 17. DASHBOARD GLASSMORPHIC OVERRIDES (AUTO THEME)
   ========================================================================= */
[data-theme-mode="auto"] .streak-hero,
[data-theme-mode="auto"] .stat-card,
[data-theme-mode="auto"] .goal-card,
[data-theme-mode="auto"] .analytics-chart,
[data-theme-mode="auto"] .analytics-chart-skeleton,
[data-theme-mode="auto"] .milestone {
  background: var(--sky-card-bg-glass) !important;
  border: 1.5px solid var(--sky-card-border) !important;
  box-shadow: 0 8px 32px var(--sky-card-shadow),
    inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
  color: var(--sky-card-text) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

[data-theme-mode="auto"] .streak-hero__label,
[data-theme-mode="auto"] .streak-hero__subtitle,
[data-theme-mode="auto"] .stat-card__label,
[data-theme-mode="auto"] .goal-card__title,
[data-theme-mode="auto"] .goal-card__status,
[data-theme-mode="auto"] .chart-title,
[data-theme-mode="auto"] .legend-item,
[data-theme-mode="auto"] .chart-label,
[data-theme-mode="auto"] .chart-goal-label,
[data-theme-mode="auto"] .score-label,
[data-theme-mode="auto"] .minimal-labels span,
[data-theme-mode="auto"] .milestone__label {
  color: var(--sky-card-text2) !important;
}

[data-theme-mode="auto"] .streak-hero__count,
[data-theme-mode="auto"] .score-value,
[data-theme-mode="auto"] .stat-card__value,
[data-theme-mode="auto"] .milestone__days {
  color: var(--sky-card-accent) !important;
}

[data-theme-mode="auto"] .streak-hero__freeze {
  background: var(--sky-card-icon-bg) !important;
  border: 1px solid var(--sky-card-border) !important;
  color: var(--sky-card-accent) !important;
  box-shadow: 0 4px 12px var(--sky-card-shadow) !important;
}

[data-theme-mode="auto"] .goal-card__progress-wrap {
  background: var(--sky-card-border) !important;
}

[data-theme-mode="auto"] .goal-card__fill {
  background: var(--sky-card-accent) !important;
}

[data-theme-mode="auto"] .chart-body {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--sky-card-border) !important;
  box-shadow: inset 2px 2px 8px var(--sky-card-shadow) !important;
}

[data-theme-mode="auto"] .milestone--achieved {
  background: var(--sky-card-icon-bg) !important;
  border: 1.5px solid var(--sky-card-accent) !important;
}

[data-theme-mode="auto"] .chart-insight {
  background: var(--sky-card-icon-bg) !important;
  border: 1px solid var(--sky-card-border) !important;
  color: var(--sky-card-text) !important;
}

[data-theme-mode="auto"] .chart-insight i {
  color: var(--sky-card-accent) !important;
}

/* Section 18 removed: Insights and Favorites cards preserve their authentic design and styles */


/* =========================================================================
   § MASTER BLUR — All cards get glassmorphism across ALL themes + palettes
   Applies to: light · dark · auto (morning/day/evening/night)
   ========================================================================= */

/* ── Quick Cards ── */
.quick-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Event / Practice Cards ── */
.event-card,
.practice-card,
.card,
.glass-card,
.nitnem-card,
.insight-card,
.fav-card,
.streak-hero,
.stat-card,
.goal-card,
.milestone,
.analytics-chart {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Dark theme card backgrounds — solid rich dark colors for 60fps performance ── */
[data-theme="dark"] .quick-card,
.dark-mode .quick-card {
  background: #1E1E24 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme="dark"] .event-card,
.dark-mode .event-card,
[data-theme="dark"] .fav-card,
.dark-mode .fav-card,
[data-theme="dark"] .insight-card,
.dark-mode .insight-card,
[data-theme="dark"] .practice-card,
.dark-mode .practice-card {
  background: #1C1C1E !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Auto theme MORNING + EVENING only — sky glass palette (HOME ONLY) ── */
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .quick-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .event-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .practice-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .glass-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .nitnem-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .quick-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .event-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .practice-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .glass-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .nitnem-card {
  background: var(--sky-card-bg-glass) !important;
  border: 1px solid var(--sky-card-border) !important;
  color: var(--sky-card-text) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow:
    0 8px 32px var(--sky-card-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* ── DAY AUTO: iOS 18 Distinct Gradients & Squircle Cards ── */
/* Practice Cards — base fallback */
[data-theme-mode="auto"][data-time-of-day="day"] .practice-card {
  border-radius: 26px !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease !important;
}
/* Nitnem — Warm Sacred Amber / Sunrise Gold */
[data-theme-mode="auto"][data-time-of-day="day"] .practice-card--nitnem {
  background: linear-gradient(155deg, #FFFDF8 0%, #FFF5E8 50%, #FFECD0 100%) !important;
  box-shadow:
    6px 10px 24px rgba(212, 148, 58, 0.12),
    -4px -4px 14px rgba(255, 255, 255, 0.95),
    inset 1.5px 1.5px 4px rgba(255, 255, 255, 0.95),
    inset -2px -2px 6px rgba(212, 148, 58, 0.08) !important;
  border: 1px solid rgba(212, 148, 58, 0.22) !important;
  border-radius: 26px !important;
}
/* Sehaj Paath — Regal Royal Violet / Lavender */
[data-theme-mode="auto"][data-time-of-day="day"] .practice-card--sehaj {
  background: linear-gradient(155deg, #FCFAFF 0%, #F4EEFF 50%, #E9DEFF 100%) !important;
  box-shadow:
    6px 10px 24px rgba(139, 92, 246, 0.12),
    -4px -4px 14px rgba(255, 255, 255, 0.95),
    inset 1.5px 1.5px 4px rgba(255, 255, 255, 0.95),
    inset -2px -2px 6px rgba(139, 92, 246, 0.08) !important;
  border: 1px solid rgba(139, 92, 246, 0.22) !important;
  border-radius: 26px !important;
}
/* Hukamnama — Radiant Saffron / Peach Glow */
[data-theme-mode="auto"][data-time-of-day="day"] .practice-card--hukam {
  background: linear-gradient(155deg, #FFFDFB 0%, #FFF2EB 50%, #FFE6D8 100%) !important;
  box-shadow:
    6px 10px 24px rgba(255, 122, 69, 0.12),
    -4px -4px 14px rgba(255, 255, 255, 0.95),
    inset 1.5px 1.5px 4px rgba(255, 255, 255, 0.95),
    inset -2px -2px 6px rgba(255, 122, 69, 0.08) !important;
  border: 1px solid rgba(255, 122, 69, 0.22) !important;
  border-radius: 26px !important;
}
/* Quick Access Cards — unified sky blue, no border */
[data-theme-mode="auto"][data-time-of-day="day"] .quick-card {
  background: linear-gradient(140deg, #EFF8FF 0%, #DBEAFE 100%) !important;
  box-shadow:
    8px 8px 20px rgba(59, 130, 246, 0.08),
    -6px -6px 18px rgba(255, 255, 255, 0.95),
    inset 3px 3px 8px rgba(255, 255, 255, 0.88),
    inset -3px -3px 8px rgba(59, 130, 246, 0.05) !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
[data-theme-mode="auto"][data-time-of-day="day"] .quick-card--green,
[data-theme-mode="auto"][data-time-of-day="day"] .quick-card--gold,
[data-theme-mode="auto"][data-time-of-day="day"] .quick-card--purple,
[data-theme-mode="auto"][data-time-of-day="day"] .quick-card--blue,
[data-theme-mode="auto"][data-time-of-day="day"] .quick-card--rose,
[data-theme-mode="auto"][data-time-of-day="day"] .quick-card--teal {
  background: linear-gradient(140deg, #EFF8FF 0%, #DBEAFE 100%) !important;
}
/* Progress Bar — sky blue cushion, no border */
[data-theme-mode="auto"][data-time-of-day="day"] .progress-inline {
  border-radius: 36px !important;
  padding: 14px 20px !important;
  background: linear-gradient(140deg, #EFF8FF 0%, #DBEAFE 100%) !important;
  box-shadow:
    8px 8px 20px rgba(59, 130, 246, 0.08),
    -6px -6px 18px rgba(255, 255, 255, 0.95),
    inset 4px 4px 10px rgba(255, 255, 255, 0.90),
    inset -4px -4px 10px rgba(59, 130, 246, 0.05) !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Event Card — soft sky blue clay, no border */
[data-theme-mode="auto"][data-time-of-day="day"] .event-card {
  background: linear-gradient(140deg, #EFF8FF 0%, #DBEAFE 100%) !important;
  box-shadow:
    8px 8px 20px rgba(59, 130, 246, 0.08),
    -6px -6px 18px rgba(255, 255, 255, 0.95),
    inset 3px 3px 8px rgba(255, 255, 255, 0.90),
    inset -3px -3px 8px rgba(59, 130, 246, 0.05) !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── NIGHT AUTO: Dark mode claymorphism — mirrors [data-theme="dark"] ── */
[data-theme-mode="auto"][data-time-of-day="night"] .practice-card--nitnem {
  background: linear-gradient(165deg, #2C2315 0%, #3A2D1A 100%) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 30px !important;
}
[data-theme-mode="auto"][data-time-of-day="night"] .practice-card--sehaj {
  background: linear-gradient(165deg, #1E1B2E 0%, #2A2545 100%) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 30px !important;
}
[data-theme-mode="auto"][data-time-of-day="night"] .practice-card--hukam {
  background: linear-gradient(165deg, #2C2112 0%, #3A2B16 100%) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 30px !important;
}
[data-theme-mode="auto"][data-time-of-day="night"] .practice-card {
  background: #1C1C1E !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  border-radius: 30px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
[data-theme-mode="auto"][data-time-of-day="night"] .quick-card {
  background: #1E1E24 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
[data-theme-mode="auto"][data-time-of-day="night"] .quick-card--green,
[data-theme-mode="auto"][data-time-of-day="night"] .quick-card--gold,
[data-theme-mode="auto"][data-time-of-day="night"] .quick-card--purple,
[data-theme-mode="auto"][data-time-of-day="night"] .quick-card--blue,
[data-theme-mode="auto"][data-time-of-day="night"] .quick-card--rose,
[data-theme-mode="auto"][data-time-of-day="night"] .quick-card--teal {
  background: #18181C !important;
  border: none !important;
}
[data-theme-mode="auto"][data-time-of-day="night"] .progress-inline {
  background: linear-gradient(165deg, #202022 0%, #151515 100%) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
[data-theme-mode="auto"][data-time-of-day="night"] .event-card {
  background: #1C1C1E !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Morning Soft Cushion Claymorphism Override (5:00 AM to 9:00 AM) ── */
[data-theme-mode="auto"][data-time-of-day="morning"] .practice-card,
[data-theme-mode="auto"][data-time-of-day="morning"] .quick-card,
[data-theme-mode="auto"][data-time-of-day="morning"] .event-card,
[data-theme-mode="auto"][data-time-of-day="morning"] .card,
[data-theme-mode="auto"][data-time-of-day="morning"] .glass-card,
[data-theme-mode="auto"][data-time-of-day="morning"] .nitnem-card {
  background: linear-gradient(145deg, #FFFDF6, #FFEAD4) !important;
  border: none !important;
  border-radius: 24px !important;
  box-shadow: 4px 4px 10px rgba(232, 148, 100, 0.1), 
              -4px -4px 10px rgba(255, 255, 255, 0.95), 
              inset 2px 2px 4px rgba(255, 255, 255, 0.95), 
              inset -2px -2px 4px rgba(232, 148, 100, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Morning Specific Cards */
[data-theme-mode="auto"][data-time-of-day="morning"] .practice-card--nitnem,
[data-theme-mode="auto"][data-time-of-day="morning"] .quick-card--gold {
  background: linear-gradient(145deg, #FFFDF6, #FFEAB8) !important;
  box-shadow: 4px 4px 10px rgba(212, 148, 58, 0.1), 
              -4px -4px 10px rgba(255, 255, 255, 0.95), 
              inset 2px 2px 4px rgba(255, 255, 255, 0.95), 
              inset -2px -2px 4px rgba(212, 148, 58, 0.06) !important;
}
[data-theme-mode="auto"][data-time-of-day="morning"] .practice-card--sehaj,
[data-theme-mode="auto"][data-time-of-day="morning"] .quick-card--purple {
  background: linear-gradient(145deg, #FFFDF9, #FFE0CC) !important;
  box-shadow: 4px 4px 10px rgba(232, 130, 80, 0.08), 
              -4px -4px 10px rgba(255, 255, 255, 0.95), 
              inset 2px 2px 4px rgba(255, 255, 255, 0.95), 
              inset -2px -2px 4px rgba(232, 130, 80, 0.05) !important;
}
[data-theme-mode="auto"][data-time-of-day="morning"] .practice-card--hukam,
[data-theme-mode="auto"][data-time-of-day="morning"] .quick-card--green {
  background: linear-gradient(145deg, #FFFDF9, #FFE4C8) !important;
  box-shadow: 4px 4px 10px rgba(232, 110, 60, 0.08), 
              -4px -4px 10px rgba(255, 255, 255, 0.95), 
              inset 2px 2px 4px rgba(255, 255, 255, 0.95), 
              inset -2px -2px 4px rgba(232, 110, 60, 0.05) !important;
}

/* Morning Progress Bar — Soft Cushion Claymorphism, no border */
[data-theme-mode="auto"][data-time-of-day="morning"] .progress-inline {
  border-radius: 36px !important;
  padding: 14px 20px !important;
  background: linear-gradient(145deg, #FFFDF9, #FFE5D0) !important;
  box-shadow: 4px 4px 10px rgba(232, 148, 100, 0.1), 
              -4px -4px 10px rgba(255, 255, 255, 0.95), 
              inset 2px 2px 4px rgba(255, 255, 255, 0.95), 
              inset -2px -2px 4px rgba(232, 148, 100, 0.06) !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Morning Buttons & Controls */
[data-theme-mode="auto"][data-time-of-day="morning"] .home-header .header__btn,
[data-theme-mode="auto"][data-time-of-day="morning"] .home-header .header-btn--glass,
[data-theme-mode="auto"][data-time-of-day="morning"] .header__back,
[data-theme-mode="auto"][data-time-of-day="morning"] .glass-nav__back,
[data-theme-mode="auto"][data-time-of-day="morning"] .event-card__learn-more,
[data-theme-mode="auto"][data-time-of-day="morning"] .tab-item.active {
  background: linear-gradient(145deg, #FFFDF9, #FFE5D0) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 3px 3px 8px rgba(232, 148, 100, 0.08), 
              -3px -3px 8px rgba(255, 255, 255, 0.95), 
              inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.95), 
              inset -1.5px -1.5px 3px rgba(232, 148, 100, 0.05) !important;
  border-radius: 20px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Evening Soft Cushion Claymorphism Override (4:00 PM to 8:00 PM) ── */
[data-theme-mode="auto"][data-time-of-day="evening"] .practice-card,
[data-theme-mode="auto"][data-time-of-day="evening"] .quick-card,
[data-theme-mode="auto"][data-time-of-day="evening"] .event-card,
[data-theme-mode="auto"][data-time-of-day="evening"] .card,
[data-theme-mode="auto"][data-time-of-day="evening"] .glass-card,
[data-theme-mode="auto"][data-time-of-day="evening"] .nitnem-card {
  background: linear-gradient(145deg, #FFFDF8, #FFECB8) !important;
  border: none !important;
  border-radius: 24px !important;
  box-shadow: 4px 4px 10px rgba(184, 134, 11, 0.10), 
              -4px -4px 10px rgba(255, 255, 255, 0.95), 
              inset 2px 2px 4px rgba(255, 255, 255, 0.95), 
              inset -2px -2px 4px rgba(184, 134, 11, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Evening Specific Cards */
[data-theme-mode="auto"][data-time-of-day="evening"] .practice-card--nitnem,
[data-theme-mode="auto"][data-time-of-day="evening"] .quick-card--gold {
  background: linear-gradient(145deg, #FFFFFA, #FFE498) !important;
  box-shadow: 4px 4px 10px rgba(184, 134, 11, 0.12), 
              -4px -4px 10px rgba(255, 255, 255, 0.95), 
              inset 2px 2px 4px rgba(255, 255, 255, 0.95), 
              inset -2px -2px 4px rgba(184, 134, 11, 0.07) !important;
}
[data-theme-mode="auto"][data-time-of-day="evening"] .practice-card--sehaj,
[data-theme-mode="auto"][data-time-of-day="evening"] .quick-card--purple {
  background: linear-gradient(145deg, #FFFDF9, #FFE0CC) !important;
  box-shadow: 4px 4px 10px rgba(180, 110, 80, 0.08), 
              -4px -4px 10px rgba(255, 255, 255, 0.95), 
              inset 2px 2px 4px rgba(255, 255, 255, 0.95), 
              inset -2px -2px 4px rgba(180, 110, 80, 0.06) !important;
}
[data-theme-mode="auto"][data-time-of-day="evening"] .practice-card--hukam,
[data-theme-mode="auto"][data-time-of-day="evening"] .quick-card--green {
  background: linear-gradient(145deg, #FFFDF8, #FFEAB0) !important;
  box-shadow: 4px 4px 10px rgba(184, 134, 11, 0.10), 
              -4px -4px 10px rgba(255, 255, 255, 0.95), 
              inset 2px 2px 4px rgba(255, 255, 255, 0.95), 
              inset -2px -2px 4px rgba(184, 134, 11, 0.06) !important;
}

/* Evening Progress Bar — Soft Cushion Claymorphism, no border */
[data-theme-mode="auto"][data-time-of-day="evening"] .progress-inline {
  border-radius: 36px !important;
  padding: 14px 20px !important;
  background: linear-gradient(145deg, #FFFDF8, #FFECB8) !important;
  box-shadow: 4px 4px 10px rgba(184, 134, 11, 0.10), 
              -4px -4px 10px rgba(255, 255, 255, 0.95), 
              inset 2px 2px 4px rgba(255, 255, 255, 0.95), 
              inset -2px -2px 4px rgba(184, 134, 11, 0.06) !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme-mode="auto"][data-time-of-day="evening"] .home-header .header__btn,
[data-theme-mode="auto"][data-time-of-day="evening"] .home-header .header-btn--glass,
[data-theme-mode="auto"][data-time-of-day="evening"] .header__back,
[data-theme-mode="auto"][data-time-of-day="evening"] .glass-nav__back,
[data-theme-mode="auto"][data-time-of-day="evening"] .event-card__learn-more,
[data-theme-mode="auto"][data-time-of-day="evening"] .tab-item.active {
  background: linear-gradient(145deg, #FFFDF8, #FFECB8) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 3px 3px 8px rgba(184, 134, 11, 0.08), 
              -3px -3px 8px rgba(255, 255, 255, 0.95), 
              inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.95), 
              inset -1.5px -1.5px 3px rgba(184, 134, 11, 0.05) !important;
  border-radius: 20px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Day Event Card — light mode style, no golden border ── */
[data-theme-mode="auto"][data-time-of-day="day"] .event-card__learn-more {
  background: rgba(0, 122, 255, 0.08) !important;
  color: #007AFF !important;
  border: 1px solid rgba(0, 122, 255, 0.2) !important;
}
/* ── Night Event Card — dark mode style, no golden border ── */
[data-theme-mode="auto"][data-time-of-day="night"] .event-card__learn-more {
  background: rgba(10, 132, 255, 0.15) !important;
  color: #0A84FF !important;
  border: 1px solid rgba(10, 132, 255, 0.3) !important;
}

/* ── Mobile blur DISABLED: backdrop-filter on cards caused 60fps jank on iOS ──
   Cards use claymorphism box-shadow depth instead — no blur needed on cards.
   The .is-mobile blur override has been permanently removed for performance. ── */

/* =========================================================================
   § INSTANT THEME / PALETTE SWITCHING — Zero transition on theme variables
   The sky background image + CSS vars switch instantly; only micro-interactions
   (hover, tap) keep their transitions.
   ========================================================================= */

/* Kill slow color transitions on the root/body so palette changes are instant */
html,
body,
.app,
#app {
  transition: background-image 0ms, background-color 0ms, color 0ms !important;
}

/* Keep micro-animations for cards (tap/hover only, not on theme change) */
.quick-card,
.event-card,
.hero-card,
.practice-card,
.fav-card {
  transition:
    transform 0.15s var(--ios-ease),
    box-shadow 0.15s ease !important;
}

/* Tab bar color/background must also switch instantly */
.tab-bar {
  transition: transform 0.2s ease !important;
}

.tab-item {
  transition: color 0.1s ease !important;
}

/* =========================================================================
   § TAB ICON IMAGE — Perfectly centred logo in nav pill
   ========================================================================= */

.tab-icon img {
  display: block !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  width: 26px !important;
  height: 26px !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}

.tab-item.active .tab-icon img {
  filter: drop-shadow(0 2px 10px rgba(255, 59, 48, 0.55)) !important;
  transform: scale(1.12) translateY(-2px) !important;
}

/* =========================================================================
   § DARK CARD FIX — Solid dark backgrounds, NO backdrop-filter blur
   Claymorphism depth comes from box-shadows, not blur. Blur causes scroll
   jank on iOS. Cards are fully opaque so performance is optimal.
   ========================================================================= */

/* ── Dark quick-cards: solid opaque dark bg, shadow depth only ── */
[data-theme="dark"] .quick-card,
[data-theme="dark"] .quick-card--green,
[data-theme="dark"] .quick-card--gold,
[data-theme="dark"] .quick-card--purple,
[data-theme="dark"] .quick-card--blue,
[data-theme="dark"] .quick-card--rose,
[data-theme="dark"] .quick-card--teal,
.dark-mode .quick-card,
.dark-mode .quick-card--green,
.dark-mode .quick-card--gold,
.dark-mode .quick-card--purple,
.dark-mode .quick-card--blue,
.dark-mode .quick-card--rose,
.dark-mode .quick-card--teal {
  background: #1E1E24 !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Dark event-cards ── */
[data-theme="dark"] .event-card,
.dark-mode .event-card {
  background: #1C1C1E !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Dark hero-cards ── */
[data-theme="dark"] .hero-card,
.dark-mode .hero-card {
  background: rgba(13, 13, 15, 0.95) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.15s var(--ios-ease, cubic-bezier(0.25, 0.46, 0.45, 0.94)) !important;
}

/* ── Kill slow background transition on dark cards — only transform animates ── */
[data-theme="dark"] .quick-card,
[data-theme="dark"] .event-card,
.dark-mode .quick-card,
.dark-mode .event-card {
  transition: transform 0.15s var(--ios-ease, cubic-bezier(0.25, 0.46, 0.45, 0.94)),
    box-shadow 0.15s ease !important;
}

/* =========================================================================
   § DARK CARDS — glass-card, stat-card, card, practice-card: solid + shadow
   No backdrop-filter for 60fps smooth scroll on all devices.
   ========================================================================= */
[data-theme="dark"] .glass-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .card,
[data-theme="dark"] .nitnem-card,
[data-theme="dark"] .insight-card,
[data-theme="dark"] .fav-card,
.dark-mode .glass-card,
.dark-mode .stat-card,
.dark-mode .card,
.dark-mode .nitnem-card,
.dark-mode .insight-card,
.dark-mode .fav-card {
  background: #1C1C1E !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.15s var(--ios-ease, cubic-bezier(0.25, 0.46, 0.45, 0.94)),
    box-shadow 0.15s ease !important;
}

/* ── Dark Mode Practice Cards — Rich Tinted Gradients ── */
[data-theme="dark"] .practice-card--nitnem,
.dark-mode .practice-card--nitnem {
  background: linear-gradient(155deg, #261D12 0%, #1A140B 100%) !important;
  border: 1px solid rgba(247, 198, 52, 0.25) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(247, 198, 52, 0.15) !important;
}
[data-theme="dark"] .practice-card--sehaj,
.dark-mode .practice-card--sehaj {
  background: linear-gradient(155deg, #1E192D 0%, #14111F 100%) !important;
  border: 1px solid rgba(167, 139, 250, 0.25) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(167, 139, 250, 0.15) !important;
}
[data-theme="dark"] .practice-card--hukam,
.dark-mode .practice-card--hukam {
  background: linear-gradient(155deg, #2A1713 0%, #1B0E0B 100%) !important;
  border: 1px solid rgba(255, 138, 92, 0.25) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 138, 92, 0.15) !important;
}

/* ── Light theme cards: solid backgrounds, NO blur — claymorphism via shadow ── */
[data-theme="light"] .quick-card,
[data-theme="light"] .event-card,
[data-theme="light"] .glass-card,
[data-theme="light"] .card,
[data-theme="light"] .fav-card,
[data-theme="light"] .insight-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  transition: transform 0.15s var(--ios-ease, cubic-bezier(0.25, 0.46, 0.45, 0.94)),
    box-shadow 0.15s ease !important;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   § 19. DARK MODE SCROLL STABILITY FIX — GPU Acceleration & Rendering Optimization
   Fix for: Element disappearance, text flickering, navigation position shifts during scroll
   Bug Condition: isBugCondition_DarkMode(scrollEvent) in dark theme
   Expected: All UI elements remain visible, stable, without flickering during scroll
═══════════════════════════════════════════════════════════════════════════════ */

/* GPU Acceleration for Dark Mode Elements */
[data-theme="dark"] .practice-card,
[data-theme="dark"] .quick-card,
[data-theme="dark"] .tab-item,
[data-theme="dark"] .nav-tab,
[data-theme="dark"] button {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: auto;
}

/* Font Smoothing Optimization */
[data-theme="dark"] {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation Position Stability */
[data-theme="dark"] .nav-tab,
[data-theme="dark"] .tab-item {
  position: relative;
  transform: translate3d(0, 0, 0);
}

/* Isolate Compositor Layers for Icons */
[data-theme="dark"] .practice-card__ring-icon,
[data-theme="dark"] .quick-card__icon {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 20. GLOBAL SCROLL PERFORMANCE — All Themes, All Devices
   Eliminates repaint jank during scroll by:
   1. GPU-compositing every card onto its own layer (translateZ)
   2. Disabling expensive backdrop-filter + transitions while scrolling
   3. Using CSS containment to limit paint scope
———————————————————————————————————————————————————————————————————————————————
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Smooth card rendering — allow normal document flow without layer clipping */
.quick-card,
.practice-card,
.event-card,
.nitnem-card,
.fav-card,
.insight-card,
.progress-inline,
.hero-card {
  will-change: auto;
}

/* Font smoothing — all themes */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Nav glass: always composited for sticky positioning stability */
.nav-glass,
.app-header,
.header-bar {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 21. FINAL GLOBAL PERFORMANCE & CLAYMORPHISM OVERRIDE
   ► Must be at the VERY END of this file to win ALL cascade battles.
   ► Two-attribute selectors guarantee higher specificity than any single-attr rule.
   ► Enforces: NO backdrop-filter blur on any card, NO white border on any card.
   ► Claymorphism depth comes purely from box-shadow, not blur or border.
═══════════════════════════════════════════════════════════════════════════════ */

/* Auto-theme morning — remove blur + border on all cards (HOME ONLY) */
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .quick-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .practice-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .event-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .progress-inline,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .nitnem-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .glass-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="morning"] .card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
}

/* Auto-theme day — remove blur + border on all cards (HOME ONLY) */
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="day"] .quick-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="day"] .practice-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="day"] .event-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="day"] .progress-inline,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="day"] .nitnem-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="day"] .glass-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="day"] .card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
}

/* Auto-theme evening — remove blur + border on all cards (HOME ONLY) */
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .quick-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .practice-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .event-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .progress-inline,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .nitnem-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .glass-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="evening"] .card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
}

/* Auto-theme night — remove blur + border on all cards (HOME ONLY) */
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="night"] .quick-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="night"] .practice-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="night"] .event-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="night"] .progress-inline,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="night"] .nitnem-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="night"] .glass-card,
[data-anhad-home][data-theme-mode="auto"][data-time-of-day="night"] .card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   § 22. DYNAMIC DAY MODE - BACKGROUND DECORATIVE ORBS
   Visible only in Day time-of-day mode, positioned above Gurpurab Calendar card
   ═══════════════════════════════════════════════════════════════════════════════ */
.day-orbs-container {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 900px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Show only in dynamic day mode or when document has data-time-of-day="day" */
[data-time-of-day="day"] .day-orbs-container,
[data-theme="light"] .day-orbs-container {
  display: block;
}

/* Hide orbs in dark mode unless it's auto theme and current day mode is active */
.dark-mode .day-orbs-container,
[data-theme="dark"] .day-orbs-container {
  display: none !important;
}
[data-theme-mode="auto"][data-time-of-day="day"] .day-orbs-container {
  display: block !important;
}

.day-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12; /* extremely soft and elegant */
  will-change: auto; /* no animation to save GPU */
}

/* Sky Blue Orb */
.day-orb-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #BAE6FD, transparent 70%);
  top: -50px;
  left: -50px;
}

/* Soft Green Orb */
.day-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #D1FAE5, transparent 70%);
  top: 150px;
  right: -50px;
}

/* Soft Red Orb */
.day-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #FEE2E2, transparent 70%);
  top: 420px;
  left: -30px;
}

/* Soft Yellow Orb */
.day-orb-4 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #FEF3C7, transparent 70%);
  top: 580px;
  right: -20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   YOUR PRACTICE CARDS — no outline ring, in any theme state

   Three separate rules were fighting to put a border on these three cards:
     :383/:395/:407   border: 3px solid rgba(255,255,255,.8)      (0,1,0)
     :1377-1381       border: 1.5px solid var(--sky-card-border)  (0,2,0)
     :1749/:1760/:1771 border: 1px solid rgba(<accent>,.22)       (0,3,0)  <- won by day

   Two problems with that. First, the accent ring is simply not the intended
   look — the cards are meant to read as soft claymorphism pillows, and the
   outline flattens them into outlined chips.

   Second, and worse, it was not even STABLE. --sky-card-border is one of the
   eight --sky-card-* custom properties anhad-sky-bg.js sets INLINE on <html>,
   and smooth-navigation.js clears them via clearTimeAdaptiveCardColors() when
   you leave Home. With that variable gone, `border: 1.5px solid
   var(--sky-card-border)` fails substitution and border-color falls back to
   its initial value, currentColor — i.e. a hard ring in the text colour. So
   which ring you saw depended on whether data-time-of-day and the sky
   variables happened to be present, which is exactly why Home looked
   different before and after a navigation.

   Killing the border outright fixes the look AND removes the state
   dependency, so all four time-of-day slots and both themes now render these
   cards identically. The claymorphism box-shadows are deliberately left
   alone — they are what gives the cards their depth.

   Specificity is html + two attributes + class = (0,3,1), one higher than the
   day rule it has to beat, and it is last in the file.
   ═══════════════════════════════════════════════════════════════════════════ */
html .practice-card--nitnem,
html .practice-card--sehaj,
html .practice-card--hukam,
html[data-theme-mode] .practice-card--nitnem,
html[data-theme-mode] .practice-card--sehaj,
html[data-theme-mode] .practice-card--hukam,
html[data-theme-mode][data-time-of-day] .practice-card--nitnem,
html[data-theme-mode][data-time-of-day] .practice-card--sehaj,
html[data-theme-mode][data-time-of-day] .practice-card--hukam,
html[data-theme] .practice-card--nitnem,
html[data-theme] .practice-card--sehaj,
html[data-theme] .practice-card--hukam,
html.dark-mode .practice-card--nitnem,
html.dark-mode .practice-card--sehaj,
html.dark-mode .practice-card--hukam {
  border: none !important;
  /* Flat, neutral elevation — no glow.

     The winning rule (the day-auto block above) stacked a COLOURED outer
     bloom on top of a near-opaque white outer halo:

       6px 10px 24px rgba(<accent>, .12)      <- coloured bloom
       -4px -4px 14px rgba(255,255,255,.95)   <- white halo

     Together those two read as a lit edge around each card, which is the
     'glow' that kept coming back however many times the border was removed.
     Neutral grey, tight radius, no accent, no white halo: the cards keep the
     gradient fills that give them their identity and simply sit on the page
     instead of emitting light. */
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 4px 12px rgba(16, 24, 40, 0.06) !important;
}

html .practice-card--nitnem,
html .practice-card--sehaj,
html .practice-card--hukam,
html[data-theme-mode] .practice-card--nitnem,
html[data-theme-mode] .practice-card--sehaj,
html[data-theme-mode] .practice-card--hukam,
html[data-theme-mode][data-time-of-day] .practice-card--nitnem,
html[data-theme-mode][data-time-of-day] .practice-card--sehaj,
html[data-theme-mode][data-time-of-day] .practice-card--hukam {
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 4px 12px rgba(16, 24, 40, 0.06) !important;
}

html[data-theme="dark"] .practice-card--nitnem,
html[data-theme="dark"] .practice-card--sehaj,
html[data-theme="dark"] .practice-card--hukam,
html.dark-mode .practice-card--nitnem,
html.dark-mode .practice-card--sehaj,
html.dark-mode .practice-card--hukam {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
