* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background: #1f2937;
  color: #e5e7eb;
}

/* TOP BAR */
.top-bar {
  background: #2b3550;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

.top-bar a {
  color: #60a5fa;
}

/* LAYOUT */
.layout {
  display: flex;
  height: calc(100vh - 42px);
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: #111827;
  padding: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 30px;
}

/* LOGO BLOXLINK - MAIOR */
.logo img {
  border-radius: 0;
  width: 190px;
  height: 100x;
  object-fit: contain;
}

.section-title {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.nav-item {
  width: 100%;
  background: none;
  border: none;
  color: #9ca3af;
  padding: 12px 14px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  background: #1f2937;
  color: #e5e7eb;
}

.nav-item .nav-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  font-weight: 600;
}

/* CONTENT */
.content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.subtitle {
  color: #9ca3af;
  margin-bottom: 25px;
}

/* VERIFY CARD */
.verify-card {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.3);
}

.verify-card h1 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.verify-card p {
  color: #c7d2fe;
  max-width: 450px;
  line-height: 1.5;
}

/* VERIFY BUTTON */
.verify-circle {
  padding: 16px 32px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 12px;
  color: #052e16;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.verify-circle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

/* MISSING BAR */
.missing-bar {
  margin-top: 15px;
  background: #111827;
  padding: 18px 24px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.missing-bar span {
  color: #9ca3af;
}

.missing-btn {
  color: #818cf8;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.missing-btn:hover {
  background: rgba(129, 140, 248, 0.1);
  text-decoration: none;
}

/* ================= POPUPS ================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* BLOCKED POPUP */
.popup {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  width: 440px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(220, 38, 38, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.show .popup {
  transform: scale(1) translateY(0);
}

.popup-header.red {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  padding: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.popup-header.red::before {
  content: "⚠";
  font-size: 18px;
}

.popup-body {
  padding: 30px;
  text-align: center;
}

.popup-body p {
  color: #9ca3af;
  margin-bottom: 20px;
  line-height: 1.6;
}

.popup-body button {
  padding: 12px 40px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popup-body button:hover {
  background: #b91c1c;
  transform: scale(1.02);
}

/* VERIFY POPUP */
.verify-popup {
  width: 440px;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.show .verify-popup {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.verify-popup.expanded {
  width: 600px;
  max-width: 90vw;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.verify-header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #f1f5f9;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.verify-header::before {
  content: "🔗";
}

.verify-body {
  padding: 40px 35px;
  text-align: center;
}

.verify-icon {
  margin-bottom: 25px;
}

.verify-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.verify-continue {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #0f172a;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.verify-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.verify-or {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  position: relative;
}

.verify-or::before,
.verify-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: #334155;
}

.verify-or::before {
  left: 20px;
}

.verify-or::after {
  right: 20px;
}

.verify-return {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: #94a3b8;
  border: 1px solid #334155;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.verify-return:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-color: #475569;
}

/* LOADING SCREEN */
.loading-screen {
  display: none;
  padding: 50px 40px;
  text-align: center;
}

.loading-screen.active {
  display: block;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #1e293b;
  border-top: 4px solid #6366f1;
  border-radius: 50%;
  margin: 0 auto 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #f1f5f9;
}

.loading-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loading-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 14px;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.loading-message.active {
  opacity: 1;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
  color: #a5b4fc;
}

.loading-message.active::before {
  content: "✓";
  color: #22c55e;
  font-weight: bold;
}

.loading-message.pending::before {
  content: "⏳";
  color: #64748b;
}

/* IFRAME POPUP */
.iframe-popup {
  position: relative;
  width: 75%;
  height: 80%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.show .iframe-popup {
  transform: scale(1);
  opacity: 1;
}

.iframe-popup iframe {
  flex: 1;
  border: none;
}

.close-iframe {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 10;
  font-size: 16px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-iframe:hover {
  background: rgba(220, 38, 38, 0.8);
  transform: scale(1.1);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .content {
    padding: 80px 20px 20px;
  }

  .verify-card {
    flex-direction: column;
    gap: 25px;
    text-align: center;
    padding: 30px 20px;
  }

  .verify-card h1 {
    font-size: 20px;
  }

  .verify-card p {
    max-width: 100%;
  }

  .missing-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .iframe-popup {
    width: 95%;
    height: 85%;
  }

  .popup {
    width: 90%;
  }

  .verify-popup {
    width: 92%;
  }

  .verify-popup.expanded {
    width: 92%;
  }
}

@media (max-width: 480px) {
  .verify-popup {
    width: 95%;
  }

  .verify-body {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  #verifyOverlay.popup-overlay {
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 30px;
  }

  #verifyOverlay .verify-popup {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}

/* MOBILE SIDEBAR */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  background: #111827;
  color: #e5e7eb;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: #1f2937;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    z-index: 200;
    transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 280px;
  }

  .sidebar.open {
    left: 0;
  }

  .content {
    padding-top: 80px;
  }
}
