/* ============================================================
   StreamFlix — CSS Principal
   Dark Premium Design | Syne + DM Sans
   ============================================================ */

:root {
  --bg:          #0a0a0f;
  --bg2:         #111118;
  --bg3:         #1a1a24;
  --border:      rgba(255,255,255,.07);
  --border2:     rgba(255,255,255,.13);
  --accent:      #e63946;
  --accent2:     #ff6b6b;
  --gold:        #f4a261;
  --text:        #f0f0f5;
  --text2:       #a0a0b0;
  --text3:       #606075;
  --green:       #2ec47a;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 20px 60px rgba(0,0,0,.5);
  --shadow-card: 0 4px 24px rgba(0,0,0,.4);
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --transition:  .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo-link { display: flex; align-items: center; gap: 10px; }
.site-logo { height: 36px; width: auto; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-nav { display: flex; gap: 32px; }
.nav-link { font-size: .9rem; font-weight: 500; color: var(--text2); transition: color var(--transition); }
.nav-link:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(230,57,70,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(230,57,70,.12);
  border: 1px solid rgba(230,57,70,.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
}
.trust-badges {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  flex-wrap: wrap;
  font-size: .82rem; color: var(--text3);
}
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-item svg { color: var(--green); }

/* ── Section ─────────────────────────────────────────────────── */
.section { padding: 70px 0; }
.section-title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-sub { color: var(--text2); margin-bottom: 48px; font-size: .95rem; }

/* ── Products Grid ───────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: var(--shadow-card);
}
.card-cover {
  aspect-ratio: 16/9;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}
.card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .card-cover img { transform: scale(1.05); }
.card-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800;
  color: var(--text3);
  background: linear-gradient(135deg, var(--bg3) 0%, #1e1e2e 100%);
}
.card-body { padding: 22px; }
.card-name {
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 8px;
}
.card-desc { font-size: .87rem; color: var(--text2); line-height: 1.5; margin-bottom: 18px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700;
}
.card-price small {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem; font-weight: 400;
  color: var(--text3); margin-bottom: 2px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border: none; cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  font-size: .9rem;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 10px 20px; font-size: .87rem;
}
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #27b36e; }
.btn-copy {
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text); padding: 12px 20px; font-size: .87rem;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}
.btn-copy:hover { border-color: var(--green); color: var(--green); }
.btn-copy.copied { border-color: var(--green); background: rgba(46,196,122,.1); color: var(--green); }

/* ── Checkout ────────────────────────────────────────────────── */
.checkout-page { padding: 60px 0 100px; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

.checkout-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.checkout-card h2 {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 700; margin-bottom: 28px;
}

.order-summary {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky; top: 90px;
}
.order-summary-cover {
  aspect-ratio: 16/7;
  background: var(--bg3);
  position: relative; overflow: hidden;
}
.order-summary-cover img { width: 100%; height: 100%; object-fit: cover; }
.order-summary-body { padding: 24px; }
.summary-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.summary-desc { font-size: .85rem; color: var(--text2); margin-bottom: 20px; }
.summary-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.summary-price-row .label { color: var(--text2); font-size: .9rem; }
.summary-price-row .value { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--green); }

/* ── Form ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text2); margin-bottom: 8px;
}
.form-label .required { color: var(--accent); }
.form-control {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: .93rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--text3); }
.form-hint { font-size: .78rem; color: var(--text3); margin-top: 5px; }
.form-error-msg { font-size: .8rem; color: var(--accent2); margin-top: 5px; display: none; }
.form-control.error { border-color: var(--accent); }
.form-control.error + .form-error-msg { display: block; }

/* ── PIX Panel ───────────────────────────────────────────────── */
.pix-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.pix-panel h2 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 8px; }
.pix-panel .subtitle { color: var(--text2); font-size: .9rem; margin-bottom: 32px; }
.pix-qr-wrap {
  background: #fff;
  display: inline-block;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 28px;
}
.pix-qr-wrap img { width: 200px; height: 200px; display: block; }
.pix-copypaste { margin-bottom: 16px; }
.pix-copypaste textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: .78rem;
  resize: none; outline: none;
  height: 80px;
}
.pix-status {
  margin-top: 24px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: .87rem; font-weight: 500;
}
.pix-status.pending { background: rgba(244,162,97,.1); border: 1px solid rgba(244,162,97,.3); color: var(--gold); }
.pix-status.paid    { background: rgba(46,196,122,.1); border: 1px solid rgba(46,196,122,.3); color: var(--green); }
.pix-timer { font-size: .82rem; color: var(--text3); margin-top: 12px; }

/* ── Alert / Flash ───────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  margin-bottom: 20px; font-size: .9rem;
}
.alert-success { background: rgba(46,196,122,.12); border: 1px solid rgba(46,196,122,.3); color: var(--green); }
.alert-error   { background: rgba(230,57,70,.12);  border: 1px solid rgba(230,57,70,.3);  color: var(--accent2); }
.alert-info    { background: rgba(100,100,200,.12); border: 1px solid rgba(100,100,200,.3); color: #9090dd; }

/* ── SEO Page (streaming slug) ──────────────────────────────── */
.streaming-page { padding: 60px 0 100px; }
.streaming-hero {
  display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start;
  margin-bottom: 64px;
}
@media (max-width: 768px) { .streaming-hero { grid-template-columns: 1fr; } }
.streaming-cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  background: var(--bg3);
}
.streaming-cover img { width: 100%; height: 100%; object-fit: cover; }
.streaming-info h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; margin-bottom: 16px;
}
.streaming-info .desc { color: var(--text2); margin-bottom: 28px; line-height: 1.7; }
.streaming-price-block { margin-bottom: 28px; }
.streaming-price-block .from { font-size: .82rem; color: var(--text3); margin-bottom: 4px; }
.streaming-price-block .price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; }
.streaming-content h2 {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 700; margin-bottom: 20px;
}
.streaming-content p { color: var(--text2); margin-bottom: 14px; line-height: 1.7; }
.streaming-content ul { margin-left: 20px; list-style: disc; margin-bottom: 14px; }
.streaming-content ul li { color: var(--text2); margin-bottom: 8px; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: auto;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: .85rem; color: var(--text3); }
.footer-note { font-size: .82rem; color: var(--text3); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .5s ease forwards; }
.fade-in-delay-1 { animation-delay: .1s; opacity: 0; animation-fill-mode: both; }
.fade-in-delay-2 { animation-delay: .2s; opacity: 0; animation-fill-mode: both; }
.fade-in-delay-3 { animation-delay: .3s; opacity: 0; animation-fill-mode: both; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 60px 0 50px; }
  .checkout-card { padding: 24px; }
  .trust-badges { gap: 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Loading Spinner ─────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--text3);
  margin-bottom: 40px;
}
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: .4; }
