/* PackSwap Studio - Official Website & Admin Portal Design System */
/* shadcn/ui Dark Zinc Theme + Tailwind Catalyst Precision */

:root {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #121215;
  --card-elevated: #18181b;
  --card-foreground: #fafafa;
  --popover: #121215;
  --popover-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #09090b;
  --secondary: #27272a;
  --secondary-hover: #3f3f46;
  --secondary-foreground: #fafafa;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafafa;
  --destructive: #ef4444;
  --destructive-foreground: #fafafa;
  --border: #27272a;
  --border-subtle: #1f1f23;
  --input: #1e1e24;
  --ring: #38bdf8;
  --radius: 8px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'Cascadia Code', monospace;
}

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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(circle at 100% 30%, rgba(139, 92, 246, 0.06), transparent 500px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}

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

/* Header & Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.brand-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.brand-version {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.nav-links a:hover {
  color: #fff;
  transition: color 0.15s ease;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-primary {
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}

.btn-primary:hover {
  background: #f4f4f5;
  box-shadow: 0 4px 14px rgba(255,255,255,0.2);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Hero Section */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 28px;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted-foreground);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-cta .btn {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 8px;
}

.hero-meta {
  font-size: 12px;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* App Mockup Preview - Authentic PackSwap Studio UI */
.preview-wrapper {
  max-width: 1240px;
  margin: 0 auto 90px;
  padding: 0 16px;
}

.mockup-window {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(56, 189, 248, 0.12);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fafafa;
}

/* Frameless Titlebar */
.mockup-window .app-titlebar {
  height: 44px;
  background: #09090b;
  border-bottom: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
}

.mockup-window .titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-window .titlebar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mockup-window .ui-pill-select {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #18181b;
  border: 1px solid #27272a;
  padding: 3px 8px 3px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.mockup-window .ui-pill-select span {
  color: #a1a1aa;
}

.mockup-window .ui-pill-select strong {
  color: #fafafa;
  font-weight: 500;
}

.mockup-window .ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #27272a;
  background: #18181b;
}

.mockup-window .badge-connected {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.mockup-window .badge-connected .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.mockup-window .badge-admin {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.mockup-window .window-controls-mock {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a1a1aa;
  font-size: 12px;
}

/* Dual Pane Layout */
.mockup-window .app-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 680px;
  background: #09090b;
}

/* Sidebar */
.mockup-window .ui-sidebar {
  background: #09090b;
  border-right: 1px solid #27272a;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 290px;
  min-width: 290px;
  box-sizing: border-box;
}

/* Current Active Server mcswap status box */
.mockup-window .mcswap-status-box {
  background: #121215;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 11px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.mockup-window .mcswap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mockup-window .mcswap-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #a1a1aa;
  background: #09090b;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #27272a;
}

.mockup-window .btn-icon {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 13px;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.mockup-window .btn-icon:hover {
  color: #fafafa;
}

.mockup-window .mcswap-active-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mockup-window .mcswap-current-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #a1a1aa;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.mockup-window .mcswap-current-val {
  font-size: 14px;
  font-weight: 700;
  color: #fafafa;
}

.mockup-window .status-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

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

.mockup-window .status-offline {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.mockup-window .mcswap-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #a1a1aa;
  border-top: 1px solid #1f1f23;
  padding-top: 6px;
  margin-top: 6px;
}

.mockup-window .btn-link {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 10.5px;
  cursor: pointer;
  font-weight: 500;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
  white-space: nowrap;
}

.mockup-window .btn-link:hover {
  color: #fafafa;
}

.mockup-window .sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

.mockup-window .sidebar-servers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-window .srv-card {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 8px 10px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.mockup-window .srv-card:hover {
  border-color: #3f3f46;
}

.mockup-window .srv-card.active-card {
  background: #121215;
  border-color: #52525b;
  box-shadow: 0 0 0 1px rgba(250, 250, 250, 0.08);
}

.mockup-window .srv-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.mockup-window .srv-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.mockup-window .srv-badge {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #27272a;
  color: #a1a1aa;
}

.mockup-window .srv-badge.active-badge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.mockup-window .srv-dir {
  font-size: 10px;
  color: #a1a1aa;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.mockup-window .srv-btns {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.mockup-window .ui-btn {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #27272a;
  background: #18181b;
  color: #fafafa;
  cursor: pointer;
}

.mockup-window .ui-btn-red {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: transparent;
}

.mockup-window .ui-btn-red-filled {
  color: #fff;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.2);
}

/* Sidebar Navigation */
.mockup-window .side-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mockup-window .side-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  color: #a1a1aa;
  font-weight: 500;
}

.mockup-window .side-nav-item.active {
  background: #18181b;
  color: #fff;
  font-weight: 600;
}

.mockup-window .sidebar-version-wrap {
  margin-top: auto;
  border-top: 1px solid #27272a;
  padding-top: 10px;
}

/* Main Dashboard Area */
.mockup-window .ui-main {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

/* Tab Switching Panes */
.mockup-window .preview-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: tabFadeIn 0.15s ease-in-out;
}

.mockup-window .preview-tab-pane.hidden {
  display: none !important;
}

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

/* Map Viewport Mockup */
.mockup-window .map-viewport-mock {
  position: relative;
  height: 380px;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #090d16 100%);
  border: 1px solid #27272a;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-window .map-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.mockup-window .map-hud-overlay {
  position: absolute;
  top: 12px;
  left: 14px;
  background: rgba(9, 9, 11, 0.88);
  border: 1px solid #27272a;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fafafa;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.mockup-window .map-hud-controls {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

/* Console Viewport */
.mockup-window .console-viewport {
  background: #050507;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e4e4e7;
  height: 360px;
  overflow-y: auto;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Files Explorer Split */
.mockup-window .files-split {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  height: 380px;
}

.mockup-window .files-list-pane {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 6px;
  overflow-y: auto;
}

.mockup-window .file-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-bottom: 1px solid #18181b;
  font-size: 11.5px;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.12s;
}

.mockup-window .file-item-row:hover,
.mockup-window .file-item-row.active {
  background: #18181b;
  color: #fafafa;
}

.mockup-window .file-editor-pane {
  background: #050507;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #d4d4d8;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Form Grid */
.mockup-window .prop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mockup-window .prop-row {
  background: #121215;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-window .prop-row label {
  font-size: 10.5px;
  color: #a1a1aa;
  font-weight: 600;
  text-transform: uppercase;
}

.mockup-window .prop-input {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 4px;
  padding: 5px 8px;
  color: #fafafa;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

/* Lifecycle Hero Bar */
.mockup-window .hero-swap-bar {
  background: #121215;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.mockup-window .hero-swap-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 2px 0;
}

.mockup-window .hero-swap-info p {
  font-size: 11px;
  color: #a1a1aa;
  margin: 0;
}

.mockup-window .hero-swap-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Metrics Grid */
.mockup-window .metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mockup-window .metric-card {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}

.mockup-window .metric-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mockup-window .metric-label {
  font-size: 11px;
  font-weight: 500;
  color: #a1a1aa;
}

.mockup-window .metric-badge-sub {
  font-size: 10px;
  color: #a1a1aa;
  background: #18181b;
  border: 1px solid #27272a;
  padding: 1px 6px;
  border-radius: 4px;
}

.mockup-window .metric-val {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.mockup-window .metric-sparkline {
  margin-top: 6px;
  height: 28px;
}

.mockup-window .metric-disk-track {
  width: 100%;
  height: 6px;
  background: #27272a;
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0 6px 0;
}

.mockup-window .metric-disk-fill {
  height: 100%;
  background: #fafafa;
  border-radius: 3px;
}

.mockup-window .metric-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a1a1aa;
}

/* Bottom Split: Commands & Terminal */
.mockup-window .dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mockup-window .panel-card {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.mockup-window .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mockup-window .panel-header h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.mockup-window .panel-header p {
  font-size: 11px;
  color: #a1a1aa;
  margin: 0;
}

/* Quick Commands Grid */
.mockup-window .quick-cmd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mockup-window .qcmd-card {
  background: #121215;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mockup-window .qcmd-card:hover {
  background: #18181b;
  border-color: #3f3f46;
  transform: translateY(-1px);
}

.mockup-window .qcmd-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.mockup-window .qcmd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}

.mockup-window .qcmd-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #a1a1aa;
  background: #09090b;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid #1f1f23;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-window .qcmd-desc {
  font-size: 9.5px;
  color: #71717a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Terminal Stream Box */
.mockup-window .terminal-stream {
  flex: 1;
  background: #050507;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e4e4e7;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mockup-window .terminal-output {
  flex: 1;
  overflow-y: auto;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 220px;
  padding-right: 4px;
}

.mockup-window .terminal-output::-webkit-scrollbar {
  width: 5px;
}

.mockup-window .terminal-output::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

.mockup-window .adhoc-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #1f1f23;
  padding-top: 8px;
  margin-top: 8px;
}

.mockup-window .adhoc-input {
  flex: 1;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10.5px;
  color: #fafafa;
  font-family: var(--font-mono);
  outline: none;
}

/* Theme Switching Overrides for Interactive Mockup Window */
.mockup-window[data-theme="radix-ui"] {
  border-color: #3e3852;
}
.mockup-window[data-theme="radix-ui"] .app-layout {
  background: #0e0d13;
}
.mockup-window[data-theme="radix-ui"] .ui-sidebar {
  background: #111017;
  border-right-color: #272435;
}
.mockup-window[data-theme="radix-ui"] .mcswap-status-box,
.mockup-window[data-theme="radix-ui"] .hero-swap-bar,
.mockup-window[data-theme="radix-ui"] .panel-card,
.mockup-window[data-theme="radix-ui"] .metric-card {
  background: #16151f;
  border-color: #2d293f;
}
.mockup-window[data-theme="radix-ui"] .btn-primary {
  background: #6e56cf;
  color: #fff;
}
.mockup-window[data-theme="radix-ui"] .side-nav-item.active {
  background: rgba(110, 86, 207, 0.2);
  color: #b5a4f7;
  border-left: 2px solid #6e56cf;
}

.mockup-window[data-theme="headlessui"] {
  border-color: #1e293b;
}
.mockup-window[data-theme="headlessui"] .app-layout {
  background: #0f172a;
}
.mockup-window[data-theme="headlessui"] .ui-sidebar {
  background: #0b1120;
  border-right-color: #1e293b;
}
.mockup-window[data-theme="headlessui"] .mcswap-status-box,
.mockup-window[data-theme="headlessui"] .hero-swap-bar,
.mockup-window[data-theme="headlessui"] .panel-card,
.mockup-window[data-theme="headlessui"] .metric-card {
  background: #1e293b;
  border-color: #334155;
}
.mockup-window[data-theme="headlessui"] .btn-primary {
  background: #0284c7;
  color: #fff;
}
.mockup-window[data-theme="headlessui"] .side-nav-item.active {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-left: 2px solid #0284c7;
}

.mockup-window[data-theme="shadcn-light"] {
  background: #ffffff;
  border-color: #e4e4e7;
  color: #09090b;
}
.mockup-window[data-theme="shadcn-light"] .app-titlebar {
  background: #f4f4f5;
  border-bottom-color: #e4e4e7;
  color: #09090b;
}
.mockup-window[data-theme="shadcn-light"] .app-layout {
  background: #fafafa;
}
.mockup-window[data-theme="shadcn-light"] .ui-sidebar {
  background: #f4f4f5;
  border-right-color: #e4e4e7;
}
.mockup-window[data-theme="shadcn-light"] .mcswap-status-box,
.mockup-window[data-theme="shadcn-light"] .hero-swap-bar,
.mockup-window[data-theme="shadcn-light"] .panel-card,
.mockup-window[data-theme="shadcn-light"] .metric-card {
  background: #ffffff;
  border-color: #e4e4e7;
  color: #09090b;
}
.mockup-window[data-theme="shadcn-light"] .mcswap-current-val,
.mockup-window[data-theme="shadcn-light"] .hero-swap-info h3,
.mockup-window[data-theme="shadcn-light"] .panel-header h4,
.mockup-window[data-theme="shadcn-light"] .srv-name,
.mockup-window[data-theme="shadcn-light"] .metric-val {
  color: #09090b;
}
.mockup-window[data-theme="shadcn-light"] .btn-primary {
  background: #18181b;
  color: #fff;
}
.mockup-window[data-theme="shadcn-light"] .side-nav-item.active {
  background: #e4e4e7;
  color: #09090b;
}

@media (max-width: 900px) {
  .mockup-window .app-layout {
    grid-template-columns: 1fr;
  }
  .mockup-window .ui-sidebar {
    display: none;
  }
  .mockup-window .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mockup-window .dashboard-split {
    grid-template-columns: 1fr;
  }
}

.metric-gauges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-card-mock {
  background: #121215;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #1f1f23;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
}

.dashboard-split-mock {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}

.terminal-box-mock {
  background: #000000;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #a1a1aa;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}

/* Feature Cards Grid */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Changelog Accordion */
.changelog-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.changelog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.changelog-badge {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
}

.changelog-date {
  font-size: 12px;
  color: var(--muted-foreground);
}

.changelog-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #d4d4d8;
}

.changelog-highlights li {
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.changelog-highlights li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #38bdf8;
  font-size: 16px;
}

/* Admin Portal Overlay / View */
.admin-view {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #09090b;
  overflow-y: auto;
}

.admin-view.active {
  display: block;
}

.admin-header {
  border-bottom: 1px solid var(--border);
  background: #121215;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.stat-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 6px;
}

.stat-val {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

/* Tables */
.table-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.data-table th {
  background: #18181b;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #121215;
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.input {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-revoked {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.badge-plan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #18181b;
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slideIn 0.2s ease;
}

.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-foreground);
}
