/* ============================================================
   home.css — Tashan IPTV Home Page
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #fff 0%, #fdf1f3 50%, #fff 100%);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--g200);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { max-width: 580px; }
.hero-content h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 17px; line-height: 1.7;
  color: var(--g600); margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-lg { padding: 14px 30px; font-size: 15.5px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; }
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--g600);
}
.trust-item svg { width: 15px; height: 15px; stroke: var(--red); }

/* Hero visual card */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: 18px;
  box-shadow: var(--sh-lg);
  overflow: hidden;
  width: 100%; max-width: 420px;
}
.hc-header {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 18px;
  background: var(--g900);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hc-dot {
  width: 11px; height: 11px; border-radius: 50%;
  flex-shrink: 0;
}
.hc-dot.red    { background: #FF5F57; }
.hc-dot.yellow { background: #FEBC2E; }
.hc-dot.green  { background: #28C840; }
.hc-title {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6);
  margin-left: 6px;
}
.hc-body { padding: 20px 18px 22px; }
.hc-stat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px;
}
.hc-stat {
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column;
}
.hc-val {
  font-size: 22px; font-weight: 900; color: var(--red);
  letter-spacing: -.5px; line-height: 1;
}
.hc-lbl { font-size: 11px; font-weight: 600; color: var(--g500); margin-top: 4px; }
.hc-devices {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
}
.hc-devices span {
  background: var(--g100); border: 1px solid var(--g200);
  border-radius: 20px; padding: 4px 11px;
  font-size: 11.5px; font-weight: 600; color: var(--g700);
}
.hc-quality { display: flex; gap: 6px; margin-top: 10px; }
.q-badge {
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  background: var(--g100); color: var(--g600);
  border: 1px solid var(--g200);
}
.q-badge.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ── STATS BAR ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--g900);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  display: flex; flex-direction: column;
  padding: 8px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-item:last-child { border-right: none; }
.stat-val {
  font-size: 32px; font-weight: 900;
  color: #fff; letter-spacing: -.5px; line-height: 1;
}
.stat-val em { font-style: normal; color: var(--red); }
.stat-lbl {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45);
  margin-top: 5px; text-transform: uppercase; letter-spacing: .5px;
}

/* ── PRICING ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}
.pricing-card:hover { box-shadow: var(--sh-md); border-color: var(--g300); }
.pricing-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow), var(--sh-md);
}
.pc-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px;
  white-space: nowrap;
}
.pc-duration {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--red); margin-bottom: 6px;
}
.pc-name { font-size: 20px; font-weight: 800; color: var(--g900); margin-bottom: 16px; }
.pc-price {
  font-size: 44px; font-weight: 900; color: var(--g900);
  letter-spacing: -.03em; line-height: 1; margin-bottom: 8px;
}
.pc-note { font-size: 13px; color: var(--g500); margin-bottom: 24px; }
.pc-features {
  list-style: none; margin-bottom: 28px;
}
.pc-features li {
  font-size: 14px; font-weight: 500; color: var(--g700);
  padding: 7px 0; border-bottom: 1px solid var(--g100);
  display: flex; align-items: center; gap: 8px;
}
.pc-features li::before {
  content: '';
  display: block; flex-shrink: 0;
  width: 16px; height: 16px;
  background: var(--red-glow);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8001D' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
}

/* ── CHANNELS ───────────────────────────────────────────────── */
.channels-sec { background: var(--g50); }
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ch-card {
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-radius: var(--r);
  padding: 20px 18px;
  display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-decoration: none;
}
.ch-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px var(--red-glow);
  transform: translateY(-2px);
}
.ch-name { font-size: 15px; font-weight: 700; color: var(--g900); margin-bottom: 4px; }
.ch-count { font-size: 12px; font-weight: 500; color: var(--g500); }

/* ── FEATURES ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.feat-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.feat-icon {
  width: 48px; height: 48px;
  background: var(--red-glow);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feat-icon svg { width: 22px; height: 22px; stroke: var(--red); }
.feat-card h3 { font-size: 16px; margin-bottom: 8px; }
.feat-card p { font-size: 13.5px; }

/* ── COMPARE TABLE ──────────────────────────────────────────── */
.compare-sec { background: var(--g50); }
.table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 13px 18px; text-align: left;
  border-bottom: 1px solid var(--g200);
}
.compare-table thead th {
  background: var(--g900); color: rgba(255,255,255,.7);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.compare-table thead th.ours { background: var(--red); color: #fff; }
.compare-table tbody tr:hover td { background: var(--g50); }
.compare-table td.ours { font-weight: 700; color: var(--g900); }
.compare-table td.tick { color: var(--red); }

/* ── REVIEWS ────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: box-shadow .2s;
}
.review-card:hover { box-shadow: var(--sh-md); }
.stars { font-size: 18px; color: #F59E0B; margin-bottom: 12px; }
.review-card p { font-size: 13.5px; line-height: 1.7; color: var(--g600); margin-bottom: 18px; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.rev-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 15px; font-weight: 800;
  display: grid; place-items: center; flex-shrink: 0;
}
.reviewer strong { display: block; font-size: 14px; font-weight: 700; color: var(--g900); }
.reviewer span { font-size: 12px; color: var(--g500); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-sec { background: var(--g50); }
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--r);
  overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; gap: 12px;
  background: none; border: none;
  font-size: 15px; font-weight: 600; color: var(--g900);
  text-align: left; cursor: pointer;
  transition: color .14s;
}
.faq-q:hover { color: var(--red); }
.faq-q svg {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 2.5;
  transition: transform .22s;
}
.faq-q[aria-expanded="true"] { color: var(--red); }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease, padding .28s ease;
}
.faq-a.open { max-height: 300px; padding-bottom: 4px; }
.faq-a p { padding: 0 22px 18px; font-size: 14px; line-height: 1.7; color: var(--g600); }

/* ── CTA BANNER ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--g900);
  padding: 72px 0;
  text-align: center;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.55); font-size: 16px; margin-bottom: 32px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .channels-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 640px) {
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}
