﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  background: #0f172a;
  color: #e5e7eb;
}

.hidden {
  display: none !important;
}

.plans-page {
  position: relative;
  min-height: 100vh;
  padding: 32px 20px 48px;
  background:
    linear-gradient(rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.84)),
    url('/assets/images/login-bg-fitness.jpg') center center / cover no-repeat;
}

.plans-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.16), transparent 34%);
  pointer-events: none;
}

.plans-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}

.plans-hero,
.plans-section,
.faq-section {
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.plans-hero {
  padding: 28px;
  margin-bottom: 24px;
}

.brand-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
}

.back-link:hover {
  color: #93c5fd;
}

.hero-content h1 {
  font-size: 40px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 14px;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 860px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: #93c5fd;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 12px;
  text-transform: uppercase;
}

.trial-banner {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trial-banner > div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trial-banner strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 6px;
}

.trial-banner span {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
}

.plans-section,
.faq-section {
  padding: 28px;
  margin-bottom: 24px;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 15px;
  color: #cbd5e1;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #112944 0%, #0f2138 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan-name {
  font-size: 24px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-description {
  color: #cbd5e1;
  line-height: 1.6;
  min-height: 72px;
  margin-bottom: 18px;
}

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}

.plan-price strong {
  font-size: 34px;
  line-height: 1;
  color: #fff;
}

.plan-price span {
  color: #93c5fd;
  font-weight: 700;
  font-size: 14px;
}

.plan-features {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.5;
}

.plan-feature i {
  margin-top: 2px;
  color: #60a5fa;
}

.plan-trial {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.5;
}

.plan-action {
  margin-top: auto;
}

.plan-action button {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.plan-action button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.loading-state,
.empty-state {
  padding: 36px 18px;
  text-align: center;
  color: #cbd5e1;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #60a5fa;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-card h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 10px;
}

.faq-card p {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 14px;
}

.plans-footer {
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.plans-footer a {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 700;
}

.plans-footer a:hover {
  color: #93c5fd;
}

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

@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .trial-banner {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .plans-page {
    padding: 16px 12px 28px;
  }

  .plans-hero,
  .plans-section,
  .faq-section {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .plan-name {
    font-size: 22px;
  }

  .plan-price strong {
    font-size: 30px;
  }
}
