/* === CSS Variables === */
:root {
  --bg: #1E1E1E;
  --primary: #2D2D30;
  --secondary: #3E3E42;
  --surface: #252526;
  --accent: #007ACC;
  --accent-hover: #1C97EA;
  --text: #E0E0E0;
  --text-secondary: #9E9E9E;
  --border: #3F3F46;
  --success: #4CAF50;
  --danger: #F44336;
  --warning: #FFB300;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 70px;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(37, 37, 38, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #4a4a4f;
  transform: translateY(-1px);
}

.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* === Hero === */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--primary) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  justify-content: center;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 122, 204, 0.15);
  color: var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(0, 122, 204, 0.3);
}

/* === App Screenshot Carousel (Hero Visual) === */
.hero-visual {
  width: 100%;
  max-width: 900px;
  margin-top: 48px;
}

.app-carousel {
  position: relative;
}

.carousel-track {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}

.carousel-slide:first-child {
  position: relative; /* first slide always sets container height */
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.carousel-dot:hover {
  border-color: var(--accent);
}

/* === Sections === */
.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* === How It Works === */
.how-it-works {
  padding: 100px 0;
  background: var(--surface);
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-card {
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  flex: 1;
  max-width: 300px;
  transition: transform 0.2s, border-color 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
}

/* === Scroll to Top === */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-hover);
}

.scroll-top svg {
  width: 22px;
  height: 22px;
}

/* === Features === */
.features {
  padding: 100px 0;
  background: var(--primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 122, 204, 0.15);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Server Types === */
.server-types {
  padding: 100px 0;
  background: var(--surface);
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.type-card {
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.type-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.type-img {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

.type-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.type-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.type-card.coming-soon {
  opacity: 0.6;
  border-style: dashed;
}

.type-card.coming-soon:hover {
  opacity: 0.8;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #e8a317;
  background: rgba(232, 163, 23, 0.15);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 4px;
}

/* === Pricing === */
.pricing {
  padding: 100px 0;
  background: var(--primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 122, 204, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.price {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li.disabled {
  color: var(--text-secondary);
}

.check {
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.cross {
  color: var(--danger);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.pricing-features li.limitation {
  color: var(--text-secondary);
}

.warn {
  color: #e8a317;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

/* === Download === */
.download {
  padding: 100px 0;
  background: var(--surface);
}

.download-content {
  text-align: center;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.download-info {
  margin-top: 32px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-info p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.download-info p:last-of-type {
  margin-bottom: 16px;
}

.download-alt {
  margin-top: 32px;
}

.download-alt p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.download-alt-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.download-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* === Footer === */
.footer {
  padding: 40px 0;
  background: var(--primary);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.footer-publisher {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
}

/* === FAQ === */
.faq {
  padding: 100px 0;
  background: var(--primary);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--accent);
}

.faq-item p {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item a {
  color: var(--accent);
  text-decoration: none;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* === Legal Page (Privacy Policy) === */
.legal-page {
  padding: 120px 0 80px;
  background: var(--surface);
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.legal-page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 4px 0 4px 20px;
  position: relative;
}

.legal-page li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 38px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .app-carousel {
    margin-top: 20px;
  }

  .steps-grid {
    flex-direction: column;
    gap: 0;
  }

  .step-card {
    max-width: 100%;
  }

  .step-connector {
    width: 2px;
    height: 32px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
  }

  .types-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* === Skip to Content === */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 0;
}

/* === Modal Overlay === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
}

.modal-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.modal-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.modal-skip {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.modal-skip:hover {
  color: var(--text);
}

/* === Notice Modal === */
.notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 122, 204, 0.15);
  color: var(--accent);
  margin: 0 auto 16px;
}

#noticeModal .modal-card {
  max-width: 400px;
}

#noticeModal h3 {
  margin-bottom: 8px;
}

#noticeModal p {
  margin-bottom: 20px;
}

/* === Account Page === */
.account-page {
  padding: 120px 0 80px;
  background: var(--surface);
  min-height: 100vh;
}

.auth-section {
  max-width: 440px;
  margin: 0 auto;
}

.auth-card {
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-top: 32px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.auth-tab:hover {
  color: var(--text);
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.link-key-row input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-form input:focus,
.link-key-row input:focus {
  border-color: var(--accent);
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 0;
}

.form-error:empty {
  display: none;
}

.form-success {
  color: var(--success);
  font-size: 13px;
  margin-top: 8px;
  min-height: 0;
}

.form-success:empty {
  display: none;
}

/* Dashboard */
.dashboard-section {
  max-width: 640px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dashboard-email {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.dashboard-card {
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}

.dashboard-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.dashboard-card > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.link-key-row {
  display: flex;
  gap: 10px;
}

.link-key-row input[type="text"] {
  flex: 1;
}

/* Keys List */
.keys-loading,
.keys-empty p {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  padding: 20px 0;
}

.keys-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.key-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}

.key-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.key-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.5px;
}

.key-status {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
}

.key-status-active {
  color: var(--success);
  background: rgba(76, 175, 80, 0.15);
}

.key-status-revoked {
  color: var(--danger);
  background: rgba(244, 67, 54, 0.15);
}

.key-details {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 12px;
  }

  .link-key-row {
    flex-direction: column;
  }

  .key-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .key-details {
    flex-direction: column;
    gap: 4px;
  }

  .verify-row {
    flex-direction: column;
  }
}

/* Verification Banner */
.verify-banner {
  border-left: 3px solid var(--accent);
}

.verify-banner h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.verify-banner p {
  color: var(--text-secondary);
  font-size: 13px;
}

.verify-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--accent-hover);
}

/* Verified Badge */
.verified-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px !important;
}

.verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.2);
  font-size: 13px;
}

/* ============================================
   Remote Dashboard
   ============================================ */

/* Status Indicator */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--primary);
  border: 1px solid var(--border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.status-indicator.online .status-dot {
  background: var(--success);
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

.status-indicator.offline .status-dot {
  background: var(--danger);
}

/* Server Cards */
.server-card {
  padding: 20px 24px;
}

.server-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.server-card-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.server-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.server-card-meta span {
  position: relative;
}

.server-card-meta span + span::before {
  content: '\00b7';
  position: absolute;
  left: -8px;
  color: var(--text-secondary);
}

.server-status {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.server-status.running {
  color: var(--success);
  background: rgba(76, 175, 80, 0.15);
}

.server-status.stopped {
  color: var(--text-secondary);
  background: rgba(158, 158, 158, 0.15);
}

.server-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-players {
  font-size: 13px;
  color: var(--text-secondary);
}

.server-card-actions {
  display: flex;
  gap: 8px;
}

.btn-success {
  background: var(--success);
  color: #fff;
  border: none;
  cursor: pointer;
}

.btn-success:hover {
  background: #43A047;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  cursor: pointer;
}

.btn-danger:hover {
  background: #E53935;
}

/* Console Modal */
.console-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.console-modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 90vw;
  max-width: 800px;
  height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.console-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.console-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.console-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.console-close-btn:hover {
  color: var(--text);
}

.console-output {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  background: #1E1E1E;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
}

.console-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.console-line.system {
  color: var(--accent);
  font-style: italic;
}

.console-line.error {
  color: var(--danger);
}

.console-line.command {
  color: var(--success);
}

.console-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--primary);
}

.console-input {
  flex: 1;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
}

.console-input:focus {
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .server-card-header {
    flex-direction: column;
    gap: 8px;
  }

  .server-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .server-card-actions {
    width: 100%;
  }

  .server-card-actions .btn {
    flex: 1;
  }

  .console-modal-content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-width: none;
  }
}

/* ===========================
   Full Dashboard Layout
   =========================== */

.dashboard-body {
  background: var(--bg);
  min-height: 100vh;
  overflow: hidden;
}

/* Top Bar */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  background: var(--primary);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.dash-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.dash-logo-icon { width: 28px; height: 28px; }
.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-email {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Layout */
.dash-layout {
  display: flex;
  height: calc(100vh - 52px);
  margin-top: 52px;
}

/* Sidebar */
.dash-sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--primary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.dash-sidebar-header {
  padding: 16px 16px 8px;
}
.dash-sidebar-header h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0;
}
.dash-server-list {
  padding: 4px 8px;
}
.dash-server-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.dash-server-item:hover { background: var(--secondary); }
.dash-server-item.active { background: var(--accent); }
.dash-server-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-server-dot.running { background: var(--success); }
.dash-server-dot.stopped { background: var(--text-secondary); }
.dash-server-item-info { min-width: 0; }
.dash-server-item-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-server-item-meta {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
}
.dash-server-item.active .dash-server-item-meta { color: rgba(255,255,255,0.7); }

/* Main Content */
.dash-main {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.dash-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  color: var(--text-secondary);
}
.dash-empty-icon {
  font-size: 48px;
  opacity: 0.4;
  margin-bottom: 16px;
}

/* Server Header */
.dash-server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-server-info h2 {
  margin: 0;
  font-size: 22px;
}
.dash-server-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-right: 12px;
}
.dash-server-controls {
  display: flex;
  gap: 8px;
}

/* Address Bar */
.dash-address-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}
.dash-address-label {
  color: var(--text-secondary);
  font-weight: 500;
}
.dash-address-text {
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  flex: 1;
}
.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
}

/* Tabs */
.dash-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
}
.dash-tab {
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.dash-tab:hover { color: var(--text); }
.dash-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.dash-tab-content { position: relative; }
.dash-tab-pane { display: none; }
.dash-tab-pane.active { display: block; }

/* Console in dashboard */
.dash-tab-pane .console-output {
  height: calc(100vh - 310px);
  min-height: 300px;
}

/* Panels */
.dash-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.dash-panel-header h3 { margin: 0; font-size: 16px; }

/* Properties Grid */
.dash-props-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.dash-prop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dash-prop-label {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.dash-prop-value { min-width: 120px; }
.dash-input-sm {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 13px;
  width: 100%;
}
.dash-input-sm:focus { border-color: var(--accent); outline: none; }
.dash-select {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 13px;
  width: 100%;
}

/* Toggle switch */
.dash-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.dash-toggle input { opacity: 0; width: 0; height: 0; }
.dash-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--secondary);
  border-radius: 22px;
  transition: 0.2s;
}
.dash-toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: 0.2s;
}
.dash-toggle input:checked + .dash-toggle-slider { background: var(--accent); }
.dash-toggle input:checked + .dash-toggle-slider::before { transform: translateX(18px); background: #fff; }

/* List items */
.dash-list { display: flex; flex-direction: column; gap: 6px; }
.dash-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--secondary);
  border-radius: 8px;
  gap: 12px;
}
.dash-list-info { min-width: 0; flex: 1; }
.dash-list-name { font-size: 14px; font-weight: 500; display: block; }
.dash-list-meta { font-size: 12px; color: var(--text-secondary); display: block; }
.dash-list-actions { display: flex; gap: 6px; flex-shrink: 0; }

.dash-badge {
  display: inline-block;
  font-size: 11px;
  background: var(--accent);
  color: #fff;
  padding: 1px 8px;
  border-radius: 4px;
  vertical-align: middle;
}

/* Inline form */
.dash-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Form groups */
.dash-form-group {
  margin-bottom: 16px;
}
.dash-form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.dash-toggle-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text) !important;
}

/* Tags */
.dash-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.dash-tag button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}

/* Backup status */
.dash-backup-status {
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

/* Warning button */
.btn-warning {
  background: #ff9800;
  color: #fff;
}
.btn-warning:hover { background: #f57c00; }
.btn-warning:disabled { opacity: 0.5; cursor: default; }

/* Text helpers */
.text-muted { color: var(--text-secondary); font-size: 13px; }

/* Dashboard notifications */
.dashboard-notification {
  position: fixed;
  top: 60px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  animation: notif-slide-in 0.3s ease, notif-fade-out 0.5s ease 3.5s;
  max-width: 400px;
}
.dashboard-notification.error {
  background: #d32f2f;
  color: #fff;
}
.dashboard-notification.info {
  background: var(--accent);
  color: #fff;
}
@keyframes notif-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes notif-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Raw Properties */
.dash-raw-textarea {
  width: 100%;
  height: 400px;
  background: var(--primary);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  resize: vertical;
  line-height: 1.6;
}
.dash-raw-textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* Discord Settings */
.dash-discord-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.dash-discord-section h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.dash-discord-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dash-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.dash-toggle-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* Resource Monitor Grid */
.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.res-card {
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.res-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.res-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}
.res-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}
.res-bar {
  height: 6px;
  background: var(--secondary);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}
.res-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .dash-sidebar { width: 180px; min-width: 180px; }
  .dash-props-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .dash-server-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .dash-layout { flex-direction: column; }
  .dash-sidebar {
    width: 100%;
    min-width: 100%;
    max-height: 120px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .dash-server-list { display: flex; gap: 4px; overflow-x: auto; padding: 4px 8px; }
  .dash-server-item { min-width: 140px; }
}

