:root {
  --bg: #0a0a12;
  --bg-alt: #12121f;
  --accent: #9b5cff;
  --accent-light: #c9a6ff;
  --text: #e8e8f0;
  --text-dim: #a0a0b8;
  --border: rgba(155, 92, 255, 0.25);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5%;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 1.1rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a:not(.btn) { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--accent-light); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.hero-compact { padding-bottom: 0; }

.hero {
  background: radial-gradient(ellipse at top, rgba(155, 92, 255, 0.15), transparent 60%), var(--bg);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 5% 6rem;
}

.hero-banner {
  width: 100%;
  max-width: 640px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(155, 92, 255, 0.25);
  margin-bottom: 2.5rem;
}

.hero-content h1 {
  font-size: 2.75rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff;
  box-shadow: 0 8px 30px rgba(155, 92, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-small { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

.btn:hover { transform: translateY(-2px); }

.features, .premium, .support {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 5%;
  text-align: center;
}

.features h2, .premium h2, .support h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  letter-spacing: 0.04em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }

.premium-card {
  background: linear-gradient(160deg, rgba(155, 92, 255, 0.12), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  max-width: 480px;
  margin: 0 auto;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-light);
  margin: 0.5rem 0;
}
.price span { font-size: 1.1rem; color: var(--text-dim); font-weight: 400; }

.premium-tagline { color: var(--text-dim); margin-bottom: 1.75rem; }

.premium-list {
  list-style: none;
  text-align: left;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.premium-list li { color: var(--text-dim); padding-left: 1.6rem; position: relative; }
.premium-list li::before {
  content: "✓";
  color: var(--accent-light);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.support p { color: var(--text-dim); max-width: 560px; margin: 0 auto 1.5rem; }
.support code {
  background: rgba(155, 92, 255, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.9em;
}

.support-links { display: flex; gap: 0.75rem; justify-content: center; color: var(--text-dim); }
.support-links a { color: var(--accent-light); }
.support-links a:hover { text-decoration: underline; }
.dot { color: var(--text-dim); }

footer {
  text-align: center;
  padding: 2.5rem 5%;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 5% 5rem;
}

.dashboard h1 {
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.dashboard-subtitle { color: var(--text-dim); max-width: 640px; margin-bottom: 2.5rem; }

.dashboard-empty {
  color: var(--text-dim);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
}
.dashboard-empty a { color: var(--accent-light); }
.dashboard-empty a:hover { text-decoration: underline; }

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}

.server-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.server-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.server-card-info { flex: 1; min-width: 0; }
.server-card-info h3 {
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-premium, .badge-on { background: rgba(155, 92, 255, 0.2); color: var(--accent-light); }
.badge-free, .badge-off { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }

.server-card-locked {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: right;
  white-space: nowrap;
}

.server-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.server-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.server-header h1 { font-size: 1.6rem; letter-spacing: 0.02em; margin-bottom: 0.35rem; }
.server-header-actions { display: flex; gap: 0.6rem; margin-left: auto; flex-shrink: 0; }

.trial-note { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.4rem; }
.trial-note a { color: var(--accent-light); }
.trial-note a:hover { text-decoration: underline; }

.dashboard-notice {
  background: rgba(255, 184, 92, 0.12);
  border: 1px solid rgba(255, 184, 92, 0.35);
  color: #ffd9a8;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.setting-list { display: grid; gap: 1rem; max-width: 720px; }

.setting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.setting-info h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.setting-info p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 0.5rem; }
.setting-card form { flex-shrink: 0; }

.card-manage-link {
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent-light);
}
.card-manage-link:hover { text-decoration: underline; }

.setting-card-stacked { flex-direction: column; align-items: stretch; }

.branding-form { display: flex; flex-direction: column; gap: 0.75rem; }

.branding-form textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.branding-form textarea:focus { outline: none; border-color: var(--accent); }
.branding-form button { align-self: flex-start; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}

.stat-card .stat-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; color: var(--accent-light); }
.stat-card .stat-label { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.25rem; }

.leaderboard {
  max-width: 720px;
}

.leaderboard h2 {
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.leaderboard-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
}

.leaderboard-rank {
  font-weight: 700;
  color: var(--accent-light);
  width: 1.75rem;
  flex-shrink: 0;
  text-align: center;
}

.leaderboard-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-xp { color: var(--text-dim); font-size: 0.9rem; flex-shrink: 0; }

.embed-form-section, .embed-templates, .branding-section {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.embed-form-section h2, .embed-templates h2, .branding-section h2 {
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.branding-section > p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }

.embed-form {
  display: grid;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.embed-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.embed-form input, .embed-form textarea, .embed-form select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.embed-form textarea { resize: vertical; min-height: 5rem; }
.embed-form input:focus, .embed-form textarea:focus, .embed-form select:focus { outline: none; border-color: var(--accent); }
.embed-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.embed-form button { justify-self: start; }

.duration-input { display: flex; align-items: center; gap: 0.5rem; }
.duration-input input { width: 5rem; }
.duration-input select { flex: 1; }

.template-list { display: grid; gap: 0.75rem; }

.template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.template-info h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.template-info p { color: var(--text-dim); font-size: 0.85rem; }
.template-row form { flex-shrink: 0; }

@media (max-width: 640px) {
  .embed-form-row { grid-template-columns: 1fr; }
}

.message-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 5% 6rem;
}

.message-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.message-card h1 { font-size: 1.5rem; letter-spacing: 0.03em; margin-bottom: 0.85rem; }
.message-card p { color: var(--text-dim); margin-bottom: 1.75rem; }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .user-chip span { display: none; }
  .hero-content h1 { font-size: 2rem; }
}
