@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #030712;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(15, 23, 42, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(59, 130, 246, 0.4);
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --glow-blue: 0 0 30px rgba(59, 130, 246, 0.15);
  --glow-emerald: 0 0 30px rgba(16, 185, 129, 0.15);
  --text-primary: #f8fafc;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted: rgba(255,255,255,0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* ═══ BACKGROUND SLIDESHOW ═══ */
#bg-slides { position: fixed; inset: 0; z-index: -2; }
.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s ease-in-out; filter: grayscale(20%) brightness(25%); }
.bg-img.active { opacity: 1; }
.bg-overlay { position: fixed; inset: 0; background: radial-gradient(circle at center, transparent 0%, rgba(3,7,18,0.92) 100%); z-index: -1; }

/* ═══ GLASS BASE ═══ */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* ═══ CARD PREMIUM ═══ */
.card-premium {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(59,130,246,0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.card-premium:hover::before { opacity: 1; }
.card-premium:hover { transform: translateY(-3px); box-shadow: var(--glow-blue); border-color: var(--border-hover); }

/* ═══ CARD HERO (Score) ═══ */
.card-hero {
  background: linear-gradient(145deg, rgba(15,23,42,0.9) 0%, rgba(30,27,75,0.6) 100%);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.card-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ═══ GLASS CARD (inner items) ═══ */
.glass-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}
.glass-card:hover { border-color: rgba(59,130,246,0.3); background: rgba(255,255,255,0.06); }

/* ═══ SCORE RING SVG ═══ */
.score-ring-container { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.score-ring { transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 8; }
.score-ring-fill { fill: none; stroke: url(#scoreGradient); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 408; stroke-dashoffset: 408; transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.score-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring-value { font-size: 2.5rem; font-weight: 900; font-style: italic; color: white; line-height: 1; }
.score-ring-text { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 4px; }

/* ═══ BADGE TIERS ═══ */
.badge-tier { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-bronze { background: rgba(180,83,9,0.2); color: #d97706; border: 1px solid rgba(180,83,9,0.3); }
.badge-prata { background: rgba(148,163,184,0.2); color: #94a3b8; border: 1px solid rgba(148,163,184,0.3); }
.badge-ouro { background: rgba(234,179,8,0.2); color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.badge-diamante { background: rgba(139,92,246,0.2); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }

/* ═══ CUSTOM TOGGLE SWITCH ═══ */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.1); border-radius: 24px; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--accent-blue); box-shadow: 0 0 12px rgba(59,130,246,0.4); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ═══ TOGGLE ROW ═══ */
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.toggle-row:hover { border-color: rgba(59,130,246,0.2); background: rgba(255,255,255,0.05); }
.toggle-row span { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.7); }

/* ═══ TOAST SYSTEM ═══ */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(20px);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  max-width: 360px;
}
.toast-success { background: rgba(16,185,129,0.9); color: white; }
.toast-error { background: rgba(239,68,68,0.9); color: white; }
.toast-info { background: rgba(59,130,246,0.9); color: white; }
.toast-out { animation: toast-out 0.3s ease forwards; }

/* ═══ BUTTONS ═══ */
.btn-primary {
  background: linear-gradient(135deg, #0062ff, #00a8ff);
  box-shadow: 0 8px 25px -5px rgba(0,98,255,0.4);
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px -5px rgba(0,98,255,0.5); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-resgate {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 25px -5px rgba(16,185,129,0.5);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
}
.btn-resgate:hover { transform: scale(1.02); box-shadow: 0 0 30px rgba(16,185,129,0.4); }

.progress-bar-track { width: 100%; height: 10px; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #0062ff, #00d4ff); border-radius: 10px; box-shadow: 0 0 15px rgba(0,98,255,0.5); transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }

/* ═══ RENOVACAO CARD ═══ */
.card-renovacao {
  background: linear-gradient(145deg, #1e1b4b, #0f172a);
  border: 2px solid var(--accent-red);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  display: none;
  animation: pulse-border 2s infinite;
}
.qr-code-container { background: white; padding: 10px; border-radius: 15px; width: 160px; height: 160px; margin: 0 auto; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.qr-code-container img { max-width: 100%; height: auto; }

/* ═══ SECTION LABELS ═══ */
.section-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══ COPY FIELD ═══ */
.copy-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: 0.3s;
}
.copy-field:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.06); }
.copy-field-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.copy-field-row { display: flex; justify-content: space-between; align-items: center; }
.copy-field-value { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: white; }
.copy-field-icon { color: var(--accent-blue); font-size: 0.85rem; }

/* ═══ STATUS DOT ═══ */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.active { background: var(--accent-emerald); box-shadow: 0 0 8px rgba(16,185,129,0.6); animation: pulse-dot 2s infinite; }
.status-dot.expired { background: var(--accent-red); box-shadow: 0 0 8px rgba(239,68,68,0.6); }

/* ═══ HEADER ═══ */
.header-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-avatar { width: 52px; height: 52px; background: linear-gradient(135deg, #3b82f6, #06b6d4); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: white; box-shadow: 0 8px 20px rgba(59,130,246,0.3); }
.header-info h2 { font-size: 1.4rem; font-weight: 800; color: white; }
.header-info h2 span { color: var(--accent-blue); font-weight: 500; }
.header-badges { display: flex; gap: 8px; margin-top: 6px; align-items: center; flex-wrap: wrap; }
.header-right { display: flex; gap: 10px; align-items: center; }
.header-exp { display: flex; flex-direction: column; align-items: flex-end; margin-right: 10px; }
.header-exp-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.header-exp-value { font-size: 0.85rem; font-weight: 800; }
.exp-green { color: var(--accent-emerald); }
.exp-yellow { color: var(--accent-amber); }
.exp-red { color: var(--accent-red); }

/* ═══ BENTO GRID ═══ */
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.bento-full { grid-column: 1 / -1; }

/* ═══ DASHBOARD ═══ */
#dashboard { display: none; width: 100%; max-width: 1200px; margin: 2rem auto; padding: 0 20px; }

/* ═══ LOGIN ═══ */
#login-container { display: flex; width: 100%; max-width: 1300px; gap: 60px; align-items: center; z-index: 10; padding: 20px; }
#poster-area { flex: 1.5; display: flex; gap: 40px; align-items: center; text-align: left; }
.poster-img { width: 300px; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
.tag-serie { background: rgba(16,185,129,0.2); color: #10b981; padding: 6px 12px; border-radius: 6px; font-size: 10px; font-weight: 900; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.movie-title { font-size: 3rem; font-weight: 900; line-height: 1; color: white; margin-bottom: 5px; }
.movie-subtitle { font-size: 3rem; font-weight: 900; line-height: 1; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.movie-genre { color: #3b82f6; font-weight: 800; font-size: 13px; text-transform: uppercase; margin-bottom: 30px; letter-spacing: 1px; }
.movie-synopsis-title { font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.movie-synopsis-text { color: rgba(255,255,255,0.6); line-height: 1.6; font-size: 14px; max-width: 480px; }

/* ═══ PROFILE SELECTION ═══ */
#profile-selection { position: fixed; inset: 0; z-index: 50; background: rgba(3,7,18,0.95); display: none; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
#profiles-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; max-width: 600px; margin: 0 auto; }
.profile-card { flex: 0 1 calc(33.333% - 24px); min-width: 140px; max-width: 160px; }

/* ═══ SOCIAL BAR ═══ */
.social-bar { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 16px; margin-top: 28px; }
.social-links { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px; }
.social-link { flex: 1; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius-sm); transition: 0.3s; background: transparent; border: none; cursor: pointer; text-decoration: none; }
.social-link:hover { background: rgba(255,255,255,0.06); }
.social-link i { font-size: 1.2rem; }
.social-link span { font-size: 0.65rem; font-weight: 800; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: -0.02em; }
.social-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.08); align-self: center; }
.btn-suporte { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; border-radius: var(--radius-md); text-decoration: none; transition: 0.3s; }
.btn-suporte:hover { transform: translateY(-2px); }

/* ═══ FOOTER ═══ */
footer { margin-top: auto; padding: 2rem; width: 100%; text-align: center; z-index: 10; position: relative; }
.footer-logo { height: 70px; margin: 0 auto 10px; opacity: 0.7; display: block; transition: 0.3s; }
.footer-logo:hover { opacity: 1; }

/* ═══ STAT GRID ═══ */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-item { text-align: center; padding: 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
.stat-label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-size: 1.15rem; font-weight: 900; }

/* ═══ CHURN INDICATOR ═══ */
.churn-bar { height: 4px; border-radius: 4px; margin-top: 8px; }
.churn-low { background: linear-gradient(90deg, #10b981, #34d399); }
.churn-mid { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.churn-high { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ═══ ANIMATIONS ═══ */
@keyframes card-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes score-fill { from { stroke-dashoffset: 408; } }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.2); }
  50% { box-shadow: 0 0 35px rgba(59,130,246,0.4); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes pulse-border {
  0% { border-color: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  70% { border-color: #f87171; box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { border-color: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@keyframes toast-in { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.animate-card { animation: card-enter 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* ═══ SKELETON ═══ */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .social-bar { grid-template-columns: 1fr; }
  #dashboard { margin: 1rem 0; padding: 0 15px; }
  .header-premium { flex-direction: column; align-items: flex-start; padding: 20px; }
  .header-right { width: 100%; justify-content: space-between; }
  .header-exp { align-items: flex-start; }
  .social-links { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  #login-container { flex-direction: column; padding: 20px; text-align: center; gap: 30px; }
  #poster-area { flex-direction: column; gap: 20px; text-align: center; }
  .poster-img { width: 180px; margin: 0 auto; }
  .movie-title, .movie-subtitle { font-size: 1.8rem; }
  .movie-synopsis-text { font-size: 13px; margin: 0 auto; text-align: center; }
  .score-ring-container { width: 120px; height: 120px; }
  .score-ring-value { font-size: 2rem; }
}

/* ═══ NEON TEXT ═══ */
.neon-text { background: linear-gradient(135deg, #fff 50%, #3b82f6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ═══ INPUT STYLES ═══ */
.input-premium {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 0.85rem;
  outline: none;
  transition: 0.3s;
  font-family: inherit;
}
.input-premium:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.input-premium::placeholder { color: var(--text-muted); }
 .device-os-option.selected { border-color: rgba(59,130,246,0.65); background: rgba(59,130,246,0.12); }
 .device-os-option.selected span { color: white; }
