/* ============ HERO ============ */
.hero { text-align: center; padding: 20px 8px 32px; }
.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1; font-weight: 700; letter-spacing: -0.8px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #4dd0ff, #0066ff);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p {
  margin-top: 14px; color: var(--text-mid);
  font-size: 15px; line-height: 1.6;
  max-width: 520px; margin-left: auto; margin-right: auto;
}

/* ============ HOME GRID ============ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }

.action-card {
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.action-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 44px rgba(0,0,0,0.6),
    0 0 40px rgba(0,102,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -2px 6px rgba(0,0,0,0.5);
}
.action-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(120, 210, 255, 0.55), transparent 55%),
    linear-gradient(140deg, var(--blue-2), var(--blue-3));
  box-shadow:
    0 6px 16px rgba(0, 80, 200, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -3px 6px rgba(0,0,0,0.35);
  margin-bottom: 18px;
}
.action-icon svg {
  width: 26px; height: 26px;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.action-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.action-card > p {
  color: var(--text-mid); font-size: 14px;
  line-height: 1.55; margin-bottom: 22px; flex: 1;
}

/* ============ JOIN ROW ============ */
.join-row { display: flex; gap: 10px; }

/* ============ TRANSFER HEAD ============ */
.transfer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding: 0 4px;
}
.conn-info {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-mid);
}
.conn-info .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 12px var(--success);
}

/* ============ DROP ZONE ============ */
.drop-card {
  padding: 0; margin-bottom: 24px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.drop-card.drag-over {
  border-color: rgba(0, 180, 255, 0.6);
  background: rgba(0, 100, 200, 0.12);
  box-shadow: 0 0 40px rgba(0, 180, 255, 0.25), var(--clay-shadow);
}
.drop-inner { padding: 48px 24px; text-align: center; }
.drop-icon {
  width: 52px; height: 52px;
  stroke: var(--blue-1); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 16px;
}
.drop-inner h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.drop-inner p { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }

/* ============ TRANSFER LIST ============ */
.transfer-list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 4px 14px;
}
.transfer-list-head h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.4px; }

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

.empty-state {
  text-align: center; padding: 32px;
  color: var(--text-dim); font-size: 13px;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
}

.transfer-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: fadeUp 0.3s ease;
}

.file-icon {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(0,102,255,0.35), rgba(0,180,255,0.25));
  border: 1px solid rgba(0, 180, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.file-icon svg {
  width: 20px; height: 20px;
  stroke: var(--blue-1); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.file-info { flex: 1; min-width: 0; }
.file-name {
  font-size: 14px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 5px;
}
.file-meta { font-size: 11px; color: var(--text-dim); margin-bottom: 7px; }
.file-meta .file-direction { font-weight: 500; }
[data-direction="send"] .file-direction { color: #6bb6ff; }
[data-direction="receive"] .file-direction { color: var(--success); }

.progress-track {
  height: 4px; background: rgba(0,0,0,0.45); border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue-2), var(--blue-1));
  border-radius: 999px;
  transition: width 0.15s linear;
  box-shadow: 0 0 10px var(--blue-glow);
}

.file-action { flex-shrink: 0; }

.done-check {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(34, 211, 160, 0.12);
  border: 1px solid rgba(34, 211, 160, 0.4);
  color: var(--success);
  font-size: 16px;
  font-weight: 700;
}