/* ========================================================
   TunePoa Modern Theme, Calling Preloader & Custom Styles
   ======================================================== */

/* 1. UNIFIED DARK THEME COLOR (Single consistent #050c18) */
html.dark,
body.dark,
.dark,
html.dark body,
html.dark main,
html.dark section,
html.dark footer,
html.dark .dark\:bg-\[\#050c18\],
html.dark .min-h-screen {
  background-color: #050c18 !important;
}

html.dark section > div.absolute.inset-0 {
  background-color: #050c18 !important;
}

/* Ensure no competing background gradients interfere with dark theme */
html.dark .dark\:bg-gradient-to-b {
  background-image: none !important;
}

/* PERMANENTLY REMOVE AND HIDE TAWK.TO */
#tawk-bubble-container,
#tawk-chat-widget,
.tawk-min-container,
.widget-visible,
iframe[src*="tawk.to"],
iframe[title*="chat" i],
[id*="tawk"],
[class*="tawk"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -999999 !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* 2. CALL / RINGING PRELOADER */
#tunepoa-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: #050c18;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease;
  user-select: none;
  pointer-events: all;
}

#tunepoa-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.calling-animation-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ringing Ripple Waves */
.calling-ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(237, 90, 82, 0.5);
  animation: calling-wave 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.calling-ripple:nth-child(2) {
  border-color: rgba(16, 166, 174, 0.45);
  animation-delay: 0.65s;
}

.calling-ripple:nth-child(3) {
  border-color: rgba(237, 90, 82, 0.3);
  animation-delay: 1.3s;
}

@keyframes calling-wave {
  0% {
    transform: scale(0.65);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Central Calling Icon Core */
.calling-icon-core {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ed5a52 0%, #10a6ae 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(237, 90, 82, 0.45), 0 0 20px rgba(16, 166, 174, 0.35);
  animation: phone-vibrate 1.8s ease-in-out infinite;
  z-index: 2;
}

.calling-icon-core svg {
  width: 36px;
  height: 36px;
  color: #ffffff;
  fill: currentColor;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

@keyframes phone-vibrate {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  10%, 30%, 50%, 70% {
    transform: rotate(-14deg) scale(1.08);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(14deg) scale(1.08);
  }
  85% {
    transform: rotate(0deg) scale(1.02);
  }
}

.calling-label {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.calling-brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ed5a52 20%, #10a6ae 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.calling-status {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 5px;
}

.calling-dots span {
  animation: blink-dot 1.4s infinite;
  opacity: 0;
}
.calling-dots span:nth-child(1) { animation-delay: 0.2s; }
.calling-dots span:nth-child(2) { animation-delay: 0.4s; }
.calling-dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes blink-dot {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* 3. FLOATING WHATSAPP CHAT BUTTON */
#tunepoa-whatsapp-container {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 2147483647 !important;
  pointer-events: none;
}

.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto !important;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
}

.whatsapp-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 25px -4px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.whatsapp-float:hover .whatsapp-btn {
  box-shadow: 0 14px 32px -4px rgba(37, 211, 102, 0.65), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* WhatsApp ripple ping */
.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.7);
  animation: wa-pulse 2.4s infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  animation: wa-slide-in 0.5s ease;
}

html.dark .whatsapp-badge {
  background: #0d1a2d;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-badge span.dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 6px #22c55e;
}

@media (max-width: 640px) {
  .whatsapp-badge {
    display: none;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-btn {
    width: 52px;
    height: 52px;
  }
  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* WhatsApp Interactive Live Chat Box */
.whatsapp-chat-box {
  position: fixed;
  bottom: 96px;
  right: 26px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #0b1524;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(37, 211, 102, 0.15);
  z-index: 2147483647 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-chat-box.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.whatsapp-box-header {
  background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.whatsapp-box-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-box-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-box-avatar img {
  width: 100%;
  height: 100%;
  object-contain: contain;
}

.whatsapp-avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #075e54;
}

.whatsapp-box-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.whatsapp-box-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.whatsapp-box-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.whatsapp-box-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.whatsapp-box-body {
  padding: 18px;
  background-color: #050c18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.whatsapp-chat-bubble {
  background: #112035;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px 14px 14px 2px;
  padding: 12px 14px;
  color: #f1f5f9;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.whatsapp-chat-bubble .sender {
  font-size: 11px;
  font-weight: 700;
  color: #2dd4bf;
  margin-bottom: 4px;
}

.whatsapp-chat-bubble .time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
  margin-top: 6px;
}

.whatsapp-quick-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.whatsapp-chip {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #4ade80;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-chip:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.45);
  transform: translateX(3px);
  color: #ffffff;
}

.whatsapp-box-footer {
  padding: 12px 14px;
  background: #0b1524;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-input-field {
  flex: 1;
  background: #112035;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.whatsapp-input-field:focus {
  border-color: #25d366;
}

.whatsapp-input-field::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.whatsapp-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25d366;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-send-btn:hover {
  background: #20ba59;
  transform: scale(1.05);
}

.whatsapp-send-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transform: translateX(1px);
}

@media (max-width: 640px) {
  .whatsapp-chat-box {
    bottom: 84px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* Clean Photos - ensure no round borders or box backgrounds */
img[src*="hero-phone"],
img[src*="man-phone"],
img[src*="more-than-music"],
img[src*="woman-phone"] {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  object-fit: contain !important;
}

div:has(> img[src*="hero-phone"]),
div:has(> img[src*="man-phone"]),
div:has(> img[src*="more-than-music"]),
div:has(> img[src*="woman-phone"]),
div:has(> div > img[src*="hero-phone"]),
div:has(> div > img[src*="man-phone"]),
div:has(> div > img[src*="more-than-music"]),
div:has(> div > img[src*="woman-phone"]) {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* 4. MODERN & PRO TUNE PLAYERS (Samples Page) */
.modern-tune-card {
  position: relative;
  background: rgba(7, 16, 29, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.25rem 1.35rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
}

.modern-tune-card:hover {
  background: rgba(10, 24, 44, 0.95);
  border-color: rgba(16, 166, 174, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(16, 166, 174, 0.15);
}

.modern-tune-card.is-playing {
  background: #091524;
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.7), 0 0 35px -5px rgba(45, 212, 191, 0.2);
  transform: translateY(-2px);
}

/* Dynamic Animated Waveform Bars */
.waveform-bar {
  transform-origin: bottom !important;
}
.waveform-bar.playing {
  transform-origin: bottom !important;
  animation: wave-bounce 1.1s ease-in-out infinite alternate !important;
}
.waveform-bar.playing:nth-child(2n) { animation-delay: 0.12s !important; }
.waveform-bar.playing:nth-child(3n) { animation-delay: 0.26s !important; }
.waveform-bar.playing:nth-child(4n) { animation-delay: 0.38s !important; }
.waveform-bar.playing:nth-child(5n) { animation-delay: 0.52s !important; }
.waveform-bar.playing:nth-child(7n) { animation-delay: 0.68s !important; }

@keyframes wave-bounce {
  0% { transform: scaleY(0.28); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.42); }
}

/* Shimmer on volume slider */
@keyframes shimmer-volume {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-shimmer-volume {
  animation: shimmer-volume 2s infinite;
}

/* Ambient glow pulsation for active playing cards */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.2; transform: scale(0.99); }
  50% { opacity: 0.38; transform: scale(1.01); }
}

.animate-pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* Tag Pill */
.tune-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(16, 166, 174, 0.15);
  color: #10a6ae;
  border: 1px solid rgba(16, 166, 174, 0.3);
}

.modern-tune-card.is-playing .tune-tag {
  background: rgba(237, 90, 82, 0.15);
  color: #ed5a52;
  border-color: rgba(237, 90, 82, 0.3);
}

/* 5. MOBILE MENU & LAYOUT ENHANCEMENTS */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(5, 12, 24, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

/* Ensure clean image display without round container */
.clean-photo-display {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Top Navigation WhatsApp Button - High Visibility in Both Light & Dark Modes */
#nav-wa-btn {
  background-color: #25D366 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

#nav-wa-btn svg {
  fill: #ffffff !important;
}

#nav-wa-btn:hover {
  background-color: #20ba59 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55) !important;
  transform: translateY(-1px) scale(1.03) !important;
}

html:not(.dark) #nav-wa-btn {
  background-color: #22c55e !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35) !important;
}

html:not(.dark) #nav-wa-btn:hover {
  background-color: #16a34a !important;
  color: #ffffff !important;
}

/* ─── 6. SAMPLE TONE CARDS — LIGHT MODE FIX ─────────────────────────────── */
/*
 * The tone cards use hardcoded dark colours (bg-[#07111e], text-white, etc.)
 * that are invisible in light mode. Override every affected element here.
 */

/* Card background */
html:not(.dark) .samples-grid .relative.rounded-2xl,
html:not(.dark) section .relative.rounded-2xl[class*="bg-\[#07111e\]"],
html:not(.dark) section div[class*="bg-\[#07111e\]"] {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07) !important;
}

html:not(.dark) section div[class*="bg-\[#07111e\]"]:hover,
html:not(.dark) section div[class*="hover\:bg-\[#0a182c\]"]:hover {
  background-color: #f0fdfa !important;
  border-color: rgba(13, 148, 136, 0.35) !important;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12) !important;
}

/* Track title "text-white" → dark slate in light mode */
html:not(.dark) section div[class*="bg-\[#07111e\]"] h3[class*="text-white"],
html:not(.dark) section div[class*="bg-\[#07111e\]"] h3 {
  color: #0f172a !important;
}

html:not(.dark) section div[class*="bg-\[#07111e\]"] h3[class*="group-hover\:text-teal-300"] {
  color: #0f172a !important;
}

html:not(.dark) section div[class*="bg-\[#07111e\]"]:hover h3 {
  color: #0d9488 !important;
}

/* Duration badge "text-white/50 bg-white/[0.04] border-white/[0.07]" */
html:not(.dark) section div[class*="bg-\[#07111e\]"] span[class*="font-mono"] {
  color: #64748b !important;
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

/* Number badge (01, 02 …) */
html:not(.dark) section div[class*="bg-\[#07111e\]"] div[class*="text-teal-400"] {
  background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(6,182,212,0.08)) !important;
  border-color: rgba(13, 148, 136, 0.3) !important;
  color: #0d9488 !important;
}

/* ── Catch-all: any card that contains an <audio> or <video> element ──────── */
/* Targets the outer wrapper div of each tone card reliably */
html:not(.dark) div:has(> audio),
html:not(.dark) div:has(> video.hidden) {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.07) !important;
}

html:not(.dark) div:has(> audio):hover,
html:not(.dark) div:has(> video.hidden):hover {
  background-color: #f0fdfa !important;
  border-color: rgba(13,148,136,.35) !important;
  box-shadow: 0 8px 24px rgba(13,148,136,.12) !important;
}

/* All white text inside those cards → readable dark text */
html:not(.dark) div:has(> audio) h3,
html:not(.dark) div:has(> video.hidden) h3 {
  color: #0f172a !important;
}

html:not(.dark) div:has(> audio):hover h3,
html:not(.dark) div:has(> video.hidden):hover h3 {
  color: #0d9488 !important;
}

html:not(.dark) div:has(> audio) span[class*="font-mono"],
html:not(.dark) div:has(> video.hidden) span[class*="font-mono"] {
  color: #64748b !important;
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

/* Number badge */
html:not(.dark) div:has(> audio) > div > div > div:first-child,
html:not(.dark) div:has(> video.hidden) > div > div > div:first-child {
  background: linear-gradient(135deg, rgba(13,148,136,.12), rgba(6,182,212,.08)) !important;
  border-color: rgba(13,148,136,.3) !important;
  color: #0d9488 !important;
}



/* ═══════════════════════════════════════════════════════════════════════════
   TUNEPOA GLOBAL UI UPGRADE — Modern & Pro v2
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page Progress Bar ───────────────────────────────────────────────────── */
#tp-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #2dd4bf, #06b6d4, #10b981);
  z-index: 99999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(45,212,191,0.7);
}

/* ── Cursor Glow (desktop only) ──────────────────────────────────────────── */
#tp-cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.055) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
@media (max-width: 1024px) { #tp-cursor-glow { display: none; } }

/* ── Glassmorphism Navbar on Scroll ──────────────────────────────────────── */
nav.tp-scrolled {
  background: rgba(5,12,24,0.82) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.35) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}
html:not(.dark) nav.tp-scrolled {
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.07) !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* ── Hero Mesh Gradient Background ──────────────────────────────────────── */
.tp-hero-mesh {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.tp-hero-mesh::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 55%; height: 80%;
  background: radial-gradient(ellipse, rgba(45,212,191,0.10) 0%, transparent 65%);
  animation: mesh-drift-a 18s ease-in-out infinite alternate;
  border-radius: 50%;
}
.tp-hero-mesh::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -5%;
  width: 50%; height: 75%;
  background: radial-gradient(ellipse, rgba(6,182,212,0.08) 0%, transparent 65%);
  animation: mesh-drift-b 22s ease-in-out infinite alternate;
  border-radius: 50%;
}
@keyframes mesh-drift-a {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(5%,8%) scale(1.12); }
}
@keyframes mesh-drift-b {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-6%,-5%) scale(1.15); }
}
html:not(.dark) .tp-hero-mesh::before {
  background: radial-gradient(ellipse, rgba(13,148,136,0.07) 0%, transparent 65%);
}
html:not(.dark) .tp-hero-mesh::after {
  background: radial-gradient(ellipse, rgba(6,182,212,0.05) 0%, transparent 65%);
}

/* ── Scroll-Reveal ───────────────────────────────────────────────────────── */
.tp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.tp-reveal.tp-visible { opacity: 1; transform: translateY(0); }
.tp-reveal.tp-delay-1 { transition-delay: 0.08s; }
.tp-reveal.tp-delay-2 { transition-delay: 0.16s; }
.tp-reveal.tp-delay-3 { transition-delay: 0.24s; }
.tp-reveal.tp-delay-4 { transition-delay: 0.32s; }
.tp-reveal.tp-delay-5 { transition-delay: 0.40s; }

/* ── Section Badge Upgrade ───────────────────────────────────────────────── */
.section-badge {
  background: linear-gradient(135deg, rgba(45,212,191,0.10) 0%, rgba(6,182,212,0.07) 100%) !important;
  border: 1px solid rgba(45,212,191,0.22) !important;
  box-shadow: 0 0 20px rgba(45,212,191,0.08), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
html:not(.dark) .section-badge {
  background: linear-gradient(135deg, rgba(13,148,136,0.08) 0%, rgba(6,182,212,0.05) 100%) !important;
  border-color: rgba(13,148,136,0.2) !important;
  box-shadow: 0 0 16px rgba(13,148,136,0.06), inset 0 1px 0 rgba(255,255,255,0.8) !important;
}

/* ── Glass Cards Upgrade ─────────────────────────────────────────────────── */
.glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
.glass-card:hover {
  border-color: rgba(45,212,191,0.18) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(45,212,191,0.08), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  transform: translateY(-3px) !important;
}
html:not(.dark) .glass-card {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.07) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}
html:not(.dark) .glass-card:hover {
  border-color: rgba(13,148,136,0.2) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.09), 0 0 0 1px rgba(13,148,136,0.1) !important;
  transform: translateY(-3px) !important;
}
.glass-strong {
  position: relative; overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.glass-strong::after {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 80%;
  background: radial-gradient(ellipse, rgba(45,212,191,0.07) 0%, transparent 70%);
  pointer-events: none;
}
html:not(.dark) .glass-strong {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.08) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08) !important;
}

/* ── Animated Gradient Text ──────────────────────────────────────────────── */
.tp-gradient-text {
  background: linear-gradient(135deg, #2dd4bf 0%, #06b6d4 40%, #10b981 80%, #2dd4bf 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s linear infinite;
}
html:not(.dark) .tp-gradient-text {
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 40%, #059669 80%, #0d9488 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  animation: gradient-shift 5s linear infinite;
}
@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Scroll-to-Top Button ────────────────────────────────────────────────── */
#tp-scroll-top {
  position: fixed;
  bottom: 96px; left: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(13,24,48,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 9999;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
#tp-scroll-top.tp-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#tp-scroll-top:hover {
  background: rgba(45,212,191,0.15);
  border-color: rgba(45,212,191,0.35);
  color: #2dd4bf;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45,212,191,0.2);
}
html:not(.dark) #tp-scroll-top {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.08);
  color: #475569;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
html:not(.dark) #tp-scroll-top:hover {
  background: #f0fdfa;
  border-color: rgba(13,148,136,0.3);
  color: #0d9488;
}
@media (max-width: 640px) { #tp-scroll-top { left: 16px; bottom: 84px; } }

/* ── Footer Divider Glow ─────────────────────────────────────────────────── */
footer { position: relative; }
footer::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(45,212,191,0.18) 30%, rgba(6,182,212,0.22) 50%, rgba(45,212,191,0.18) 70%, transparent 100%);
}
html:not(.dark) footer::before {
  background: linear-gradient(90deg, transparent 0%, rgba(13,148,136,0.12) 30%, rgba(6,182,212,0.14) 50%, rgba(13,148,136,0.12) 70%, transparent 100%);
}

/* ── Input Focus Upgrade ─────────────────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(45,212,191,0.15), 0 0 0 1px rgba(45,212,191,0.4) !important;
  border-color: rgba(45,212,191,0.5) !important;
  outline: none !important;
}
html:not(.dark) input:focus, html:not(.dark) textarea:focus {
  box-shadow: 0 0 0 3px rgba(13,148,136,0.10), 0 0 0 1px rgba(13,148,136,0.35) !important;
  border-color: rgba(13,148,136,0.4) !important;
}

/* ── Active Nav Link ─────────────────────────────────────────────────────── */
nav a.tp-nav-active { color: #2dd4bf !important; }
html:not(.dark) nav a.tp-nav-active { color: #0d9488 !important; }

/* ── Light Mode Alternating Section BGs ──────────────────────────────────── */
html:not(.dark) body { background-color: #f8fafc; }
html:not(.dark) main section:nth-child(odd) > div.absolute.inset-0 { background-color: #f8fafc !important; }
html:not(.dark) main section:nth-child(even) > div.absolute.inset-0 { background-color: #ffffff !important; }

/* ── Improved Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(45,212,191,0.25); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(45,212,191,0.45); }
html:not(.dark) ::-webkit-scrollbar-thumb { background: rgba(13,148,136,0.2); }
html:not(.dark) ::-webkit-scrollbar-thumb:hover { background: rgba(13,148,136,0.4); }

/* ── Text Selection ──────────────────────────────────────────────────────── */
::selection { background: rgba(45,212,191,0.25); color: inherit; }
html:not(.dark) ::selection { background: rgba(13,148,136,0.2); }

/* ── Floating animation for hero decorations ─────────────────────────────── */
@keyframes tp-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.tp-float { animation: tp-float 6s ease-in-out infinite; }
.tp-float-slow { animation: tp-float 9s ease-in-out infinite; }
