/* ============================================================
   CERBERUS VPN — DESIGN SYSTEM PREMIUM (IMAGE MATCH)
   ============================================================ */

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

:root {
  --bg-base: #0B0E17;
  --bg-dark: #050810;
  --bg-card: rgba(18, 22, 38, 0.6);
  --bg-card-hover: rgba(26, 32, 53, 0.8);
  
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  
  --grad-primary: linear-gradient(135deg, #A855F7 0%, #6366F1 50%, #EC4899 100%);
  --grad-btn: linear-gradient(90deg, #A855F7, #EC4899, #F97316);
  --grad-text: linear-gradient(90deg, #FFFFFF, #A5B4FC);

  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.4);
  
  --font: 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Background Glows */
.global-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 30% 70%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px; /* Pill shape */
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Typography */
.section-tag {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 0.5rem; text-align: center;
}
.section-title {
  font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 3rem;
  background: var(--grad-text); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
  position: fixed; top: 0; width: 100%; height: 80px;
  display: flex; align-items: center;
  border-bottom: 1px solid transparent; z-index: 100;
  transition: background 0.3s;
}
.navbar.scrolled {
  background: rgba(11, 14, 23, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 32px; }
.nav-logo span { font-weight: 700; color: #fff; font-size: 1.1rem; letter-spacing: 1px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.nav-login { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.nav-login:hover { color: #fff; }

/* Hero */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  display: flex; align-items: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  gap: 2rem;
}
.hero-title {
  font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.6;
}
.hero-actions { display: flex; gap: 1rem; }

.hero-visual {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex; justify-content: center; align-items: center;
}

.hero-phone-img {
  position: relative;
  z-index: 2;
  height: 650px;
  width: auto;
  object-fit: cover;
  border-radius: 20px;
  /* Fade out only the borders to blend with the background, leaving the phone untouched */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%), linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%), linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
}

/* Benefits */
.benefits { padding: 6rem 0; }
.benefits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
}
.benefit-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
}
.benefit-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}
.benefit-card:hover .benefit-icon {
  background: var(--grad-primary);
  color: #fff !important;
}
.benefit-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; color: #fff; }
.benefit-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Trust */
.trust { padding: 6rem 0; }
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.trust-col { display: flex; flex-direction: column; gap: 3rem; flex: 1; }
.trust-item { text-align: left; }
.trust-item.right { text-align: right; }
.trust-icon { font-size: 1.5rem; margin-bottom: 1rem; color: #A855F7; }
.trust-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.trust-desc { font-size: 0.9rem; color: var(--text-muted); }

.trust-center {
  flex: 0 0 400px;
  height: 400px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  filter: drop-shadow(0 0 30px rgba(168,85,247,0.3));
}
.trust-shield-glow {
  position: absolute;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 60%);
  z-index: 1;
}
.trust-shield {
  width: 250px; height: 290px;
  background: linear-gradient(135deg, rgba(168,85,247,0.5), rgba(99,102,241,0.1));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 2;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.trust-shield::before {
  content: "";
  position: absolute;
  top: 1px; left: 1px; right: 1px; bottom: 1px;
  background: #ffffff; /* very dark blue/black inside */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
}
.trust-shield img { width: 140px; z-index: 10; }

/* Testimonials */
.testimonials { padding: 6rem 0; }
.test-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.test-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px; padding: 1.5rem;
}
.test-user { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.test-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--text-muted); }
.test-name { font-size: 0.9rem; font-weight: 600; color: #fff; }
.test-role { font-size: 0.75rem; color: var(--text-muted); }
.test-quote { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* CTA Final */
.cta-final { padding: 8rem 0; text-align: center; position: relative; }
.cta-glow { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%); z-index: -1; }
.cta-title { font-size: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 2rem; }

/* Footer */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border-light); }
.footer-inner { display: flex; justify-content: space-between; margin-bottom: 4rem; }
.footer-brand { max-width: 300px; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-logo img { height: 24px; }
.footer-logo span { color: #fff; font-weight: 600; }
.footer-socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-socials a { color: var(--text-muted); text-decoration: none; font-size: 1.2rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col-title { color: #fff; font-weight: 600; margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.85rem; padding-top: 2rem; border-top: 1px solid var(--border-light); }

/* ============================================================
   AUTHENTICATION SCREENS (LOGIN, REGISTER, 2FA)
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.1);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
}
.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.auth-logo img {
  height: 48px;
}
.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.auth-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.auth-form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.auth-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(11, 14, 23, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  transition: all 0.3s ease;
}
.auth-input:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
  background: rgba(15, 20, 35, 0.9);
}
.auth-btn {
  width: 100%;
  padding: 0.9rem;
  margin-top: 1rem;
  font-size: 1rem;
}
.auth-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: #A855F7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.auth-footer a:hover {
  color: #fff;
}
.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   DASHBOARD PANEL
   ============================================================ */
.dashboard-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg-dark);
}

/* ---- Sidebar (Desktop) ---- */
.dash-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}
.dash-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}
.dash-logo img { height: 36px; }
.dash-logo span {
  font-size: 1rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.75rem;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  text-decoration: none;
}
.dash-nav-item:hover {
  background: rgba(168, 85, 247, 0.08);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.15);
}
.dash-nav-item.active {
  background: rgba(168, 85, 247, 0.15);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.35);
}
.dash-nav-item.active .dash-nav-icon { color: #A855F7; }
.dash-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: color 0.25s;
}
.dash-nav-label { font-size: 0.9rem; }

.dash-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.dash-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.dash-user-name { font-size: 0.85rem; font-weight: 600; color: #fff; }
.dash-user-role { font-size: 0.75rem; color: var(--text-muted); }

/* ---- Main Content ---- */
.dash-content {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.dash-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.dash-page-title span {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ---- Cards de Estatísticas ---- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  width: 44px; height: 44px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #A855F7;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-trend {
  font-size: 0.75rem;
  color: #34D399;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---- Generic Dash Section Card ---- */
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.dash-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
}
.dash-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-light);
}
.dash-table td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: #E2E8F0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: rgba(168, 85, 247, 0.04); }
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green { background: rgba(52, 211, 153, 0.1); color: #34D399; }
.badge-yellow { background: rgba(251, 191, 36, 0.1); color: #FBBF24; }
.badge-red { background: rgba(239, 68, 68, 0.1); color: #F87171; }

/* ---- Bottom Nav (Mobile) ---- */
.dash-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 68px;
  background: rgba(11, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  z-index: 200;
  padding: 0 0.5rem;
}
.dash-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}
.dash-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s;
  flex: 1;
  text-decoration: none;
}
.dash-bottom-item.active { color: #A855F7; }
.dash-bottom-item.active .dash-bottom-indicator {
  width: 24px; height: 3px;
  background: #A855F7;
  border-radius: 2px;
  margin-top: 2px;
}
.dash-bottom-icon { width: 22px; height: 22px; }
.dash-bottom-label { font-size: 0.65rem; font-weight: 600; }

/* ============================================================
   RESPONSIVE (MOBILE)
   ============================================================ */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-title { font-size: 2.8rem; }
  .hero-actions { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  
  .trust-inner { flex-direction: column; }
  .trust-center {
    flex: 0 0 300px; height: 300px;
    transform: scale(0.85);
  }
  .trust-item { text-align: center !important; }
  .trust-icon { text-align: center; margin: 0 auto 1rem; }
  
  .test-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-login { display: none; }
  .nav-logo span { display: none; }
  
  .section-title { font-size: 2rem; }
  .hero-title { font-size: 2.2rem; }
  .hero { padding-top: 100px; }
  .hero-phone-img { height: 400px; }
  
  .benefits-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  
  .footer-inner { flex-direction: column; gap: 2rem; text-align: center; margin-bottom: 2rem; }
  .footer-brand { margin: 0 auto; }
  .footer-logo { justify-content: center; }
  .footer-socials { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .trust-center { transform: scale(0.7); margin: -40px 0; }
}

/* Dashboard Responsive */
@media (max-width: 768px) {
  .dash-sidebar { display: none; }
  .dash-bottom-nav { display: block; }
  .dash-content { margin-left: 0; padding: 1rem; padding-bottom: 80px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-page-title { font-size: 1.3rem; }
}
