/* ==========================================================================
   NOX REELSSHORTS - DESIGN SYSTEM ULTRA-PREMIUM (DARK + NEON GREEN)
   ========================================================================== */

:root {
  --nox-bg: #070908;
  --nox-surface: #0d120f;
  --nox-card: rgba(18, 26, 21, 0.7);
  --nox-card-hover: rgba(24, 38, 29, 0.85);
  --nox-border: rgba(34, 197, 94, 0.15);
  --nox-border-hover: rgba(34, 197, 94, 0.4);

  --nox-green: #22c55e;
  --nox-green-glow: #4ade80;
  --nox-green-dark: #15803d;
  --nox-accent: #10b981;
  --nox-gold: #fbbf24;

  --nox-text: #f0fdf4;
  --nox-text-muted: #86efac;
  --nox-text-dim: #65a30d;
  --nox-gray: #9ca3af;

  --nox-radius-sm: 8px;
  --nox-radius-md: 16px;
  --nox-radius-lg: 24px;
  --nox-radius-full: 9999px;

  --nox-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  --nox-glow: 0 0 30px rgba(34, 197, 94, 0.25);
  --nox-glow-lg: 0 0 50px rgba(34, 197, 94, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--nox-bg);
  color: var(--nox-text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(34, 197, 94, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #070908;
}
::-webkit-scrollbar-thumb {
  background: #14532d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--nox-green);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.nox-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(7, 9, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nox-border);
}

.nox-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nox-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.45);
}

.nox-brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
}
.nox-brand-title span {
  color: var(--nox-green);
}

.nox-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nox-nav-link {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}
.nox-nav-link:hover {
  color: var(--nox-green);
}

/* ==========================================================================
   BOTÕES ULTRA-PREMIUM
   ========================================================================== */
.btn-nox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--nox-radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.btn-nox-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
}
.btn-nox-primary:hover {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.65);
}

.btn-nox-outline {
  background: rgba(34, 197, 94, 0.08);
  color: var(--nox-green-glow);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.btn-nox-outline:hover {
  background: rgba(34, 197, 94, 0.16);
  border-color: var(--nox-green);
}

.btn-nox-glow {
  animation: noxBtnPulse 2s infinite;
}

@keyframes noxBtnPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 35px rgba(34, 197, 94, 0.75);
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.nox-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 80px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.nox-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--nox-radius-full);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--nox-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.nox-hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #fff;
}
.nox-hero h1 span {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nox-hero p {
  font-size: 1.15rem;
  color: #9ca3af;
  margin-bottom: 32px;
  max-width: 580px;
}

.nox-hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.nox-hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--nox-border);
}

.nox-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d1d5db;
}
.nox-check-item i {
  color: var(--nox-green);
}

/* Smartphone Mockup com Screenshots reais */
.nox-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.nox-phone-frame {
  width: 290px;
  height: 580px;
  background: #000;
  border-radius: 42px;
  border: 8px solid #1e2922;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), var(--nox-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nox-phone-notch {
  position: absolute;
  top: 10px;
  width: 100px;
  height: 18px;
  background: #1e2922;
  border-radius: 12px;
  z-index: 10;
}

.nox-phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

/* Cards Flutuantes */
.nox-float-card {
  position: absolute;
  background: rgba(13, 18, 15, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--nox-border);
  padding: 12px 18px;
  border-radius: var(--nox-radius-md);
  box-shadow: var(--nox-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 15;
}

.nox-float-1 {
  top: 15%;
  left: -20px;
  animation: floatAnim1 4s ease-in-out infinite;
}

.nox-float-2 {
  bottom: 18%;
  right: -25px;
  animation: floatAnim2 4.5s ease-in-out infinite;
}

@keyframes floatAnim1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatAnim2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.nox-float-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--nox-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nox-float-text strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}
.nox-float-text small {
  font-size: 0.72rem;
  color: var(--nox-gray);
}

/* ==========================================================================
   CARROSSEL DE POSTERS DE REELSSHORTS
   ========================================================================== */
.nox-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
}

.nox-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.nox-section-header h2 {
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.nox-section-header h2 span {
  color: var(--nox-green);
}
.nox-section-header p {
  color: var(--nox-gray);
  font-size: 1rem;
}

/* Grid de Vitrine de Curtas */
.nox-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nox-gallery-card {
  background: var(--nox-surface);
  border: 1px solid var(--nox-border);
  border-radius: var(--nox-radius-lg);
  overflow: hidden;
  box-shadow: var(--nox-shadow);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.nox-gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--nox-green);
  box-shadow: var(--nox-glow);
}

.nox-gallery-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.nox-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 8, 0.98) 25%, rgba(7, 9, 8, 0.3) 60%, transparent 85%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.nox-gallery-tag {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--nox-green);
  color: #052e16;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 4px;
  margin-bottom: 8px;
}

.nox-gallery-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.nox-gallery-sub {
  font-size: 0.82rem;
  color: #d1d5db;
}

/* ==========================================================================
   CARDS DE PLANOS E PREÇOS
   ========================================================================== */
.nox-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.nox-plan-card {
  background: var(--nox-card);
  border: 1px solid var(--nox-border);
  backdrop-filter: blur(12px);
  border-radius: var(--nox-radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.nox-plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--nox-green);
  background: var(--nox-card-hover);
}

.nox-plan-card.popular {
  border: 2px solid var(--nox-green);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.25);
}

.nox-plan-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--nox-radius-full);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nox-plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.nox-plan-desc {
  font-size: 0.82rem;
  color: var(--nox-gray);
  margin-bottom: 20px;
}

.nox-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.nox-plan-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nox-green);
}

.nox-plan-val {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.nox-plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex: 1;
}

.nox-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #d1d5db;
}

.nox-plan-features li i {
  color: var(--nox-green);
  font-size: 0.95rem;
}

/* ==========================================================================
   MODAL DE TESTE GRÁTIS
   ========================================================================== */
.nox-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.nox-modal-box {
  background: var(--nox-surface);
  border: 1px solid var(--nox-border);
  box-shadow: 0 0 50px rgba(34, 197, 94, 0.25);
  border-radius: var(--nox-radius-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.nox-modal-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--nox-border);
}

.nox-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nox-modal-title i {
  color: var(--nox-green);
}

.nox-modal-close {
  background: none;
  border: none;
  color: var(--nox-gray);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.nox-modal-close:hover {
  color: #fff;
}

.nox-modal-body {
  padding: 28px 24px;
}

.nox-form-group {
  margin-bottom: 18px;
}

.nox-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #d1d5db;
  margin-bottom: 8px;
}

.nox-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--nox-border);
  padding: 14px 16px;
  border-radius: var(--nox-radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.nox-input:focus {
  border-color: var(--nox-green);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.nox-alert-notice {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--nox-radius-sm);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: #86efac;
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

/* ==========================================================================
   PAINEL PÚBLICO DO CLIENTE (/cliente/:token)
   ========================================================================== */
.nox-client-view {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 16px;
}

.nox-client-card {
  background: var(--nox-surface);
  border: 1px solid var(--nox-border);
  border-radius: var(--nox-radius-lg);
  padding: 32px 28px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.nox-client-header {
  text-align: center;
  margin-bottom: 28px;
}

.nox-client-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--nox-radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nox-client-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--nox-green);
  border: 1px solid var(--nox-green);
}

.nox-client-badge.expired {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid #ef4444;
}

.nox-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--nox-border);
  font-size: 0.9rem;
}

.nox-info-row span {
  color: var(--nox-gray);
}
.nox-info-row strong {
  color: #fff;
}

/* PIX Modal */
.nox-pix-container {
  text-align: center;
  padding: 20px;
}

.nox-pix-qr {
  max-width: 220px;
  border-radius: 12px;
  margin: 16px auto;
  display: block;
  border: 4px solid #fff;
}

.nox-copypaste-box {
  background: #000;
  padding: 10px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #86efac;
  word-break: break-all;
  max-height: 80px;
  overflow-y: auto;
  border: 1px solid var(--nox-border);
  margin-bottom: 14px;
}

/* ==========================================================================
   PAINEL ADMINISTRATIVO (/admin)
   ========================================================================== */
.nox-admin-layout {
  display: flex;
  min-height: 100vh;
}

.nox-admin-sidebar {
  width: 260px;
  background: var(--nox-surface);
  border-right: 1px solid var(--nox-border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.nox-admin-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.nox-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.nox-stat-card {
  background: var(--nox-card);
  border: 1px solid var(--nox-border);
  padding: 20px;
  border-radius: var(--nox-radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.nox-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--nox-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.nox-stat-info small {
  color: var(--nox-gray);
  font-size: 0.78rem;
  font-weight: 600;
  display: block;
}

.nox-stat-info strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

/* Tabelas Admin */
.nox-table-card {
  background: var(--nox-card);
  border: 1px solid var(--nox-border);
  border-radius: var(--nox-radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.nox-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.nox-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.78rem;
  color: var(--nox-gray);
  border-bottom: 1px solid var(--nox-border);
  text-transform: uppercase;
}

.nox-table td {
  padding: 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   RESPONSIVIDADE 100% MOBILE-FIRST E TABLETS
   ========================================================================== */
@media (max-width: 992px) {
  .nox-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px 60px 20px;
    gap: 40px;
  }
  .nox-hero p {
    margin: 0 auto 28px auto;
  }
  .nox-hero-cta {
    justify-content: center;
  }
  .nox-hero-checks {
    justify-content: center;
  }
  .nox-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nox-admin-layout {
    flex-direction: column;
  }
  .nox-admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--nox-border);
  }
}

@media (max-width: 768px) {
  .nox-navbar {
    padding: 12px 18px;
  }
  .nox-brand-title {
    font-size: 1.25rem;
  }
  .nox-brand-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .nox-nav-links {
    gap: 8px;
  }
  .nox-nav-link {
    display: none; /* Em telas menores, foca no botão de ação principal */
  }

  /* Botão elegante e proporcional no topo mobile */
  .nox-navbar .btn-nox {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.3);
  }
  .nox-navbar .btn-nox i {
    font-size: 0.75rem;
  }

  .nox-hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
  }
  .nox-hero p {
    font-size: 0.98rem;
  }
  .nox-hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .nox-hero-cta .btn-nox {
    width: 100%;
    padding: 14px 20px;
  }

  .nox-hero-checks {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Mockup proporcional para caber na tela do celular perfeitamente */
  .nox-phone-frame {
    width: 250px;
    height: 500px;
    border-width: 6px;
    border-radius: 36px;
  }
  .nox-phone-screen {
    border-radius: 30px;
  }
  .nox-float-card {
    padding: 8px 12px;
  }
  .nox-float-1 {
    left: -10px;
    top: 8%;
  }
  .nox-float-2 {
    right: -10px;
    bottom: 8%;
  }
  .nox-float-text strong {
    font-size: 0.78rem;
  }
  .nox-float-text small {
    font-size: 0.65rem;
  }

  .nox-section {
    padding: 50px 18px;
  }
  .nox-section-header h2 {
    font-size: 1.8rem;
  }
  .nox-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .nox-gallery-img {
    height: 420px;
  }

  /* Planos Grid no mobile */
  .nox-plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nox-plan-card {
    padding: 24px 18px;
  }
  .nox-plan-val {
    font-size: 2.2rem;
  }

  /* Modal no mobile */
  .nox-modal-box {
    width: 95%;
    border-radius: 18px;
  }
  .nox-modal-header {
    padding: 18px 20px;
  }
  .nox-modal-body {
    padding: 20px 18px;
  }

  /* Página do Cliente no mobile */
  .nox-client-view {
    margin: 20px auto;
    padding: 0 12px;
  }
  .nox-client-card {
    padding: 24px 18px;
  }
}

@media (max-width: 480px) {
  .nox-hero h1 {
    font-size: 1.85rem;
  }
  .nox-phone-frame {
    width: 220px;
    height: 440px;
  }
}
