/* ============================================
   nodrift.ch - Page Styles
   ============================================ */

/* ============================================
   UNIFIED PAGE STRUCTURE
   Consistent layout for all dashboard pages
   ============================================ */

/* Main Content Area - All pages */
.page-main {
  margin-left: var(--sidebar-width, 260px);
  padding: var(--space-lg) 0 var(--space-2xl);
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0a0f 0%, #0d0d14 50%, #0a0a0f 100%);
  transition: margin-left 0.25s ease;
}

/* Collapsed sidebar */
.sidebar.collapsed ~ .page-main,
body:has(.sidebar.collapsed) .page-main {
  margin-left: var(--sidebar-collapsed-width, 72px);
}

/* Page Header - Consistent across all pages */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.page-header-content {
  flex: 1;
}

.page-header .page-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.page-header .page-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

.page-header .page-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.page-header-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Stats Grid - Unified stats display */
.page-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.page-stat {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}

.page-stat:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--primary-glow);
}

.page-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-family: "JetBrains Mono", monospace;
}

.page-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: var(--space-xs);
}

/* Page Section - Consistent section spacing */
.page-section {
  margin-bottom: var(--space-lg);
}

.page-section:last-child {
  margin-bottom: 0;
}

.page-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-light);
}

.page-section-title svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

/* Page Card - Consistent card styling */
.page-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.page-card:hover {
  border-color: var(--primary);
}

/* Info Banner - Unified info/notice banners */
.page-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: rgba(0, 212, 255, 0.08);
  border: 2px solid rgba(0, 212, 255, 0.3);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.page-banner svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.page-banner-content {
  flex: 1;
}

.page-banner strong {
  display: block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.page-banner p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

/* Two Column Layout */
.page-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.page-grid-2.sidebar-right {
  grid-template-columns: 1fr 320px;
}

.page-grid-2.sidebar-left {
  grid-template-columns: 320px 1fr;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .page-header-actions {
    justify-content: flex-start;
  }

  .page-grid-2,
  .page-grid-2.sidebar-right,
  .page-grid-2.sidebar-left {
    grid-template-columns: 1fr;
  }
}

/* Mobile responsive - hide sidebar margin */
@media (max-width: 1024px) {
  .page-main {
    margin-left: 0;
    padding-top: calc(var(--mobile-header-height, 60px) + var(--space-lg));
  }

  body:has(.sidebar.collapsed) .page-main {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .page-main {
    padding: var(--space-md) 0 var(--space-xl);
    margin-left: 0;
    padding-top: calc(var(--mobile-header-height, 60px) + var(--space-md));
  }

  .page-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-stat {
    padding: var(--space-sm) var(--space-md);
  }

  .page-stat-value {
    font-size: 1.5rem;
  }

  .page-header .page-title {
    font-size: 1.25rem;
  }
}

/* Auth Pages (Login/Register) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.auth-logo span {
  color: var(--primary);
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-xl);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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

/* Dashboard Page */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding: var(--space-xl) 0;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
}

.page-subtitle {
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.page-content {
  padding: var(--space-xl) 0;
}

/* Section */
.section {
  margin-bottom: var(--space-2xl);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: -0.01em;
}

.section-title svg {
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* Nodes Grid */
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
}

/* Jobs Table */
.jobs-container {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  overflow: hidden;
}

/* Settings Page */
.settings-section {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.settings-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-light);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label {
  font-weight: 600;
}

.settings-value {
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}

/* API Key */
.api-key-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-input);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.api-key-value {
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   Dashboard - Redesigned with Pro Icons
   ============================================ */

.dashboard-main {
  padding: var(--space-xl) 0;
  min-height: calc(100vh - 60px);
  background: var(--bg-dark);
}

/* Dashboard Header - Neo-Brutalism */
.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 4px solid var(--primary);
  gap: var(--space-xl);
}

.dashboard-header-content {
  flex: 1;
}

.dashboard-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.btn-create {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
}

.btn-create svg {
  flex-shrink: 0;
}

/* Stats Overview - Neo-Brutalism */
.dashboard-stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 3px solid var(--text-light);
  padding: var(--space-lg);
  transition: all 0.15s ease;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  background: var(--border-light);
  z-index: -1;
  transition: all 0.15s ease;
}

.stat-item:hover {
  border-color: var(--primary);
  transform: translate(-3px, -3px);
}

.stat-item:hover::after {
  background: rgba(0, 212, 255, 0.15);
  top: 7px;
  left: 7px;
  right: -7px;
  bottom: -7px;
}

.stat-item > * {
  position: relative;
  z-index: 1;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--primary);
  border: 3px solid var(--text-dark);
  color: var(--text-dark);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-xs);
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

/* Nodes Section */
.nodes-section {
  margin-top: var(--space-xl);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-icon.spinning svg {
  animation: spin 0.5s linear infinite;
}

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

.btn-icon-sm {
  width: 32px;
  height: 32px;
}

.btn-icon-sm svg {
  width: 16px;
  height: 16px;
}

.btn-icon.btn-danger:hover {
  border-color: var(--error);
  color: var(--error);
}

/* Nodes List */
.nodes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Node Card */
.node-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-lg);
  transition: border-color 0.15s ease;
}

.node-card:hover {
  border-color: var(--primary);
}

.node-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  color: var(--primary);
}

.node-icon svg {
  width: 24px;
  height: 24px;
}

.node-info {
  flex: 1;
}

.node-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.node-ip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.node-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid;
}

.node-status.status-running {
  color: var(--success);
  border-color: var(--success);
  background: rgba(0, 212, 255, 0.1);
}

.node-status.status-provisioning {
  color: var(--warning);
  border-color: var(--warning);
  background: rgba(255, 170, 0, 0.1);
}

.node-status.status-stopped {
  color: var(--text-muted);
  border-color: var(--border-light);
  background: var(--bg-input);
}

.node-status.status-error {
  color: var(--error);
  border-color: var(--error);
  background: rgba(255, 68, 68, 0.1);
}

.node-status.status-deleting {
  color: var(--warning);
  border-color: var(--warning);
  background: rgba(255, 170, 0, 0.1);
}

.dot-success,
.dot-warning,
.dot-muted,
.dot-error {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.dot-success { background: var(--success); }
.dot-warning { background: var(--warning); }
.dot-muted { background: var(--text-muted); animation: none; }
.dot-error { background: var(--error); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Node Specs */
.node-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-md);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.spec-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Node Footer */
.node-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-tier {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.node-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Empty State */
.empty-state-container {
  padding: var(--space-lg);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-elevated) 100%);
  border: 2px dashed var(--border-light);
  position: relative;
  overflow: hidden;
}

.empty-state::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-subtle) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.empty-state-icon {
  color: var(--primary);
  margin-bottom: var(--space-lg);
  opacity: 0.6;
  position: relative;
  z-index: 1;
}

.empty-state-icon svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 20px var(--primary-glow));
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.empty-state-text {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 400px;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* Loading State */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
}

/* ============================================
   Create Node Modal - Enhanced
   ============================================ */

.modal-lg {
  max-width: 650px;
  padding: 0;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.modal-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid var(--primary);
  color: var(--primary);
  flex-shrink: 0;
}

.modal-header-icon svg {
  width: 24px;
  height: 24px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

/* Create Form */
.create-form {
  padding: var(--space-xl);
}

.form-section {
  margin-bottom: var(--space-xl);
}

.form-section:last-child {
  margin-bottom: 0;
}

.input-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Tier Selector */
.tier-selector {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tier-option {
  cursor: pointer;
}

.tier-option input {
  display: none;
}

.tier-card {
  position: relative;
  background: var(--bg-input);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-lg);
  transition: all 0.15s ease;
}

.tier-card.popular {
  border-color: var(--primary);
}

.tier-badge {
  position: absolute;
  top: 0;
  right: var(--space-md);
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px var(--space-sm);
}

.tier-option input:checked + .tier-card {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.05);
}

.tier-option:hover .tier-card {
  border-color: var(--primary);
}

.tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.tier-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.tier-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.tier-price small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tier-specs {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.tier-specs span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tier-specs svg {
  color: var(--primary);
}

/* Region Selector */
.region-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 500px) {
  .region-selector {
    grid-template-columns: 1fr;
  }
}

.region-option {
  cursor: pointer;
}

.region-option input {
  display: none;
}

.region-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-input);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-lg);
  transition: all 0.15s ease;
}

.region-option input:checked + .region-card {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.05);
}

.region-option:hover .region-card {
  border-color: var(--primary);
}

.region-flag {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.region-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.region-code {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  padding: var(--space-xl);
  border-top: 2px solid var(--border-light);
  background: var(--bg-card);
  position: sticky;
  bottom: 0;
  margin: 0 calc(var(--space-xl) * -1) calc(var(--space-xl) * -1);
}

.modal-lg .form-actions {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .dashboard-stats {
    flex-direction: column;
  }

  .stat-item {
    min-width: 100%;
  }

  .node-specs {
    gap: var(--space-md);
  }

  .tier-specs {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ============================================
   Container Dashboard - New Design
   ============================================ */

/* Credits Display */
.credits-display {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-card);
  border: var(--border-width) solid var(--primary);
  padding: var(--space-md) var(--space-lg);
}

.credits-icon {
  color: var(--primary);
}

.credits-info {
  display: flex;
  flex-direction: column;
}

.credits-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.credits-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 var(--space-sm);
  background: var(--primary);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Section Title with Icon */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title svg {
  color: var(--primary);
}

/* Empty State Inline */
.empty-state-inline {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-elevated) 100%);
  border: 2px dashed var(--border-light);
  padding: var(--space-2xl);
  text-align: center;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.empty-state-inline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--primary-subtle) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.empty-state-inline svg {
  color: var(--primary);
  opacity: 0.5;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

.empty-state-inline h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--text-light);
}

.empty-state-inline p {
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto;
}

/* Containers List */
.containers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Container Card */
.container-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-elevated) 100%);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.container-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  transition: all var(--transition-normal);
}

.container-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-glow), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateX(4px);
}

.container-card.status-running {
  border-left: none;
}

.container-card.status-running::before {
  background: linear-gradient(180deg, var(--success) 0%, rgba(0, 212, 255, 0.3) 100%);
  width: 4px;
  box-shadow: 0 0 15px var(--success-glow);
}

.container-card.status-starting {
  border-left: none;
}

.container-card.status-starting::before {
  background: linear-gradient(180deg, var(--warning) 0%, rgba(255, 170, 0, 0.3) 100%);
  width: 4px;
  box-shadow: 0 0 15px var(--warning-glow);
  animation: pulse-bar 1.5s ease-in-out infinite;
}

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.container-card.status-stopped {
  border-left: none;
  opacity: 0.7;
}

.container-card.status-stopped::before {
  background: var(--text-muted);
  width: 4px;
}

.container-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.container-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 2px solid var(--primary);
  color: var(--primary);
  position: relative;
}

.container-icon::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid var(--primary);
  opacity: 0.3;
}

.container-icon svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.container-info {
  flex: 1;
}

.container-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.container-template {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.container-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-running .status-dot {
  background: var(--success);
}

.status-starting .status-dot {
  background: var(--warning);
}

.status-stopped .status-dot {
  background: var(--text-muted);
  animation: none;
}

.container-meta {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-md);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-item svg {
  color: var(--primary);
}

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

.container-ip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  background: var(--bg-input);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border-light);
}

.container-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Templates Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* Template Card */
.template-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-elevated) 100%);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-subtle) 0%, transparent 40%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.template-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.template-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 30px var(--primary-glow), 0 8px 24px rgba(0,0,0,0.4);
}

.template-card:hover::before,
.template-card:hover::after {
  opacity: 1;
}

.template-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.template-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 2px solid var(--primary);
  color: var(--primary);
  position: relative;
}

.template-icon::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--primary);
  opacity: 0.4;
}

.template-icon svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.template-pricing {
  text-align: right;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.template-price {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 20px var(--primary-glow);
}

.template-price-unit {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.template-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.template-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  flex: 1;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.template-specs {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

.template-specs .spec {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.template-specs svg {
  color: var(--primary);
  filter: drop-shadow(0 0 4px var(--primary-glow));
}

.template-tools {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.template-tools code {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: var(--space-xs) var(--space-sm);
  display: inline-block;
  border: 1px solid var(--border-light);
}

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8rem;
}

/* Responsive Container Dashboard */
@media (max-width: 768px) {
  .credits-display {
    padding: var(--space-sm) var(--space-md);
  }

  .credits-value {
    font-size: 1.25rem;
  }

  .container-meta {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

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

/* ============================================
   Profile Page - Neo-Brutalism
   ============================================ */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.profile-section {
  background: var(--bg-card);
  border: 3px solid var(--text-light);
  padding: var(--space-xl);
  transition: all 0.15s ease;
  position: relative;
}

.profile-section::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: -5px;
  bottom: -5px;
  background: var(--border-light);
  z-index: -1;
  transition: all 0.15s ease;
}

.profile-section:hover {
  border-color: var(--primary);
  transform: translate(-3px, -3px);
}

.profile-section:hover::after {
  background: rgba(0, 212, 255, 0.15);
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
}

.profile-section > * {
  position: relative;
  z-index: 1;
}

.profile-section.full-width {
  grid-column: 1 / -1;
}

.section-title-sm {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title-sm svg {
  color: var(--primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

/* Profile Card - Neo-Brutalism */
.profile-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  background: var(--primary);
  color: var(--text-dark);
  border: 3px solid var(--text-dark);
  box-shadow: 4px 4px 0 var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.profile-email {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  font-family: 'JetBrains Mono', monospace;
}

.profile-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  color: var(--primary);
}

/* Credits Card - Neo-Brutalism */
.credits-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-dark);
  border: 2px solid var(--border-light);
}

.credits-balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.credits-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}

.credits-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.credits-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-family: 'JetBrains Mono', monospace;
}

/* Transactions List - Neo-Brutalism */
.transactions-list {
  min-height: 100px;
}

.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border: 2px solid var(--border-light);
  margin-bottom: var(--space-sm);
  background: var(--bg-dark);
  transition: all 0.15s ease;
}

.transaction-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.transaction-item:last-child {
  margin-bottom: 0;
}

.transaction-info {
  display: flex;
  flex-direction: column;
}

.transaction-type {
  font-weight: 600;
  font-size: 0.9rem;
}

.transaction-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.transaction-amount {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.transaction-item.positive .transaction-amount {
  color: var(--success);
}

.transaction-item.negative .transaction-amount {
  color: var(--error);
}

/* Settings List */
.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
}

.settings-item:last-child {
  border-bottom: none;
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 26px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-input);
  border: 2px solid var(--border-light);
  transition: all var(--transition-normal);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-muted);
  transition: all var(--transition-normal);
}

.toggle:hover .toggle-slider {
  border-color: rgba(0, 212, 255, 0.5);
}

.toggle input:checked + .toggle-slider {
  background-color: rgba(0, 212, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(26px);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Danger Zone */
.danger-zone {
  border: 2px solid var(--error);
  padding: var(--space-lg);
  background: rgba(255, 68, 68, 0.05);
}

.danger-zone p {
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Responsive Profile */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-section.full-width {
    grid-column: 1;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .credits-amount {
    font-size: 2.5rem;
  }
}

/* ============================================
   Legal Pages (Impressum, Datenschutz, AGB)
   ============================================ */

.legal-page {
  padding: var(--space-3xl) 0;
  min-height: 100vh;
}

.container-sm {
  max-width: 800px;
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.02em;
}

.legal-content {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-2xl);
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--text);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content strong {
  font-weight: 600;
}

.legal-date {
  margin-top: var(--space-2xl);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

.legal-footer {
  margin-top: var(--space-xl);
}

.legal-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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

/* Responsive Legal */
@media (max-width: 768px) {
  .legal-title {
    font-size: 1.75rem;
  }

  .legal-content {
    padding: var(--space-lg);
  }
}

/* ============================================
   Pricing Page
   ============================================ */

.pricing-page {
  min-height: 100vh;
  padding-bottom: var(--space-3xl);
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.pricing-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-xl);
  position: relative;
  transition: all 0.15s ease;
}

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

.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: var(--space-lg);
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-md);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.pricing-tier {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl) 0;
}

.pricing-features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: var(--space-xl);
}

/* Pricing Details Table */
.pricing-details {
  margin-top: var(--space-3xl);
}

.price-table {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  overflow-x: auto;
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.price-table th {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-input);
}

.price-table tbody tr:hover {
  background: rgba(0, 212, 255, 0.05);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

/* Pricing Hero */
.pricing-hero {
  text-align: center;
  padding: 6rem 0 2rem;
}

.pricing-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
}

.pricing-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* Pricing Banner */
.pricing-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
  border: 2px solid var(--primary);
  margin-top: var(--space-xl);
}

.pricing-banner svg {
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-banner strong {
  color: var(--primary);
  font-size: 1.125rem;
}

.pricing-banner span {
  color: var(--text-muted);
  margin-left: var(--space-xs);
}

/* Pricing Info Grid */
.pricing-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.pricing-info-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.15s ease;
}

.pricing-info-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pricing-info-card.highlight {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.05);
}

.pricing-info-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 var(--space-md) 0;
}

.pricing-info-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.pricing-info-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: var(--space-sm) 0 0 0;
}

.pricing-amount-lg {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.pricing-credits {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: var(--space-xs) 0 0 0;
}

.pricing-time {
  font-size: 0.75rem;
  color: var(--primary);
  margin: var(--space-xs) 0 0 0;
}

/* Pricing Section */
.pricing-section {
  margin-top: var(--space-3xl);
}

.pricing-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 var(--space-sm) 0;
}

.pricing-section-desc {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 var(--space-xl) 0;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.faq-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  padding: var(--space-lg);
  transition: all 0.15s ease;
}

.faq-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.faq-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 var(--space-sm) 0;
}

.faq-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Pricing CTA */
.pricing-cta {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  margin-top: var(--space-3xl);
  background: var(--bg-card);
  border: 2px solid var(--border-light);
}

.pricing-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 var(--space-sm) 0;
}

.pricing-cta p {
  color: var(--text-muted);
  margin: 0 0 var(--space-lg) 0;
}

/* Legacy Pricing FAQ */
.pricing-faq {
  margin-top: var(--space-3xl);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.faq-item {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-lg);
}

.faq-item h4 {
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-hero {
    padding: 4rem 0 1.5rem;
  }

  .pricing-title {
    font-size: 2rem;
  }

  .pricing-banner {
    flex-direction: column;
    text-align: center;
  }

  .pricing-banner span {
    display: block;
    margin-left: 0;
    margin-top: var(--space-xs);
  }

  .pricing-info-grid {
    grid-template-columns: 1fr;
  }

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

  .price-table {
    overflow-x: auto;
  }
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Jobs Page
   ============================================ */

.jobs-section {
  margin-top: var(--space-xl);
}

.jobs-filters {
  display: flex;
  gap: var(--space-sm);
}

.select-sm {
  background: var(--bg-input);
  border: var(--border-width) solid var(--border-light);
  color: var(--text);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8rem;
  cursor: pointer;
}

.select-sm:focus {
  outline: none;
  border-color: var(--primary);
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Job Card */
.job-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-elevated) 100%);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: width var(--transition-normal);
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateX(4px);
}

.job-card.status-running {
  border-left: none;
}

.job-card.status-running::before {
  background: linear-gradient(180deg, var(--warning) 0%, rgba(255, 170, 0, 0.3) 100%);
  width: 4px;
  box-shadow: 0 0 15px var(--warning-glow);
}

.job-card.status-completed {
  border-left: none;
}

.job-card.status-completed::before {
  background: linear-gradient(180deg, var(--success) 0%, rgba(0, 212, 255, 0.3) 100%);
  width: 4px;
  box-shadow: 0 0 15px var(--success-glow);
}

.job-card.status-failed {
  border-left: none;
}

.job-card.status-failed::before {
  background: linear-gradient(180deg, var(--error) 0%, rgba(255, 68, 68, 0.3) 100%);
  width: 4px;
  box-shadow: 0 0 15px var(--error-glow);
}

.job-card.status-pending {
  border-left: none;
}

.job-card.status-pending::before {
  background: var(--text-muted);
  width: 4px;
}

.job-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.job-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid var(--primary);
  color: var(--primary);
  flex-shrink: 0;
}

.job-info {
  flex: 1;
  min-width: 0;
}

.job-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.job-command {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
}

.job-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.job-status.status-running {
  color: var(--warning);
}

.job-status.status-completed {
  color: var(--success);
}

.job-status.status-failed {
  color: var(--error);
}

.job-status.status-pending {
  color: var(--text-muted);
}

/* Job Progress */
.job-progress {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.progress-bar {
  flex: 1;
  height: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  background-size: 200% 100%;
  transition: width 0.3s ease;
  position: relative;
  animation: progress-shine 2s linear infinite;
}

@keyframes progress-shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}

.progress-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 50px;
  text-align: right;
  text-shadow: 0 0 10px var(--primary-glow);
}

/* Job Footer */
.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.job-time {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.job-time svg {
  color: var(--primary);
}

.btn-xs {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
}

.job-output-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Responsive Jobs */
@media (max-width: 768px) {
  .job-card-header {
    flex-wrap: wrap;
  }

  .job-info {
    order: 2;
    width: 100%;
    margin-top: var(--space-sm);
  }

  .job-status {
    order: 1;
    margin-left: auto;
  }
}

/* ============================================
   Admin Page Styles
   ============================================ */

.admin-main {
  padding: var(--space-xl) 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.admin-header .btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.admin-stat-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-elevated) 100%);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.admin-stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--primary-glow);
}

.admin-stat-card:hover::before {
  opacity: 1;
}

/* Auto-Scale Badge */
.auto-scale-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--primary);
  margin-right: var(--space-sm);
}

/* Admin Usage Section - Usage-Based Billing Stats */
.admin-usage-section {
  background: var(--bg-card);
  border: 3px solid var(--primary);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
}

.admin-usage-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--primary));
}

.admin-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.admin-section-title svg {
  color: var(--primary);
}

.admin-usage-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.admin-usage-stat {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  padding: var(--space-md);
  text-align: center;
  transition: all 0.15s ease;
}

.admin-usage-stat:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.admin-usage-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  font-family: "JetBrains Mono", monospace;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.admin-usage-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .admin-usage-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Capacity Bar */
.capacity-bar {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
}

.capacity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}

.capacity-header span:first-child {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.capacity-header span:last-child {
  font-family: "JetBrains Mono", monospace;
  color: var(--text-light);
}

.capacity-track {
  height: 10px;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  overflow: hidden;
  position: relative;
}

.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  background-size: 200% 100%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary-glow);
  animation: capacity-pulse 3s ease-in-out infinite;
}

@keyframes capacity-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.admin-stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
  line-height: 1;
}

.admin-stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Server Cards */
.servers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.server-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-elevated) 100%);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.server-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--success);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.server-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-glow), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateX(4px);
}

.server-card:hover::before {
  opacity: 1;
}

.server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.server-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.status-dot {
  font-size: 1.25rem;
}

.server-label {
  font-weight: 700;
  font-size: 1.1rem;
}

.server-region {
  color: var(--text-muted);
  font-size: 0.875rem;
  background: var(--bg-dark);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
}

.server-details {
  margin-bottom: var(--space-md);
}

.server-ip code {
  background: var(--bg-dark);
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-radius: 4px;
}

.server-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.server-stats .stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-weight: 600;
}

.stat-bar {
  height: 6px;
  background: var(--bg-dark);
  border-radius: 3px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s;
}

.server-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.loading-state .spinner {
  margin: 0 auto var(--space-md);
}

/* ============================================
   Admin Modal - Neo Brutalism
   ============================================ */

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.admin-modal.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.admin-modal-content {
  position: relative;
  background: var(--bg-card);
  border: 3px solid var(--primary);
  box-shadow: 8px 8px 0 var(--primary);
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - var(--space-2xl) * 2);
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.2s ease;
}

.admin-modal.active .admin-modal-content {
  transform: translateY(0) scale(1);
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 3px solid var(--border-light);
}

.admin-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--bg-dark);
  flex-shrink: 0;
}

.admin-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-light);
}

.admin-modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

.admin-modal-close {
  margin-left: auto;
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-modal-close:hover {
  border-color: var(--error);
  color: var(--error);
  box-shadow: 3px 3px 0 var(--error);
}

.admin-modal-body {
  padding: var(--space-lg);
}

.admin-modal-body .form-group {
  margin-bottom: var(--space-lg);
}

.admin-modal-body .form-group:last-child {
  margin-bottom: 0;
}

.admin-modal-body .form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* Select Wrapper for custom styling */
.select-wrapper {
  position: relative;
}

.select-wrapper .select {
  width: 100%;
  appearance: none;
  background: var(--bg-input);
  border: 3px solid var(--border-light);
  color: var(--text-light);
  padding: var(--space-md) var(--space-xl) var(--space-md) var(--space-md);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.select-wrapper .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 4px 4px 0 var(--primary);
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--primary);
  pointer-events: none;
}

/* Server Preview Box */
.server-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border-light);
  border: 3px solid var(--border-light);
  margin-top: var(--space-lg);
}

.preview-item {
  background: var(--bg-dark);
  padding: var(--space-md);
  text-align: center;
}

.preview-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.preview-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
}

.preview-value.highlight {
  color: var(--primary);
}

.admin-modal-footer {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-top: 3px solid var(--border-light);
  background: var(--bg-dark);
}

.admin-modal-footer .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar {
    padding: var(--space-xs) var(--space-md);
  }

  .navbar-inner {
    gap: var(--space-sm);
  }

  .navbar-nav {
    display: none;
  }

  .navbar-email {
    display: none;
  }

  .navbar-brand .brand-logo {
    height: 3em;
  }

  /* Admin Page */
  .admin-header {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .server-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .server-region {
    align-self: flex-start;
  }

  .server-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .server-actions .btn {
    flex: 1;
  }

  /* Admin Modal */
  .admin-modal {
    padding: var(--space-md);
  }

  .admin-modal-content {
    max-height: calc(100vh - var(--space-lg) * 2);
    box-shadow: 4px 4px 0 var(--primary);
  }

  .admin-modal-header {
    flex-wrap: wrap;
    padding: var(--space-md);
  }

  .admin-modal-icon {
    width: 40px;
    height: 40px;
  }

  .admin-modal-title {
    font-size: 1.1rem;
  }

  .admin-modal-body {
    padding: var(--space-md);
  }

  .server-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-modal-footer {
    flex-direction: column;
    padding: var(--space-md);
  }

  .admin-modal-footer .btn {
    width: 100%;
  }

  /* Landing Page */
  .landing-nav .landing-logo .brand-logo {
    height: 3em;
  }

  .hero {
    padding-top: 80px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

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

/* Small Mobile */
@media (max-width: 480px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .server-preview {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* ============================================
   Credits Card (Dashboard)
   ============================================ */

.credits-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-elevated) 100%);
  border: var(--border-width) solid var(--primary);
  padding: var(--space-lg);
  min-width: 240px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px var(--primary-glow);
}

.credits-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.credits-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.credits-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.credits-icon {
  color: var(--primary);
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.credits-info {
  display: flex;
  flex-direction: column;
}

.credits-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 30px var(--primary-glow);
}

.credits-usd {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.credits-card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* ============================================
   OAuth Consent Screen
   ============================================ */

.oauth-consent-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--bg);
}

.oauth-consent-container {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 3px solid var(--border-light);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
}

.oauth-consent-header {
  text-align: center;
  padding: var(--space-xl);
  border-bottom: 3px solid var(--border-light);
}

.oauth-app-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.oauth-app-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oauth-app-logo-placeholder {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oauth-consent-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.oauth-consent-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.oauth-user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-input);
  border-bottom: 3px solid var(--border-light);
}

.oauth-user-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.oauth-user-email {
  font-weight: 600;
  color: var(--primary);
}

.oauth-scopes {
  padding: var(--space-xl);
}

.oauth-scopes-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

.oauth-scope-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.oauth-scope-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-input);
  border: 2px solid var(--border-light);
}

.oauth-scope-icon {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.oauth-scope-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oauth-scope-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.oauth-scope-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.oauth-app-desc {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.oauth-consent-actions {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-top: 3px solid var(--border-light);
}

.oauth-consent-actions .btn {
  flex: 1;
}

.oauth-consent-footer {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.oauth-consent-footer a {
  color: var(--primary);
}

.oauth-error {
  text-align: center;
  padding: var(--space-2xl);
}

.oauth-error h2 {
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: 1.25rem;
}

.oauth-error p {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* ============================================
   Connected Apps (Profile Page)
   ============================================ */

.connected-apps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.connected-apps-empty {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--bg-input);
  border: 2px dashed var(--border-light);
}

.connected-apps-empty p {
  margin: var(--space-md) 0 var(--space-xs);
  font-weight: 600;
}

.connected-apps-empty .text-muted {
  font-size: 0.875rem;
}

.connected-app-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 3px solid var(--border-light);
  transition: border-color 0.15s ease;
}

.connected-app-item:hover {
  border-color: var(--primary);
}

.connected-app-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-light);
  background: var(--bg-input);
  overflow: hidden;
}

.connected-app-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.connected-app-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.connected-app-info {
  flex: 1;
  min-width: 0;
}

.connected-app-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.connected-app-scopes {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.connected-app-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .connected-app-item {
    flex-wrap: wrap;
  }

  .connected-app-info {
    flex: 1 1 calc(100% - 64px);
  }

  .connected-app-item .btn {
    width: 100%;
    margin-top: var(--space-sm);
  }
}

/* ============================================
   Pricing Table (Landing Page)
   ============================================ */

.price-table {
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  background: var(--bg-card);
  border: 3px solid var(--border-light);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
}

.price-table-header {
  background: var(--bg-input);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 3px solid var(--border-light);
}

.price-table-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  color: var(--text-muted);
}

.price-table-body {
  padding: var(--space-md);
}

.price-row {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  border-bottom: 2px solid var(--border-light);
}

.price-row:last-child {
  border-bottom: none;
}

.price-item {
  flex: 1;
  font-weight: 600;
}

.price-value {
  font-weight: 800;
  color: var(--primary);
  min-width: 120px;
  text-align: right;
}

.price-hourly {
  min-width: 100px;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Credits Purchase Section */
.credits-purchase {
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.credits-info-box {
  background: var(--bg-card);
  border: 3px solid var(--primary);
  box-shadow: 6px 6px 0 var(--primary);
  padding: var(--space-xl);
}

.credits-conversion {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border-light);
}

.credits-formula {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.credits-min {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.credits-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.credits-example {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-input);
  border: 2px solid var(--border-light);
}

.example-amount {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
}

.example-credits {
  display: block;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  margin: var(--space-xs) 0;
}

.example-time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pricing-features-list {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .price-row {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .price-item {
    flex: 1 1 100%;
  }

  .price-value,
  .price-hourly {
    min-width: auto;
    text-align: left;
  }

  .credits-examples {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Terms Checkbox (Login)
   ============================================ */

.terms-checkbox {
  margin: var(--space-md) 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-custom::after {
  content: "";
  display: none;
  width: 5px;
  height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  display: block;
}

.checkbox-label:hover .checkbox-custom {
  border-color: var(--primary);
}

.checkbox-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-text a {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================
   Cookie Consent Banner
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--bg-card);
  border-top: 3px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-banner-show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner-text h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.cookie-banner-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.cookie-banner-text a {
  color: var(--primary);
}

.cookie-banner-options {
  display: flex;
  gap: var(--space-lg);
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  cursor: pointer;
}

.cookie-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.cookie-option input:disabled {
  opacity: 0.5;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-options {
    justify-content: center;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}

/* ========================================
   Footer Disclaimer
   ======================================== */

.footer-disclaimer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

.footer-disclaimer .disclaimer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.footer-disclaimer .disclaimer-text strong {
  color: var(--text-secondary);
}

/* Responsibility Notice in AGB */
.responsibility-notice {
  background: rgba(255, 200, 0, 0.1);
  border: 2px solid rgba(255, 200, 0, 0.3);
  border-radius: 8px;
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.responsibility-notice p {
  margin: 0;
  font-size: 0.9rem;
}

/* ============================================
   Billing Page
   ============================================ */

.billing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.billing-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-elevated) 100%);
  border: var(--border-width) solid var(--border-light);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.billing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.billing-section:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.billing-section:hover::before {
  opacity: 1;
}

.billing-section.full-width {
  grid-column: 1 / -1;
}

/* Balance Card */
.balance-card {
  text-align: center;
  padding: var(--space-lg) 0;
}

.balance-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.balance-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.balance-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.balance-usd {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Purchase Card */
.purchase-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.purchase-info {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border-light);
}

.price-display {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.price-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.price-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Purchase Form */
.purchase-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.input-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  display: block;
}

.credits-input-group {
  display: flex;
  gap: 0;
}

.credits-adjust-btn {
  width: 48px;
  height: 48px;
  background: var(--bg-input);
  border: 3px solid var(--border-light);
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credits-adjust-btn:first-child {
  border-right: none;
}

.credits-adjust-btn:last-child {
  border-left: none;
}

.credits-adjust-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}

.credits-input {
  flex: 1;
  height: 48px;
  background: var(--bg-input);
  border: 3px solid var(--border-light);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
}

.credits-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Hide browser default number spinners */
.credits-input::-webkit-outer-spin-button,
.credits-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.credits-input[type=number] {
  -moz-appearance: textfield;
}

/* Quick Amount Buttons */
.quick-amounts {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.quick-amount-btn {
  flex: 1;
  min-width: 80px;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-amount-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Purchase Summary */
.purchase-summary {
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  padding: var(--space-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
}

.summary-row.total {
  border-top: 2px solid var(--border-light);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

.payment-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* Pricing Table */
.pricing-table {
  width: 100%;
}

.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.pricing-row.header {
  background: var(--bg-input);
  border-bottom: 2px solid var(--border-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row span:nth-child(3),
.pricing-row span:nth-child(4) {
  text-align: right;
}

.pricing-row span:nth-child(3) {
  color: var(--primary);
  font-weight: 600;
}

.pricing-row span:nth-child(4) {
  color: var(--text-muted);
}

/* Usage-Based Billing Info */
.usage-billing-info {
  margin-bottom: var(--space-lg);
}

.usage-billing-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 255, 136, 0.15) 100%);
  border: 3px solid var(--primary);
  padding: var(--space-lg);
}

.usage-billing-banner svg {
  color: var(--primary);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.usage-billing-banner strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.usage-billing-banner p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* Usage Pricing Table */
.usage-pricing .pricing-row.free {
  background: rgba(0, 255, 136, 0.05);
}

.usage-pricing .pricing-row.free span:nth-child(3) {
  color: var(--success);
}

.free-tag {
  display: inline-block;
  background: var(--success);
  color: var(--bg-dark);
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Billing */
@media (max-width: 768px) {
  .billing-grid {
    grid-template-columns: 1fr;
  }

  .billing-section.full-width {
    grid-column: 1;
  }

  .balance-amount {
    font-size: 2.5rem;
  }

  .pricing-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .pricing-row.header span:nth-child(4) {
    display: none;
  }

  .pricing-row span:nth-child(4) {
    display: none;
  }
}

/* ============================================
   Post-Paid Billing Page Extensions
   ============================================ */

/* Billing Layout - Grid Rows */
.billing-grid-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.billing-grid-row .billing-section {
  margin-bottom: 0;
}

/* Purchase Layout - Horizontal */
.purchase-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.purchase-layout .purchase-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.purchase-layout .purchase-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Postpaid Layout - Horizontal */
.postpaid-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: var(--space-xl);
  align-items: center;
}

.postpaid-layout .pending-usage {
  text-align: center;
  padding: 0;
  border: none;
}

.postpaid-layout .spending-limit-section {
  padding: 0;
  border: none;
}

.postpaid-layout .pay-now-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-end;
}

.postpaid-layout .pay-now-section .btn {
  width: auto;
  min-width: 140px;
}

@media (max-width: 900px) {
  .billing-grid-row {
    grid-template-columns: 1fr;
  }

  .purchase-layout {
    grid-template-columns: 1fr;
  }

  .postpaid-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .postpaid-layout .pay-now-section {
    align-items: center;
  }
}

/* Billing Mode Card */
.billing-mode-card {
  min-height: 80px;
}

.billing-mode-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  color: var(--text-muted);
}

.billing-mode-options {
  display: flex;
  gap: var(--space-md);
}

.billing-mode-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-input);
  border: 3px solid var(--border-light);
  cursor: pointer;
  transition: all 0.15s ease;
}

.billing-mode-option:hover {
  border-color: var(--primary);
}

.billing-mode-option.active {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
}

.billing-mode-option input[type="radio"] {
  display: none;
}

.mode-content {
  flex: 1;
}

.mode-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.mode-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mode-check {
  color: var(--text-muted);
  opacity: 0.3;
}

.billing-mode-option.active .mode-check {
  color: var(--primary);
  opacity: 1;
}

.billing-warning {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 68, 68, 0.1);
  border: 2px solid var(--error);
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Post-Paid Card */
.postpaid-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.pending-usage {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border-light);
}

.pending-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.pending-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--warning);
  line-height: 1;
}

.pending-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pending-credits {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Spending Limit Section */
.spending-limit-section {
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border-light);
}

.spending-limit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.spending-limit-header span:first-child {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.spending-limit-value {
  font-weight: 700;
  color: var(--primary);
}

.spending-progress {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.spending-bar {
  flex: 1;
  height: 12px;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  overflow: hidden;
}

.spending-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.spending-percent {
  min-width: 40px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
}

/* Pay Now Section */
.pay-now-section {
  text-align: center;
}

.pay-now-note {
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Payment Methods Card */
.payment-methods-card {
  min-height: 100px;
}

.payment-methods-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.payment-methods-empty {
  text-align: center;
  padding: var(--space-lg);
  color: var(--text-muted);
}

.payment-methods-empty p {
  margin-bottom: var(--space-md);
}

.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.payment-method-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  transition: border-color 0.15s ease;
}

.payment-method-item:hover {
  border-color: var(--primary);
}

.payment-method-item.default {
  border-color: var(--primary);
}

.payment-method-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.card-brand {
  min-width: 40px;
}

.card-brand-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.card-details {
  display: flex;
  flex-direction: column;
}

.card-number {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-expiry {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-default-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary);
  color: var(--bg);
  padding: 2px 6px;
}

.payment-method-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Invoices Card */
.invoices-card {
  min-height: 80px;
}

.invoices-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  color: var(--text-muted);
  text-align: center;
}

.invoices-empty p {
  margin-top: var(--space-sm);
}

.invoices-list {
  display: flex;
  flex-direction: column;
}

.invoice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
}

.invoice-item:last-child {
  border-bottom: none;
}

.invoice-period {
  font-weight: 600;
  font-size: 0.875rem;
}

.invoice-amount {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.invoice-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border: 2px solid;
}

.invoice-status.paid {
  color: var(--success);
  border-color: var(--success);
  background: rgba(0, 200, 100, 0.1);
}

.invoice-status.pending {
  color: var(--warning);
  border-color: var(--warning);
  background: rgba(255, 170, 0, 0.1);
}

.invoice-status.failed {
  color: var(--error);
  border-color: var(--error);
  background: rgba(255, 68, 68, 0.1);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--bg-card);
  border: 3px solid var(--primary);
  box-shadow: 8px 8px 0 var(--primary);
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 3px solid var(--border-light);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.modal-body {
  padding: var(--space-lg);
}

.modal-body p {
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-footer {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-top: 3px solid var(--border-light);
  background: var(--bg-input);
}

.modal-footer .btn {
  flex: 1;
}

.limit-presets {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.limit-presets .btn {
  flex: 1;
  min-width: 60px;
}

/* Stripe Elements Container */
#card-element {
  padding: var(--space-md);
  background: var(--bg-input);
  border: 3px solid var(--border-light);
  min-height: 44px;
}

#card-element.StripeElement--focus {
  border-color: var(--primary);
}

.stripe-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  color: var(--text-muted);
}

.form-error {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 68, 68, 0.1);
  border: 2px solid var(--error);
  color: var(--error);
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.input {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-input);
  border: 3px solid var(--border-light);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Responsive Post-Paid Billing */
@media (max-width: 900px) {
  .billing-mode-options {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .payment-method-item {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }

  .payment-method-actions {
    justify-content: flex-end;
  }

  .invoice-item {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .invoice-amount {
    flex: 1;
    text-align: right;
  }

  .invoice-status {
    flex: 1 1 100%;
    text-align: center;
    margin-top: var(--space-xs);
  }
}

/* ============================================
   Billing Page Header & Stats
   ============================================ */

.billing-main {
  padding: var(--space-xl) 0;
  min-height: calc(100vh - 70px);
}

.billing-header {
  margin-bottom: var(--space-xl);
}

.billing-header-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.billing-header-content .page-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
}

.billing-header-content .page-title svg {
  color: var(--primary);
}

.billing-header-content .page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Billing Stats Grid */
.billing-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.billing-stat-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-elevated) 100%);
  border: 3px solid var(--border-light);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: all 0.2s ease;
}

.billing-stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid;
}

.stat-icon.credit-icon {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.stat-icon.money-icon {
  background: rgba(0, 200, 100, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.stat-icon.mode-icon {
  background: rgba(255, 170, 0, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

.stat-icon.status-icon {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8b5cf6;
  color: #8b5cf6;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Title with Icon */
.section-title-sm {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 var(--space-lg);
}

.section-title-sm svg {
  color: var(--primary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.section-header .section-title-sm {
  margin: 0;
}

/* Responsive Billing Stats */
@media (max-width: 1024px) {
  .billing-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .billing-stat-card {
    padding: var(--space-md);
  }

  .stat-icon {
    width: 40px;
    height: 40px;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .billing-header-content .page-title {
    font-size: 1.5rem;
  }
}

/* ============================================
   Workers Page Styles
   ============================================ */

/* Workers Layout - Neo-Brutalism */
.workers-page {
  padding: var(--space-xl) 0;
}

.workers-main {
  padding: var(--space-xl) 0;
  min-height: calc(100vh - 60px);
  background: var(--bg-dark);
}

.workers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 4px solid var(--primary);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.workers-header .page-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workers-header .page-title svg {
  color: var(--primary);
}

.workers-header-actions {
  display: flex;
  gap: var(--space-md);
}

/* Workers Stats Grid - Neo-Brutalism */
.workers-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.workers-stat {
  background: var(--bg-card);
  border: 3px solid var(--text-light);
  padding: var(--space-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.15s ease;
}

.workers-stat::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  background: var(--border-light);
  z-index: -1;
  transition: all 0.15s ease;
}

.workers-stat:hover {
  border-color: var(--primary);
  transform: translate(-3px, -3px);
}

.workers-stat:hover::after {
  background: rgba(0, 212, 255, 0.15);
}

.workers-stat > * {
  position: relative;
  z-index: 1;
}

.workers-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.workers-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-top: var(--space-xs);
}

@media (max-width: 900px) {
  .workers-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Billing Info Banner - Usage-Based */
.billing-info-banner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
  border: 2px solid var(--primary);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: 0.9rem;
  color: var(--text-light);
}

.billing-info-banner svg {
  color: var(--primary);
  flex-shrink: 0;
}

.billing-info-banner strong {
  color: var(--primary);
}

/* Free Badge in Template Selection */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 255, 136, 0.2);
  color: var(--success);
  padding: 2px 8px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.free-badge svg {
  width: 12px;
  height: 12px;
}

/* Workers Section */
.workers-section {
  margin-bottom: var(--space-xl);
}

.workers-section .section-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--border-light);
}

/* Worker Card - Neo-Brutalism */
.worker-card {
  background: var(--bg-card);
  border: 3px solid var(--text-light);
  padding: var(--space-lg);
  position: relative;
  transition: all 0.15s ease;
}

.worker-card::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  background: var(--border-light);
  z-index: -1;
  transition: all 0.15s ease;
}

.worker-card:hover {
  border-color: var(--primary);
  transform: translate(-3px, -3px);
}

.worker-card:hover::after {
  background: rgba(0, 212, 255, 0.15);
}

/* Ensure all worker card content stays above shadow */
.worker-card > * {
  position: relative;
  z-index: 1;
}

.worker-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.worker-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-light);
}

.worker-template {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.worker-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid;
}

.worker-status.running {
  background: var(--success);
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.worker-status.starting {
  background: var(--warning);
  color: var(--text-dark);
  border-color: var(--text-dark);
  animation: pulse 2s infinite;
}

.worker-status.stopped {
  background: var(--bg-card-elevated);
  color: var(--text-muted);
  border-color: var(--border-light);
}

.worker-status.error {
  background: var(--error);
  color: var(--text-light);
  border-color: var(--text-dark);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.worker-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.worker-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.worker-detail-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.worker-detail-value {
  font-size: 0.875rem;
  color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
}

.worker-detail-value.ip {
  color: var(--primary);
}

.worker-card-actions {
  display: flex;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

.worker-card-actions .btn {
  flex: 1;
}

/* Workers List */
.workers-list {
  display: grid;
  gap: var(--space-lg);
}

.workers-empty {
  text-align: center;
  padding: var(--space-3xl);
  background: var(--bg-card);
  border: 2px dashed var(--border-light);
}

.workers-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.workers-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.workers-empty-text {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* New Worker Modal */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.template-option {
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.template-option:hover {
  border-color: var(--primary);
  background: var(--bg-card-elevated);
}

.template-option.selected {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  background: var(--primary-subtle);
}

.template-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.template-name {
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.template-specs {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.template-cost {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: var(--space-sm);
}

/* ============================================
   API Keys Page Styles - Neo-Brutalism
   ============================================ */

.api-keys-main {
  padding: var(--space-xl) 0;
  min-height: 100vh;
  background: var(--bg-dark);
}

.api-keys-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 4px solid var(--primary);
}

.api-keys-header .page-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.api-keys-header .page-title svg {
  color: var(--primary);
}

.api-keys-header .page-subtitle {
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Security Notice - Neo-Brutalism */
.security-notice {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 3px solid var(--warning);
  box-shadow: 6px 6px 0 rgba(255, 170, 0, 0.3);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  transition: all 0.2s ease;
}

.security-notice:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(255, 170, 0, 0.4);
}

.security-notice svg {
  color: var(--warning);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.security-notice strong {
  color: var(--warning);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Section Title - Neo-Brutalism */
.api-keys-section {
  margin-bottom: var(--space-2xl);
}

.api-keys-section .section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--border-light);
}

.api-keys-section .section-title svg {
  color: var(--primary);
}

/* Connected Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* App Card - Neo-Brutalism */
.app-card {
  background: var(--bg-card);
  border: 3px solid var(--border-light);
  box-shadow: 6px 6px 0 var(--bg-card-elevated);
  padding: var(--space-lg);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-glow));
}

.app-card:hover {
  border-color: var(--primary);
  box-shadow: 8px 8px 0 var(--primary-glow);
  transform: translate(-3px, -3px);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-light);
}

.app-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), #00a8cc);
  border: 3px solid var(--text-dark);
  box-shadow: 4px 4px 0 var(--bg-card-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--bg-dark);
}

.app-icon img {
  border-radius: 0;
}

.app-info {
  flex: 1;
}

.app-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.app-client-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.app-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.app-scope {
  padding: 4px 10px;
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.app-keys-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.app-keys-count svg {
  color: var(--primary);
}

/* API Keys Table - Neo-Brutalism */
.api-keys-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 3px solid var(--border-light);
  box-shadow: 6px 6px 0 var(--bg-card-elevated);
}

.api-keys-table th,
.api-keys-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 2px solid var(--border-light);
}

.api-keys-table th {
  background: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

.api-keys-table tbody tr {
  transition: all 0.15s ease;
}

.api-keys-table tbody tr:hover {
  background: rgba(0, 212, 255, 0.05);
}

.api-keys-table tbody tr:hover td {
  border-color: var(--primary);
}

.api-key-preview {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--bg-dark);
  padding: 4px 8px;
  border: 2px solid var(--border-light);
  display: inline-block;
}

.scope-badge {
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid var(--primary);
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--primary);
}

.api-key-created {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Revoke Button - Neo-Brutalism */
.btn-revoke {
  background: transparent;
  border: 3px solid var(--error);
  color: var(--error);
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  box-shadow: 3px 3px 0 rgba(255, 68, 68, 0.3);
}

.btn-revoke:hover {
  background: var(--error);
  color: var(--text-light);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(255, 68, 68, 0.4);
}

.btn-revoke:active {
  transform: translate(0, 0);
  box-shadow: none;
}

/* Integration Guide - Neo-Brutalism */
.integration-guide {
  background: var(--bg-card);
  border: 3px solid var(--border-light);
  box-shadow: 6px 6px 0 var(--bg-card-elevated);
  padding: var(--space-xl);
}

.integration-guide > p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.guide-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--bg-dark);
  border: 2px solid var(--border-light);
  transition: all 0.2s ease;
}

.guide-step:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.guide-step .step-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--primary);
  border: 3px solid var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--bg-dark);
  flex-shrink: 0;
  position: static;
  top: auto;
  left: auto;
}

.guide-step strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.guide-step p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

/* Code Example - Neo-Brutalism */
.code-example {
  background: var(--bg-dark);
  border: 3px solid var(--primary);
  box-shadow: 6px 6px 0 rgba(0, 212, 255, 0.2);
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 212, 255, 0.1);
  border-bottom: 2px solid var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.btn-copy {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.code-example pre {
  margin: 0;
  padding: var(--space-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-x: auto;
}

.code-example code {
  color: inherit;
}

/* Empty State - Neo-Brutalism */
.empty-state-inline {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 3px dashed var(--border-light);
}

.empty-state-inline h3 {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.empty-state-inline p {
  color: var(--text-muted);
}

/* Revoke Modal Styling */
.revoke-info {
  margin-top: var(--space-md);
}

.key-to-revoke {
  background: var(--bg-dark);
  border: 2px solid var(--error);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.key-to-revoke code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--primary);
}

/* Responsive API Keys */
@media (max-width: 768px) {
  .api-keys-header {
    flex-direction: column;
  }

  .api-keys-header .page-title {
    font-size: 1.5rem;
  }

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

  .api-keys-table {
    display: block;
    overflow-x: auto;
  }

  .api-keys-table th,
  .api-keys-table td {
    padding: var(--space-sm) var(--space-md);
  }

  .security-notice {
    flex-direction: column;
  }

  .integration-guide {
    padding: var(--space-lg);
  }

  .guide-step {
    flex-direction: column;
  }

  .code-example {
    box-shadow: 4px 4px 0 rgba(0, 212, 255, 0.2);
  }

  .app-card,
  .api-keys-table,
  .integration-guide {
    box-shadow: 4px 4px 0 var(--bg-card-elevated);
  }
}

/* Empty State Inline */
.empty-state-inline {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 2px dashed var(--border-light);
}

.empty-state-inline h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

.empty-state-inline p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================
   Two-Factor Authentication Styles
   ============================================ */

.section-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

/* 2FA Options */
.twofa-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.twofa-option {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  transition: all 0.2s ease;
}

.twofa-option:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.twofa-option-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  border: 2px solid var(--primary);
  color: var(--primary);
}

.twofa-option-info {
  flex: 1;
}

.twofa-option-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.twofa-option-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.twofa-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.active {
  background: var(--success);
  box-shadow: 0 0 8px var(--success-glow);
}

.status-dot.inactive {
  background: var(--text-muted);
}

/* 2FA Backup Info */
.twofa-backup-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card-elevated);
  border: 2px solid var(--border-light);
  margin-top: var(--space-lg);
}

.twofa-backup-icon {
  flex-shrink: 0;
  color: var(--warning);
}

.twofa-backup-info h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.twofa-backup-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Code Input Group */
.code-input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: var(--space-lg) 0;
}

.code-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-input);
  border: 3px solid var(--border-light);
  color: var(--text-light);
  transition: all 0.15s ease;
}

.code-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.code-separator {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* QR Code Container */
.qr-code-container {
  display: flex;
  justify-content: center;
  padding: var(--space-lg);
  background: white;
  border: 2px solid var(--border-light);
  margin: var(--space-lg) 0;
}

.qr-placeholder {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
}

.qr-placeholder p {
  margin-top: var(--space-md);
  font-size: 0.875rem;
}

/* Manual Entry */
.manual-entry {
  text-align: center;
  margin-top: var(--space-md);
}

.manual-entry p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.secret-code {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-right: var(--space-sm);
}

/* Phone Input Group */
.phone-input-group {
  display: flex;
  gap: var(--space-sm);
}

.phone-country {
  width: 120px;
  padding: var(--space-md);
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
}

.phone-country:focus {
  outline: none;
  border-color: var(--primary);
}

.phone-number {
  flex: 1;
}

/* Success Icon */
.success-icon {
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Backup Codes Grid */
.backup-codes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.backup-code {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  text-align: center;
  letter-spacing: 1px;
}

.backup-code.used {
  opacity: 0.5;
  text-decoration: line-through;
}

.backup-codes-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.backup-codes-actions .btn {
  flex: 1;
}

/* Step Labels */
.step-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Utility Classes */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* Responsive 2FA */
@media (max-width: 768px) {
  .twofa-option {
    flex-direction: column;
    text-align: center;
  }

  .twofa-option .btn {
    width: 100%;
  }

  .code-input {
    width: 40px;
    height: 48px;
    font-size: 1.25rem;
  }

  .code-input-group {
    gap: 4px;
  }

  .twofa-backup-info {
    flex-direction: column;
    text-align: center;
  }

  .backup-codes-grid {
    grid-template-columns: 1fr;
  }

  .backup-codes-actions {
    flex-direction: column;
  }

  .phone-input-group {
    flex-direction: column;
  }

  .phone-country {
    width: 100%;
  }
}

/* ============================================
   Add Card Page Styles
   ============================================ */

.add-card-main {
  min-height: calc(100vh - 70px);
  padding: var(--space-xl) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-card-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: var(--space-xl);
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--primary);
}

.add-card-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.add-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border: 3px solid var(--primary);
  color: var(--primary);
}

.add-card-icon svg {
  width: 32px;
  height: 32px;
}

.add-card-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 var(--space-sm);
}

.add-card-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  max-width: 400px;
  margin: 0 auto;
}

.add-card-form-container {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-elevated) 100%);
  border: 3px solid var(--border-light);
  padding: var(--space-xl);
}

.add-card-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-input);
  border: 3px solid var(--border-light);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.card-element-wrapper {
  background: var(--bg-input);
  border: 3px solid var(--border-light);
  padding: var(--space-md);
  transition: border-color 0.15s ease;
  min-height: 44px;
}

.card-element-wrapper.focused {
  border-color: var(--primary);
}

.card-element {
  min-height: 24px;
}

.card-errors {
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 68, 68, 0.1);
  border: 2px solid var(--error);
  color: var(--error);
  font-size: 0.875rem;
}

.stripe-error {
  text-align: center;
  padding: var(--space-lg);
  color: var(--text-muted);
}

.stripe-error p {
  margin-bottom: var(--space-md);
}

/* Security Info */
.security-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border-light);
}

.security-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.security-item svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Stripe Badge */
.stripe-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.stripe-wordmark {
  font-weight: 700;
  font-size: 1.1rem;
  color: #635bff;
  letter-spacing: -0.02em;
}

/* Button States */
.add-card-form .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.add-card-form .btn-primary svg {
  width: 18px;
  height: 18px;
}

#btn-loading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Responsive */
@media (max-width: 600px) {
  .add-card-main {
    padding: var(--space-lg) var(--space-md);
    align-items: flex-start;
  }

  .add-card-form-container {
    padding: var(--space-lg);
  }

  .add-card-title {
    font-size: 1.5rem;
  }

  .add-card-icon {
    width: 56px;
    height: 56px;
  }

  .add-card-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ============================================
   WORKER CARDS - Neo-Brutalism V2
   ============================================ */

.workers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--space-xl);
}

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

/* Worker Card - New Design */
.worker-card {
  background: var(--bg-card);
  border: 3px solid var(--border-light);
  padding: var(--space-lg);
  position: relative;
  transition: all 0.2s ease;
}

.worker-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: var(--border-light);
  z-index: -1;
  transition: all 0.2s ease;
}

.worker-card:hover {
  border-color: var(--primary);
  transform: translate(-4px, -4px);
}

.worker-card:hover::before {
  background: rgba(0, 212, 255, 0.25);
}

/* Status-based border colors */
.worker-card--running {
  border-color: var(--primary);
}

.worker-card--running::before {
  background: rgba(0, 212, 255, 0.3);
}

.worker-card--starting {
  border-color: var(--warning);
  animation: borderPulse 2s ease-in-out infinite;
}

.worker-card--starting::before {
  background: rgba(255, 170, 0, 0.3);
}

.worker-card--stopped {
  opacity: 0.8;
}

.worker-card--error {
  border-color: var(--error);
}

.worker-card--error::before {
  background: rgba(255, 68, 68, 0.3);
}

@keyframes borderPulse {
  0%, 100% { border-color: var(--warning); }
  50% { border-color: var(--primary); }
}

/* Loading & Deleting States */
.worker-card--loading {
  pointer-events: none;
  opacity: 0.7;
}

.worker-card--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(0, 212, 255, 0.1) 10px,
    rgba(0, 212, 255, 0.1) 20px
  );
  animation: loadingStripes 1s linear infinite;
  z-index: 10;
}

@keyframes loadingStripes {
  0% { background-position: 0 0; }
  100% { background-position: 28px 0; }
}

.worker-card--deleting {
  animation: deleteSlide 0.4s ease-out forwards;
}

@keyframes deleteSlide {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
  }
}

/* Card Header */
.worker-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-light);
}

.worker-card__icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border: 3px solid var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.worker-card__icon svg {
  color: var(--text-dark);
  width: 24px;
  height: 24px;
}

.worker-card__meta {
  flex: 1;
  min-width: 0;
}

.worker-card__name {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-light);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.worker-card__template {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* Status Badge */
.worker-card__status {
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--text-dark);
  white-space: nowrap;
}

.worker-card__status.status-running {
  background: var(--primary);
  color: var(--text-dark);
}

.worker-card__status.status-starting {
  background: var(--warning);
  color: var(--text-dark);
  animation: statusPulse 1.5s ease-in-out infinite;
}

.worker-card__status.status-stopping {
  background: var(--warning);
  color: var(--text-dark);
  opacity: 0.7;
}

.worker-card__status.status-stopped {
  background: var(--bg-card-elevated);
  color: var(--text-muted);
  border-color: var(--border-light);
}

.worker-card__status.status-error {
  background: var(--error);
  color: var(--text-light);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Details Grid */
.worker-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.worker-card__detail {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.worker-card__detail svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.worker-card__detail-value {
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
}

.worker-card__copy {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.worker-card__copy:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Tools */
.worker-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.worker-card__tool {
  padding: 4px 10px;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

.worker-card__tool--more {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

/* Actions */
.worker-card__actions {
  display: flex;
  gap: var(--space-sm);
}

.worker-card__actions .btn {
  flex: 1;
}

/* ============================================
   CONFIRM MODAL - Neo-Brutalism
   ============================================ */

.confirm-modal {
  max-width: 420px;
  text-align: center;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  border-color: var(--error);
  box-shadow: 8px 8px 0 var(--error);
}

.confirm-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  background: var(--error);
  border: 4px solid var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: warningBounce 0.5s ease-out;
}

.confirm-modal-icon svg {
  color: var(--text-light);
  width: 36px;
  height: 36px;
}

@keyframes warningBounce {
  0% { transform: scale(0) rotate(-10deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

.confirm-modal-title {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  color: var(--text-light);
}

.confirm-modal-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.confirm-modal-worker {
  margin-bottom: var(--space-xl);
}

.confirm-worker-preview {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-input);
  border: 3px solid var(--border-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.confirm-worker-preview svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.confirm-modal-actions {
  display: flex;
  gap: var(--space-md);
}

.confirm-modal-actions .btn {
  flex: 1;
}

/* Template Select Cards - Improved */
.templates-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.template-select-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.template-select-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-elevated);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.template-select-card.loading {
  pointer-events: none;
  opacity: 0.6;
}

.template-select-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.template-select-icon svg {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

.template-select-info {
  flex: 1;
  text-align: left;
}

.template-select-name {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 4px 0;
  color: var(--text-light);
}

.template-select-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.4;
}

.template-select-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.template-select-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.template-select-meta svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* Workers Modal */
.workers-modal {
  max-width: 700px;
}

.modal-description {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--bg-card);
  border: 3px dashed var(--border-light);
}

.empty-state-icon {
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-state-icon svg {
  width: 64px;
  height: 64px;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.empty-state-text {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* Button Loading State */
.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn--loading svg {
  animation: spin 1s linear infinite;
}

/* Loading State */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
}
