/* ================================================================
   Revista Beleleu — IPTV
   Static stylesheet (converted from Tailwind/React build)
   Color tokens preserved exactly from the original theme.
   ================================================================ */

:root {
  color-scheme: dark;

  /* HSL values — kept identical to React build */
  --bg-h: 0; --bg-s: 0%; --bg-l: 4%;
  --background: 10, 10, 10;
  --foreground: 247, 243, 238;

  --card: 18, 18, 18;
  --card-foreground: 247, 243, 238;

  --primary: 255, 106, 26;
  --primary-foreground: 13, 13, 13;
  --primary-glow: 255, 138, 61;

  --muted: 31, 31, 31;
  --muted-foreground: 173, 168, 158;

  --border: 38, 38, 38;
  --input: 36, 36, 36;
  --ring: 255, 106, 26;

  --radius: 0.75rem;

  --gradient-hero:
    radial-gradient(ellipse at top, rgba(255, 106, 26, 0.25), transparent 60%),
    linear-gradient(180deg, rgb(10, 10, 10), rgb(15, 15, 15));
  --gradient-primary:
    linear-gradient(135deg, rgb(255, 106, 26), rgb(255, 138, 61));
  --gradient-card:
    linear-gradient(160deg, rgb(20, 20, 20), rgb(13, 13, 13));

  --shadow-glow: 0 10px 40px -10px rgba(255, 106, 26, 0.5);
  --shadow-card: 0 8px 32px -8px rgba(0, 0, 0, 0.6);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: rgb(var(--background));
  color: rgb(var(--foreground));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
ul, ol { margin: 0; padding: 0; }

/* Layout helpers */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
  max-width: 1280px;
}
@media (min-width: 1400px) { .container { max-width: 1400px; } }

.flex-col-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* Gradients */
.gradient-hero { background: var(--gradient-hero); }
.gradient-primary { background: var(--gradient-primary); }
.gradient-card { background: var(--gradient-card); }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-card { box-shadow: var(--shadow-card); }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: var(--transition-smooth);
  background: transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(var(--border));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
}
.brand-icon {
  display: grid;
  place-items: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
}
.brand-icon svg { color: rgb(var(--primary-foreground)); width: 1.25rem; height: 1.25rem; }
.brand-text { font-size: 1.125rem; line-height: 1; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-desktop a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--muted-foreground));
  border-radius: 0.375rem;
  transition: var(--transition-smooth);
}
.nav-desktop a:hover { color: rgb(var(--foreground)); }
.nav-desktop a.is-active { color: rgb(var(--primary)); }

.header-cta-desktop { display: none; }
.menu-toggle {
  display: inline-grid;
  place-items: center;
  padding: 0.5rem;
  color: rgb(var(--foreground));
}
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.nav-mobile {
  display: none;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(var(--border));
}
.nav-mobile.is-open { display: block; }
.nav-mobile-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding-block: 0.75rem;
}
.nav-mobile-list a {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(38, 38, 38, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(247, 243, 238, 0.8);
}
.nav-mobile-list a.is-active { color: rgb(var(--primary)); }

@media (min-width: 1024px) {
  .nav-desktop { display: inline-flex; }
  .header-cta-desktop { display: inline-block; }
  .menu-toggle { display: none; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 1.125rem; height: 1.125rem; }

.btn-hero, .btn-primary {
  background: var(--gradient-primary);
  color: rgb(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
}
.btn-hero:hover, .btn-primary:hover { opacity: 0.95; transform: translateY(-1px); }

.btn-secondary {
  background: rgb(var(--foreground));
  color: rgb(13, 13, 13);
}
.btn-secondary:hover { opacity: 0.92; }

.btn-outline {
  background: transparent;
  border-color: rgb(var(--border));
  color: rgb(var(--foreground));
}
.btn-outline:hover { border-color: rgb(var(--primary)); color: rgb(var(--primary)); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(13, 13, 13, 0.4);
  color: rgb(var(--primary-foreground));
}
.btn-outline-light:hover { background: rgba(13, 13, 13, 0.1); }

.btn-lg { height: 3rem; padding: 0 1.5rem; font-size: 1rem; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 4rem;
  background: var(--gradient-hero);
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding-top: 9rem; } }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 106, 26, 0.4);
  background: rgba(255, 106, 26, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(var(--primary));
}
.eyebrow svg { width: 0.75rem; height: 0.75rem; }

.h1 {
  margin: 1rem 0 0;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.05;
}
@media (min-width: 768px) { .h1 { font-size: 3.75rem; } }

.lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: rgb(var(--muted-foreground));
  max-width: 36rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-actions .btn { height: 3rem; padding: 0 1.5rem; }

.answer-box {
  margin-top: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: rgba(18, 18, 18, 0.6);
  padding: 1.25rem;
  font-size: 0.9375rem;
}
@media (min-width: 768px) { .answer-box { font-size: 1rem; } }
.answer-box strong { color: rgb(var(--primary)); }

.hero-img-wrap {
  position: relative;
}
.hero-img-wrap img {
  border-radius: 1rem;
  border: 1px solid rgb(var(--border));
  box-shadow: var(--shadow-card);
  width: 100%;
  height: auto;
}

/* ================================================================
   SECTIONS / GENERIC PAGE BLOCKS
   ================================================================ */
.section { padding-block: 2.5rem; }
.section-pad { padding-block: 3rem; }
@media (min-width: 768px) { .section-pad { padding-block: 4rem; } }

.h2 {
  font-size: 1.875rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}
@media (min-width: 768px) { .h2 { font-size: 2.25rem; } }
.h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.section-intro {
  color: rgb(var(--muted-foreground));
  margin: 0 0 2rem;
  max-width: 42rem;
}

/* Page hero (institutional pages) */
.page-hero {
  background: var(--gradient-hero);
  padding-top: 6rem;
}
.page-hero-inner {
  padding-block: 3rem;
  max-width: 56rem;
}
@media (min-width: 768px) { .page-hero-inner { padding-block: 5rem; } }

.last-update {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
}

/* Cards */
.card {
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  padding: 1.5rem;
  transition: var(--transition-smooth);
}
.card:hover { border-color: rgba(255, 106, 26, 0.4); }
.card-grad { background: var(--gradient-card); }
.card-icon {
  display: inline-grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  margin-bottom: 1rem;
}
.card-icon.lg { height: 3rem; width: 3rem; margin-bottom: 0.75rem; }
.card-icon svg { color: rgb(var(--primary-foreground)); width: 1.25rem; height: 1.25rem; }
.card-icon.lg svg { width: 1.5rem; height: 1.5rem; }

.card-title { font-weight: 700; font-size: 1.0625rem; margin: 0; }
.card-desc { font-size: 0.875rem; color: rgb(var(--muted-foreground)); margin: 0.25rem 0 0; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-blog { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-blog { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-blog { grid-template-columns: repeat(3, 1fr); }
}

/* Plan cards */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }

.plan {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.plan.is-highlighted {
  border-color: rgb(var(--primary));
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}
.plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: rgb(var(--primary-foreground));
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.plan-name { font-size: 1.25rem; font-weight: 700; margin: 0; }
.plan-price-row { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.75rem; }
.plan-price-currency { font-size: 1rem; color: rgb(var(--muted-foreground)); }
.plan-price { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.plan-period { color: rgb(var(--muted-foreground)); font-size: 0.875rem; }
.plan-equiv { font-size: 0.8125rem; color: rgb(var(--primary)); margin-top: 0.25rem; }
.plan-features { list-style: none; margin-top: 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.plan-features li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.875rem; color: rgba(247, 243, 238, 0.9); }
.plan-features svg { color: rgb(var(--primary)); width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.1875rem; }
.plan .btn { width: 100%; margin-top: 1.5rem; }

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
}
.compare-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}
.compare-table thead { background: rgb(var(--card)); text-align: left; }
.compare-table th { padding: 1rem; font-weight: 600; }
.compare-table td { padding: 1rem; border-top: 1px solid rgb(var(--border)); }
.compare-table .text-center { text-align: center; }
.compare-table th.highlight { color: rgb(var(--primary)); }
.icon-check { color: rgb(var(--primary)); }
.icon-x { color: rgb(var(--muted-foreground)); }

/* Categories cards (horizontal layout) */
.cat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  padding: 1.25rem;
  transition: var(--transition-smooth);
}
.cat-card:hover { border-color: rgb(var(--primary)); }
.cat-icon {
  display: grid;
  place-items: center;
  height: 3rem;
  width: 3rem;
  border-radius: 0.5rem;
  background: rgba(255, 106, 26, 0.1);
  color: rgb(var(--primary));
}
.cat-icon svg { width: 1.5rem; height: 1.5rem; }

/* Testimonial cards */
.testimonial { border-radius: 0.75rem; border: 1px solid rgb(var(--border)); background: var(--gradient-card); padding: 1.5rem; }
.stars { display: flex; gap: 0.125rem; color: rgb(var(--primary)); margin-bottom: 0.75rem; }
.stars svg { width: 1rem; height: 1rem; fill: currentColor; }
.testimonial-text { font-size: 0.875rem; color: rgba(247, 243, 238, 0.9); font-style: italic; margin: 0; }
.testimonial-meta { margin-top: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  display: grid;
  place-items: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  background: var(--gradient-primary);
  font-weight: 700;
  color: rgb(var(--primary-foreground));
}
.testimonial-name { font-weight: 600; font-size: 0.875rem; margin: 0; }
.testimonial-city { font-size: 0.75rem; color: rgb(var(--muted-foreground)); margin: 0; }

/* CTA banner */
.cta-banner {
  border-radius: 1rem;
  background: var(--gradient-primary);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
@media (min-width: 768px) { .cta-banner { padding: 3rem; } }
.cta-banner h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: rgb(var(--primary-foreground));
  margin: 0;
}
@media (min-width: 768px) { .cta-banner h2 { font-size: 2.25rem; } }
.cta-banner p {
  color: rgba(13, 13, 13, 0.9);
  max-width: 42rem;
  margin: 0.75rem auto 0;
}
.cta-banner-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Article (pillar content) */
.article-pillar {
  max-width: 56rem;
}
.article-pillar p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(247, 243, 238, 0.9);
  margin: 0 0 1rem;
}
@media (min-width: 768px) { .article-pillar p { font-size: 1.125rem; } }
.article-pillar h2 { margin: 0 0 1rem; font-size: 1.875rem; font-weight: 800; }
@media (min-width: 768px) { .article-pillar h2 { font-size: 2.25rem; } }
.article-pillar h3 { margin: 2.5rem 0 0.75rem; font-size: 1.5rem; font-weight: 700; }
.article-pillar ol { margin: 0.75rem 0 0; padding-left: 1.5rem; }
.article-pillar ol li { margin-bottom: 0.375rem; }
.article-pillar a { color: rgb(var(--primary)); font-weight: 600; }
.article-pillar a:hover { text-decoration: underline; }
.article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: rgb(var(--primary));
  font-weight: 600;
}
.article-link:hover { text-decoration: underline; }
.article-link svg { width: 1rem; height: 1rem; }

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-section { padding-block: 2.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  padding: 0 1.25rem;
}
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  padding: 1.125rem 0;
  transition: var(--transition-smooth);
}
.faq-trigger:hover { color: rgb(var(--primary)); }
.faq-trigger svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease-out;
  color: rgb(var(--muted-foreground));
  flex-shrink: 0;
  margin-left: 0.75rem;
}
.faq-item[data-open="true"] .faq-trigger svg { transform: rotate(180deg); }
.faq-content {
  display: none;
  padding-bottom: 1rem;
  color: rgb(var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.65;
}
.faq-item[data-open="true"] .faq-content { display: block; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  border-top: 1px solid rgb(var(--border));
  background: rgba(18, 18, 18, 0.5);
  margin-top: 6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col h3 {
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(var(--primary));
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.875rem; color: rgb(var(--muted-foreground)); }
.footer-col ul a:hover { color: rgb(var(--primary)); }
.footer-blurb { font-size: 0.875rem; color: rgb(var(--muted-foreground)); max-width: 18rem; margin: 0.75rem 0 0; }
.footer-social { margin-top: 1rem; display: flex; gap: 0.75rem; color: rgb(var(--muted-foreground)); }
.footer-social a { display: inline-grid; place-items: center; height: 2rem; width: 2rem; }
.footer-social a:hover { color: rgb(var(--primary)); }
.footer-social svg { width: 1.25rem; height: 1.25rem; }
.footer-bottom {
  border-top: 1px solid rgb(var(--border));
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.footer-bottom-links a:hover { color: rgb(var(--primary)); }

/* ================================================================
   WHATSAPP FLOAT
   ================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  display: inline-grid;
  place-items: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 9999px;
  background: var(--gradient-primary);
  color: rgb(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}
.whatsapp-float:hover { transform: scale(1.05); }
.whatsapp-float svg { width: 1.75rem; height: 1.75rem; }

/* ================================================================
   STEPS / CHECKLISTS
   ================================================================ */
.checklist { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; }
.checklist li {
  display: flex;
  gap: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  padding: 1rem;
  font-size: 0.9375rem;
}
.checklist svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: rgb(var(--primary));
}

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

/* ================================================================
   APPS / TAG PILLS
   ================================================================ */
.app-card {
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: var(--gradient-card);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}
.app-card:hover { border-color: rgba(255, 106, 26, 0.5); }
.app-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
  border-radius: 9999px;
  border: 1px solid rgba(255, 106, 26, 0.4);
  background: rgba(255, 106, 26, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: rgb(var(--primary));
  font-weight: 500;
}

/* ================================================================
   LEGAL / PROSE PAGES (Termos, Privacidade)
   ================================================================ */
.legal-prose {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: rgba(247, 243, 238, 0.9);
}
.legal-prose h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; }
.legal-prose p { margin: 0; line-height: 1.7; }
.legal-prose ul { padding-left: 1.5rem; list-style: disc; }
.legal-prose ul li { margin-bottom: 0.25rem; }
.legal-prose a { color: rgb(var(--primary)); }
.legal-prose a:hover { text-decoration: underline; }
.legal-meta { font-size: 0.875rem; color: rgb(var(--muted-foreground)); padding-top: 1.5rem; }

/* ================================================================
   BLOG INDEX
   ================================================================ */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  color: rgba(247, 243, 238, 0.8);
  transition: var(--transition-smooth);
}
.filter-btn:hover { border-color: rgb(var(--primary)); color: rgb(var(--primary)); }
.filter-btn.is-active {
  background: var(--gradient-primary);
  color: rgb(var(--primary-foreground));
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  overflow: hidden;
  transition: var(--transition-smooth);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--primary));
  box-shadow: var(--shadow-glow);
}
.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgb(var(--muted));
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-cat {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 106, 26, 0.4);
  background: rgba(255, 106, 26, 0.1);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(var(--primary));
}
.blog-card-title {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card:hover .blog-card-title { color: rgb(var(--primary)); }
.blog-card-excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(38, 38, 38, 0.6);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
}
.blog-card-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.blog-card-meta svg { width: 0.875rem; height: 0.875rem; }

/* Pagination */
.pagination {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(247, 243, 238, 0.8);
  min-width: 40px;
  justify-content: center;
}
.page-btn:hover { border-color: rgb(var(--primary)); color: rgb(var(--primary)); }
.page-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.page-btn.is-current {
  background: var(--gradient-primary);
  color: rgb(var(--primary-foreground));
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.page-btn svg { width: 1rem; height: 1rem; }
.page-info { margin-top: 1rem; text-align: center; font-size: 0.75rem; color: rgb(var(--muted-foreground)); }

/* ================================================================
   BLOG POST
   ================================================================ */
.post-cover {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}
@media (min-width: 768px) { .post-cover { height: 400px; } }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(var(--background)), rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.4));
}

.post-head {
  margin-top: -5rem;
  position: relative;
}
@media (min-width: 768px) { .post-head { margin-top: -7rem; } }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .breadcrumb { font-size: 0.875rem; } }
.breadcrumb a:hover { color: rgb(var(--primary)); }
.breadcrumb svg { width: 0.875rem; height: 0.875rem; }
.breadcrumb .current { color: rgba(247, 243, 238, 0.8); }

.post-cat {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 106, 26, 0.4);
  background: rgba(255, 106, 26, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(var(--primary));
}

.post-title {
  margin: 1rem 0 0;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
}
@media (min-width: 768px) { .post-title { font-size: 3rem; } }

.post-meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}
.post-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.post-meta svg { width: 1rem; height: 1rem; }

.post-update-box {
  margin-top: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: rgba(18, 18, 18, 0.6);
  padding: 1rem;
  font-size: 0.875rem;
}
.post-update-box strong { color: rgb(var(--primary)); }

.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(247, 243, 238, 0.9);
}
@media (min-width: 768px) { .prose { font-size: 18px; } }
.prose p { margin: 1.25rem 0; }
.prose h2 {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  scroll-margin-top: 7rem;
}
@media (min-width: 768px) { .prose h2 { font-size: 1.875rem; } }
.prose h3 { margin: 2rem 0 0.75rem; font-size: 1.25rem; font-weight: 700; }
.prose ul, .prose ol { margin: 1.25rem 0; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul li, .prose ol li { margin-bottom: 0.5rem; }
.prose a { color: rgb(var(--primary)); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { opacity: 0.8; }
.prose strong { color: rgb(var(--foreground)); }
.prose table {
  width: 100%;
  margin: 1.5rem 0;
  border: 1px solid rgb(var(--border));
  border-radius: 0.5rem;
  border-collapse: collapse;
  overflow: hidden;
}
.prose th { background: rgb(var(--muted)); text-align: left; padding: 0.75rem; font-size: 0.875rem; font-weight: 700; }
.prose td { padding: 0.75rem; font-size: 0.875rem; border-top: 1px solid rgb(var(--border)); }
.prose code {
  background: rgb(var(--muted));
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: rgb(var(--primary));
}
.prose blockquote {
  border-left: 4px solid rgb(var(--primary));
  padding-left: 1rem;
  font-style: italic;
  color: rgb(var(--muted-foreground));
}

/* TOC */
.toc {
  margin: 2rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: rgba(18, 18, 18, 0.6);
  padding: 1.25rem;
}
.toc-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}
.toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
  font-size: 0.875rem;
  color: rgba(247, 243, 238, 0.9);
}
.toc ol li { margin-bottom: 0.375rem; }
.toc a { color: inherit; }
.toc a:hover { color: rgb(var(--primary)); text-decoration: underline; text-underline-offset: 4px; }

/* Callout */
.callout {
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid;
  padding: 1.25rem;
}
.callout-tip { border-color: rgba(96, 165, 250, 0.4); background: rgba(59, 130, 246, 0.1); }
.callout-warning { border-color: rgba(250, 204, 21, 0.4); background: rgba(234, 179, 8, 0.1); }
.callout-summary { border-color: rgba(52, 211, 153, 0.4); background: rgba(16, 185, 129, 0.1); }
.callout-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}
.callout-body { font-size: 0.97rem; line-height: 1.65; color: rgba(247, 243, 238, 0.9); }
.callout-body p { margin: 0; }
.callout-body strong { color: rgb(var(--foreground)); }

/* Sidebar */
.post-sidebar {
  display: none;
  position: sticky;
  top: 6rem;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 1024px) { .post-sidebar { display: flex; } }
.sidebar-cta {
  border-radius: 0.75rem;
  background: var(--gradient-primary);
  padding: 1.25rem;
  color: rgb(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
}
.sidebar-cta h3 { font-size: 1.125rem; font-weight: 800; margin: 0; }
.sidebar-cta p { font-size: 0.875rem; margin: 0.25rem 0 0; color: rgba(13, 13, 13, 0.9); }
.sidebar-cta .btn { width: 100%; margin-top: 1rem; }

.sidebar-related {
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  padding: 1.25rem;
}
.sidebar-related h3 {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(var(--primary));
  margin: 0 0 1rem;
}
.sidebar-related ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.sidebar-related a { display: flex; gap: 0.75rem; }
.sidebar-related img { height: 4rem; width: 5rem; border-radius: 0.375rem; object-fit: cover; flex-shrink: 0; }
.sidebar-related .related-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-related .related-date { font-size: 0.75rem; color: rgb(var(--muted-foreground)); margin-top: 0.25rem; }
.sidebar-related a:hover .related-title { color: rgb(var(--primary)); }

.sidebar-cats {
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  padding: 1.25rem;
}
.sidebar-cats ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-cats a { font-size: 0.875rem; color: rgba(247, 243, 238, 0.8); }
.sidebar-cats a:hover { color: rgb(var(--primary)); }

/* Share buttons */
.share-row {
  margin: 2.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgb(var(--border));
  border-bottom: 1px solid rgb(var(--border));
  padding: 1.25rem 0;
}
.share-label { font-size: 0.875rem; font-weight: 600; color: rgb(var(--muted-foreground)); margin-right: 0.25rem; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}
.share-btn:hover { border-color: rgb(var(--primary)); color: rgb(var(--primary)); }
.share-btn svg { width: 1rem; height: 1rem; }

/* CTA inside post */
.post-cta {
  margin: 2.5rem 0;
  border-radius: 1rem;
  background: var(--gradient-primary);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
@media (min-width: 768px) { .post-cta { padding: 2.25rem; } }
.post-cta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgb(var(--primary-foreground));
  margin: 0;
}
@media (min-width: 768px) { .post-cta h2 { font-size: 1.875rem; } }
.post-cta p { margin: 0.5rem 0 0; color: rgba(13, 13, 13, 0.9); }
.post-cta .btn { margin-top: 1.25rem; }

/* Author box */
.author-box {
  margin: 2.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--card));
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.author-avatar {
  display: grid;
  place-items: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 9999px;
  background: var(--gradient-primary);
  font-weight: 800;
  color: rgb(var(--primary-foreground));
  font-size: 1.25rem;
  flex-shrink: 0;
}
.author-box h3 { font-weight: 700; margin: 0; }
.author-box p { font-size: 0.875rem; color: rgb(var(--muted-foreground)); margin: 0.25rem 0 0; }

/* Related posts grid */
.related-section { margin-top: 4rem; }
.related-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
}
@media (min-width: 768px) { .related-section h2 { font-size: 1.875rem; } }

/* ================================================================
   404
   ================================================================ */
.notfound-wrap {
  display: grid;
  place-items: center;
  background: var(--gradient-hero);
  padding-top: 6rem;
  flex: 1;
}
.notfound-inner { padding: 5rem 0; text-align: center; max-width: 42rem; margin: 0 auto; }
.notfound-icon {
  display: inline-grid;
  place-items: center;
  height: 5rem;
  width: 5rem;
  border-radius: 1rem;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
  margin-bottom: 1.5rem;
}
.notfound-icon svg { width: 2.5rem; height: 2.5rem; color: rgb(var(--primary-foreground)); }
.notfound-num {
  font-size: 4.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
@media (min-width: 768px) { .notfound-num { font-size: 8rem; } }
.notfound-sub { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 0; }
@media (min-width: 768px) { .notfound-sub { font-size: 1.875rem; } }
.notfound-text { color: rgb(var(--muted-foreground)); margin: 0.75rem 0 0; }
.notfound-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: rgb(var(--muted-foreground)); }
.primary { color: rgb(var(--primary)); }
