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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #1a1a1a;
  color: white;
  min-height: 100vh;
}

.container {
  max-width: 100%;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  padding: 8px;
  border-radius: 8px;
  background-color: #2a2a2a;
  border: none;
  cursor: pointer;
  color: white;
}

.icon-btn:hover {
  background-color: #3a3a3a;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
}

/* Avatar Banner */
.avatar-banner {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.avatars {
  display: flex;
  justify-content: center;
}

.avatar {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

/* Input Section */
.input-section {
  padding: 0 16px 16px;
}

.input-container {
  background-color: #2a2a2a;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.username-input {
  background: transparent;
  border: none;
  outline: none;
  color: #9ca3af;
  font-size: 16px;
  flex: 1;
}

.username-input::placeholder {
  color: #6b7280;
}

.connect-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #3a3a3a;
  color: #9ca3af;
}

.connect-btn.active {
  background-color: #fffc00;
  color: black;
}

.connect-btn:hover {
  opacity: 0.9;
}

/* Connecting State */
.connecting {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 12px;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Connected State */
.connected-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connected-name {
  color: white;
}

.change-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 16px;
}

.change-btn:hover {
  color: white;
}

/* Features Section */
.features-section {
  padding: 8px 16px 16px;
  background-color: #252525;
  border-radius: 24px 24px 0 0;
  margin-top: 8px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.feature-card {
  width: 100%;
  border: 1px solid rgba(255, 252, 0, 0.5);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.feature-card:hover:not(.disabled) {
  background-color: #2a2a2a;
}

.feature-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: #3a3a3a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature-info {
  flex: 1;
}

.feature-title {
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.feature-description {
  font-size: 14px;
  color: #9ca3af;
}

.chevron {
  color: #9ca3af;
}

/* Popup Modal */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.popup-content {
  background-color: #2a2a2a;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 384px;
  border: 1px solid rgba(255, 252, 0, 0.5);
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.popup-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.popup-icon {
  width: 48px;
  height: 48px;
  background-color: #3a3a3a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.popup-title {
  font-weight: 600;
  color: white;
}

.close-btn {
  padding: 8px;
  border-radius: 8px;
  background-color: #3a3a3a;
  border: none;
  cursor: pointer;
  color: white;
}

.close-btn:hover {
  background-color: #4a4a4a;
}

.popup-description {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 16px;
}

.progress-container {
  margin-bottom: 8px;
}

.progress-bar {
  height: 12px;
  background-color: #1a1a1a;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #fffc00;
  border-radius: 9999px;
  transition: width 0.1s linear;
  width: 0%;
}

.progress-text {
  text-align: center;
  color: #fffc00;
  font-weight: 500;
}


/* Third-party verification panel */
.verification-panel {
  padding: 20px 16px 32px;
}
.verification-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(255, 252, 0, 0.5);
  border-radius: 16px;
  background: #2a2a2a;
  color: #fff;
  text-align: center;
}
.verification-card h2 {
  margin: 0 0 10px;
}
.verification-card p {
  margin: 0 0 18px;
  color: #c4c4c4;
  font-size: 14px;
  line-height: 1.5;
}

.captcha-load-error { color: #ffb4b4; font-size: 14px; margin-top: 12px; }

/* Centered CAPTCHA modal shown as soon as the feature animation completes */
body.verification-open {
  overflow: hidden;
}
#verification-panel.verification-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  padding: 20px;
  margin: 0;
  overflow-y: auto;
  background: rgba(7, 8, 15, 0.58);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
#verification-panel.verification-panel.hidden {
  display: none !important;
}
#verification-panel .verification-card {
  width: min(100%, 500px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 28px 24px;
  border: 1px solid rgba(255, 252, 0, 0.55);
  border-radius: 18px;
  background: #24242b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: captchaModalIn 240ms ease-out both;
}
@keyframes captchaModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 480px) {
  #verification-panel.verification-panel { padding: 14px; }
  #verification-panel .verification-card { padding: 22px 16px; }
}

/* Verification prompt copy: regular weight, as requested */
.verification-card p {
  font-weight: 400;
}
