* {
  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;
}
