:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #f59e0b;
  --success: #10b981;

  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --border: #e2e8f0;

  --spotify: #1db954;
  --deezer: #ff0092;
  --tidal: #000000;
  --qobuz: #0e7ee6;
  --apple: #fa243c;
  --amazon: #ff9900;
  --youtube: #ff0000;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #13131a;
  --bg-card: #1a1a24;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border: #2a2a3a;
  --tidal: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

/* Animated Background */
.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient-1,
.bg-gradient-2,
.bg-gradient-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.bg-gradient-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent);
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.bg-gradient-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3), transparent);
  top: 50%;
  right: -200px;
  animation-delay: 7s;
}

.bg-gradient-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent);
  bottom: -300px;
  left: 50%;
  animation-delay: 14s;
}

.bg-mesh {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(99, 102, 241, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Floating Navigation */
.floating-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .floating-nav {
  background: rgba(26, 26, 36, 0.8);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  color: var(--text-primary);
}

.nav-btn:hover {
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-btn:active {
  transform: scale(0.95);
}

.nav-btn svg,
.nav-btn i {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

/* Dark mode specific styling for nav buttons */
[data-theme="dark"] .nav-btn {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .nav-btn svg,
[data-theme="dark"] .nav-btn i {
  color: var(--text-primary);
}

.theme-icon {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: var(--transition);
}

.theme-icon.theme-light {
  color: #f59e0b !important;
}

.theme-icon.theme-dark {
  color: #6366f1 !important;
}

[data-theme="light"] .theme-light {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="light"] .theme-dark {
  opacity: 1;
  transform: rotate(0);
}

[data-theme="dark"] .theme-light {
  opacity: 1;
  transform: rotate(0);
}

[data-theme="dark"] .theme-dark {
  opacity: 0;
  transform: rotate(90deg);
}

/* Navigation Dropdown Menu */
.nav-dropdown {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  overflow: hidden;
}

.nav-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 8px;
  margin: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 400;
}

.nav-dropdown a:hover {
  background-color: var(--bg-secondary);
  color: var(--primary);
}

.nav-dropdown a:first-child {
  margin-top: 0.5rem;
}

.nav-dropdown a:last-child {
  margin-bottom: 0.5rem;
}

.nav-dropdown a i,
.nav-dropdown a svg {
  width: 18px;
  height: 18px;
}

.nav-dropdown .nav-link-home {
  background: linear-gradient(to right, #8b5cf6, #6366f1);
  color: white !important;
  font-weight: 600;
}

.nav-dropdown .nav-link-home:hover {
  background: linear-gradient(to right, #7c3aed, #5b21b6);
  color: white !important;
}

.nav-dropdown .primary-link {
  background: linear-gradient(to right, #8b5cf6, #6366f1);
  color: white !important;
  font-weight: 600;
}

.nav-dropdown .primary-link:hover {
  background: linear-gradient(to right, #7c3aed, #5b21b6);
  color: white !important;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0.75rem;
}

/* Mobile adjustments for dropdown */
@media (max-width: 640px) {
  .nav-dropdown {
    top: 4rem;
    right: 0.75rem;
    min-width: 200px;
  }
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1rem 2rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.98);
}

.btn i {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5), var(--shadow-lg);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-glass {
  background: rgba(255, 255, 255, 0.05);
}

.btn-large {
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
}

/* ===============================
   PREMIUM (GOLD) BUTTON
   =============================== */
.btn-premium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #d97706 100%);
  color: #1a1405;
  box-shadow: 0 8px 24px -6px rgba(245, 158, 11, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(217, 119, 6, 0.5);
}

.btn-premium:hover {
  box-shadow: 0 12px 32px -6px rgba(245, 158, 11, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  transform: translateY(-3px);
}

.btn-premium:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 14px -4px rgba(245, 158, 11, 0.45);
}

.btn-premium-shine {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(8px);
  transform: skewX(-30deg);
  animation: premiumShine 3.8s linear infinite;
  pointer-events: none;
}

@keyframes premiumShine {
  0% {
    transform: translateX(0) skewX(-30deg);
    opacity: 0;
  }
  35% {
    opacity: 0;
  }
  45% {
    opacity: 0.85;
  }
  60% {
    transform: translateX(320%) skewX(-30deg);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.premium-pulse-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #fff 0%, #fde68a 55%, #f59e0b 90%);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  animation: pulseGold 2.8s ease-in-out infinite;
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

[data-theme="dark"] .btn-premium {
  color: #fff9e6;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===============================
   SEARCH BUTTON (CREATIVE RADAR)
   =============================== */
.btn-search {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 6px 18px -6px rgba(14, 165, 233, 0.45);
  overflow: hidden;
}

.btn-search:hover {
  box-shadow: 0 10px 28px -8px rgba(14, 165, 233, 0.55);
  transform: translateY(-3px);
}

.btn-search:active {
  transform: translateY(0) scale(0.97);
}

.btn-search-radar {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0) 60%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0) 40%
    );
  animation: radarSweep 5s linear infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.55;
}

@keyframes radarSweep {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: rotate(180deg) scale(1.15);
    opacity: 0.7;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.4;
  }
}

[data-theme="dark"] .btn-search {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.stat-item:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  color: white;
}

.stat-icon i {
  width: 24px;
  height: 24px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.title-accent {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Platforms Grid */
.platforms-section {
  margin: 4rem 0;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.platform-card {
  position: relative;
  height: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.platform-card:active {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.platform-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  transition: var(--transition);
}

.platform-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: white;
  z-index: 1;
}

.platform-content i {
  font-size: 2rem;
}

.platform-content span {
  font-size: 0.875rem;
  font-weight: 700;
}

.platform-card.spotify .platform-bg {
  background: linear-gradient(135deg, #1db954, #1ed760);
}

.platform-card.deezer .platform-bg {
  background: linear-gradient(135deg, #ff0092, #ff3da1);
}

.platform-card.tidal .platform-bg {
  background: linear-gradient(135deg, #000000, #333333);
}

[data-theme="dark"] .platform-card.tidal .platform-bg {
  background: linear-gradient(135deg, #ffffff, #cccccc);
}

[data-theme="dark"] .platform-card.tidal .platform-content {
  color: #000;
}

.platform-card.qobuz .platform-bg {
  background: linear-gradient(135deg, #0e7ee6, #1a8cff);
}

.platform-card.apple .platform-bg {
  background: linear-gradient(135deg, #fa243c, #ff3d52);
}

.platform-card.amazon .platform-bg {
  background: linear-gradient(135deg, #ff9900, #ffad33);
}

.platform-card.youtube .platform-bg {
  background: linear-gradient(135deg, #ff0000, #ff3333);
}

/* Features Carousel */
.features-section {
  margin: 4rem 0;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  margin-bottom: 1.5rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-slide {
  min-width: 100%;
  padding: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  color: white;
}

.feature-icon i {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.indicator-dot.active {
  width: 24px;
  border-radius: var(--radius-sm);
  background: var(--primary);
}

/* Carousel Navigation */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.carousel-nav-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.carousel-nav-btn:active {
  transform: scale(0.95);
}

.carousel-nav-btn i {
  width: 24px;
  height: 24px;
}

/* CTA Section */
.cta-section {
  margin: 4rem 0 3rem;
}

.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 3rem 1.5rem;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15),
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  color: white;
}

.cta-icon i {
  width: 40px;
  height: 40px;
}

.cta-card h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-top {
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
}

.footer-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-links a:active {
  color: var(--primary);
}

.footer-links span {
  color: var(--border);
}

.footer-bottom {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.hidden {
  display: none;
}

/* ======================================
   MOBILE LAYOUT: 1ST ROW (START), 2ND ROW (PREMIUM + SEARCH)
   ====================================== */
  
@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    width: 100%;
  }

  .hero-buttons .hero-action {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    min-width: 0;
    flex: 1 1 auto;
  }

  /* First button spans full width */
  .hero-buttons .hero-action:first-child {
    flex: 1 1 100%;
  }

  /* Second row: two buttons side-by-side */
  .hero-buttons .hero-action:nth-child(2),
  .hero-buttons .hero-action:nth-child(3) {
    flex: 1 1 calc(50% - 0.3rem);
  }

  /* Tidy up premium visuals for compact space */
  .premium-pulse-dot {
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
  }

  .btn-premium-shine {
    display: none;
  }

  .platforms-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
  }

  .platform-card {
    height: 70px !important;
  }

  .platform-content i {
    font-size: 1.25rem !important;
  }

  .platform-content span {
    font-size: 0.625rem !important;
  }

}

/* Small tablets - keep two-row layout but slightly larger */
@media (min-width: 641px) and (max-width: 767px) {
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  .hero-buttons .hero-action:first-child {
    flex: 1 1 100%;
  }
  .hero-buttons .hero-action:nth-child(2),
  .hero-buttons .hero-action:nth-child(3) {
    flex: 1 1 calc(50% - 0.375rem);
  }
}

/* Default larger screens - enforce two-row layout */
@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap; /* allow second row */
    gap: 1rem;
    justify-content: center;
    width: 100%;
  }
  /* First button spans entire first row */
  .hero-buttons .hero-action:first-child {
    flex: 1 1 100%;
  }
  /* Second row: Go Premium + Search side-by-side */
  .hero-buttons .hero-action:nth-child(2),
  .hero-buttons .hero-action:nth-child(3) {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

/* Responsive grids */
@media (min-width: 640px) {
  .quick-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .platforms-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .platforms-grid {
    grid-template-columns: repeat(7, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   👤 USER PROFILE CARD (TELEGRAM ONLY)
   ======================================== */
.user-profile-card-modern {
  display: none;
  position: relative;
  padding: 1rem;
  margin: 0.5rem 0.25rem 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08),
    rgba(236, 72, 153, 0.08)
  );
  border-radius: 16px;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInDown 0.4s ease-out;
  cursor: pointer;
  overflow: hidden;
  align-items: center;
  gap: 0.875rem;
}
[data-theme="dark"] .user-profile-card-modern {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12),
    rgba(236, 72, 153, 0.12)
  );
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-profile-card-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.5),
    rgba(236, 72, 153, 0.5)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-profile-card-modern:hover::before {
  opacity: 1;
}

.user-profile-card-modern:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.profile-modern-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.profile-modern-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.3);
  display: none;
}

.profile-modern-avatar img.loaded {
  display: block;
}

.profile-modern-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
}

.profile-modern-avatar img.loaded + .profile-modern-avatar-placeholder {
  display: none;
}

.profile-modern-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-modern-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.profile-modern-details {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow: hidden;
}

.profile-detail-username {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.profile-detail-separator {
  flex-shrink: 0;
  opacity: 0.5;
}

.profile-detail-id {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--primary);
}

.profile-modern-arrow {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: all 0.3s ease;
}

.profile-modern-arrow i {
  width: 18px;
  height: 18px;
}

.user-profile-card-modern:hover .profile-modern-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.profile-divider {
  display: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.2),
    rgba(236, 72, 153, 0.2),
    transparent
  );
  margin: 0.5rem 0.75rem;
}

.nav-dropdown.has-profile {
  padding-top: 0;
}

.nav-dropdown.has-profile a:first-child:not(.user-profile-card-modern) {
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .user-profile-card-modern {
    padding: 0.875rem;
    gap: 0.75rem;
  }

  .profile-modern-avatar {
    width: 48px;
    height: 48px;
  }

  .profile-modern-name {
    font-size: 0.9375rem;
  }

  .profile-modern-details {
    font-size: 0.75rem;
  }

  .profile-detail-username {
    max-width: 100px;
  }
}

/* ===============================
   TELEGRAM FLOATING MENU BUTTON
   =============================== */

/* Floating Menu Button (Bottom Left) */
.telegram-menu-button {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  cursor: pointer;
  display: none; /* Hidden by default, shown only in Telegram */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  font-size: 1.5rem;
}

.telegram-menu-button.show {
  display: flex;
}

.telegram-menu-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.telegram-menu-button:active {
  transform: scale(0.95);
}

.telegram-menu-button.open {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.telegram-menu-button i {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.telegram-menu-button.open i {
  transform: rotate(90deg);
}

/* Menu Dropdown - Compact & Mobile Friendly */
.telegram-menu-dropdown {
  position: fixed;
  bottom: 5.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  width: 280px;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

[data-theme="dark"] .telegram-menu-dropdown {
  background: rgba(26, 26, 36, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.telegram-menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Menu Items Container - Scrollable */
.telegram-menu-items {
  padding: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar Styling */
.telegram-menu-items::-webkit-scrollbar {
  width: 4px;
}

.telegram-menu-items::-webkit-scrollbar-track {
  background: transparent;
}

.telegram-menu-items::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.telegram-menu-items::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

[data-theme="dark"] .telegram-menu-items::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .telegram-menu-items::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Individual Menu Item - Exact Photo Style */
.telegram-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 12px;
  margin-bottom: 0.25rem;
  position: relative;
  background: transparent;
  cursor: pointer; /* Add cursor pointer */
  user-select: none; /* Prevent text selection */
}


.telegram-menu-item:last-child {
  margin-bottom: 0;
}


.telegram-menu-item:hover {
  background: rgba(139, 92, 246, 0.1);
}


.telegram-menu-item:active {
  transform: scale(0.98);
  background: rgba(139, 92, 246, 0.15);
}

/* Emoji Icon - Left Side */
.telegram-menu-item-icon {
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Content - Center */
.telegram-menu-item-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.telegram-menu-item-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Command Text - Right Side */
.telegram-menu-item-command {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile Responsive - Even More Compact */
@media (max-width: 640px) {
  .telegram-menu-button {
    width: 52px;
    height: 52px;
    bottom: 1.25rem;
    left: 1.25rem;
  }

  .telegram-menu-dropdown {
    bottom: 5rem;
    left: 1.25rem;
    width: 260px;
  }

  .telegram-menu-items {
    max-height: 350px;
  }

  .telegram-menu-item {
    padding: 0.75rem 0.875rem;
  }

  .telegram-menu-item-icon {
    font-size: 1.375rem;
    width: 28px;
    height: 28px;
  }

  .telegram-menu-item-title {
    font-size: 0.875rem;
  }

  .telegram-menu-item-command {
    font-size: 0.75rem;
  }
}

/* Extra Small Screens */
@media (max-width: 380px) {
  .telegram-menu-dropdown {
    width: 240px;
  }

  .telegram-menu-item-title {
    font-size: 0.8125rem;
  }
}

/* Safe area for iOS devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .telegram-menu-button {
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .telegram-menu-dropdown {
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  @media (max-width: 640px) {
    .telegram-menu-button {
      bottom: calc(1.25rem + env(safe-area-inset-bottom));
    }

    .telegram-menu-dropdown {
      bottom: calc(5rem + env(safe-area-inset-bottom));
    }
  }
}

/* Dark mode text adjustments */
[data-theme="dark"] .telegram-menu-item-title {
  color: var(--text-primary);
}

[data-theme="dark"] .telegram-menu-item-command {
  color: var(--text-tertiary);
}

[data-theme="dark"] .telegram-menu-item:hover {
  background: rgba(139, 92, 246, 0.15);
}

[data-theme="dark"] .telegram-menu-item:active {
  background: rgba(139, 92, 246, 0.2);
}



