@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --color-bg: #0A0C10;
  --color-surface: #12151C;
  --color-surface-hover: #171B24;
  --color-surface-elevated: #1B202C;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-input: #3A4254;
  --color-text: #FFFFFF;
  --color-text-muted: #C4C8D0;
  --color-text-dim: #8C929E;
  --color-accent: #B8070B;
  --color-accent-light: #FF5A66;
  --color-accent-dark: #7B0101;
  --color-on-accent: #FFFFFF;
  --color-danger: #FF5C6A;
  --color-success: #34D399;
  --color-warning: #F5A524;

  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-card: 0 0 0 1px var(--color-border), 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(184, 7, 11, 0.35);
  --shadow-btn: 0 10px 24px -10px rgba(255, 255, 255, 0.35);

  --max-w: 76rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 4.5rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo img, .brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(184, 7, 11, 0.45));
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo .logo-accent {
  background: linear-gradient(135deg, #FF4D5E 0%, #B8070B 60%, #7B0101 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  height: 2.75rem;
  padding: 0 1.35rem;
  white-space: nowrap;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  height: 3.25rem;
  padding: 0 1.75rem;
  font-size: 1.05rem;
}

.btn-white {
  background-color: #FFFFFF;
  color: #0A0C10;
  box-shadow: var(--shadow-btn);
}

.btn-white:hover {
  background-color: #E4E6EB;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
}

.btn-danger {
  background: rgba(255, 92, 106, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(255, 92, 106, 0.3);
}

.btn-danger:hover {
  background: rgba(255, 92, 106, 0.25);
}

.btn-block {
  width: 100%;
}

/* Main Content */
.main-wrapper {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1.5rem;
}

/* Hero Section */
.hero {
  padding: 3rem 0 5rem 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  color: #E4E6EB;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-success);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.5rem; }
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(184, 7, 11, 0.25);
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* TV Bezel Component */
.tv-frame {
  background: #151821;
  border-radius: 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), var(--shadow-glow);
  position: relative;
}

.tv-screen {
  background: #0A0C10;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background-image: radial-gradient(circle at 80% 20%, rgba(184, 7, 11, 0.35), transparent 50%),
                    radial-gradient(circle at 10% 80%, rgba(108, 211, 255, 0.15), transparent 40%);
}

.tv-screen-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
}

.tv-screen-tabs {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tv-tab.active {
  color: #FFFFFF;
  position: relative;
}

.tv-tab.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
}

.tv-tab { color: var(--color-text-dim); }

.tv-screen-body {
  margin-top: auto;
  margin-bottom: auto;
}

.tv-screen-featured-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.tv-screen-featured-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 20rem;
  margin-bottom: 0.85rem;
}

.tv-channel-row {
  display: flex;
  gap: 0.65rem;
  overflow: hidden;
}

.tv-card-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 48px;
  border-radius: 6px;
  background: var(--color-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.tv-stand {
  width: 140px;
  height: 8px;
  background: #1C202B;
  margin: 6px auto 0 auto;
  border-radius: 0 0 8px 8px;
}

/* Cards & Surfaces */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.card-elevated {
  background: var(--color-surface-elevated);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--color-text);
}

.form-input {
  width: 100%;
  height: 3rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-input);
  padding: 0 1rem;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input.font-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.form-input:focus {
  border-color: var(--color-accent-light);
  box-shadow: 0 0 0 2px rgba(143, 184, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.form-help {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  margin-top: 0.4rem;
}

/* Alert Banners */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.alert-warning {
  background: rgba(245, 165, 36, 0.12);
  border: 1px solid rgba(245, 165, 36, 0.3);
  color: #FCE2B6;
}

.alert-danger {
  background: rgba(255, 92, 106, 0.12);
  border: 1px solid rgba(255, 92, 106, 0.3);
  color: #FFCCD1;
}

.alert-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #C1F5E1;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 32rem;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover { color: #FFFFFF; }

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1rem;
  color: var(--color-text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: #0E1016;
  padding: 3rem 1.5rem 2rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* ========================================================
   SUA TV & AREA DO CLIENTE (PIXEL-PERFECT REPLICA)
   ======================================================== */
.client-area-tag {
  color: #6CD3FF;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.tv-header-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  color: #FFFFFF;
}

.tv-header-desc {
  color: #8C929E;
  font-size: 0.95rem;
}

.stat-box-modern {
  background: #11141B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #181D29;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8FB8FF;
  flex-shrink: 0;
}

.stat-label-modern {
  font-size: 0.7rem;
  font-weight: 700;
  color: #8C929E;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.stat-value-modern {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-mono);
}

.status-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-main);
}
.status-badge-pill.trial {
  background: rgba(245, 165, 36, 0.12);
  border: 1px solid rgba(245, 165, 36, 0.3);
  color: #F5A524;
}
.status-badge-pill.active {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34D399;
}
.status-badge-pill.expired {
  background: rgba(255, 92, 106, 0.12);
  border: 1px solid rgba(255, 92, 106, 0.3);
  color: #FF5C6A;
}

/* Pill Navigation Tabs */
.pill-nav-tabs {
  display: inline-flex;
  background: #121620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  margin: 1.75rem 0;
}

.pill-nav-btn {
  border: none;
  background: transparent;
  color: #A0A6B2;
  padding: 8px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill-nav-btn:hover {
  color: #FFFFFF;
}

.pill-nav-btn.active {
  background: #FFFFFF;
  color: #0A0C10;
  font-weight: 800;
}

/* Action Choices (Grid 2 Cards) */
.action-choice-card {
  background: #131826;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.action-choice-card:hover {
  border-color: rgba(184, 7, 11, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6);
}

.action-choice-card.highlight {
  border-color: rgba(184, 7, 11, 0.3);
  background: linear-gradient(135deg, #131826 0%, #162238 100%);
}

.action-circle-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Playlist Row Item */
.playlist-row-item {
  background: #131824;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Package Selection Card */
.package-card-select {
  background: #121C33;
  border: 2px solid #2563EB;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

/* MisticPay Pix Modal / Box */
.mistic-pix-box {
  background: #111520;
  border: 1px solid rgba(184, 7, 11, 0.35);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-top: 1.5rem;
}

.pix-qr-img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 10px;
  margin: 16px auto;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

