/* ==========================================================================
   SomnoTrace Web Flasher — Minimalist Light Design System
   ========================================================================== */

:root {
  /* Color Palette - Clean Light Theme */
  --bg-app: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-surface-subtle: #F1F5F9;
  --bg-surface-muted: #E2E8F0;

  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-focus: #0284C7;

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  /* Accent Colors */
  --primary-blue: #0284C7;
  --primary-blue-hover: #0369A1;
  --primary-blue-light: #E0F2FE;
  --primary-gradient: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  --primary-gradient-hover: linear-gradient(135deg, #0369A1 0%, #1D4ED8 100%);
  
  --emerald-success: #10B981;
  --emerald-success-bg: #ECFDF5;
  --emerald-success-border: #A7F3D0;
  --emerald-gradient: linear-gradient(90deg, #06B6D4 0%, #10B981 100%);

  --amber-warn: #D97706;
  --amber-warn-bg: #FFFBEB;
  --amber-warn-border: #FDE68A;

  --rose-error: #EF4444;
  --rose-error-bg: #FEF2F2;
  --rose-error-border: #FECACA;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Elevations & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-card: 0 10px 30px -4px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-button: 0 8px 20px -4px rgba(2, 132, 199, 0.4);
  --shadow-button-hover: 0 12px 28px -4px rgba(2, 132, 199, 0.5);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* App Layout Container */
.app-layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Header */
.app-header {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.brand-link:hover {
  opacity: 0.88;
}

.brand-logo {
  height: 36px;
  width: auto;
  max-width: 230px;
  display: block;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-ready {
  background-color: var(--emerald-success-bg);
  border-color: var(--emerald-success-border);
  color: #047857;
}

.status-disabled {
  background-color: var(--amber-warn-bg);
  border-color: var(--amber-warn-border);
  color: #92400E;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

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

.btn-github-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-github-link:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Notice / Alert Card */
.notice-card {
  display: none;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  gap: 14px;
  align-items: flex-start;
}

.notice-card.active {
  display: flex;
}

.notice-warning {
  background-color: var(--amber-warn-bg);
  border: 1px solid var(--amber-warn-border);
  color: #78350F;
}

.notice-icon {
  font-size: 22px;
  line-height: 1;
}

.notice-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.notice-content p {
  font-size: 14px;
  line-height: 1.5;
}

/* Hero Header */
.hero-header {
  text-align: center;
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Installer Card (Core Action Area) */
.installer-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 36px 32px;
  margin-bottom: 28px;
  transition: box-shadow 0.3s ease;
}

.device-hero-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
}

.device-thumb-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.device-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.firmware-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-primary {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

.badge-success {
  background-color: var(--emerald-success-bg);
  color: #047857;
  border: 1px solid var(--emerald-success-border);
}

.device-model-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.firmware-specs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.firmware-filename {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
}

.dot-separator {
  color: var(--border-medium);
}

/* Action Area */
.action-row {
  text-align: center;
  padding: 8px 0 16px;
}

.btn-install-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  padding: 18px 36px;
  border-radius: var(--radius-md);
  border: none;
  background-image: var(--primary-gradient);
  color: var(--text-inverse);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-install-primary:hover:not(:disabled) {
  background-image: var(--primary-gradient-hover);
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-2px);
}

.btn-install-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-install-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-install-primary .btn-icon {
  font-size: 20px;
}

.action-helper-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.action-helper-hint strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Interactive Progress HUD */
.progress-container {
  display: none;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeIn 0.3s ease;
}

.progress-container.active {
  display: block;
}

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

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

.progress-status-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
}

.progress-percentage-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.progress-bar-track {
  width: 100%;
  height: 12px;
  background-color: var(--bg-surface-subtle);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 100px;
  background-image: var(--emerald-gradient);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: 30px 30px;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.25) 75%,
    transparent 75%,
    transparent
  ), var(--emerald-gradient);
  animation: progress-stripes 1.5s linear infinite;
}

@keyframes progress-stripes {
  from { background-position: 0 0, 0 0; }
  to { background-position: 60px 0, 0 0; }
}

.progress-metrics-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Post Install Success Card */
.post-install-card {
  background-color: var(--bg-card);
  border: 2px solid var(--emerald-success-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 10px 25px -4px rgba(16, 185, 129, 0.12);
  animation: fadeIn 0.4s ease;
}

.success-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.success-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--emerald-success-bg);
  border: 2px solid var(--emerald-success);
  color: var(--emerald-success);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.success-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #065F46;
}

.success-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Post Install Notices (Upgrade vs Setup) */
.post-notice-upgrade {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.notice-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #166534;
  background-color: #DCFCE7;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.post-notice-upgrade p {
  font-size: 14px;
  color: #14532D;
  line-height: 1.5;
}

.post-setup-section {
  padding-top: 8px;
}

.setup-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.next-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.next-step-card {
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

.next-step-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.next-step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.next-step-card a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
}

/* Collapsible Sections (Details / Summary) */
.collapsible-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}

.collapsible-section[open] {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card);
}

.collapsible-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
  transition: background-color 0.15s ease;
  list-style: none; /* remove standard marker */
}

.collapsible-trigger::-webkit-details-marker {
  display: none;
}

.collapsible-trigger:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
}

.trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trigger-icon {
  font-size: 18px;
}

.trigger-title {
  font-weight: 600;
}

.trigger-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.collapsible-section[open] .trigger-arrow {
  transform: rotate(180deg);
}

.collapsible-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border-subtle);
}

/* Need Help Connecting? Guide Layout */
.guide-intro {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 16px 0 20px;
}

.hardware-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hardware-photo-card {
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
}

.photo-container {
  position: relative;
  width: 100%;
  height: 250px;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.guide-photo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.guide-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Annotated Animated Pointers */
.annotated-pointer {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 10;
  pointer-events: none;
}

.pointer-boot {
  top: 11%;
  left: 31.5%;
  transform: translate(-14px, -100%);
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.pointer-usb {
  top: 59%;
  left: 47.1%;
  transform: translate(-50%, 0);
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.arrow-bounce-down {
  font-size: 24px;
  line-height: 1;
  animation: bounce-arrow-down 1.2s ease-in-out infinite;
  filter: drop-shadow(0 2px 5px rgba(2, 132, 199, 0.4));
}

@keyframes bounce-arrow-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.arrow-bounce-up {
  font-size: 24px;
  line-height: 1;
  animation: bounce-arrow-up 1.2s ease-in-out infinite;
  filter: drop-shadow(0 2px 5px rgba(2, 132, 199, 0.4));
}

@keyframes bounce-arrow-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.pointer-label {
  background-color: #0F172A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.photo-card-info {
  padding: 14px;
  text-align: left;
}

.photo-card-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.photo-card-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.manual-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manual-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
}

.manual-step-item.highlight {
  background-color: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Advanced Options Drawer */
.advanced-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 18px;
}

.advanced-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-sublabel {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.factory-reset-box {
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.custom-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.custom-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--rose-error);
  cursor: pointer;
}

.warning-callout {
  font-size: 13px;
  color: #991B1B;
  background-color: var(--rose-error-bg);
  border: 1px solid var(--rose-error-border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  line-height: 1.5;
}

/* Segmented Control for Source */
.segmented-control {
  display: flex;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 3px;
  max-width: 400px;
}

.btn-segment {
  flex: 1;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-segment.active {
  background-color: #FFFFFF;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Local File Dropzone */
.file-dropzone {
  display: none;
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background-color: var(--bg-surface-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.file-dropzone.active {
  display: block;
}

.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--primary-blue);
  background-color: var(--primary-blue-light);
}

.dropzone-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.dropzone-text span {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
}

.selected-file-badge {
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  margin-top: 8px;
}

.firmware-extra-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.firmware-extra-meta code {
  font-family: var(--font-mono);
  background-color: var(--bg-surface-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.link-download-bin {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.link-download-bin:hover {
  text-decoration: underline;
}

/* Form Select */
.form-select {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background-color: #FFFFFF;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

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

/* Utility Buttons */
.util-buttons-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-util {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background-color: #FFFFFF;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-util:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Serial Console Drawer */
.terminal-container {
  background-color: #0F172A;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 16px;
  box-shadow: var(--shadow-card);
}

.terminal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background-color: #1E293B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #38BDF8;
  letter-spacing: 0.5px;
}

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

.btn-term-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-term-tool:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.terminal-screen {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: #F1F5F9;
  padding: 16px;
  height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-screen .log-line {
  margin-bottom: 2px;
}

.terminal-screen .log-info { color: #38BDF8; }
.terminal-screen .log-success { color: #34D399; font-weight: 600; }
.terminal-screen .log-warn { color: #FBBF24; }
.terminal-screen .log-error { color: #F87171; font-weight: 600; }

/* Footer */
.app-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--primary-blue);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .hero-title {
    font-size: 28px;
  }

  .installer-card {
    padding: 24px 18px;
  }

  .device-hero-row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .firmware-tag-row {
    justify-content: center;
  }

  .firmware-specs {
    justify-content: center;
  }

  .hardware-photos-grid,
  .next-steps-grid {
    grid-template-columns: 1fr;
  }

  .btn-install-primary {
    font-size: 16px;
    padding: 16px 24px;
  }
}
