/* Buttons styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-royal) 0%, #1e60b8 100%);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.05);
}

.btn-secondary {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: #162a45;
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-yellow) 0%, #d89f00 100%);
  color: var(--primary-navy);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow-glow);
  filter: brightness(1.05);
}

.btn-outline {
  border: 2px solid var(--primary-royal);
  color: var(--primary-royal);
}

.btn-outline:hover {
  background-color: var(--primary-royal);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-light {
  background-color: #ffffff;
  color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background-color: var(--bg-soft-white);
  transform: translateY(-1px);
}

/* Glassmorphism Cards */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(47, 128, 237, 0.3);
}

/* Form inputs & controls */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #CBD5E1;
  background-color: #ffffff;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-royal);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.15);
}

/* Custom switch toggle */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 0.75rem;
}

.toggle-input {
  display: none;
}

.toggle-label {
  position: relative;
  width: 48px;
  height: 24px;
  background-color: #CBD5E1;
  border-radius: 50px;
  transition: var(--transition-fast);
}

.toggle-label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  transition: var(--transition-fast);
}

.toggle-input:checked + .toggle-label {
  background-color: var(--primary-royal);
}

.toggle-input:checked + .toggle-label::after {
  transform: translateX(24px);
}

/* Tabs selection styling */
.tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary-royal);
}

.tab-btn.active {
  color: var(--primary-royal);
  border-bottom-color: var(--primary-royal);
}

/* Accordion FAQs styling */
.accordion {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.accordion-header {
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-navy);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
  background: #ffffff;
}

.accordion-header:hover {
  background-color: var(--bg-light-gray);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  fill: currentColor;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion.active {
  border-color: rgba(47, 128, 237, 0.2);
  box-shadow: var(--shadow-md);
}

.accordion.active .accordion-header {
  color: var(--primary-royal);
}

.accordion.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion.active .accordion-body {
  max-height: 1000px; /* high value for full expansion */
  padding: 0 1.75rem 1.5rem 1.75rem;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

/* Tracking progress timeline */
.tracking-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2.5rem;
  margin-top: 2rem;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 9px;
  height: 100%;
  width: 2px;
  background-color: #E2E8F0;
  z-index: 1;
}

.timeline-progress-line {
  position: absolute;
  top: 0;
  left: 9px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-royal), var(--primary-sky));
  z-index: 2;
  height: 0;
  transition: height 1s ease-out;
}

.timeline-step {
  position: relative;
  padding-bottom: 2.5rem;
  z-index: 3;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -2.5rem;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid #CBD5E1;
  transition: var(--transition-smooth);
}

.timeline-step.completed .timeline-node {
  background-color: var(--primary-royal);
  border-color: var(--primary-royal);
  box-shadow: 0 0 10px rgba(47, 128, 237, 0.5);
}

.timeline-step.current .timeline-node {
  background-color: var(--accent-yellow);
  border-color: var(--primary-royal);
  box-shadow: var(--shadow-yellow-glow);
  transform: scale(1.15);
}

.timeline-content {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-step.current .timeline-content {
  border-color: rgba(47, 128, 237, 0.3);
  box-shadow: var(--shadow-md);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Horizontal progress timeline for Track page header */
.track-progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 3rem 0;
}

.track-progress-bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #CBD5E1;
  z-index: 1;
  border-radius: 2px;
}

.track-progress-fill {
  position: absolute;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-navy), var(--primary-royal), var(--primary-sky));
  z-index: 2;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.track-progress-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.track-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 4px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.track-progress-step.active .track-node {
  border-color: var(--primary-royal);
  color: var(--primary-royal);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.track-progress-step.completed .track-node {
  background-color: var(--primary-royal);
  border-color: var(--primary-royal);
  color: #ffffff;
}

.track-label {
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.track-progress-step.active .track-label,
.track-progress-step.completed .track-label {
  color: var(--primary-navy);
  font-weight: 700;
}

/* Pricing Grid Cards */
.pricing-card {
  text-align: center;
  position: relative;
}

.pricing-card.premium {
  border: 2px solid var(--primary-royal);
  transform: scale(1.03);
}

.pricing-card.premium::before {
  content: 'POPULAR';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-royal);
  color: #ffffff;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary-royal);
  font-weight: bold;
}

.pricing-features li.disabled {
  color: #CBD5E1;
  text-decoration: line-through;
}

.pricing-features li.disabled::before {
  content: '✕';
  color: #CBD5E1;
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--bg-light-gray);
  color: var(--primary-navy);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(238, 242, 247, 0.4);
}

/* Modal Window styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 550px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  z-index: 1001;
}

.modal.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-dark);
}
