/* ============================================================================
 * Akash Web farm — Product page components (launch panels, session cards)
 * Code created by Akash - 15 February 2026
 * Last updated: 15 February 2026
 * ============================================================================ */
.awf-launch-panel {
  background: var(--awf-bg-card);
  border: 1px solid var(--awf-border);
  border-radius: var(--awf-radius);
  padding: 1.35rem 1.5rem 1.5rem;
  backdrop-filter: blur(8px);
}

.awf-launch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.awf-launch-row + .awf-launch-row { margin-top: 1rem; }

.awf-field { margin-bottom: 0; flex: 1 1 0; min-width: 130px; }
.awf-field-os { flex: 0 1 150px; min-width: 140px; }
.awf-field-browser { flex: 0 1 150px; min-width: 140px; }
.awf-field-version { flex: 1 1 220px; min-width: 200px; }
.awf-field-proxy { flex: 0 1 200px; min-width: 180px; }
.awf-field-device { flex: 1 1 240px; min-width: 200px; }
.awf-field-launch { flex: 0 0 auto; }
.awf-field-url { flex: 1 1 280px; min-width: 200px; }
.awf-field-proxy-name { flex: 0 1 140px; min-width: 120px; }
.awf-field-proxy-host { flex: 1 1 200px; min-width: 160px; }
.awf-field-proxy-port { flex: 0 1 100px; min-width: 80px; }
.awf-field-proxy-save { flex: 0 0 auto; }

.awf-btn-launch {
  min-width: 11rem;
  height: 46px;
  padding: 0 1.25rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--awf-accent), var(--awf-accent-2));
  white-space: nowrap;
}

.awf-btn-launch:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

.awf-btn-launch:disabled { opacity: 0.5; cursor: not-allowed; }

.awf-proxy-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.awf-btn-add-proxy {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--awf-accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.awf-btn-add-proxy:hover { text-decoration: underline; }

.awf-proxy-add-panel {
  flex: 1 1 100%;
  background: var(--awf-surface);
  border: 1px dashed var(--awf-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.awf-btn-save-proxy {
  height: 40px;
  padding: 0 1rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--awf-accent);
  border-radius: 10px;
}

.awf-btn-save-proxy:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--awf-text);
}

.awf-proxy-list { font-size: 0.8rem; color: var(--awf-muted); margin-top: 0.75rem; }
.awf-proxy-list-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; }

.awf-btn-del-proxy {
  border: none;
  background: none;
  color: #f87171;
  font-size: 0.75rem;
  cursor: pointer;
}

.awf-sessions-wrap { margin-top: 2rem; }

.awf-session-row {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--awf-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.awf-badge-os { background: rgba(129, 140, 248, 0.2); color: #a5b4fc; }
.awf-badge-win { background: rgba(56, 189, 248, 0.15); color: var(--awf-accent); }
.awf-badge-device { background: rgba(52, 211, 153, 0.15); color: var(--awf-success); }

.awf-status-banner {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: none;
}

.awf-status-banner.show { display: block; }
.awf-status-banner.info { background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3); color: var(--awf-accent); }
.awf-status-banner.warn { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); color: #fcd34d; }

.awf-note { font-size: 0.8rem; color: var(--awf-muted); margin-top: 1rem; line-height: 1.45; }

/* Runners */
.awf-device-card {
  background: var(--awf-bg-card);
  border: 1px solid var(--awf-border);
  border-radius: var(--awf-radius);
  padding: 1rem;
  height: 100%;
}

.awf-status-badge.running { color: var(--awf-success); }
.awf-status-badge.starting { color: var(--awf-accent); }
.awf-status-badge.stopped { color: var(--awf-muted); }
.awf-status-badge.error { color: #f87171; }

.form-label.invisible { visibility: hidden; height: 1.25rem; margin-bottom: 0.4rem; display: block; }

/* Live session */
.awf-session-app { height: 100%; display: flex; flex-direction: column; }
.toolbar {
  background: rgba(6, 9, 18, 0.95) !important;
  border-bottom: 1px solid var(--awf-border);
  padding: 0.55rem 1rem;
  flex-shrink: 0;
}
.awf-session-body { flex: 1; min-height: 0; display: flex; }
.awf-viewer-col { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.awf-viewer { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #000; }
#viewerRoot { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#novncFrameDesktop { flex: 1; width: 100%; border: 0; }
#shotWrap { flex: 1; display: none; align-items: center; justify-content: center; overflow: auto; cursor: crosshair; }
#shotImg { max-width: 100%; max-height: 100%; object-fit: contain; }

.awf-urlbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(6, 9, 18, 0.95);
  border-bottom: 1px solid var(--awf-border);
  flex-shrink: 0;
  align-items: center;
}

.awf-side-panel {
  width: 280px;
  flex-shrink: 0;
  background: var(--awf-bg-soft);
  border-left: 1px solid var(--awf-border);
  padding: 1rem;
  overflow-y: auto;
}

.awf-proxy-box { border-radius: 10px; padding: 0.85rem; border: 1px solid var(--awf-border); }
.awf-proxy-box.active { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.35); }
.awf-proxy-box.none { background: var(--awf-surface); }
.awf-proxy-host { font-family: var(--awf-mono); font-size: 0.85rem; word-break: break-all; }
.awf-side-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--awf-muted); margin-bottom: 0.5rem; }

.awf-mobile-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070f;
  padding: 1rem;
  overflow: auto;
}

.awf-phone-frame {
  background: #111827;
  border: 10px solid #1f2937;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.awf-phone-frame::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  background: #374151;
  border-radius: 999px;
  z-index: 2;
}

.awf-phone-frame #novncFrame,
.awf-phone-frame #shotWrap { width: 100%; height: 100%; }
.awf-phone-frame #shotWrap { display: flex !important; }

.awf-device-box {
  border-radius: 10px;
  padding: 0.85rem;
  border: 1px solid var(--awf-border);
  background: var(--awf-surface);
  margin-bottom: 0.75rem;
}

.awf-win-badge { background: rgba(56, 189, 248, 0.15); color: var(--awf-accent); }
.awf-mac-badge { background: rgba(129, 140, 248, 0.15); color: #a5b4fc; }

/* ============================================================================
 * Purpose page — problem/solution narrative for global browser coverage
 * ============================================================================ */

.awf-purpose-hero {
  padding: 4rem 1.25rem 3rem;
  max-width: 920px;
  margin: 0 auto;
}

.awf-purpose-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.awf-purpose-hero h1 span {
  background: linear-gradient(135deg, var(--awf-accent), var(--awf-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.awf-purpose-section { max-width: 1100px; margin-left: auto; margin-right: auto; }

.awf-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.awf-problem-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0.75rem 0 0.5rem; }
.awf-problem-card p { color: var(--awf-muted); font-size: 0.92rem; margin: 0; }

.awf-solution-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.awf-solution-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--awf-bg-card);
  border: 1px solid var(--awf-border);
  border-radius: var(--awf-radius);
}

.awf-solution-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--awf-accent), var(--awf-accent-2));
  color: #0b1020;
  font-weight: 800;
  font-size: 1rem;
}

.awf-solution-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.awf-solution-step p { color: var(--awf-muted); font-size: 0.92rem; margin: 0; }

.awf-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--awf-border);
  border-radius: var(--awf-radius);
  background: var(--awf-bg-card);
}

.awf-coverage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.awf-coverage-table th,
.awf-coverage-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--awf-border);
  text-align: left;
  vertical-align: top;
}

.awf-coverage-table th {
  background: var(--awf-surface);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--awf-muted);
}

.awf-coverage-table td { color: var(--awf-muted); }
.awf-coverage-table td:first-child { color: var(--awf-text); font-weight: 600; }
.awf-coverage-table tr:last-child td { border-bottom: none; }

.awf-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.awf-compare-col {
  padding: 1.5rem;
  border-radius: var(--awf-radius);
  border: 1px solid var(--awf-border);
}

.awf-compare-before {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}

.awf-compare-after {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.25);
}

.awf-compare-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.awf-compare-before h3 { color: #f87171; }
.awf-compare-after h3 { color: #4ade80; }

.awf-compare-col ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--awf-muted);
  font-size: 0.92rem;
}

.awf-compare-col li { margin-bottom: 0.5rem; }

.awf-docker-band {
  background: var(--awf-bg-soft);
  border-radius: var(--awf-radius);
  padding: 2.5rem 1.5rem !important;
  border: 1px solid var(--awf-border);
}

.awf-docker-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.awf-docker-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--awf-muted);
  font-size: 0.92rem;
}

.awf-docker-list li { margin-bottom: 0.45rem; }

.awf-code-block {
  background: #070b14;
  border: 1px solid var(--awf-border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 0;
  overflow-x: auto;
  font-family: var(--awf-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.awf-docker-code-card h3 { margin-bottom: 0.75rem; }

