:root {
  --bg-dark: #0a0a0f;
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent-primary: #6366f1;
  --accent-secondary: #a855f7;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --success: #22c55e;
  --error: #ef4444;
}

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

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: scroll;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

body::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

/* Dynamic Background */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: blur(80px);
}

.blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  opacity: 0.3;
  animation: move 20s infinite alternate;
}

.blob-1 {
  background: var(--accent-primary);
  top: -100px;
  left: -100px;
}

.blob-2 {
  background: var(--accent-secondary);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes move {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(100px, 100px);
  }
}

/* Container & Cards */
.container {
  width: 90%;
  max-width: 450px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
}

header {
  margin-bottom: 30px;
}

.logo {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(to right, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Status Section */
.status-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.running {
  background-color: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.dot.stopped {
  background-color: var(--error);
  box-shadow: 0 0 12px var(--error);
}

.controls {
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn.primary {
  background: linear-gradient(135deg,
      var(--accent-primary),
      var(--accent-secondary));
  color: white;
}

.btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn.secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Config Section */
.config-card {
  text-align: left;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  margin-left: 4px;
}

input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

input:focus {
  border-color: var(--accent-primary);
}

.hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
  margin-left: 4px;
}

.invite-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.invite-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.invite-link:hover {
  color: var(--accent-primary);
}

/* FAQ Section */
.faq-card {
  text-align: left;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  max-height: 500px;
  /* Increased from 200px */
  overflow-y: auto;
  /* Show scrollbar if needed, or hide if preferred */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

.faq-card::-webkit-scrollbar {
  width: 4px;
}

.faq-card::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 10px;
}

.faq-item {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.faq-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.faq-item summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 12px 0;
  list-style: none;
  /* Hide default arrow */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.faq-item summary:hover {
  color: var(--accent-primary);
}

.faq-content {
  padding-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-content p {
  margin-bottom: 8px;
}

.faq-content ol {
  margin-left: 20px;
  margin-top: 8px;
}

.faq-content li {
  margin-bottom: 8px;
}

.faq-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--accent-secondary);
}

.hidden {
  display: none !important;
}