/* AntyShare Design System — Ultra-Modern Dark Cyberpunk Aesthetic */

:root {
  --bg-dark: #07090e;
  --bg-card: #0d1322;
  --bg-card-hover: #121a2e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);

  --cyan-primary: #00f0ff;
  --cyan-glow: 0 0 20px rgba(0, 240, 255, 0.4);
  --purple-primary: #8b5cf6;
  --purple-glow: 0 0 20px rgba(139, 92, 246, 0.4);
  --green-primary: #10b981;
  --green-glow: 0 0 20px rgba(16, 185, 129, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
}

/* ============================================================ */
/* NAVBAR / HEADER                                              */
/* ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--cyan-primary), var(--purple-primary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--cyan-glow);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, var(--cyan-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.2;
}

.brand-tag {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  display: block;
}

/* Mode Switcher Segmented Control */
.mode-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}

.mode-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.mode-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.mode-tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 246, 0.15));
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.mode-pill-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.mode-tab.active .mode-pill-badge {
  background: var(--cyan-primary);
  color: #07090e;
  font-weight: 700;
}

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

.btn-download-exe {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-download-exe:hover {
  background: var(--purple-primary);
  color: #ffffff;
  box-shadow: var(--purple-glow);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-primary);
  box-shadow: var(--green-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

/* ============================================================ */
/* MAIN CONTENT LAYOUT                                          */
/* ============================================================ */
.main-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  width: 100%;
  flex: 1;
}

/* Dynamic Mode Sections */
.mode-section {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.mode-section.active {
  display: block;
}

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

/* Hero Badge */
.mode-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan-primary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.mode-hero-purple {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}

.mode-hero-green {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Grids & Cards */
.grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  margin-bottom: 24px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.card-header.space-between {
  justify-content: space-between;
}

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

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.card-icon.cyan-glow {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.card-icon.purple-glow {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.card-icon.green-glow {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================ */
/* MODE 1: QR & CONNECT COMPONENT                               */
/* ============================================================ */
.qr-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

.qr-frame {
  width: 170px;
  height: 170px;
  background: #0a0d14;
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--cyan-glow);
  flex-shrink: 0;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: block;
}

.qr-loader {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0a0d14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.qr-instructions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.inst-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan-primary);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.local-ip-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.local-ip-badge code {
  color: var(--cyan-primary);
  font-size: 12px;
  font-weight: 600;
  word-break: break-all;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition);
  margin-left: auto;
}

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

/* ============================================================ */
/* DRAG & DROP ZONE                                             */
/* ============================================================ */
.dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  background: rgba(139, 92, 246, 0.03);
  transition: var(--transition);
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--purple-primary);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

.dropzone input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-inner {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dropzone-icon {
  color: var(--purple-primary);
  margin-bottom: 4px;
}

.dropzone-prompt {
  font-size: 16px;
  color: var(--text-main);
}

.dropzone-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.browse-link {
  color: var(--cyan-primary);
  text-decoration: underline;
  font-weight: 600;
}

.dropzone-limit-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--green-primary);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
}

/* Live Telemetry HUD */
.transfer-hud {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

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

.hud-filename {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-speed {
  font-size: 15px;
  font-weight: 800;
  color: var(--cyan-primary);
  font-family: monospace;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-primary), var(--purple-primary));
  box-shadow: 0 0 10px var(--cyan-primary);
  border-radius: var(--radius-pill);
  transition: width 0.15s ease-out;
}

.progress-bar-fill.purple-fill {
  background: linear-gradient(90deg, var(--purple-primary), #ec4899);
  box-shadow: 0 0 10px var(--purple-primary);
}

.hud-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================ */
/* RECEIVED FILES VAULT                                         */
/* ============================================================ */
.files-card {
  margin-bottom: 24px;
}

.btn-refresh {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-refresh:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.empty-files-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-files-placeholder p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.files-table-wrap {
  overflow-x: auto;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.files-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.files-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.files-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.file-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-main);
}

.file-ext-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan-primary);
  text-transform: uppercase;
}

.btn-download-file {
  background: linear-gradient(135deg, var(--cyan-primary), #00b4d8);
  color: #07090e;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-download-file:hover {
  box-shadow: var(--cyan-glow);
  transform: translateY(-1px);
}

.btn-del-file {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: var(--transition);
  margin-left: 6px;
}

.btn-del-file:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
}

/* ============================================================ */
/* MODE RESOURCES & GUIDE GRID                                  */
/* ============================================================ */
.mode-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.res-card {
  background: rgba(13, 19, 34, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.res-icon {
  font-size: 26px;
  margin-bottom: 2px;
}

.res-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

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

.btn-res-action {
  margin-top: 10px;
  display: inline-block;
  align-self: flex-start;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-res-action:hover {
  background: var(--purple-primary);
  color: #fff;
  box-shadow: var(--purple-glow);
}

/* ============================================================ */
/* MODE 2: GLOBAL P2P STYLES                                    */
/* ============================================================ */
.p2p-big-code {
  font-family: monospace;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--cyan-primary);
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px dashed var(--cyan-primary);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  margin: 14px 0;
  box-shadow: var(--cyan-glow);
}

.p2p-share-link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.p2p-share-link-box input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: monospace;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
}

.code-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.code-input {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  font-family: monospace;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 4px;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.code-input:focus {
  border-color: var(--purple-primary);
  box-shadow: var(--purple-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-primary), #6366f1);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  box-shadow: var(--purple-glow);
  transform: translateY(-2px);
}

.p2p-status-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.p2p-status-icon {
  font-size: 22px;
}

.p2p-status-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.p2p-status-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================ */
/* MODE 3: RADAR STYLES                                         */
/* ============================================================ */
.radar-arena-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 40px;
  margin-bottom: 24px;
}

.radar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(7, 9, 14, 0.8) 70%);
  border: 2px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--green-glow);
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.25);
  pointer-events: none;
}
.circle-1 { width: 100px; height: 100px; }
.circle-2 { width: 200px; height: 200px; }
.circle-3 { width: 300px; height: 300px; }

.radar-sweep {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.4) 0deg, transparent 60deg);
  animation: sweep 4s linear infinite;
  pointer-events: none;
}

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

.radar-center-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #0d1322;
  border: 2px solid var(--green-primary);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  justify-content: center;
  box-shadow: var(--green-glow);
}

.radar-center-node .node-icon { font-size: 20px; }
.radar-center-node .node-name { font-size: 9px; font-weight: 700; color: #6ee7b7; text-transform: uppercase; }

.radar-peer-node {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #111827;
  border: 2px solid var(--cyan-primary);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--cyan-glow);
  transition: var(--transition);
}

.radar-peer-node:hover {
  transform: scale(1.15);
  border-color: #fff;
}

.radar-instructions-panel h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.radar-instructions-panel p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.discovered-peers-list {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scanning-text {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

/* ============================================================ */
/* TOAST NOTIFICATION & FOOTER                                  */
/* ============================================================ */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0e1424;
  border: 1px solid var(--cyan-primary);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--cyan-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.footer {
  border-top: 1px solid var(--border-color);
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  background: rgba(7, 9, 14, 0.9);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

/* ============================================================ */
/* RESPONSIVE DESIGN (MOBILE ADAPTATION)                        */
/* ============================================================ */
@media (max-width: 900px) {
  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }
  .mode-switcher {
    order: 3;
    overflow-x: auto;
    width: 100%;
    justify-content: space-between;
  }
  .grid-two-cols {
    grid-template-columns: 1fr;
  }
  .radar-arena-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .mode-resources-grid {
    grid-template-columns: 1fr;
  }
  .qr-container {
    flex-direction: column;
    text-align: center;
  }
  .inst-step {
    text-align: left;
  }
  .footer-container {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================================ */
/* MODE 3: DEVICE IDENTITY BAR & SECURITY STYLES                */
/* ============================================================ */
.device-identity-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.04);
}

.identity-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.identity-ip-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

.identity-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.identity-right label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.identity-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.identity-input-wrap input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  width: 140px;
  transition: var(--transition);
}

.identity-input-wrap input:focus {
  border-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.btn-save-name {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-save-name:hover {
  background: #10b981;
  color: #07090e;
}

.instructions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.security-chip {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.progress-bar-fill.green-fill {
  background: linear-gradient(90deg, #10b981, #06b6d4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.green-text {
  color: #10b981 !important;
}

/* ============================================================ */
/* SECURITY MODALS (GLASSMORPHIC CONFIRMATION)                  */
/* ============================================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.modal-box {
  width: 100%;
  max-width: 440px;
  background: rgba(13, 17, 27, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
  text-align: center;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.pulse-border {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.incoming-card {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
}

.modal-icon-header {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.big-modal-icon {
  font-size: 42px;
  position: relative;
  z-index: 2;
}

.radar-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  margin-top: -35px;
  margin-left: -35px;
  border-radius: 50%;
  border: 2px solid var(--cyan-primary);
  animation: radarRingPulse 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: 1;
}

@keyframes radarRingPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.modal-badge-security {
  display: inline-block;
  margin-bottom: 14px;
}

.modal-badge-security span {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-desc b {
  color: var(--cyan-primary);
}

.modal-file-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: left;
}

.file-preview-icon {
  font-size: 26px;
}

.file-preview-details {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-preview-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-preview-size {
  font-size: 12px;
  color: var(--text-dim);
  font-family: monospace;
}

.modal-security-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.modal-actions-dual {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-modal-decline {
  flex: 1;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-decline:hover {
  background: #ef4444;
  color: #fff;
}

.btn-modal-accept {
  flex: 1.4;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #07090e;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  transition: var(--transition);
}

.btn-modal-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.7);
}

.btn-modal-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-cancel:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

