/* ==========================================================================
   Ayri Creative Solution — Netflix Code Bot
   Premium SaaS Design System — High Animation Edition
   ========================================================================== */

:root {
  --bg: #050508;
  --bg-2: #0a0a10;
  --panel: rgba(18, 18, 28, 0.8);
  --panel-solid: #12121c;
  --panel-2: #1a1a28;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #f0f0f5;
  --muted: #7a7a90;
  --accent: #e50914;
  --accent-2: #ff2d3a;
  --accent-glow: rgba(229, 9, 20, 0.4);
  --green: #00d68f;
  --amber: #f4b740;
  --purple: #7b61ff;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(229, 9, 20, 0.15);
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================================================
   Background Effects — Immersive Animated Particles
   ========================================================================== */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -250px; left: -150px;
  animation: floatOrb1 22s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.25) 0%, transparent 70%);
  top: 35%; right: -120px;
  animation: floatOrb2 28s ease-in-out infinite;
}
.orb-3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, transparent 70%);
  bottom: -200px; left: 25%;
  animation: floatOrb3 32s ease-in-out infinite;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(40px, 30px) scale(1.08) rotate(2deg); }
  50% { transform: translate(-20px, 50px) scale(0.95) rotate(-1deg); }
  75% { transform: translate(30px, -20px) scale(1.03) rotate(1deg); }
}
@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.1); }
  66% { transform: translate(30px, -40px) scale(0.9); }
}
@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.05); }
}
@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ==========================================================================
   Header — Glassmorphism Nav
   ========================================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 40px;
  animation: slideDown 0.8s var(--transition) both;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-new {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.brand-name {
  display: block;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-tag {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-nav {
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: all .3s var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(229,9,20,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.btn-nav:hover {
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 0 20px rgba(229,9,20,0.1);
}
.btn-nav:hover::before { opacity: 1; }

/* ==========================================================================
   Hero Section — Staggered Entry
   ========================================================================== */
.hero {
  text-align: center;
  padding: 30px 0 50px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 214, 143, 0.06);
  border: 1px solid rgba(0, 214, 143, 0.15);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 24px;
  animation: badgeFloat 3s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--green);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--green); }
  50% { opacity: 0.5; transform: scale(1.4); box-shadow: 0 0 16px var(--green); }
}

.hero-title {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  animation: titleReveal 1s var(--transition) 0.2s both;
}
@keyframes titleReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b6b 40%, #ffa500 70%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--transition) 0.4s both;
}
.hero-desc strong { color: var(--text); }

/* ==========================================================================
   Main Form Card — Glass with Animated Border
   ========================================================================== */
.main-form-section {
  max-width: 480px;
  margin: 0 auto 60px;
}

.form-card {
  position: relative;
  background: rgba(18, 18, 28, 0.9);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: var(--shadow), 0 0 60px rgba(229, 9, 20, 0.05);
  overflow: hidden;
  animation: cardEntry 0.9s var(--transition) 0.5s both;
}
.form-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 60deg, transparent 120deg);
  animation: borderRotate 6s linear infinite;
  z-index: -1;
  opacity: 0.3;
}
.form-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background: rgba(18, 18, 28, 0.95);
  z-index: -1;
}

@keyframes borderRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes cardEntry {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.form-icon {
  font-size: 42px;
  text-align: center;
  margin-bottom: 14px;
  animation: iconBounce 2s ease-in-out infinite;
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.form-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}
.form-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

/* ==========================================================================
   Buttons — Animated with Shine & Glow
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: all .3s var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left .5s ease;
}
.btn:hover::before { left: 100%; }
.btn:hover { background: var(--accent-2); box-shadow: 0 4px 24px var(--accent-glow); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--panel-2); border: 1px solid var(--border); }
.btn.secondary:hover { background: #252535; border-color: var(--border-hover); box-shadow: none; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn.ghost:hover { background: rgba(255,255,255,0.03); border-color: var(--border-hover); color: var(--text); }
.btn.danger { background: #7a1418; }
.btn.danger:hover { background: #97191e; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.glow-btn {
  box-shadow: 0 0 20px rgba(229,9,20,0.2);
  animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(229,9,20,0.2); }
  50% { box-shadow: 0 0 30px rgba(229,9,20,0.4); }
}

/* ==========================================================================
   Inputs — Focus Glow Animation
   ========================================================================== */
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: all .3s var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px rgba(229,9,20,0.1);
  transform: scale(1.01);
}
.input-glow:focus {
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 30px rgba(229,9,20,0.15);
}

.error-text { color: var(--accent); font-size: 13px; margin: 8px 0 12px; min-height: 18px; }

/* ==========================================================================
   Choose Code Type Cards
   ========================================================================== */
.choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.choose-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  color: var(--text);
  transition: all .3s var(--transition);
  position: relative;
  overflow: hidden;
}
.choose-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(229,9,20,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.choose-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.choose-card:hover::before { opacity: 1; }
.choose-card:active { transform: translateY(-2px) scale(0.99); }
.choose-icon { font-size: 32px; margin-bottom: 10px; transition: transform .3s ease; }
.choose-card:hover .choose-icon { transform: scale(1.15) rotate(5deg); }
.choose-label { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.choose-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ==========================================================================
   Loading Spinner — Triple Ring
   ========================================================================== */
.loader-ring {
  width: 50px; height: 50px;
  margin: 24px auto;
  position: relative;
}
.loader-ring::before,
.loader-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 50%;
}
.loader-ring::before {
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
.loader-ring::after {
  inset: 6px;
  border-bottom-color: var(--purple);
  animation: spinReverse 1.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

/* ==========================================================================
   Result Display — Code Reveal
   ========================================================================== */
.result-box {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid rgba(229,9,20,0.2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(229,9,20,0.04) 0%, rgba(123,97,255,0.02) 100%);
  position: relative;
  overflow: hidden;
}
.result-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--purple), transparent);
  animation: scanLine 3s ease-in-out infinite;
}
@keyframes scanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.result-label { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.result-code {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-2) 60%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
  animation: codeReveal 0.6s var(--transition), codeGlow 2s ease-in-out 0.6s infinite;
}
@keyframes codeReveal {
  from { opacity: 0; transform: scale(0.7) rotateX(20deg); filter: blur(8px); }
  to { opacity: 1; transform: scale(1) rotateX(0); filter: blur(0); }
}
@keyframes codeGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(229,9,20,0.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(229,9,20,0.6)); }
}
.result-date { color: var(--muted); font-size: 13px; }

/* Household confirmation box */
.household-box { text-align: center; }
.household-icon {
  font-size: 44px;
  margin-bottom: 10px;
  animation: iconBounce 2s ease-in-out infinite;
}
.household-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0 18px;
}
.household-text strong { color: var(--text); }
#result-household-link { margin-bottom: 14px; }

/* ==========================================================================
   Info Section
   ========================================================================== */
.info-section {
  margin-bottom: 60px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.info-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all .4s var(--transition);
  position: relative;
  overflow: hidden;
}
.info-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 340deg, rgba(229,9,20,0.05) 360deg);
  animation: cardShine 8s linear infinite;
  opacity: 0;
  transition: opacity .3s ease;
}
.info-card:hover::after { opacity: 1; }
.info-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
@keyframes cardShine {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.info-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: inline-block;
  animation: floatIcon 3s ease-in-out infinite;
}
.info-card:nth-child(2) .info-icon { animation-delay: 0.5s; }
.info-card:nth-child(3) .info-icon { animation-delay: 1s; }
@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}
.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.footer strong { color: var(--text); }

/* ==========================================================================
   Animations — Staggered Entry System
   ========================================================================== */
.fade-in {
  animation: fadeIn 0.8s var(--transition) both;
}
.fade-in-up {
  animation: fadeInUp 0.9s var(--transition) both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ==========================================================================
   Modal — Glass with Animated Entry
   ========================================================================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; z-index: 40;
  animation: backdropIn .25s ease;
}
.modal-backdrop.hidden { display: none; }
@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.glass-modal {
  background: rgba(18, 18, 28, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%; max-width: 520px;
  padding: 30px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow), var(--shadow-glow);
  position: relative;
  animation: modalIn .4s var(--transition);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); filter: blur(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.modal-x {
  position: absolute;
  top: 16px; right: 18px;
  background: none; border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
}
.modal-x:hover { background: rgba(255,255,255,0.05); color: var(--text); transform: rotate(90deg); }

.modal h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.modal-footer { margin-top: 20px; display: flex; gap: 10px; }

/* ==========================================================================
   Toast — Slide Up
   ========================================================================== */
#toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel-solid);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: all .3s var(--transition);
  pointer-events: none;
  z-index: 50;
  font-size: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }

/* ==========================================================================
   Utilities
   ========================================================================== */
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.spacer { height: 14px; }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.check input { width: auto; }

.pill {
  display: inline-block;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 500;
  transition: all .2s ease;
}
.pill.ok { color: var(--green); border-color: rgba(0,214,143,0.2); background: rgba(0,214,143,0.05); }
.pill.off { color: var(--muted); }
.pill.public { color: var(--green); border-color: rgba(0,214,143,0.2); background: rgba(0,214,143,0.05); }
.pill.private { color: var(--amber); border-color: rgba(244,183,64,0.2); background: rgba(244,183,64,0.05); }

/* ==========================================================================
   Admin-specific Styles
   ========================================================================== */
.card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  transition: all .3s var(--transition);
}
.card:hover { border-color: var(--border-hover); }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* Admin brand header */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.brand .logo {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 26px;
}
.brand .sub { color: var(--muted); font-size: 14px; }

h1 { font-size: 28px; margin: 18px 0 6px; }
h2 { font-size: 19px; margin: 0 0 14px; }

/* Account cards (old style for public - no longer used but kept for admin) */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.account-btn {
  position: relative;
  text-align: left;
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  cursor: pointer;
  color: var(--text);
  transition: all .3s var(--transition);
  overflow: hidden;
}
.account-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(229,9,20,0.3);
  box-shadow: 0 12px 40px rgba(229,9,20,0.1);
}
.account-btn .name { font-weight: 700; font-size: 16px; }
.account-btn .note { color: var(--muted); font-size: 13px; margin-top: 6px; }
.account-btn .lock-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--amber);
  background: rgba(244,183,64,0.08); border: 1px solid rgba(244,183,64,0.15);
  border-radius: 6px; padding: 3px 8px; margin-top: 10px;
}

/* Responsive */
@media (max-width: 640px) {
  .choose-grid { grid-template-columns: 1fr; }
  .header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .info-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .result-code { font-size: 36px; letter-spacing: 4px; }
}

/* ==========================================================================
   NETFLIX-STYLE LANDING PAGE
   ========================================================================== */
body.landing { background: #000; }

.nflx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  position: relative;
  z-index: 3;
}
.nflx-logo {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(229,9,20,0.5);
  transition: transform .2s ease;
}
.nflx-logo:hover { transform: scale(1.05); text-decoration: none; }

/* Hero with cinematic Netflix vignette */
.nflx-hero {
  position: relative;
  margin: 0 -20px;
  padding: 50px 20px 70px;
  text-align: center;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(229,9,20,0.35) 0%, rgba(120,0,5,0.15) 35%, transparent 70%),
    linear-gradient(180deg, #1a0205 0%, #000 75%);
  border-bottom: 8px solid #222;
  box-shadow: inset 0 -120px 120px -60px rgba(0,0,0,0.9);
}
.nflx-hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 10%, transparent 70%);
  pointer-events: none;
}
.nflx-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}
.nflx-hero-title {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.nflx-hero-sub {
  font-size: clamp(17px, 2.5vw, 22px);
  color: #fff;
  margin-bottom: 8px;
  font-weight: 500;
}
.nflx-hero-cta-label {
  font-size: 15px;
  color: #d2d2d2;
  margin-bottom: 24px;
}

/* Divider strip like Netflix sections */
.nflx-divider {
  height: 8px;
  background: #222;
  margin: 0 -20px;
}

/* Feature rows */
.nflx-features { padding: 10px 0; }
.nflx-feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px 0;
  border-bottom: 8px solid #222;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.nflx-feature-row.reverse { flex-direction: row-reverse; }
.nflx-feature-text { flex: 1; }
.nflx-feature-text h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.nflx-feature-text p {
  font-size: clamp(16px, 2.2vw, 20px);
  color: #d2d2d2;
  line-height: 1.5;
}
.nflx-feature-visual {
  flex: 0 0 220px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  background: radial-gradient(circle at 50% 40%, rgba(229,9,20,0.18) 0%, transparent 70%);
  border-radius: 16px;
  animation: floatIcon 4s ease-in-out infinite;
}

@media (max-width: 740px) {
  .nflx-feature-row, .nflx-feature-row.reverse {
    flex-direction: column;
    text-align: center;
    padding: 36px 20px;
  }
  .nflx-feature-visual { flex-basis: auto; width: 100%; height: 130px; font-size: 64px; }
}

/* ==========================================================================
   NETFLIX-STYLE ADMIN DASHBOARD
   ========================================================================== */
body.admin-nflx { background: #141414; }
.admin-nflx .admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 28px;
}
.admin-nflx .nflx-logo { font-size: 28px; }
.admin-nflx .section-card {
  background: #1c1c1c;
  border: 1px solid #303030;
  border-radius: 8px;
}
.admin-nflx .dash-stat {
  background: #1c1c1c;
  border: 1px solid #303030;
  border-radius: 8px;
}
.admin-nflx .dash-stat .val {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Log pagination */
.logs-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.logs-pagination .muted { font-size: 13px; }
.logs-pagination .btn:disabled { opacity: 0.35; cursor: not-allowed; }
@media (max-width: 520px) {
  .logs-pagination { flex-direction: column; gap: 8px; }
}
