/* ==========================================================================
   AWAKENING BELL - 19 ZEN THEMES (DARK & LIGHT PALETTES)
   ========================================================================== */

/* 0. Zen Immersive Focus (Thiền Tối Giản Vô Cực - Ambient Portal) */
:root, [data-theme="zen_immersive"] {
  --bg-primary: #05060f;
  --bg-secondary: #0a0d1e;
  --bg-card: rgba(11, 14, 32, 0.72);
  --bg-card-hover: rgba(17, 21, 48, 0.85);
  --border-color: rgba(56, 189, 248, 0.22);
  --border-highlight: rgba(168, 85, 247, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #38bdf8;
  --accent-hover: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --accent-secondary: #a855f7;
  --halo-1: rgba(56, 189, 248, 0.48);
  --halo-2: rgba(129, 140, 248, 0.3);
  --halo-3: rgba(168, 85, 247, 0.18);
  --card-bg-canvas: #05060f;
}

/* 1. Apple Dynamic Studio (macOS Sequoia / iOS Glass Widget) */
[data-theme="apple_studio"] {
  --bg-primary: #000000;
  --bg-secondary: #161618;
  --bg-card: rgba(28, 28, 30, 0.78);
  --bg-card-hover: rgba(44, 44, 46, 0.88);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(41, 151, 255, 0.5);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #636366;
  --accent-primary: #2997ff;
  --accent-hover: #0077ed;
  --accent-glow: rgba(41, 151, 255, 0.4);
  --accent-secondary: #af52de;
  --halo-1: rgba(41, 151, 255, 0.45);
  --halo-2: rgba(175, 82, 222, 0.25);
  --halo-3: rgba(41, 151, 255, 0.12);
  --card-bg-canvas: #000000;
}

/* 2. Living Nature Canvas (Khung Cảnh Thiên Nhiên Động - Emerald Lagoon) */
[data-theme="nature_canvas"] {
  --bg-primary: #061914;
  --bg-secondary: #0c2720;
  --bg-card: rgba(14, 43, 36, 0.78);
  --bg-card-hover: rgba(20, 60, 50, 0.88);
  --border-color: rgba(16, 185, 129, 0.22);
  --border-highlight: rgba(52, 211, 153, 0.45);
  --text-primary: #f0fdf4;
  --text-secondary: #86efac;
  --text-muted: #4e806f;
  --accent-primary: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.38);
  --accent-secondary: #06b6d4;
  --halo-1: rgba(16, 185, 129, 0.45);
  --halo-2: rgba(6, 182, 212, 0.25);
  --halo-3: rgba(16, 185, 129, 0.12);
  --card-bg-canvas: #061914;
}

/* 3. Retro Zen Flip-Clock & Woodbox (Gỗ Óc Chó Cổ Điển & Hổ Phách) */
[data-theme="retro_woodbox"] {
  --bg-primary: #18120c;
  --bg-secondary: #241a12;
  --bg-card: rgba(44, 32, 22, 0.82);
  --bg-card-hover: rgba(60, 44, 30, 0.9);
  --border-color: rgba(217, 119, 6, 0.25);
  --border-highlight: rgba(245, 158, 11, 0.45);
  --text-primary: #fef3c7;
  --text-secondary: #d97706;
  --text-muted: #92400e;
  --accent-primary: #f59e0b;
  --accent-hover: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.38);
  --accent-secondary: #b45309;
  --halo-1: rgba(245, 158, 11, 0.45);
  --halo-2: rgba(180, 83, 9, 0.25);
  --halo-3: rgba(245, 158, 11, 0.12);
  --card-bg-canvas: #18120c;
}

/* 4. New City (Modern navy, pearl slate, crisp cyan) */
[data-theme="new_city"] {
  --bg-primary: #0b1329;
  --bg-secondary: #111d38;
  --bg-card: rgba(19, 32, 60, 0.75);
  --bg-card-hover: rgba(27, 44, 82, 0.85);
  --border-color: rgba(99, 133, 192, 0.2);
  --border-highlight: rgba(147, 197, 253, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #38bdf8;
  --accent-hover: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --accent-secondary: #818cf8;
  --halo-1: rgba(56, 189, 248, 0.4);
  --halo-2: rgba(129, 140, 248, 0.25);
  --halo-3: rgba(56, 189, 248, 0.12);
  --card-bg-canvas: #0b1329;
}

/* 5. Zen Slate (Charcoal & Warm Antique Gold) */
[data-theme="zen_slate"] {
  --bg-primary: #121417;
  --bg-secondary: #1a1d23;
  --bg-card: rgba(28, 32, 39, 0.8);
  --bg-card-hover: rgba(38, 43, 53, 0.9);
  --border-color: rgba(212, 175, 55, 0.22);
  --border-highlight: rgba(243, 229, 171, 0.45);
  --text-primary: #fdfbf7;
  --text-secondary: #a8a29e;
  --text-muted: #78716c;
  --accent-primary: #d4af37;
  --accent-hover: #b89728;
  --accent-glow: rgba(212, 175, 55, 0.35);
  --accent-secondary: #e6ca65;
  --halo-1: rgba(212, 175, 55, 0.45);
  --halo-2: rgba(230, 202, 101, 0.25);
  --halo-3: rgba(212, 175, 55, 0.12);
  --card-bg-canvas: #121417;
}

/* 6. Sakura Night (Soft cherry blossom ash & quartz pink) */
[data-theme="sakura"] {
  --bg-primary: #1c151b;
  --bg-secondary: #271d26;
  --bg-card: rgba(45, 33, 44, 0.78);
  --bg-card-hover: rgba(58, 43, 57, 0.88);
  --border-color: rgba(244, 114, 182, 0.22);
  --border-highlight: rgba(251, 207, 232, 0.45);
  --text-primary: #fff1f2;
  --text-secondary: #fda4af;
  --text-muted: #9f7382;
  --accent-primary: #f472b6;
  --accent-hover: #ec4899;
  --accent-glow: rgba(244, 114, 182, 0.35);
  --accent-secondary: #fb7185;
  --halo-1: rgba(244, 114, 182, 0.4);
  --halo-2: rgba(251, 113, 133, 0.22);
  --halo-3: rgba(244, 114, 182, 0.1);
  --card-bg-canvas: #1c151b;
}

/* 7. Bamboo Forest (Deep moss forest & warm bamboo shoot) */
[data-theme="bamboo"] {
  --bg-primary: #0d1a12;
  --bg-secondary: #132419;
  --bg-card: rgba(22, 42, 29, 0.8);
  --bg-card-hover: rgba(30, 56, 39, 0.9);
  --border-color: rgba(74, 222, 128, 0.22);
  --border-highlight: rgba(187, 247, 208, 0.4);
  --text-primary: #f0fdf4;
  --text-secondary: #86efac;
  --text-muted: #52795d;
  --accent-primary: #22c55e;
  --accent-hover: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.35);
  --accent-secondary: #84cc16;
  --halo-1: rgba(34, 197, 94, 0.45);
  --halo-2: rgba(132, 204, 22, 0.25);
  --halo-3: rgba(34, 197, 94, 0.12);
  --card-bg-canvas: #0d1a12;
}

/* 8. Ocean Deep (Abyssal teal & glowing seafoam) */
[data-theme="ocean_deep"] {
  --bg-primary: #051923;
  --bg-secondary: #08293a;
  --bg-card: rgba(10, 48, 68, 0.78);
  --bg-card-hover: rgba(14, 64, 90, 0.88);
  --border-color: rgba(45, 212, 191, 0.22);
  --border-highlight: rgba(153, 246, 228, 0.4);
  --text-primary: #f0fdfa;
  --text-secondary: #5eead4;
  --text-muted: #4d8b88;
  --accent-primary: #14b8a6;
  --accent-hover: #0d9488;
  --accent-glow: rgba(20, 184, 166, 0.35);
  --accent-secondary: #06b6d4;
  --halo-1: rgba(20, 184, 166, 0.45);
  --halo-2: rgba(6, 182, 212, 0.25);
  --halo-3: rgba(20, 184, 166, 0.12);
  --card-bg-canvas: #051923;
}

/* 9. Autumn Sunset (Terracotta clay & warm amber) */
[data-theme="autumn_sunset"] {
  --bg-primary: #1e130d;
  --bg-secondary: #2c1a11;
  --bg-card: rgba(53, 31, 20, 0.8);
  --bg-card-hover: rgba(72, 42, 28, 0.9);
  --border-color: rgba(251, 146, 60, 0.24);
  --border-highlight: rgba(254, 215, 170, 0.45);
  --text-primary: #fff7ed;
  --text-secondary: #fdba74;
  --text-muted: #9c6c4c;
  --accent-primary: #f97316;
  --accent-hover: #ea580c;
  --accent-glow: rgba(249, 115, 22, 0.35);
  --accent-secondary: #f59e0b;
  --halo-1: rgba(249, 115, 22, 0.45);
  --halo-2: rgba(245, 158, 11, 0.25);
  --halo-3: rgba(249, 115, 22, 0.12);
  --card-bg-canvas: #1e130d;
}

/* 10. Nordic Mist (Subtle frosted grey & ice silver) */
[data-theme="nordic_mist"] {
  --bg-primary: #14181c;
  --bg-secondary: #1d2228;
  --bg-card: rgba(33, 39, 47, 0.8);
  --bg-card-hover: rgba(45, 53, 63, 0.9);
  --border-color: rgba(203, 213, 225, 0.22);
  --border-highlight: rgba(241, 245, 249, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #7e8c9f;
  --accent-primary: #94a3b8;
  --accent-hover: #64748b;
  --accent-glow: rgba(148, 163, 184, 0.3);
  --accent-secondary: #38bdf8;
  --halo-1: rgba(203, 213, 225, 0.38);
  --halo-2: rgba(148, 163, 184, 0.22);
  --halo-3: rgba(203, 213, 225, 0.1);
  --card-bg-canvas: #14181c;
}

/* 11. Kyoto Clay (Earthy wabi-sabi brown & raw sand) */
[data-theme="kyoto_clay"] {
  --bg-primary: #1b1612;
  --bg-secondary: #261f1a;
  --bg-card: rgba(46, 38, 32, 0.82);
  --bg-card-hover: rgba(62, 51, 43, 0.9);
  --border-color: rgba(217, 186, 155, 0.22);
  --border-highlight: rgba(243, 227, 209, 0.45);
  --text-primary: #faf5ee;
  --text-secondary: #d5c3b1;
  --text-muted: #8e7c6d;
  --accent-primary: #c29b74;
  --accent-hover: #aa8159;
  --accent-glow: rgba(194, 155, 116, 0.35);
  --accent-secondary: #dfb589;
  --halo-1: rgba(194, 155, 116, 0.45);
  --halo-2: rgba(223, 181, 137, 0.25);
  --halo-3: rgba(194, 155, 116, 0.12);
  --card-bg-canvas: #1b1612;
}

/* 12. Cosmic Aurora (Mystical ultraviolet & nebula blue) */
[data-theme="cosmic_aurora"] {
  --bg-primary: #110c22;
  --bg-secondary: #191233;
  --bg-card: rgba(33, 24, 64, 0.8);
  --bg-card-hover: rgba(45, 33, 87, 0.9);
  --border-color: rgba(192, 132, 252, 0.24);
  --border-highlight: rgba(233, 213, 255, 0.45);
  --text-primary: #faf5ff;
  --text-secondary: #d8b4fe;
  --text-muted: #8d70a8;
  --accent-primary: #a855f7;
  --accent-hover: #9333ea;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --accent-secondary: #6366f1;
  --halo-1: rgba(168, 85, 247, 0.45);
  --halo-2: rgba(99, 102, 241, 0.25);
  --halo-3: rgba(168, 85, 247, 0.12);
  --card-bg-canvas: #110c22;
}

/* ==========================================================================
   BEAUTIFUL ZEN LIGHT THEMES (LIGHT THEMES COLLECTION)
   ========================================================================== */

/* 13. Wabi-Sabi & Giấy Dó (Á Đông Thanh Tao - Light Organic Washi) */
[data-theme="wabi_sabi_paper"] {
  --bg-primary: #f7f4ed;
  --bg-secondary: #ede7dc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-color: rgba(168, 162, 158, 0.35);
  --border-highlight: rgba(161, 98, 7, 0.45);
  --text-primary: #292524;
  --text-secondary: #78716c;
  --text-muted: #a8a29e;
  --accent-primary: #a16207;
  --accent-hover: #854d0e;
  --accent-glow: rgba(161, 98, 7, 0.25);
  --accent-secondary: #4d7c0f;
  --halo-1: rgba(161, 98, 7, 0.35);
  --halo-2: rgba(77, 124, 15, 0.2);
  --halo-3: rgba(161, 98, 7, 0.08);
  --card-bg-canvas: #f7f4ed;
}

/* 14. Matcha Zen Morning (Sương Mai & Trà Xanh Matcha Tươi Sáng) */
[data-theme="matcha_morning"] {
  --bg-primary: #fbfbfa;
  --bg-secondary: #f0f4ef;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border-color: rgba(187, 247, 208, 0.7);
  --border-highlight: rgba(22, 163, 74, 0.4);
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --accent-primary: #16a34a;
  --accent-hover: #15803d;
  --accent-glow: rgba(22, 163, 74, 0.25);
  --accent-secondary: #65a30d;
  --halo-1: rgba(22, 163, 74, 0.35);
  --halo-2: rgba(101, 163, 13, 0.2);
  --halo-3: rgba(22, 163, 74, 0.08);
  --card-bg-canvas: #fbfbfa;
}

/* 15. Nordic Sunlight (Nắng Sớm Bắc Âu & Băng Tuyết Tinh Khôi) */
[data-theme="nordic_sunlight"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border-color: rgba(226, 232, 240, 0.9);
  --border-highlight: rgba(2, 132, 199, 0.4);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-primary: #0284c7;
  --accent-hover: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.25);
  --accent-secondary: #06b6d4;
  --halo-1: rgba(2, 132, 199, 0.35);
  --halo-2: rgba(6, 182, 212, 0.2);
  --halo-3: rgba(2, 132, 199, 0.08);
  --card-bg-canvas: #f8fafc;
}

/* 16. Peach Blossom & Dew (Cánh Đào Sương Mai & Thạch Anh) */
[data-theme="peach_blossom"] {
  --bg-primary: #fff8f8;
  --bg-secondary: #fef2f2;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border-color: rgba(254, 205, 211, 0.7);
  --border-highlight: rgba(225, 29, 72, 0.4);
  --text-primary: #27272a;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --accent-primary: #e11d48;
  --accent-hover: #be123c;
  --accent-glow: rgba(225, 29, 72, 0.25);
  --accent-secondary: #f43f5e;
  --halo-1: rgba(225, 29, 72, 0.35);
  --halo-2: rgba(244, 63, 94, 0.2);
  --halo-3: rgba(225, 29, 72, 0.08);
  --card-bg-canvas: #fff8f8;
}

/* 17. Golden Sand & Linen (Bãi Cát Nắng Vàng & Vải Đay Mộc) */
[data-theme="golden_sand"] {
  --bg-primary: #fefcf3;
  --bg-secondary: #fef3c7;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border-color: rgba(253, 230, 138, 0.75);
  --border-highlight: rgba(217, 119, 6, 0.45);
  --text-primary: #292524;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --accent-primary: #d97706;
  --accent-hover: #b45309;
  --accent-glow: rgba(217, 119, 6, 0.25);
  --accent-secondary: #f59e0b;
  --halo-1: rgba(217, 119, 6, 0.35);
  --halo-2: rgba(245, 158, 11, 0.2);
  --halo-3: rgba(217, 119, 6, 0.08);
  --card-bg-canvas: #fefcf3;
}

/* 18. Lavender Mist (Sương Mù Oải Hương & Ngọc Trai An Thần) */
[data-theme="lavender_mist"] {
  --bg-primary: #faf7ff;
  --bg-secondary: #f3e8ff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border-color: rgba(233, 213, 255, 0.75);
  --border-highlight: rgba(126, 34, 206, 0.4);
  --text-primary: #1e1b4b;
  --text-secondary: #475569;
  --text-muted: #6b7280;
  --accent-primary: #7e22ce;
  --accent-hover: #6b21a8;
  --accent-glow: rgba(126, 34, 206, 0.25);
  --accent-secondary: #6366f1;
  --halo-1: rgba(126, 34, 206, 0.35);
  --halo-2: rgba(99, 102, 241, 0.2);
  --halo-3: rgba(126, 34, 206, 0.08);
  --card-bg-canvas: #faf7ff;
}

/* ==========================================================================
   GLOBAL BASE & UTILITIES
   ========================================================================== */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Glassmorphism Card Utility */
.zen-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1rem;
  transition: all 0.25s ease-out;
}
.zen-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 8px 24px -6px var(--accent-glow);
}

.zen-input {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  transition: all 0.2s ease;
}
.zen-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.zen-btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px var(--accent-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
}
.zen-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.zen-btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.zen-btn-secondary {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 0.625rem;
  padding: 0.625rem 1rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}
.zen-btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-highlight);
  color: var(--accent-primary);
}

/* ==========================================================================
   STUNNING ZEN BELL RINGING VISUAL EFFECTS & RIPPLE OVERLAYS (ISOLATED)
   ========================================================================== */

#zen-bell-ripple-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 99999;
  contain: strict;
}

@keyframes bellHarmonicSwing {
  0% { transform: rotate(0deg) scale(1); }
  12% { transform: rotate(22deg) scale(1.18); }
  28% { transform: rotate(-18deg) scale(1.15); }
  44% { transform: rotate(12deg) scale(1.08); }
  60% { transform: rotate(-8deg) scale(1.04); }
  76% { transform: rotate(4deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}

.bell-swing-anim {
  display: inline-block;
  transform-origin: 50% 10%;
  animation: bellHarmonicSwing 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes screenRippleExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.05);
    opacity: 0.95;
    border-width: 4px;
  }
  40% {
    opacity: 0.55;
    border-width: 2.5px;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
    border-width: 1px;
  }
}

@keyframes ambientVignetteGlow {
  0% { opacity: 0; }
  20% { opacity: 0.65; }
  60% { opacity: 0.35; }
  100% { opacity: 0; }
}

.zen-ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 50px var(--accent-glow), inset 0 0 35px var(--accent-glow);
  pointer-events: none;
  animation: screenRippleExpand 2.4s cubic-bezier(0.12, 0.82, 0.24, 1) forwards;
}

.zen-ripple-ring.ring-2 {
  animation-delay: 0.22s;
  border-color: var(--accent-secondary);
}

.zen-ripple-ring.ring-3 {
  animation-delay: 0.44s;
  border-color: var(--border-highlight);
}

.zen-ripple-ring.ring-4 {
  animation-delay: 0.66s;
  border-color: var(--accent-primary);
  opacity: 0.75;
}

.zen-screen-glow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  animation: ambientVignetteGlow 2.4s ease-out forwards;
}

/* ==========================================================================
   BREATHWORK & AMBIENT ANIMATIONS
   ========================================================================== */

.halo-layer-1 {
  background: radial-gradient(circle, var(--halo-1) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(12px);
}
.halo-layer-2 {
  background: radial-gradient(circle, var(--halo-2) 0%, rgba(0, 0, 0, 0) 75%);
  filter: blur(24px);
}
.halo-layer-3 {
  background: radial-gradient(circle, var(--halo-3) 0%, rgba(0, 0, 0, 0) 80%);
  filter: blur(40px);
}

/* Gratitude Jar Seed Sparkle */
@keyframes seedSparkle {
  0%, 100% {
    transform: scale(0.9) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15) rotate(8deg);
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--accent-primary));
  }
}
.seed-sparkle {
  animation: seedSparkle 3s ease-in-out infinite;
}

/* Smooth Tab Fade Transition */
.tab-pane {
  animation: tabFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Range Slider Styling */
input[type="range"] {
  -webkit-appearance: none;
  background: var(--bg-secondary);
  height: 6px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   INTERACTIVE TINGHA LOGO HOVER EFFECT (GENTLE SWING & AURA WAVE)
   ========================================================================== */

@keyframes logoTinghaSwingAnim {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-10deg) scale(1.08) translateY(-2px); }
  40% { transform: rotate(8deg) scale(1.08) translateY(-2px); }
  60% { transform: rotate(-5deg) scale(1.04) translateY(-1px); }
  80% { transform: rotate(2deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1) translateY(0); }
}

.brand-interactive-tingha img {
  transform-origin: 50% 12%;
  animation: logoTinghaSwingAnim 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes logoTinghaHaloWave {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; border-width: 2px; }
  60% { opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; border-width: 1px; }
}

.brand-tingha-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  pointer-events: none;
  animation: logoTinghaHaloWave 0.85s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}


