:root {
  --bg-main: #07132B;
  --bg-card: rgba(13, 35, 80, 0.7);
  --bg-card-hover: rgba(18, 48, 108, 0.85);
  --bg-terminal: #040C1D;
  --border-card: rgba(255, 255, 255, 0.12);
  --border-focus: #3B82F6;

  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-accent: #FFAF1E;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-cyan: #06B6D4;

  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 40px;
}

/* Background Ambient Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -100px;
  left: -80px;
  background: radial-gradient(circle, #2563EB, transparent 70%);
}

.orb-2 {
  width: 480px;
  height: 480px;
  top: 30%;
  right: -100px;
  background: radial-gradient(circle, #4F46E5, transparent 70%);
}

.orb-3 {
  width: 380px;
  height: 380px;
  bottom: -60px;
  left: 25%;
  background: radial-gradient(circle, #06B6D4, transparent 70%);
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(7, 19, 43, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-card);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  font-size: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-vps {
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 175, 30, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(255, 175, 30, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-badge.online {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.status-badge.online .status-dot {
  background: #10B981;
  animation: pulse-green 1.8s infinite;
}

.status-badge.starting {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.4);
}

.status-badge.starting .status-dot {
  background: #F59E0B;
  animation: pulse-yellow 1s infinite;
}

.status-badge.offline {
  background: rgba(148, 163, 184, 0.12);
  color: #94A3B8;
  border-color: rgba(148, 163, 184, 0.25);
}

.status-badge.offline .status-dot {
  background: #64748B;
}

.status-badge.error {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.status-badge.error .status-dot {
  background: #EF4444;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-yellow {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.quick-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
}

.metric-label {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.metric-val {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-cyan);
}

.ws-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
}

.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-danger);
  transition: background 0.3s;
}

.ws-indicator.connected .ws-dot {
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

/* Main Container */
.main-container {
  max-width: 1360px;
  margin: 24px auto 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Action Toolbar Card */
.action-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.btn-group-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: inherit;
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

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

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #FFFFFF;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-card);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.btn-outline {
  background: rgba(37, 99, 235, 0.1);
  color: #93C5FD;
  border-color: rgba(59, 130, 246, 0.3);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.2);
  color: #FFFFFF;
}

.btn-icon-only {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 15px;
}

.btn-icon-only:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.action-options {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-select {
  background: #051430;
  color: #FFFFFF;
  border: 1px solid var(--border-card);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-select:focus {
  border-color: var(--border-focus);
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  gap: 6px;
}

.checkbox-container input {
  opacity: 0;
  position: absolute;
  cursor: pointer;
}

.checkmark {
  width: 16px;
  height: 16px;
  background-color: #051430;
  border: 1px solid var(--border-card);
  border-radius: 4px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-container input:checked ~ .checkmark:after {
  content: '✓';
  color: white;
  font-size: 11px;
  font-weight: bold;
}

.code-inline {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: #FBBF24;
}

.action-extra {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Content Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Generic Card */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

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

.card-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.card-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.2);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Protocol Tabs */
.tabs-nav {
  display: flex;
  background: #051430;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn:hover {
  color: #FFFFFF;
}

.tab-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* QR Code Section */
.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.qr-card {
  width: 250px;
  height: 250px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 4px solid rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1E293B;
  font-size: 12px;
  font-weight: 600;
  padding: 20px;
  gap: 14px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hidden {
  display: none !important;
}

.qr-placeholder.hidden {
  display: none !important;
}

.qr-image.hidden {
  display: none !important;
}

.qr-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-mono);
}

/* Credentials Box for Expo Go */
.credentials-box {
  background: rgba(255, 175, 30, 0.08);
  border: 1px solid rgba(255, 175, 30, 0.35);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(255, 175, 30, 0.08);
}

.credentials-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.credentials-icon {
  font-size: 18px;
  line-height: 1;
}

.credentials-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credentials-title {
  font-size: 12px;
  font-weight: 800;
  color: #FCD34D;
  letter-spacing: -0.2px;
}

.credentials-desc {
  font-size: 11px;
  color: #FDE68A;
  opacity: 0.85;
}

.credentials-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cred-item {
  display: flex;
  align-items: center;
  background: #040D20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  gap: 8px;
}

.cred-label {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  width: 46px;
  flex-shrink: 0;
}

.cred-value {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #67E8F9;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.btn-cred-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: inherit;
}

.btn-cred-copy:hover {
  background: rgba(255, 175, 30, 0.2);
  border-color: rgba(255, 175, 30, 0.5);
  color: #FCD34D;
}

.btn-cred-copy:active {
  transform: scale(0.96);
}

/* URL Copy Box */
.url-copy-box {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.input-with-button {
  display: flex;
  align-items: center;
  background: #051430;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 4px 6px;
  gap: 8px;
  transition: border-color 0.2s;
}

.input-with-button:focus-within {
  border-color: var(--border-focus);
}

.input-with-button input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #93C5FD;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 8px;
}

.btn-copy {
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

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

.web-link-row {
  margin-bottom: 20px;
}

.w-100 {
  width: 100%;
}

.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Step Guides */
.instructions-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
}

.step-guide {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-item {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.guide-item strong {
  color: #FFFFFF;
}

.guide-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-badge.android {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.guide-badge.ios {
  background: rgba(6, 182, 212, 0.2);
  color: #22D3EE;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.guide-note {
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-card);
  padding-top: 10px;
  line-height: 1.4;
}

.guide-note em {
  color: var(--color-accent);
  font-style: normal;
}

/* TERMINAL SECTION */
.terminal-section {
  display: flex;
  flex-direction: column;
  height: 720px;
  background: var(--bg-terminal);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0;
  overflow: hidden;
}

.terminal-header {
  padding: 14px 20px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.line-counter {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-right: 6px;
}

.btn-terminal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-terminal:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.btn-terminal.active {
  background: rgba(37, 99, 235, 0.25);
  color: #60A5FA;
  border-color: rgba(59, 130, 246, 0.4);
}

.terminal-filter-bar {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
}

.filter-input::placeholder {
  color: var(--text-dim);
}

/* Terminal Body */
.terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #E2E8F0;
  background: #030814;
}

/* Custom Scrollbar */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: #030814;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.log-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  word-break: break-all;
  white-space: pre-wrap;
  margin-bottom: 2px;
}

.log-time {
  color: var(--text-dim);
  font-size: 10px;
  flex-shrink: 0;
  user-select: none;
}

.log-text {
  flex: 1;
}

/* Log Types */
.log-line.system .log-text {
  color: #38BDF8;
  font-weight: 600;
}

.log-line.git .log-text {
  color: #F472B6;
  font-weight: 600;
}

.log-line.stderr .log-text {
  color: #F87171;
}

.log-line.stdout .log-text {
  color: #E2E8F0;
}

/* Terminal Footer */
.terminal-footer {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.terminal-footer-item strong {
  color: var(--color-cyan);
}

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

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

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

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

.modal-title {
  font-size: 16px;
  font-weight: 800;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-input {
  background: #051430;
  border: 1px solid var(--border-card);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.form-input:focus {
  border-color: var(--border-focus);
}

.field-hint {
  font-size: 11px;
  color: var(--text-dim);
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-mono);
  color: #93C5FD;
  cursor: pointer;
}

.chip:hover {
  background: var(--color-primary);
  color: #FFFFFF;
}

.modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.auth-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-error {
  color: var(--color-danger);
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.auth-error.hidden {
  display: none;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .terminal-section {
    height: 520px;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-container {
    padding: 0 16px;
  }

  .action-card {
    padding: 16px;
  }

  .action-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-group-main {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .action-extra {
    width: 100%;
    justify-content: space-between;
  }
}
