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

/* Accessibility utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1e40af;
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 4px 0;
  z-index: 10000;
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #0a0a0a;
  color: #e1e4e8;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 200px;
  background: #0f0f0f;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
  position: relative;
}

.sidebar[hidden] {
  display: none;
}

.sidebar.collapsed {
  width: 50px;
}

.sidebar-toggle {
  position: absolute;
  top: 1rem;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.sidebar-toggle:hover {
  background: #2a2a2a;
}

.toggle-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid #a1a1aa;
}

.sidebar.collapsed .toggle-icon {
  border-right: none;
  border-left: 6px solid #a1a1aa;
}

.sidebar-nav {
  padding: 1rem 0;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}

.sidebar-nav:not(.sidebar-nav-bottom) {
  flex: 1;
}

#sidebar-sign-out {
  margin-top: auto;
}

/* SDK Dropdown Menu */
.nav-dropdown {
  list-style: none;
}

.nav-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #a1a1aa;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "▶";
  font-size: 0.6rem;
  margin-left: auto;
  transition: transform 0.2s;
}

.nav-dropdown[open] > summary::after {
  transform: rotate(90deg);
}

.nav-dropdown > summary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.nav-submenu {
  padding-left: 2.5rem;
}

.nav-subitem {
  display: block;
  padding: 0.5rem 1rem;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.nav-subitem:hover {
  color: #10b981;
}

/* Collapsed sidebar - SDK dropdown */
.sidebar.collapsed .nav-dropdown > summary .nav-label,
.sidebar.collapsed .nav-submenu {
  display: none;
}

.sidebar.collapsed .nav-dropdown > summary::after {
  display: none;
}

.sidebar.collapsed .nav-dropdown > summary {
  justify-content: center;
  padding: 0.75rem;
}

.sidebar-nav-bottom {
  flex: 0;
  margin-top: 0;
  margin-top: auto;
  margin-bottom: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.token-display {
  cursor: default;
}

.token-display .nav-icon {
  color: #3fb950;
}

.token-display.plan-free .nav-icon {
  color: #da3633;
}

.token-count {
  font-size: 0.75rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #a1a1aa;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #10b981;
}

.nav-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-icon-img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-label {
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .nav-label {
  display: none;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 0.75rem;
}

.app-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.trial-banner {
  width: 100%;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #10b981, #059669);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  z-index: 100;
}

.trial-banner a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.trial-banner a:hover {
  color: #e6e6e6;
}

/* Main content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  background:
    radial-gradient(
      ellipse at top,
      rgba(16, 185, 129, 0.15) 0%,
      transparent 50%
    ),
    #0a0a0a;
}

/* Loading state */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: #a1a1aa;
}

.loading-state[hidden] {
  display: none;
}

/* Landing Page */
.landing {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 0 4rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: #10b981;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: #a1a1aa;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-note {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-1px);
}

.btn-glow {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-glow:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  background: transparent;
  color: #a1a1aa;
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #ef4444;
}

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

/* Features Section */
.features-section {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.feature-card:hover {
  background: rgba(26, 26, 26, 0.8);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2) 0%,
    rgba(5, 150, 105, 0.2) 100%
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  width: 24px;
  height: 24px;
  color: #10b981;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.5;
  margin: 0;
}

/* Pricing Section */
.pricing-section {
  padding: 4rem 0;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2.5rem;
}

.pricing-single {
  max-width: 500px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  position: relative;
  transition: all 0.2s ease;
}

.pricing-card:hover {
  background: rgba(26, 26, 26, 0.8);
}

.pricing-card.featured {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(5, 150, 105, 0.1) 100%
  );
  border-color: rgba(16, 185, 129, 0.3);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 20px;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-tier {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.pricing-tagline {
  font-size: 0.875rem;
  color: #a1a1aa;
  margin: 0;
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-features li {
  font-size: 0.9rem;
  color: #a1a1aa;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
}

.pricing-trial-note {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Price Display */
.price-display {
  margin: 1.5rem 0;
}

.price-amount {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.price-currency {
  font-size: 1rem;
  color: #a1a1aa;
  margin-left: 0.5rem;
  vertical-align: baseline;
}

/* Full-width button */
.btn-full {
  width: 100%;
  margin-top: 1.5rem;
}

/* Transparent Pricing Section */
.transparent-pricing-section {
  padding: 4rem 0;
  text-align: center;
}

/* Landing Footer */
.landing-footer {
  padding: 3rem 0;
  text-align: center;
}

.landing-footer p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.landing-footer a {
  color: #10b981;
  text-decoration: none;
}

.landing-footer a:hover {
  text-decoration: underline;
}

/* Dashboard (Signed In) */
.dashboard {
  width: 100%;
  max-width: 600px;
  padding: 3rem 1.5rem;
}

/* Upgrade Overlay */
.upgrade-overlay {
  text-align: center;
  padding: 2rem 0;
}

.upgrade-overlay[hidden] {
  display: none;
}

#dashboard-content[hidden] {
  display: none;
}

#dashboard-content {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 150px);
}

.upgrade-card {
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 450px;
  margin: 0 auto;
}

.upgrade-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2) 0%,
    rgba(5, 150, 105, 0.2) 100%
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-icon {
  width: 32px;
  height: 32px;
  color: #10b981;
}

.upgrade-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.upgrade-description {
  font-size: 1rem;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.upgrade-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.upgrade-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #e1e4e8;
}

.upgrade-feature svg {
  width: 18px;
  height: 18px;
  color: #3fb950;
  flex-shrink: 0;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.upgrade-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 1rem;
}

.upgrade-actions {
  margin-top: 2rem;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
}

.create-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.create-section h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
}

.dashboard-help {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.help-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Form Elements */
.form-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.form-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 26, 26, 0.5);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-row input::placeholder {
  color: #6b7280;
}

.form-row input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Site Cards */
#pipelines-list {
  margin-bottom: 1rem;
}

.site-card {
  padding: 1rem 1.25rem;
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

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

.deploying-card {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.deploying-card .site-info {
  justify-content: flex-start;
}

/* Destroying card - red variant of deploying card */
.destroying-card {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.destroying-card .site-info {
  justify-content: flex-start;
}

.destroying-card strong {
  color: #fca5a5;
}

.destroying-failed {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
}

.destroy-icon-failed {
  font-size: 1rem;
}

/* Red spinner variant for destroy operations */
.spinner-danger {
  border: 2px solid rgba(239, 68, 68, 0.2);
  border-top-color: #ef4444;
}

/* Status badge and subtitle for deploy/destroy cards */
.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  margin-left: auto;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-destroying {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-subtitle {
  margin: 0.25rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Service checklist (deploy/destroy progress) */
.service-checklist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  transition: opacity 0.3s ease;
}

.service-check-icon {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.service-check-label {
  font-weight: 500;
  color: #e1e4e8;
  min-width: 90px;
}

.service-check-desc {
  color: #6b7280;
  font-size: 0.8rem;
}

.service-check-item.service-done .service-check-icon {
  color: #3fb950;
}

.service-check-item.service-done .service-check-label {
  color: #a1a1aa;
}

.service-check-item.service-pending .service-check-icon {
  color: #eab308;
}

.site-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-name {
  font-weight: 500;
  color: #ffffff;
}

.site-actions {
  display: flex;
  gap: 0.5rem;
}

.site-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.productions-list {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.production-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
  font-size: 0.9rem;
}

.production-name {
  color: #e1e4e8;
}

.production-lines {
  font-size: 0.8rem;
}

/* Utility Classes */
.muted {
  color: #6b7280;
}

.empty-state {
  text-align: center;
  color: #6b7280;
  padding: 2rem;
}

.error-text {
  color: #ef4444;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

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

  .landing {
    padding: 0 1rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }
}

/* Pipeline Cards - Dashboard First Design */
.pipeline-card {
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.pipeline-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

/* Dashboard Section - Primary Action */
.dashboard-section {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15) 0%,
    rgba(20, 184, 166, 0.1) 100%
  );
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.dashboard-section .btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Integration Section - Secondary */
.integration-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.integration-section > summary {
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  list-style: none;
}

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

.integration-section > summary::before {
  content: "▶ ";
  font-size: 0.7rem;
  margin-right: 0.5rem;
}

.integration-section[open] > summary::before {
  content: "▼ ";
}

.integration-section > summary:hover {
  color: #e1e4e8;
}

.integration-content {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.url-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.url-row label {
  font-size: 0.75rem;
  color: #6b7280;
  min-width: 90px;
  flex-shrink: 0;
}

.url-code {
  flex: 1;
  font-size: 0.75rem;
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-details {
  margin-top: 0.75rem;
}

.code-details > summary {
  cursor: pointer;
  color: #10b981;
  font-size: 0.8rem;
  padding: 0.25rem 0;
}

.code-details > summary:hover {
  color: #34d399;
}

.code-block {
  position: relative;
  margin-top: 0.75rem;
}

.code-block pre {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

.code-block code {
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  color: #e1e4e8;
}

.copy-code-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* SDK View Styles */
.sdk-view {
  max-width: 900px;
}

.sdk-hero-section {
  margin-bottom: 2rem;
}

.sdk-intro {
  font-size: 1.1rem;
  color: #a1a1aa;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.sdk-hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.sdk-quick-nav {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.sdk-nav-link {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.sdk-nav-link:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
}

.sdk-overview-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sdk-overview-card h2 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.sdk-overview-card p {
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sdk-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sdk-checklist li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  color: #a1a1aa;
  position: relative;
  font-size: 0.9rem;
}

.sdk-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
}

.sdk-section {
  margin-bottom: 3rem;
  padding-top: 1rem;
}

.sdk-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.sdk-section-header h2 {
  font-size: 1.5rem;
  color: #ffffff;
  margin: 0;
}

.sdk-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  color: #10b981;
}

.sdk-section-header .btn {
  margin-left: auto;
}

.sdk-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sdk-card h3 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.sdk-card p {
  color: #a1a1aa;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.sdk-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sdk-feature {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: #a1a1aa;
  font-size: 0.8rem;
}

/* Grafana Credentials Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1001;
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(234, 179, 8, 0.2) 0%,
    rgba(217, 119, 6, 0.2) 100%
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon-wrapper svg {
  width: 32px;
  height: 32px;
  color: #eab308;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
  text-align: center;
}

.modal-description {
  font-size: 1rem;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.credentials-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.credential-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.credential-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.credential-row label {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 500;
}

.credential-row code {
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 1rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
}

.modal-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 8px;
  padding: 0.875rem;
  margin-bottom: 1.25rem;
}

.modal-warning svg {
  width: 20px;
  height: 20px;
  color: #eab308;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.modal-warning span {
  font-size: 0.85rem;
  color: #e1e4e8;
  line-height: 1.4;
}

.modal-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.modal-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #10b981;
}

.modal-checkbox label {
  font-size: 0.875rem;
  color: #a1a1aa;
  cursor: pointer;
  user-select: none;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-actions .btn {
  width: 100%;
}

/* Delete Modal Danger Variants */
.modal-icon-wrapper.modal-icon-danger {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2) 0%,
    rgba(220, 38, 38, 0.2) 100%
  );
}

.modal-icon-wrapper.modal-icon-danger svg {
  color: #ef4444;
}

.modal-warning.modal-warning-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-warning.modal-warning-danger svg {
  color: #ef4444;
}

.modal-warning.modal-warning-danger strong {
  color: #fca5a5;
  display: block;
  margin-bottom: 0.5rem;
}

.modal-warning.modal-warning-danger ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.modal-warning.modal-warning-danger li {
  color: #e1e4e8;
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .modal-card {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }
}

/* FAQ Section */
.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.faq-container {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
}

.faq-item.active {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: none;
  border: none;
  color: #e1e4e8;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #10b981;
}

.faq-question span {
  flex: 1;
  padding-right: 1rem;
}

.faq-icon {
  flex-shrink: 0;
  color: #10b981;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: rgba(225, 228, 232, 0.8);
  line-height: 1.7;
  font-size: 1rem;
  animation: fadeIn 0.3s ease;
}

.faq-answer p {
  margin: 0;
}

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

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 1rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 1.25rem;
  }

  .faq-answer {
    font-size: 0.95rem;
    padding: 0 1.25rem 1.25rem;
  }
}
