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

:root {
    --bg: #0d0d1a;
    --bg-card: #15152a;
    --bg-card-hover: #1c1c3a;
    --surface: #1a1a35;
    --border: #2a2a4a;
    --text: #e8e8f0;
    --text-secondary: #9090b0;
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --green: #3ba55d;
    --red: #ed4245;
    --radius: 12px;
    --radius-sm: 8px;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 13, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-discord {
    background: #5865f2;
    color: #fff;
}

.btn-discord:hover {
    background: #4752c4;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

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

/* Hero */
.hero {
    padding: 140px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(88, 101, 242, 0.15);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Features */
.features {
    padding: 80px 0;
}

.features h2, .pricing h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.features-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

.feature-card code {
    background: rgba(88, 101, 242, 0.15);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.badge-paid {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    color: #3a1a00;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.feature-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(88, 101, 242, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    color: var(--accent);
}

.feature-icon.premium {
    background: rgba(247, 201, 72, 0.12);
    color: #f7c948;
}

.feature-card h3 {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-tip {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.feature-card:hover .feature-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (hover: none) {
    .feature-tip {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        padding: 6px 0 0;
        margin-top: 0;
    }
    .feature-card {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Pricing */
.pricing {
    padding: 80px 0;
    background: var(--surface);
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.pricing-amount span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--green);
    margin-right: 10px;
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* Stats */
.stats {
    padding: 80px 0;
    background: var(--surface);
}

.stats h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    position: relative;
    padding: 0;
    margin-top: 64px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(88, 101, 242, 0.04));
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 0;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links .separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Dashboard */
.dashboard-page {
    padding-top: 80px;
}

.dashboard-header {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
}

.dashboard-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
}

.user-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.user-name small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Servers Grid */
.servers-section {
    padding: 32px 0;
}

.servers-section h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

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

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.server-banner {
    height: 110px;
    background: var(--surface);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.server-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}

.server-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--bg);
    position: absolute;
    bottom: -32px;
    background: var(--surface);
}

.server-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.server-icon.no-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    background: var(--accent);
}

.server-body {
    padding: 40px 20px 20px;
    text-align: center;
}

.server-body h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.server-members {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.server-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.server-status.active {
    background: rgba(59, 165, 93, 0.15);
    color: var(--green);
}

.server-status.inactive {
    background: rgba(237, 66, 69, 0.15);
    color: var(--red);
}

.server-actions {
    margin-top: 12px;
}

.server-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Stripe checkout button container */
.stripe-container {
    margin-top: 12px;
    min-height: 40px;
}

/* No servers */
.no-servers {
    text-align: center;
    padding: 60px 20px;
}

.no-servers-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-servers h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.no-servers p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

/* Error */
.error-msg {
    text-align: center;
    padding: 60px 20px;
    color: var(--red);
}

/* For the dshboard user section */
.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Stripe payment button styles */
.stripe-payment-button {
    display: none;
}

/* Toaster */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    z-index: 999;
    animation: slideUp 0.3s ease;
    max-width: 360px;
}

.toast.success {
    background: var(--green);
    color: #fff;
}

.toast.error {
    background: var(--red);
    color: #fff;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONFIG OVERLAY ===== */
#config-overlay {
  animation: overlayFadeIn 0.15s ease;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.config-modal {
  max-width: 920px;
  margin: 40px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: configSlideIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes configSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.config-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.config-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.config-close:hover {
  background: rgba(237, 66, 69, 0.15);
  color: var(--red);
}

/* ===== CONFIG SECTIONS (details/summary) ===== */
.cfg-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cfg-section:hover {
  border-color: rgba(88, 101, 242, 0.25);
}

.cfg-section[open] {
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.cfg-section summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  transition: background 0.2s;
  list-style: none;
}

.cfg-section summary::-webkit-details-marker {
  display: none;
}

.cfg-section summary::before {
  content: '▶';
  font-size: 0.6rem;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.cfg-section[open] summary::before {
  transform: rotate(90deg);
}

.cfg-section summary:hover {
  background: rgba(88, 101, 242, 0.05);
}

.cfg-section[open] summary {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.cfg-section-content {
  padding: 18px;
  animation: contentFadeIn 0.15s ease;
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FORM ELEMENTS ===== */
.cfg-group {
  margin-bottom: 14px;
}

.cfg-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cfg-select, .cfg-input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.85rem;
  width: 100%;
  max-width: 360px;
  transition: all 0.2s;
}

.cfg-select:focus, .cfg-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.12);
}

.cfg-select option { background: var(--bg); color: var(--text); }
.cfg-input[type="color"] { width: 48px; height: 36px; padding: 2px; cursor: pointer; }
.cfg-input[type="number"] { max-width: 120px; }
.cfg-input.narrow { max-width: 90px; }

.cfg-row {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.cfg-row .cfg-group {
  flex: 1;
  min-width: 100px;
}

.cfg-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

/* ===== TOGGLE SWITCH ===== */
.cfg-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.cfg-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cfg-toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  transition: background 0.25s;
  position: relative;
}

.cfg-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.cfg-toggle input:checked + .cfg-toggle-track {
  background: var(--green);
}

.cfg-toggle input:checked + .cfg-toggle-track::after {
  transform: translateX(20px);
}

.cfg-toggle-label {
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 50px;
}

/* ===== MODULE GRID ===== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.module-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}

.module-item:hover {
  border-color: rgba(88, 101, 242, 0.3);
  background: rgba(88, 101, 242, 0.03);
}

.module-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-premium {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #f7c948);
  color: #000;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

/* ===== SOON OVERLAY ===== */
#soon-overlay {
  animation: overlayFadeIn 0.15s ease;
}

.soon-modal {
  max-width: 440px;
  margin: 120px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  animation: configSlideIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.soon-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.soon-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.soon-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 380px;
  line-height: 1.4;
}

.toast.success {
  background: linear-gradient(135deg, #1a5c32, #3ba55d);
  color: #fff;
}

.toast.error {
  background: linear-gradient(135deg, #991b1b, #ed4245);
  color: #fff;
}

.toast.removing {
  animation: toastOut 0.25s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(20px) scale(0.95); }
}

/* ===== SERVER CARD ENHANCEMENTS ===== */
.server-card {
  position: relative;
}

.server-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border-color: rgba(88, 101, 242, 0.3);
}

.server-body h3 {
  transition: color 0.2s;
}

.server-card:hover .server-body h3 {
  color: var(--accent);
}

.server-banner {
  transition: height 0.2s;
}

.server-card:hover .server-banner {
  height: 120px;
}

.config-btn {
  margin-top: 12px !important;
  width: 100%;
  transition: all 0.2s;
}

.config-btn:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== ACTIONS SECTION ===== */
.cfg-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cfg-premium-badge {
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cfg-premium-badge.active {
  border-color: var(--green);
  background: rgba(59, 165, 93, 0.08);
  color: var(--green);
}

.cfg-premium-badge.inactive {
  border-color: var(--border);
  color: var(--text-secondary);
}

.cfg-section code {
  background: rgba(88, 101, 242, 0.12);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ===== SUBSCRIPTION BUTTON ===== */
.subscribe-btn {
  transition: all 0.2s;
}

.subscribe-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

/* ===== DISABLED BUTTON ===== */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== LOADING ===== */
#config-loading { padding: 40px 20px; }

/* Responsive */
/* ===== DOCUMENTATION PAGE ===== */
.doc-page {
    padding: 120px 0 60px;
}

.doc-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(88, 101, 242, 0.15);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.doc-header {
    text-align: center;
    margin-bottom: 48px;
}

.doc-header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.doc-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Quick nav tags */
.doc-quick-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.doc-cat-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.doc-cat-tag:hover {
    border-color: var(--cat-color, var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.doc-cat-tag .dct-icon { font-size: 1.1rem; }

.doc-cat-tag .dct-count {
    background: var(--surface);
    padding: 0 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.doc-cat-tag .dct-badge {
    background: var(--red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Search bar */
.doc-search-bar {
    position: relative;
    max-width: 480px;
    margin: 0 auto 20px;
}

.doc-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.doc-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.12);
}

.doc-search-input::placeholder {
    color: var(--text-secondary);
}

.doc-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
}

/* Filter bar */
.doc-filter-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.doc-filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.doc-filter-btn:hover {
    border-color: var(--btn-accent, var(--accent));
    color: var(--text);
}

.doc-filter-btn.active {
    background: var(--btn-accent, var(--accent));
    border-color: var(--btn-accent, var(--accent));
    color: #fff;
}

/* Category sections */
.doc-cat {
    margin-bottom: 48px;
}

.doc-cat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.dch-icon { font-size: 2rem; }

.doc-cat-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.dch-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Command cards */
.cmd-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cmd-card:hover {
    border-color: rgba(88, 101, 242, 0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cmd-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cmd-icon { font-size: 1.5rem; }

.cmd-name code {
    font-size: 1rem;
    font-weight: 600;
    color: #b0b0ff;
    background: rgba(88, 101, 242, 0.12);
    padding: 3px 10px;
    border-radius: 6px;
}

.cmd-badge-premium {
    background: var(--red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: auto;
}

.cmd-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cmd-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.cmd-opt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cmd-opt code {
    background: rgba(88, 101, 242, 0.08);
    color: var(--text);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.opt-req {
    display: inline-block;
    background: rgba(237, 66, 69, 0.15);
    color: var(--red);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.opt-opt {
    display: inline-block;
    background: rgba(88, 101, 242, 0.12);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cmd-example {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--surface);
    border-radius: 8px;
    font-size: 0.85rem;
}

.ce-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cmd-example code {
    color: #b0b0ff;
    background: rgba(88, 101, 242, 0.1);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* Premium summary */
.doc-premium-summary {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(237,66,69,0.08), rgba(88,101,242,0.08));
    border: 1px solid rgba(237,66,69,0.2);
    border-radius: var(--radius);
    margin-top: 48px;
}

.dps-icon { font-size: 2.5rem; }

.doc-premium-summary h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.doc-premium-summary p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Hide old wheel styles */
.cmd-wheel-wrapper,
.wheel,
.wheel-center,
.cmd-wheel-center,
.module-popup,
.wheel-item,
.cmd-wheel-item,
.wheel-item-content,
.wi-icon,
.wi-name,
.wheel-paused,
.wheel-active { display: none; }

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .dashboard-header .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .doc-header h1 {
        font-size: 1.8rem;
    }

    .doc-quick-nav {
        gap: 8px;
    }

    .doc-cat-tag {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .cmd-card {
        padding: 18px;
    }

    .cmd-example {
        flex-direction: column;
        align-items: flex-start;
    }
}