/* ==========================================================================
   Premium UI — glassmorphism cards, FAB pulse, enhanced reveals
   ========================================================================== */

.card-glass,
.service-card.card-glass,
.service-card-pro.card-glass,
.product-card-premium.card-glass {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 30, 50, 0.72) 0%, rgba(8, 20, 38, 0.85) 100%);
  border: 1px solid rgba(0, 212, 232, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

[data-theme="light"] .card-glass,
[data-theme="light"] .service-card.card-glass,
[data-theme="light"] .service-card-pro.card-glass,
[data-theme="light"] .product-card-premium.card-glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 248, 255, 0.92) 100%);
  border-color: rgba(0, 150, 180, 0.2);
}

.card-glass:hover,
.service-card.card-glass:hover,
.service-card-pro.card-glass:hover,
.product-card-premium.card-glass:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.3), 0 20px 48px rgba(0, 150, 180, 0.2);
}

/* Glowing corner badges */
.card-glow-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(14, 116, 144, 0.95));
  border: 1px solid rgba(103, 232, 249, 0.5);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
}

.card-glow-badge--warranty {
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.95), rgba(21, 101, 192, 0.95));
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.card-glow-badge--popular {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.95), rgba(249, 115, 22, 0.95));
  border-color: rgba(253, 186, 116, 0.5);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.4);
}

.card-glow-badge--stock {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.95), rgba(16, 185, 129, 0.95));
  border-color: rgba(110, 231, 183, 0.5);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.card-glow-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: pulse-dot 2s ease infinite;
}

/* Card action links & buttons */
.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0f4c81 0%, #1565c0 100%);
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card-action-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
  color: #fff;
}

.card-action-link::after {
  content: '→';
  transition: transform 0.25s ease;
}

.card-action-link:hover::after {
  transform: translateX(3px);
}

[data-theme="light"] .card-action-link,
html:not(.dark) .card-action-link {
  color: #fff;
}

[data-reveal].revealed {
  animation: revealFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

[data-reveal="fade-left"].revealed {
  animation-name: revealFadeLeft;
}

[data-reveal="fade-right"].revealed {
  animation-name: revealFadeRight;
}

[data-reveal-delay="1"].revealed { animation-delay: 0.1s; }
[data-reveal-delay="2"].revealed { animation-delay: 0.2s; }
[data-reveal-delay="3"].revealed { animation-delay: 0.3s; }
[data-reveal-delay="4"].revealed { animation-delay: 0.4s; }

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

[data-reveal="fade-left"].revealed { animation-name: revealFadeLeft; }
[data-reveal="fade-right"].revealed { animation-name: revealFadeRight; }

@keyframes revealFadeLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes revealFadeRight {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: translateX(0); }
}

/* FAB rail styles moved to fab-rail.css — keep legacy class hooks minimal */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.25); }
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.2rem;
    padding: 0.45rem 0.5rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: 0 -4px 24px rgba(15, 76, 129, 0.08);
  }

  .mobile-bottom-nav__label {
    font-size: 0.5625rem;
    color: var(--text-muted);
  }

  .mobile-bottom-nav__item { color: var(--text-muted); position: relative; }

  .mobile-bottom-nav__item.is-active {
    color: var(--primary);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }

  .mobile-bottom-nav__item.is-active .mobile-bottom-nav__label { color: var(--primary-light); }

  .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon {
    color: var(--accent);
    filter: drop-shadow(0 0 4px var(--accent-glow));
  }

  .mobile-bottom-nav__item--menu {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    width: 100%;
  }

  .mobile-bottom-nav__item--menu .mobile-bottom-nav__icon { color: var(--text); }

  .mobile-bottom-nav__item--menu.is-active,
  .mobile-bottom-nav__item--menu.is-active .mobile-bottom-nav__label {
    color: var(--primary-light);
  }

  .mobile-bottom-nav__item--menu.is-active {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }

  .mobile-bottom-nav__item--repair .mobile-bottom-nav__icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: 12px;
    width: 34px;
    height: 34px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  }

  .mobile-bottom-nav__item--repair .mobile-bottom-nav__label {
    color: #0891b2;
    font-weight: 700;
  }

  .mobile-bottom-nav__badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse-dot 2s ease infinite;
  }
}

.hero-enterprise__visual .hero-showcase { display: none; }
