@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --background: 220 20% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --primary: 279 48% 64%;
  --primary-foreground: 0 0% 100%;
  --primary-glow: 279 48% 74%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 9% 46%;
  --accent: 332 79% 58%;
  --accent-foreground: 0 0% 100%;
  --border: 220 13% 91%;
  --gradient-hero: linear-gradient(135deg, hsl(279 20% 98%) 0%, hsl(279 40% 96%) 100%);
  --gradient-primary: linear-gradient(135deg, hsl(279 48% 64%) 0%, hsl(279 48% 54%) 100%);
  --gradient-text: linear-gradient(90deg, hsl(279 48% 64%) 0%, hsl(332 79% 58%) 100%);
  --shadow-card: 0 4px 24px -4px hsl(279 48% 64% / 0.08);
  --shadow-glow: 0 0 40px hsl(279 48% 64% / 0.15);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.navbar-light {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: hsl(var(--background) / 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.navbar-light.header-scrolled {
  background-color: hsl(var(--background) / 0.9);
  box-shadow: var(--shadow-card);
}

.navbar-collapse {
  z-index: 1040;
}

/* Fix conflict between Tailwind .collapse and Bootstrap .collapse */
.navbar-collapse.collapse {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Navigation Links Style */
.navbar-expand-lg .navbar-nav .nav-link {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  border-radius: 0.5rem !important;
  transition: all 0.2s ease;
  color: hsl(var(--muted-foreground));
  margin-right: 0.25rem;
}

.navbar-expand-lg .navbar-nav .nav-link:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
}

.navbar-expand-lg .navbar-nav .nav-link.active,
.navbar-expand-lg .navbar-nav .show > .nav-link {
  background-color: hsl(var(--primary) / 0.1) !important;
  color: hsl(var(--primary)) !important;
}

/* Dropdown Menu Style */
.dropdown-menu {
  border: 1px solid hsl(var(--border)) !important;
  box-shadow: var(--shadow-card) !important;
  border-radius: 0.75rem !important;
  padding: 0.5rem !important;
}

.dropdown-item {
  font-size: 0.875rem !important;
  border-radius: 0.5rem !important;
  margin-bottom: 0.125rem !important;
  padding: 0.5rem 0.75rem !important;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: hsl(var(--muted)) !important;
  color: hsl(var(--foreground)) !important;
}

.dropdown-item.active, .dropdown-item:active {
  background-color: hsl(var(--primary) / 0.1) !important;
  color: hsl(var(--primary)) !important;
}

/* Buttons Style */
.btn-primary {
  background-color: hsl(var(--primary)) !important;
  border-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
  min-height: 2.25rem !important; /* h-9 */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9) !important;
  border-color: hsl(var(--primary) / 0.9) !important;
}

.btn-primary-soft {
  background-color: transparent !important;
  color: hsl(var(--muted-foreground)) !important;
  font-weight: 500 !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 2.25rem !important; /* h-9 */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.btn-primary-soft:hover {
  color: hsl(var(--foreground)) !important;
  background-color: hsl(var(--muted)) !important;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    position: static !important;
    box-shadow: none !important;
    border-top: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }
}

.bg-background {
  background-color: hsl(var(--background));
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.text-foreground {
  color: hsl(var(--foreground));
}

.bg-card {
  background-color: hsl(var(--card));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.border-border {
  border-color: hsl(var(--border));
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.bg-primary {
  background-color: hsl(var(--primary));
}

.text-primary {
  color: hsl(var(--primary));
}

.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.bg-foreground {
  background-color: hsl(var(--foreground));
}

.text-background {
  color: hsl(var(--background));
}

.text-accent {
  color: hsl(var(--accent));
}

.bg-hero {
  background: var(--gradient-hero);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

.animate-pulse-slow {
  animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@media (max-width: 992px) {
  .navbar-light {
    background-color: hsl(var(--card));
  }
  .navbar-light .navbar-brand img {
    height: 42px;
    width: auto;
  }
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 576px) {
  .bg-hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    line-height: 1.2;
  }
  .bg-hero p {
    font-size: 0.95rem;
  }
  .grid {
    gap: 1rem;
  }
  .group {
    padding: 1rem;
  }
  .group .w-14,
  .group .h-14 {
    width: 2.5rem;
    height: 2.5rem;
  }
  .group .w-7,
  .group .h-7 {
    width: 1.25rem;
    height: 1.25rem;
  }
  .cta-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .cta-row a {
    flex: 1 1 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

.pricing-card {
  position: relative;
  background: linear-gradient(180deg, hsl(var(--card)) 0%, hsl(var(--background)) 100%);
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -16px hsl(var(--primary) / 0.25);
  border-color: hsl(var(--primary) / 0.35);
}

.pricing-title {
  font-weight: 800;
}

.pricing-subtitle {
  color: hsl(var(--muted-foreground));
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  padding: 0.4rem 0;
}

.pricing-features li i {
  width: 28px;
  height: 28px;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.pricing-features li span {
  color: hsl(var(--muted-foreground));
}

.pricing-price {
  font-weight: 900;
  color: hsl(var(--primary));
}

.pricing-btn {
  display: inline-block;
  text-align: center;
  border: 1.5px solid hsl(var(--primary));
  color: hsl(var(--primary));
  background: transparent;
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.pricing-btn:hover {
  background-color: hsl(var(--primary) / 0.06);
}

.skeleton-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0.9;
  animation: skeleton-card-pulse 1.6s ease-in-out infinite;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  background: #eef1f5;
  border-radius: 4px;
  opacity: 0.7;
  animation: skeleton-bar-pulse 1.4s ease-in-out infinite;
}

.skeleton-text {
  height: 16px;
  width: 100%;
  border-radius: 4px;
  background: #f1f3f7;
  opacity: 0.7;
  animation: skeleton-bar-pulse 1.4s ease-in-out infinite;
}

.skeleton-price {
  height: 32px;
  width: 40%;
  border-radius: 4px;
  margin-top: auto;
  background: #eef1f5;
  opacity: 0.7;
  animation: skeleton-bar-pulse 1.4s ease-in-out infinite;
}

.skeleton-btn {
  height: 40px;
  width: 100%;
  border-radius: 0.75rem;
  background: #e7ebf3;
  opacity: 0.7;
  animation: skeleton-bar-pulse 1.4s ease-in-out infinite;
}

@keyframes skeleton-bar-pulse {
  0% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.45;
  }
}

@keyframes skeleton-card-pulse {
  0% {
    box-shadow: 0 0 0 rgba(15, 23, 42, 0.02);
  }
  50% {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  }
  100% {
    box-shadow: 0 0 0 rgba(15, 23, 42, 0.02);
  }
}

.subcat-meta {
  margin-bottom: 1.25rem;
}

.subcat-panel {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.25rem 0 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}

.subcat-groupline {
  font-size: 0.85rem;
  color: #5c6475;
  border-left: 3px solid #dc3545;
  padding-left: 0.75rem;
  margin-bottom: 0.4rem;
  text-align: left;
  line-height: 1.5;
}

.subcat-mainrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.subcat-mainrow img {
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.45);
}

.subcat-title {
  font-weight: 600;
  color: #333333;
}

.subcat-mainrow .yy-g-b {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.78rem;
  transform: translateY(-1px);
}

.subcat-mainrow .yy-g-b-orange {
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.24);
}

.subcat-mainrow .yy-g-b-soft-red {
  background: rgba(244, 106, 106, 0.08);
  color: #f46a6a;
  border: 1px solid rgba(244, 106, 106, 0.3);
}

.subcat-mainrow .yy-g-b-soft-orange {
  background: rgba(241, 115, 79, 0.08);
  color: #f1734f;
  border: 1px solid rgba(241, 115, 79, 0.3);
}

.subcat-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.83rem;
}

.subcat-badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(108, 117, 125, 0.06);
  color: #6c757d;
  white-space: nowrap;
}

.subcat-badge-primary {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.18);
}

.benefits-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.benefit-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -16px hsl(var(--primary) / 0.22);
  border-color: hsl(var(--primary) / 0.35);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

.benefit-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.benefit-desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.925rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* FAQ section */
#faq .text-center h2 {
  color: hsl(var(--foreground));
}

#faq .accordion-button {
  color: hsl(var(--foreground));
  background-color: hsl(var(--card));
}

#faq .accordion-button:not(.collapsed) {
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
}

#faq .accordion-body {
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1100px;
    margin: 0 auto;
  }
}
