/* ============================================
   IPTV Premium 24 - Components
   Reusable UI Components
   ============================================ */

/* ─────────────────────────────────────────
   Buttons
   ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-on-primary);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-outline-dark:hover {
  background: var(--accent-primary);
  color: var(--text-on-primary);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #1a1a2e;
  font-weight: var(--font-bold);
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.4);
}

.btn-success {
  background: var(--gradient-success);
  color: var(--text-on-primary);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ─────────────────────────────────────────
   Cards
   ───────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.card-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─────────────────────────────────────────
   Pricing Cards
   ───────────────────────────────────────── */

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: var(--shadow-glow-lg);
}

.pricing-card.gold {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow-gold);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

.pricing-badge-popular {
  background: var(--gradient-primary);
  color: var(--text-on-primary);
}

.pricing-badge-best {
  background: var(--gradient-gold);
  color: #1a1a2e;
}

.pricing-duration {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.pricing-connections {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.pricing-price {
  margin-bottom: var(--space-6);
}

.pricing-price .currency {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--accent-primary);
  vertical-align: top;
}

.pricing-price .amount {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  color: var(--accent-primary);
  line-height: 1;
}

.pricing-price .period {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-8);
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: left;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-success);
  flex-shrink: 0;
}

.pricing-card .btn {
  margin-top: auto;
}

/* ─────────────────────────────────────────
   Badges
   ───────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.badge-primary {
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-primary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-warning);
}

/* ─────────────────────────────────────────
   FAQ Accordion
   ───────────────────────────────────────── */

.faq-item {
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) var(--ease-out-cubic);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─────────────────────────────────────────
   Stat Badge
   ───────────────────────────────────────── */

.stat-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  color: var(--text-light);
}

.stat-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
}

.stat-badge-icon svg {
  width: 20px;
  height: 20px;
}

.stat-badge-value {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

.stat-badge-label {
  font-size: var(--text-xs);
  opacity: 0.8;
}

/* ─────────────────────────────────────────
   Step Cards
   ───────────────────────────────────────── */

.step-card {
  text-align: center;
  padding: var(--space-8);
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  background: var(--gradient-primary);
  color: var(--text-on-primary);
}

.step-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.step-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─────────────────────────────────────────
   Comparison Table
   ───────────────────────────────────────── */

.comparison-table {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
}

.comparison-table thead th {
  padding: var(--space-5) var(--space-6);
  font-weight: var(--font-bold);
  font-size: var(--text-base);
  text-align: center;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table thead th.us-col {
  background: var(--accent-primary);
  color: var(--text-on-primary);
}

.comparison-table tbody td {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-primary);
  text-align: center;
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.comparison-table .check {
  color: var(--accent-success);
}

.comparison-table .cross {
  color: var(--accent-danger);
}

/* ─────────────────────────────────────────
   Testimonial Cards
   ───────────────────────────────────────── */

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  color: var(--accent-warning);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-primary);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}

.testimonial-name {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   Feature List
   ───────────────────────────────────────── */

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.feature-list-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
}

.feature-list-icon svg {
  width: 22px;
  height: 22px;
}

.feature-list-title {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.feature-list-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─────────────────────────────────────────
   Device / App Cards
   ───────────────────────────────────────── */

.device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.device-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.device-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
}

.device-card-icon svg {
  width: 28px;
  height: 28px;
}

.device-card-name {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

/* ─────────────────────────────────────────
   VOD / Content Cards
   ───────────────────────────────────────── */

.vod-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-dark);
  aspect-ratio: 2/3;
  position: relative;
  transition: all var(--transition-base);
}

.vod-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.vod-card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vod-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--text-light);
}

.vod-card-title {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
}

.vod-card-meta {
  font-size: var(--text-xs);
  opacity: 0.7;
}

/* ─────────────────────────────────────────
   Sport / Match Cards
   ───────────────────────────────────────── */

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: all var(--transition-base);
}

.match-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  text-align: center;
}

.match-team-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
}

.match-team-name {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.match-vs {
  font-weight: var(--font-bold);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.match-info {
  text-align: center;
}

.match-league {
  font-size: var(--text-xs);
  color: var(--accent-primary);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.match-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
