:root {
  --bg: #0b0b0f;
  --text: #ffffff;
  --muted: #a1a1aa;
  --card: #111114;
  --border: #26262a;
  --accent: #e5e7eb;
  --accent-text: #111827;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000000;
  position: relative;
}

.app::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(1px 1px at 15% 90%, white, transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 40% 85%, rgba(255, 255, 255, 0.6), transparent);
  background-size: 200% 200%, 200% 200%, 300% 300%, 250% 250%, 200% 200%, 280% 280%, 220% 220%, 260% 260%, 240% 240%;
  background-position: 0% 0%, 40% 40%, 50% 50%, 80% 10%, 90% 60%, 33% 80%, 15% 90%, 70% 20%, 40% 85%;
  animation: stars 120s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.app::after {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle 150px at 25% 35%, transparent 30%, rgba(0, 0, 0, 0.9) 35%, rgba(59, 130, 246, 0.3) 40%, rgba(139, 92, 246, 0.2) 50%, transparent 70%),
    radial-gradient(circle 120px at 75% 65%, transparent 30%, rgba(0, 0, 0, 0.9) 35%, rgba(139, 92, 246, 0.3) 40%, rgba(236, 72, 153, 0.2) 50%, transparent 70%),
    radial-gradient(circle 100px at 50% 80%, transparent 30%, rgba(0, 0, 0, 0.9) 35%, rgba(59, 130, 246, 0.25) 40%, rgba(16, 185, 129, 0.15) 50%, transparent 70%);
  animation: blackHoles 30s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.app > * {
  position: relative;
  z-index: 1;
}

/* Classes utilitárias para responsividade */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
  
  .desktop-only {
    display: block !important;
  }
  
  .app {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
  }
}

/* Header apenas para mobile */
.header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-menu-toggle {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-menu-toggle:active {
  background: rgba(255, 255, 255, 0.1);
}

.header .logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.header .logo svg {
  width: 40px;
  height: 40px;
}

.header .brand {
  font-size: 18px;
  font-weight: 700;
}

.hero {
  padding-top: 64px;
}

.logo {
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--text);
  opacity: 0.92;
}

.brand {
  font-weight: 600;
  font-size: 16px;
  opacity: 0.85;
}

/* Sidebar para desktop */
.sidebar {
  width: 280px;
  background: rgba(17, 17, 20, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  overflow-y: auto;
  transition: width 0.3s ease, transform 0.3s ease;
}

.sidebar-collapsed {
  width: 80px;
}

.sidebar-collapsed .sidebar-header .logo .brand,
.sidebar-collapsed .nav-item span {
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.sidebar-collapsed .sidebar-header .logo {
  justify-content: center;
}

.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

.sidebar-collapsed .sidebar-header {
  padding: 24px 12px;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-toggle {
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.sidebar-collapsed .sidebar-toggle {
  margin: 0 auto;
}

.sidebar-collapsed .sidebar-header {
  flex-direction: column;
  padding: 24px 12px;
}

.sidebar-header .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex: 1;
  transition: all 0.3s ease;
}

.sidebar-header .logo svg {
  width: 56px;
  height: 56px;
  opacity: 0.95;
}

.sidebar-header .brand {
  font-size: 20px;
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  font-family: inherit;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.nav-item.active svg {
  color: #60a5fa;
}

.nav-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.nav-item span {
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.nav-item-danger {
  color: rgba(239, 68, 68, 0.8);
}

.nav-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

/* Overlay para mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 199;
  transition: opacity 0.3s ease;
}

/* Conteúdo principal */
.main-content {
  overflow-y: auto;
  height: 100vh;
  background: transparent;
  padding-bottom: 80px; /* Espaço para bottom-nav no mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.main-content > * {
  position: relative;
  z-index: 1;
}

@keyframes blackHoles {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1) rotate(0deg);
  }
  33% {
    opacity: 0.8;
    transform: scale(1.1) rotate(120deg);
  }
  66% {
    opacity: 0.7;
    transform: scale(0.95) rotate(240deg);
  }
}

@media (min-width: 769px) {
  .main-content {
    margin-left: 280px;
    padding-bottom: 0;
    transition: margin-left 0.3s ease;
  }
  
  .sidebar-collapsed ~ .main-content {
    margin-left: 80px;
  }
}

/* Botão flutuante para reabrir sidebar colapsado */
.floating-sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background: rgba(17, 17, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 199;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.floating-sidebar-toggle:hover {
  background: rgba(17, 17, 20, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.floating-sidebar-toggle:not(.hidden) {
  display: flex;
}

@media (min-width: 769px) {
  .floating-sidebar-toggle.desktop-only:not(.hidden) {
    display: flex;
  }
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
}

@media (min-width: 769px) {
  .content-wrapper {
    padding: 48px 40px;
    text-align: left;
  }
}

/* Estilos antigos mantidos para compatibilidade */
.content {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 20px 120px;
  text-align: center;
}

.title {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  margin: 18px 0 8px;
}

@media (min-width: 769px) {
  .title {
    font-size: 42px;
    margin: 0 0 8px;
  }
}

.splash {
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 14px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0 18px;
}

.card {
  background: var(--card);
  border: 1.5px dashed var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .card {
    padding: 32px;
    text-align: left;
  }
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 8px;
}

.card-text {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 14px;
}

.btn {
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-top: none;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  z-index: 150;
}

@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
}

.tray {
  background: #101012;
  border-radius: 18px;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.icon-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  width: 44px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  cursor: pointer;
}

.icon-btn:active {
  transform: translateY(1px);
}

#buy-button {
  width: fit-content;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 99;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.8);
  padding-top: 160px;
}

.modal:not(.hidden) .modal-panel {
  animation: modalSlideUp 0.35s ease forwards;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 160px);
  max-height: calc(100vh - 160px);
  background: #0f0f12;
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  padding: 20px 20px 100px;
  color: var(--text);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-panel::-webkit-scrollbar {
  display: none;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hidden {
  display: none !important;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 11;
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 24px;
  opacity: 0.7;
}
.modal-close:hover {
  opacity: 1;
}

.modal-logo {
  display: none;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.modal-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.4;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-of-type {
  border-bottom: none;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.badge {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border-radius: 12px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 13px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 12px;
}

.input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color .15s ease, background .15s ease;
}

.input.large {
  padding: 16px 18px;
  font-size: 15px;
}

.input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--muted);
  font-size: 14px;
}

.input-row {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.with-icon {
  padding-left: 46px;
}

.captcha-box {
  background: #1a1a1d;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 14px;
  text-align: left;
}

.elevate {
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.btn.small {
  padding: 10px 16px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border-radius: 12px;
  font-weight: 600;
}

.btn.full {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  background: rgba(180, 180, 180, 0.5);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn.full:not([disabled]) {
  background: rgba(200, 200, 200, 0.9);
  color: #000;
  cursor: pointer;
}

.btn.full:not([disabled]):hover {
  background: rgba(220, 220, 220, 1);
}

.btn[disabled] {
  opacity: 1;
  pointer-events: none;
  cursor: not-allowed;
}

.cta {
  background: #232327;
  border: 1px solid #3a3a40;
  color: #ffffff;
}

.cta:hover {
  filter: brightness(1.05);
}

.cta:active {
  transform: translateY(1px);
}

.submodal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
  background: rgba(0,0,0,0.8);
  overflow: hidden;
  padding-top: 160px;
}

.submodal:not(.hidden) .submodal-panel {
  animation: modalSlideUp 0.35s ease forwards;
}

.submodal-panel {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 160px);
  max-height: calc(100vh - 160px);
  background: #0f0f12;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  padding: 20px 20px 100px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.submodal-panel::-webkit-scrollbar {
  display: none;
}

.submodal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 11;
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 24px;
  opacity: 0.7;
}
.submodal-close:hover {
  opacity: 1;
}

.submodal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.plan-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
}

.plan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 16px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.plan-item.selected {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.plan-left {
  display: grid;
  gap: 4px;
}

.plan-title {
  font-weight: 700;
  font-size: 17px;
}

.plan-sub {
  color: var(--muted);
  font-size: 14px;
}

.plan-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-price {
  font-weight: 700;
  font-size: 17px;
}

.radio {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
}

.plan-item.selected .radio {
  border-color: rgba(255, 255, 255, 0.8);
}

.plan-item.selected .radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}
  border: 2px solid #d1d5db;
  border-radius: 50%;
}

.plan-item.selected .radio {
  background: #d1d5db;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
}

.login-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.link {
  color: #93c5fd;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Painel Admin */
.admin {
  min-height: 100vh;
  background: #000000;
  color: var(--text);
  position: relative;
}

.admin::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(1px 1px at 15% 90%, white, transparent);
  background-size: 200% 200%, 200% 200%, 300% 300%, 250% 250%, 200% 200%, 280% 280%, 220% 220%;
  background-position: 0% 0%, 40% 40%, 50% 50%, 80% 10%, 90% 60%, 33% 80%, 15% 90%;
  animation: stars 120s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.admin::after {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  animation: nebula 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.admin > * {
  position: relative;
  z-index: 1;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(11,11,15,0.95) 0%, rgba(11,11,15,0.9) 100%);
  backdrop-filter: blur(10px);
  z-index: 110;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.admin-brand svg {
  width: 28px;
  height: 28px;
  opacity: 0.95;
}

.admin-brand span {
  font-size: 18px;
  opacity: 0.92;
}

.admin-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .dash-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .dash-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.stat-title {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
}

.admin-table {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.table-title {
  padding: 14px 16px 8px;
  font-weight: 700;
}

.table {
  display: grid;
  gap: 2px;
  padding: 0 16px 16px;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.table-head {
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

#admin-users-table .table-row {
  grid-template-columns: 2fr 1fr 1fr auto;
}
#admin-users-table .actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
#admin-users-table .btn.small {
  padding: 6px 10px;
}

/* ============================================
   ESTILOS PARA TELAS DE AUTENTICAÇÃO
   ============================================ */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.auth-background {
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: 0;
  overflow: hidden;
}

.auth-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(1px 1px at 15% 90%, white, transparent);
  background-size: 200% 200%, 200% 200%, 300% 300%, 250% 250%, 200% 200%, 280% 280%, 220% 220%;
  background-position: 0% 0%, 40% 40%, 50% 50%, 80% 10%, 90% 60%, 33% 80%, 15% 90%;
  animation: stars 120s linear infinite;
}

.auth-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(1px 1px at 25% 15%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 75% 25%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 45% 65%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 85% 85%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255, 255, 255, 0.6), transparent);
  background-size: 250% 250%, 300% 300%, 200% 200%, 280% 280%, 240% 240%;
  animation: stars 180s linear infinite reverse;
}

.auth-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: nebula 20s ease-in-out infinite;
}

@keyframes stars {
  from {
    background-position: 0% 0%, 40% 40%, 50% 50%, 80% 10%, 90% 60%, 33% 80%, 15% 90%;
  }
  to {
    background-position: 100% 100%, 140% 140%, 150% 150%, 180% 110%, 190% 160%, 133% 180%, 115% 190%;
  }
}

@keyframes nebula {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.auth-wrapper {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: rgba(17, 17, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--text);
}

.auth-header .logo svg {
  opacity: 0.95;
}

.auth-header .brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  opacity: 0.95;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: -4px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.input-field {
  width: 100%;
  background: rgba(20, 20, 23, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.input-field:focus {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(20, 20, 23, 0.95);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-field::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.input-field.input-error {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.password-toggle {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 1;
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle.active {
  color: var(--text);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.inline-link {
  color: #60a5fa;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.forgot-link {
  color: #60a5fa;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.captcha-wrapper {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  flex-shrink: 0;
}

.password-strength {
  margin-top: 8px;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-fill.strength-weak {
  background: #ef4444;
}

.strength-fill.strength-medium {
  background: #f59e0b;
}

.strength-fill.strength-strong {
  background: #10b981;
}

.strength-fill.strength-very-strong {
  background: #059669;
}

.strength-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.alert {
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(50, 50, 50, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 400px;
  max-width: 600px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: bold;
}

.alert-error {
  color: #ffffff;
}

.alert-error .alert-icon {
  background: #ef4444;
  color: #fff;
}

.alert-success {
  color: #ffffff;
}

.alert-success .alert-icon {
  background: #10b981;
  color: #fff;
}

@media (max-width: 640px) {
  .alert {
    min-width: auto;
    max-width: calc(100vw - 40px);
    left: 20px;
    right: 20px;
  }
}

.auth-error {
  font-size: 14px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.auth-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Landing */
.landing {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.landing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59,130,246,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139,92,246,0.15) 0%, transparent 50%);
  filter: blur(0px);
  animation: gradientShift 18s ease infinite;
  z-index: 0;
}
.landing-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.landing-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 700;
}
.landing-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px 12px;
}
.landing-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px;
}
.landing-subtitle {
  color: var(--muted);
  font-size: 16px;
}
.landing-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
}
.landing-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}
.landing-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .landing-features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .landing-features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature-card {
  background: rgba(17, 17, 20, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.feature-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text);
  opacity: 0.95;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-title {
  font-weight: 800;
  margin-top: 8px;
}
.feature-desc {
  color: var(--muted);
  margin-top: 4px;
}
.landing-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  padding: 20px 24px 28px;
}

/* Sidebar: só no PC; no mobile fica escondido (navegação só pela barra inferior) */
@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }
  
  .sidebar-overlay {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  /* No mobile não tem menu lateral; esconde o botão hambúrguer */
  .mobile-menu-toggle {
    display: none;
  }
}

/* Responsividade */
@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
  }

  .auth-title {
    font-size: 24px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .content-wrapper {
    padding: 24px 20px;
  }
}

/* Welcome Container - Layout centralizado */
/* Welcome Container - Layout centralizado */
.welcome-container {
  max-width: 540px;
  width: 100%;
  padding: 24px;
  text-align: center;
}

.welcome-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.welcome-logo svg {
  color: var(--accent);
}

.welcome-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.welcome-title {
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.welcome-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
}

.welcome-card {
  background: rgba(30, 30, 35, 0.6);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  margin-top: 24px;
}

.welcome-card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.welcome-card-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.btn-welcome {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 280px;
}

.btn-welcome:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-welcome:active {
  transform: translateY(0);
}

@media (min-width: 769px) {
  .welcome-container {
    padding: 40px;
    max-width: 600px;
  }
  
  .welcome-logo {
    margin-bottom: 40px;
  }
  
  .welcome-logo svg {
    width: 100px;
    height: 100px;
  }
  
  .welcome-brand {
    font-size: 28px;
  }
  
  .welcome-title {
    font-size: 42px;
  }
  
  .welcome-subtitle {
    font-size: 18px;
  }
  
  .welcome-card {
    padding: 48px 40px;
  }
  
  .welcome-card-title {
    font-size: 28px;
  }
  
  .welcome-card-text {
    font-size: 16px;
  }
}

/* Remover scrollbar de todos os elementos */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  display: none;
}

.main-content::-webkit-scrollbar {
  display: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

/* Auth Info Panel - Lateral para Desktop */
.auth-info-panel {
  display: none;
}

@media (min-width: 1024px) {
  .auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1400px;
    width: 100%;
  }
  
  .auth-info-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .info-content {
    max-width: 480px;
  }
  
  .info-logo {
    margin-bottom: 32px;
    color: var(--accent);
  }
  
  .info-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text);
    line-height: 1.2;
  }
  
  .info-description {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 40px;
  }
  
  .info-features {
    display: grid;
    gap: 20px;
  }
  
  .info-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
  }
  
  .info-feature:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
  }
  
  .info-feature svg {
    flex-shrink: 0;
    color: var(--accent);
  }
  
  .info-feature span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
  }
  
  .auth-card {
    padding: 60px 40px;
  }
}

@media (min-width: 1280px) {
  .auth-info-panel {
    padding: 80px 60px;
  }
  
  .auth-card {
    padding: 80px 60px;
  }
}
