/* QuickClip v2 - Premium Obsidian & Glassmorphism Design System */
:root {
  --bg-core: #070b14;
  --bg-surface-1: rgba(13, 20, 36, 0.7);
  --bg-surface-2: rgba(19, 29, 53, 0.85);
  --bg-surface-elevated: rgba(26, 39, 70, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(0, 210, 255, 0.28);
  --border-focus: rgba(0, 229, 163, 0.5);

  --accent-cyan: #00d2ff;
  --accent-teal: #00e5a3;
  --accent-blue: #0ea5e9;
  --accent-emerald: #10b981;
  --accent-danger: #f43f5e;
  --accent-warning: #f59e0b;

  --text-bright: #ffffff;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 35px rgba(0, 210, 255, 0.2);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-core);
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(0, 210, 255, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 85% 60%, rgba(0, 229, 163, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* App Container */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 10;
}

/* Floating Navigation Header */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(13, 20, 36, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 14px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15) 0%, rgba(0, 229, 163, 0.15) 100%);
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.25);
  overflow: hidden;
}

.brand-glyph {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.5));
}

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

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title .gradient-text {
  background: linear-gradient(135deg, #00d2ff 0%, #00e5a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-version {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.brand-tagline {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, #00d2ff 0%, #00e5a3 100%);
  color: #051424;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 22px rgba(0, 210, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-danger {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.28);
  color: #fda4af;
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.24);
  border-color: rgba(244, 63, 94, 0.45);
  color: #ffffff;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 6px 12px;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-surface-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

/* Command Center / Session Hub */
.session-hub {
  padding: 24px;
  margin-bottom: 24px;
  background: linear-gradient(180deg, rgba(16, 26, 48, 0.85) 0%, rgba(10, 16, 30, 0.9) 100%);
  border: 1px solid rgba(0, 210, 255, 0.18);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* PIN Display */
.pin-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pin-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pin-blocks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pin-digit {
  width: 44px;
  height: 54px;
  background: #060a14;
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  color: #00d2ff;
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: var(--transition);
}

.pin-digit:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  text-shadow: 0 0 14px rgba(0, 229, 163, 0.8);
}

.pin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* Live Indicators (Timer & Devices) */
.hub-status-cluster {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Circular Timer */
.timer-radial-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 14px 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.timer-svg {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}

.timer-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 4;
}

.timer-circle-progress {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.timer-data {
  display: flex;
  flex-direction: column;
}

.timer-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.timer-digits {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-bright);
}

/* Radar Presence */
.radar-presence {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.radar-dot-pulse {
  position: relative;
  width: 10px;
  height: 10px;
}

.radar-dot-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
}

.radar-dot-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-teal);
  opacity: 0;
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radar-ping {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.presence-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Sub-bar with Altcha Shield & Auto-Wipe Note */
.hub-subbar {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-teal);
  background: rgba(0, 229, 163, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 229, 163, 0.2);
  font-weight: 600;
}

/* Interactive Capture Dock */
.capture-dock {
  padding: 24px;
  margin-bottom: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.capture-dock.drag-over {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.4);
  transform: scale(1.008);
}

.dock-drop-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(7, 15, 28, 0.94);
  backdrop-filter: blur(14px);
  border: 2px dashed var(--accent-cyan);
  border-radius: var(--radius-lg);
  z-index: 50;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.capture-dock.drag-over .dock-drop-overlay {
  display: flex;
}

.dock-drop-overlay svg {
  color: var(--accent-cyan);
  animation: float-icon 1s infinite alternate;
}

@keyframes float-icon {
  from { transform: translateY(-5px); }
  to { transform: translateY(5px); }
}

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

.dock-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kbd-badge {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-textarea {
  width: 100%;
  min-height: 105px;
  max-height: 300px;
  resize: vertical;
  background: rgba(6, 10, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-bright);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  transition: var(--transition);
  margin-bottom: 14px;
}

.dock-textarea:focus {
  outline: none;
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12);
  background: rgba(6, 10, 20, 0.85);
}

.dock-textarea::placeholder {
  color: var(--text-dim);
}

.dock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

/* Clips Feed */
.feed-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.feed-header-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-counter {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.clips-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Clip Cards */
.clip-item-card {
  background: var(--bg-surface-1);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition);
  animation: clip-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.clip-item-card:hover {
  background: var(--bg-surface-2);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

@keyframes clip-slide {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.item-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-txt { background: rgba(0, 210, 255, 0.15); color: #38bdf8; }
.badge-img { background: rgba(0, 229, 163, 0.15); color: #34d399; }
.badge-doc { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.item-time {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.item-body-text {
  font-size: 0.94rem;
  color: var(--text-bright);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 14px;
}

.item-body-text a {
  color: var(--accent-cyan);
  text-decoration: underline;
  word-break: break-all;
}

.item-body-image {
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  max-height: 420px;
}

.item-body-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.item-body-image img:hover {
  transform: scale(1.015);
}

.item-body-file {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.32);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
}

.doc-glyph {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-info {
  overflow: hidden;
  flex: 1;
}

.doc-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-size {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.item-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Empty State */
.stream-empty {
  text-align: center;
  padding: 56px 20px;
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(13, 20, 36, 0.35);
}

.stream-empty-glyph {
  margin-bottom: 16px;
  color: var(--accent-cyan);
  opacity: 0.85;
}

.stream-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.stream-empty-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

/* Modals */
.app-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-modal-overlay.active {
  display: flex;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.app-modal-card {
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8);
  width: 100%;
  max-width: 440px;
  padding: 26px;
  position: relative;
  animation: scale-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scale-in {
  from { transform: scale(0.94); }
  to { transform: scale(1); }
}

.modal-exit-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.modal-exit-btn:hover {
  color: #fff;
}

.qr-box-inner {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  width: fit-content;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.code-input-lg {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 2rem;
  letter-spacing: 0.3em;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 210, 255, 0.4);
  background: #060a14;
  color: var(--accent-cyan);
  margin: 18px 0;
}

.code-input-lg:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0, 229, 163, 0.2);
}

/* Toast System */
.app-toast-zone {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  background: rgba(13, 21, 38, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-up 0.25s ease forwards;
}

.app-toast.success { border-left: 4px solid var(--accent-teal); }
.app-toast.info { border-left: 4px solid var(--accent-cyan); }
.app-toast.warning { border-left: 4px solid var(--accent-warning); }

@keyframes toast-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 680px) {
  .container { padding: 14px 12px 60px; }
  .app-nav { flex-direction: column; align-items: flex-start; }
  .nav-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .session-hub { padding: 18px 14px; }
  .hub-top { flex-direction: column; align-items: flex-start; }
  .pin-blocks { width: 100%; justify-content: space-between; }
  .pin-digit { width: 18%; height: 48px; font-size: 1.5rem; }
  .pin-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .hub-status-cluster { width: 100%; justify-content: space-between; }
  .timer-radial-wrap { flex: 1; }
  .radar-presence { flex: 1; }
  .dock-footer { flex-direction: column; align-items: stretch; }
  .dock-footer-left { justify-content: space-between; }
  .item-actions-bar { flex-direction: column; align-items: stretch; }
}

/* P2P Direct Transfer Floating Status Panel */
.p2p-transfer-panel {
  display: none;
  background: linear-gradient(135deg, rgba(16, 26, 48, 0.95) 0%, rgba(10, 18, 36, 0.95) 100%);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.25);
  animation: clip-slide 0.3s ease;
}

.p2p-transfer-panel.active {
  display: block;
}

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

.p2p-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p2p-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.p2p-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.15s linear;
}

.p2p-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.badge-p2p {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2) 0%, rgba(0, 229, 163, 0.2) 100%);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.35);
}

/* Install PWA Button */
#btn-install-pwa {
  display: none;
  background: rgba(0, 229, 163, 0.12);
  border-color: rgba(0, 229, 163, 0.3);
  color: var(--accent-teal);
}

/* How It Works Modal Styling */
.how-modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .how-modes-grid {
    grid-template-columns: 1fr;
  }
}

.how-card {
  background: rgba(6, 10, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how-card.highlight {
  border-color: rgba(0, 210, 255, 0.35);
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.06) 0%, rgba(6, 10, 20, 0.8) 100%);
}

.how-card-header {
  display: flex;
  align-items: center;
}

.how-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}

.how-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.how-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.how-list li {
  font-size: 0.8rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.how-extra-strip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .how-extra-strip {
    grid-template-columns: 1fr;
  }
}

.how-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.how-feature .feature-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.how-feature strong {
  font-size: 0.84rem;
  color: #fff;
  display: block;
}

.how-feature p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}


