/* ==========================================================================
   Inthawnna — P2P Web Drop Design System & Stylesheet
   Theme: Matte Black (Stealth Pro Edition)
   Sleek, Minimalist, High-Contrast Carbon & Graphite Aesthetic
   ========================================================================== */

:root {
  /* Matte Black Foundation */
  --bg-deep: #09090b;       /* Pure matte carbon base */
  --bg-surface: #121215;    /* Deep graphite surface */
  --bg-card: #18181b;       /* Satin matte card */
  --bg-card-hover: #202024; /* Elevated matte hover */
  --bg-glass: rgba(18, 18, 21, 0.88);
  --bg-subtle: rgba(255, 255, 255, 0.035);
  --bg-elevated: #27272a;   /* Component container */

  /* Precision Matte Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(255, 255, 255, 0.24);
  --border-active: #ffffff;

  /* Stealth Monochrome & Functional Accents */
  --accent-primary: #ffffff;
  --accent-titanium: #d4d4d8;
  --accent-zinc: #71717a;
  --accent-emerald: #22c55e;
  --accent-amber: #eab308;
  --accent-rose: #f43f5e;

  /* Matte Gradients & Fills */
  --grad-primary: linear-gradient(180deg, #ffffff 0%, #e4e4e7 100%);
  --grad-silver: linear-gradient(135deg, #f4f4f5 0%, #a1a1aa 100%);
  --grad-dark-card: linear-gradient(180deg, #18181b 0%, #131316 100%);
  --grad-track: #27272a;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --text-main: #f4f4f5;     /* Crisp white text */
  --text-muted: #a1a1aa;    /* Cool matte silver */
  --text-dim: #71717a;      /* Muted charcoal */
  --text-inverse: #09090b;  /* Deep black for high-contrast buttons */

  /* Ambient Diffuse Shadows (No loud neon glares) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.85);
  --shadow-button: 0 4px 18px rgba(255, 255, 255, 0.12);

  /* Geometry */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Matte Vignette */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 380px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.035) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* App Root Layout */
.app-root {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header & Brand Section
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-main-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #18181b;
  border: 1px solid var(--border-medium);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.brand-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.brand-details {
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: #27272a;
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Header Status Badges & Controls */
.header-status-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #18181b;
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  transition: var(--trans-smooth);
}

.status-badge.online {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.status-badge.connecting {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.28);
  color: #fde047;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #a1a1aa;
}

.status-badge.online .status-pulse-dot {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.status-badge.connecting .status-pulse-dot {
  background-color: var(--accent-amber);
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.7);
}

.pill-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.wake-lock-indicator {
  background: #1f1f24;
  border: 1px solid var(--border-medium);
  color: #e4e4e7;
}

.pulse-mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

/* Sound Toggle Control */
.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: #18181b;
  border: 1px solid var(--border-subtle);
  transition: var(--trans-fast);
}

.toggle-control:hover {
  border-color: var(--border-medium);
  background: #202025;
}

.toggle-control input {
  display: none;
}

.toggle-track {
  width: 28px;
  height: 16px;
  border-radius: var(--radius-full);
  background: #27272a;
  position: relative;
  transition: var(--trans-fast);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #71717a;
  transition: var(--trans-fast);
}

.toggle-control input:checked + .toggle-track {
  background: #ffffff;
}

.toggle-control input:checked + .toggle-track .toggle-thumb {
  background: #09090b;
  transform: translateX(12px);
}

.toggle-caption {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Action Mini Button (Folder Picker, etc) */
.action-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: #18181b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--trans-fast);
}

.action-mini-btn:hover {
  background: #202025;
  border-color: var(--border-highlight);
  color: #ffffff;
}

.action-mini-btn.active {
  background: #1f2a24;
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

/* Navigation Tabs Bar (Directly below app name) */
.app-nav {
  display: flex;
  gap: 6px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.app-nav::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans-fast);
}

.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #ffffff;
  opacity: 0;
  transform: translateY(2px);
  transition: var(--trans-fast);
}

.nav-tab:hover {
  color: var(--text-main);
}

.nav-tab.active {
  color: #ffffff;
}

.nav-tab.active::after {
  opacity: 1;
  transform: translateY(0);
}

.tab-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: #27272a;
  color: var(--text-main);
}

.tab-badge.highlight {
  background: #ffffff;
  color: #09090b;
}

/* Shorthand Responsive Tabs & Tags */
.tab-label {
  display: inline-flex;
  align-items: center;
}

.tab-short {
  display: none;
}

.tag-short {
  display: none;
}

@media (max-width: 768px) {
  .tab-full {
    display: none;
  }
  .tab-short {
    display: inline;
  }
  .tag-full {
    display: none;
  }
  .tag-short {
    display: inline;
  }
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.app-main {
  flex: 1;
  padding: 28px 24px 48px;
}

.content-container {
  max-width: 1080px;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* General Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  transition: var(--trans-smooth);
}

.card:hover {
  border-color: var(--border-medium);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: #27272a;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.badge.online {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}

.badge.muted {
  color: var(--text-dim);
}

/* Notice Banner */
.notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: #141418;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notice-content svg {
  flex-shrink: 0;
  color: #ffffff;
}

.notice-action-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--trans-fast);
}

.notice-action-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Drop Zone & Send Station
   ========================================================================== */
.dropzone-card {
  padding: 44px 24px;
  text-align: center;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background: var(--bg-surface);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--trans-smooth);
}

.dropzone-card.drag-over {
  border-color: #ffffff;
  background: #1a1a20;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.dropzone-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #18181b;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: var(--trans-smooth);
}

.dropzone-card:hover .dropzone-icon-wrap {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.dropzone-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.dropzone-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.action-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hidden-input {
  display: none !important;
}

/* High-Contrast Matte Buttons */
.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: var(--trans-fast);
}

/* Primary Button: Satin White Contrast ("THAWN RAWH") */
.btn-glow.primary-btn {
  background: var(--grad-primary);
  color: #09090b;
  font-weight: 700;
  border: 1px solid #ffffff;
  box-shadow: var(--shadow-button);
}

.btn-glow.primary-btn:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.18);
}

.btn-glow.secondary-btn {
  background: #27272a;
  border-color: var(--border-medium);
  color: #f4f4f5;
}

.btn-glow.secondary-btn:hover {
  background: #323238;
  border-color: var(--border-highlight);
  color: #ffffff;
}

.btn-glow.tertiary-btn {
  background: #1c1c21;
  border-color: var(--border-subtle);
  color: #d4d4d8;
}

.btn-glow.tertiary-btn:hover {
  background: #27272e;
  border-color: var(--border-medium);
  color: #ffffff;
}

.btn-glow.danger {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.btn-glow.danger:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #ffffff;
}

.btn-glow.mini {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-glow.full-width {
  width: 100%;
}

.text-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  transition: var(--trans-fast);
}

.text-btn:hover {
  color: var(--text-main);
}

.text-btn.danger {
  color: #fb7185;
}

.text-btn.danger:hover {
  color: #f43f5e;
}

/* Staged Files Queue */
.queue-card {
  border-color: var(--border-medium);
}

.file-queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: #141417;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--trans-fast);
}

.queue-item:hover {
  background: #1a1a20;
  border-color: var(--border-medium);
}

.queue-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.file-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #27272a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.file-info-text {
  min-width: 0;
}

.file-name-text {
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.file-size-text {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.remove-file-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--trans-fast);
}

.remove-file-btn:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
}

/* Active Transfer Monitor Card */
.monitor-card {
  background: #151518;
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-lg);
}

.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.monitor-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.transfer-spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid #27272a;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.monitor-filename {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.monitor-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.monitor-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.speed-pill {
  padding: 4px 10px;
  background: #27272a;
  color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
}

.percent-pill {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #27272a;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  transition: width 0.15s ease-out;
}

.monitor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.transfer-controls-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-transfer-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: #27272a;
  color: #f1f5f9;
  cursor: pointer;
  transition: var(--trans-fast);
}

.btn-transfer-control:hover {
  background: #3f3f46;
  border-color: #52525b;
  transform: translateY(-1px);
}

.btn-transfer-control:active {
  transform: translateY(0);
}

.btn-transfer-control.pause-btn.paused {
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(234, 179, 8, 0.5);
  color: #facc15;
}

.btn-transfer-control.cancel-btn {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.btn-transfer-control.cancel-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
}

/* ==========================================================================
   Received Files Grid & Gallery
   ========================================================================== */
.empty-state {
  padding: 60px 20px;
  text-align: center;
}

.empty-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #141418;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.empty-state h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 400px;
  margin: 0 auto;
}

.received-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.received-card-item {
  background: #141417;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--trans-smooth);
}

.received-card-item:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.media-preview-box {
  width: 100%;
  height: 150px;
  background: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.media-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.received-card-item:hover .media-thumbnail-img {
  transform: scale(1.04);
}

.generic-file-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.generic-file-ext {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}

.received-item-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.received-filename {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.received-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.received-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.received-actions button {
  flex: 1;
}

/* ==========================================================================
   Clipboard Sync Station
   ========================================================================== */
.clipboard-input-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.clipboard-input-box textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 18px;
  background: #141418;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: var(--trans-fast);
}

.clipboard-input-box textarea:focus {
  border-color: #ffffff;
  background: #18181d;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

.clipboard-actions {
  display: flex;
  justify-content: flex-end;
}

.clipboard-history {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.history-header h4 {
  font-size: 1rem;
  color: #ffffff;
}

.clipboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clipboard-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #141418;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.clipboard-content {
  font-size: 0.92rem;
  color: var(--text-main);
  word-break: break-word;
  white-space: pre-wrap;
  flex: 1;
}

.clipboard-copy-btn {
  background: #27272a;
  border: 1px solid var(--border-medium);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--trans-fast);
}

.clipboard-copy-btn:hover {
  background: #ffffff;
  color: #09090b;
}

.empty-mini {
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ==========================================================================
   Pairing / QR Code Station
   ========================================================================== */
/* Pairing Prompt Banner (First Station Prompt) */
.pairing-prompt-banner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), #141418;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  transition: var(--trans-smooth);
}

.pairing-prompt-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, #71717a, transparent);
  opacity: 0.85;
}

.prompt-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.prompt-icon-badge {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #27272a;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.prompt-status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.prompt-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4f4f5;
  background: #18181b;
  border: 1px solid var(--border-medium);
  padding: 4px 11px;
  border-radius: var(--radius-full);
}

.prompt-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
  animation: pulseAmber 2s infinite ease-in-out;
}

.prompt-pulse-dot.online {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseAmber {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.prompt-tech-tag {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.prompt-body-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prompt-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.prompt-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.prompt-actions {
  margin-top: 4px;
}

.pairing-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .pairing-container {
    grid-template-columns: 1fr;
  }
}

.qr-display-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 24px;
}

.qr-frame {
  position: relative;
  width: 240px;
  height: 240px;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.85), 0 0 0 2px rgba(255, 255, 255, 0.1);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#qrCanvas {
  max-width: 100% !important;
  max-height: 100% !important;
  width: 216px !important;
  height: 216px !important;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.qr-caption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.room-share-bar {
  background: #141418;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room-code-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.room-code-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.room-code-digits {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: #27272a;
  padding: 2px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
}

.room-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #09090b;
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.room-url-text {
  font-size: 0.82rem;
  color: var(--accent-emerald, #34d399);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-decoration: none;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

a.room-url-text:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.copy-url-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #27272a;
  border: 1px solid var(--border-medium);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans-fast);
}

.copy-url-btn:hover {
  background: #ffffff;
  color: #09090b;
}

/* Guide Steps */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #27272a;
  border: 1px solid var(--border-medium);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.step-text strong {
  color: #ffffff;
}

.step-text span {
  color: var(--text-dim);
}

/* Join Room Form */
.join-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.input-group input {
  flex: 0 1 180px;
  width: 170px;
  max-width: 200px;
  min-width: 110px;
  padding: 10px 12px;
  background: #141418;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  transition: var(--trans-fast);
}

.input-group input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

.input-group #joinRoomBtn {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .app-main {
    padding: 14px 10px 36px;
  }
  .card {
    padding: 16px 12px;
    margin-bottom: 16px;
  }
  .input-group {
    gap: 8px;
  }
  .input-group input {
    flex: 0 1 145px;
    width: 140px;
    max-width: 155px;
    min-width: 100px;
    padding: 9px 8px;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
  }
  .input-group #joinRoomBtn {
    flex-shrink: 0;
    padding: 9px 15px;
    font-size: 0.84rem;
    white-space: nowrap;
  }
}

.join-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
}

.join-divider::before, .join-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.join-divider span {
  padding: 0 10px;
}

/* In-App Camera Scanner Viewport */
.camera-scanner-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 240px;
  margin: 10px auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 2px solid #ffffff;
}

#scannerVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border: 2px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.mini-close-btn {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  font-size: 0.78rem;
}

/* ==========================================================================
   Toasts & Modals
   ========================================================================== */
.toast-shelf {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: #18181b;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #ffffff;
  animation: slideUpToast 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpToast {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast.success { border-color: rgba(34, 197, 94, 0.4); }
.toast.danger { border-color: rgba(244, 63, 94, 0.4); }

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #18181b;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--trans-fast);
}

.lightbox-close-btn:hover {
  background: rgba(244, 63, 94, 0.4);
}

.lightbox-media-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 85vw;
  max-height: 70vh;
  overflow: hidden;
}

.lightbox-media-container img,
.lightbox-media-container video {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-bar {
  width: 100%;
  padding: 12px 20px;
  background: #121215;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lightbox-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Mobile Responsive Adjustments (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .header-inner {
    padding: 8px 14px 4px;
    gap: 6px;
  }

  .header-main-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .brand-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .brand-logo-wrap {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .brand-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
  }

  /* Move P2P Web below Inthawnna header in mobile view */
  .brand-title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .brand-name {
    font-size: 1.15rem;
    line-height: 1.1;
  }

  .brand-pill {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 6px;
    letter-spacing: 0.06em;
    line-height: 1.2;
    background: #27272a;
    border-radius: var(--radius-full);
  }

  .brand-tagline {
    display: none;
  }

  .header-status-panel {
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: 0;
  }

  .status-badge {
    padding: 4px 10px;
    font-size: 0.74rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .status-label {
    white-space: nowrap;
  }

  .toggle-control {
    padding: 4px 8px;
    flex-shrink: 0;
  }

  .toggle-caption span {
    display: none;
  }

  .action-mini-btn#folderPickerBtn {
    display: none;
  }

  /* Navigation Tabs: Positioned just below the app name, single line without scrolling */
  .app-nav {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3px;
    padding: 6px 0 4px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    flex-wrap: nowrap;
    background: transparent;
  }

  .app-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-tab {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 2px;
    font-size: 0.76rem;
    white-space: nowrap;
    border-radius: 0;
    background: transparent;
    color: var(--text-dim);
    min-width: 0;
    position: relative;
    transition: var(--trans-fast);
  }

  .nav-tab svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: inherit;
    transition: var(--trans-fast);
  }

  .nav-tab::after {
    display: block;
    content: '';
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 4px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(2px);
    transition: var(--trans-fast);
  }

  .nav-tab:hover {
    color: var(--text-main);
  }

  .nav-tab.active {
    background: transparent;
    color: #ffffff;
    font-weight: 700;
  }

  .nav-tab.active svg {
    color: #ffffff;
  }

  .nav-tab.active::after {
    opacity: 1;
    transform: translateY(0);
  }

  .tab-badge {
    display: none;
  }

  .pairing-prompt-banner {
    padding: 12px 14px;
    gap: 8px;
  }

  /* In the above space, in the same line as the rectangular box with curved edges */
  .prompt-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
  }

  .prompt-icon-badge {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
  }

  .prompt-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
  }

  .prompt-live-pill {
    padding: 3px 8px;
    font-size: 0.67rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .prompt-pulse-dot {
    width: 6px;
    height: 6px;
  }

  .prompt-tech-tag {
    font-size: 0.70rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: var(--text-dim);
  }

  .pairing-prompt-banner {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    gap: 8px;
  }

  .prompt-header-row {
    order: 1;
  }

  .prompt-actions {
    order: 2;
    display: flex !important;
    gap: 8px;
    width: 100%;
    margin: 4px 0 2px;
  }

  .prompt-actions button {
    flex: 1;
    padding: 11px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    justify-content: center;
  }

  .prompt-body-block {
    order: 3;
  }

  .prompt-title {
    font-size: 1.05rem;
    margin-bottom: 3px;
  }

  .prompt-desc {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  /* Make transfer tab flex so staged queue card sits at upper part on mobile */
  #transferTab.tab-pane.active {
    display: flex;
    flex-direction: column;
  }

  .queue-card {
    order: -1;
    margin-bottom: 14px;
  }

  .queue-card .card-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .queue-card .header-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .queue-card .header-actions .send-btn {
    flex: 1;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.92rem;
  }

  .transfer-controls-bar {
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .btn-transfer-control {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.86rem;
  }

  .app-main {
    padding: 16px 14px 40px;
  }

  .toast-shelf {
    left: 16px;
    right: 16px;
    bottom: 20px;
  }

  .card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
  }

  .dropzone-card {
    padding: 28px 14px;
  }

  .dropzone-title {
    font-size: 1.25rem;
  }

  .action-btn-row {
    flex-direction: column;
    width: 100%;
  }

  .action-btn-row label {
    width: 100%;
  }

  .qr-frame {
    width: 200px;
    height: 200px;
  }

  .room-share-bar {
    padding: 10px;
  }

  .join-box .input-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .join-box .input-group input {
    flex: 0 1 145px;
    width: 140px;
    max-width: 150px;
    min-width: 100px;
    padding: 9px 8px;
    font-size: 0.86rem;
    text-align: center;
    letter-spacing: 0.05em;
    box-sizing: border-box;
  }

  .join-box .input-group #joinRoomBtn {
    flex: 0 0 auto;
    padding: 9px 15px;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .toast-shelf {
    left: 16px;
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  /* Transfer Stats Meter: Single line layout in mobile view */
  .daily-stats-meter {
    padding: 8px 12px;
    font-size: 0.76rem;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
  }

  .daily-stats-left {
    gap: 6px;
    white-space: nowrap;
    flex-wrap: nowrap;
    max-width: 100%;
  }

  .daily-stats-tag {
    font-size: 0.7rem;
    padding: 2px 7px;
    flex-shrink: 0;
  }

  #dailyStatsText {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   About Tab Styling (Matte Black Edition)
   ========================================================================== */
.about-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 28px;
}

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
}

.about-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: #141418;
  border: 1px solid var(--border-medium);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.about-app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.about-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.about-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-content-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-message-block {
  background: #141418;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-text-lead {
  font-size: 0.98rem;
  color: #f4f4f5;
  line-height: 1.6;
  font-weight: 500;
}

.about-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* UPI Highlight Card */
.upi-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #111114;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.upi-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upi-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #27272a;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.upi-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upi-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.upi-id-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  user-select: all;
}

.upi-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

@media (max-width: 600px) {
  .about-highlights-grid {
    grid-template-columns: 1fr;
  }
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #141418;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.highlight-bullet {
  font-size: 1.1rem;
  line-height: 1;
}

.highlight-item strong {
  display: block;
  color: #ffffff;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.highlight-item span {
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ==========================================================================
   New UI/UX Enhancements: Language Toggle, Drop Overlay, Filters, Batch Actions
   ========================================================================== */

/* Language Toggle Button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.lang-icon {
  font-size: 0.95rem;
}

.lang-badge {
  background: var(--text-main);
  color: var(--bg-deep);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* Global Drag & Drop Overlay */
.global-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: fadeInOverlay 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.global-drop-overlay.active {
  pointer-events: auto;
}

.global-drop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.global-drop-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 70px;
  background: rgba(24, 24, 27, 0.85);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  animation: springScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.drop-glow-ring {
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--radius-lg) + 10px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  filter: blur(15px);
  pointer-events: none;
}

.drop-icon-anim {
  color: #ffffff;
  margin-bottom: 20px;
  animation: bounceDrop 1.2s ease-in-out infinite;
}

.drop-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.drop-sub {
  font-size: 1rem;
  color: var(--text-muted);
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes springScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes bounceDrop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Received Files Toolbar (Search, Filter, Sort) */
.received-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.search-sort-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 34px 8px 36px;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--trans-fast);
}

.search-input-wrap input:focus {
  border-color: var(--border-highlight);
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  display: none;
}

.sort-select-wrap select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.filter-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-chips-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.filter-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.filter-chip.active {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
}

/* Batch Action Bar */
.batch-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #18181b;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  animation: slideDownBar 0.2s ease-out;
}

@keyframes slideDownBar {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.batch-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.batch-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.batch-count-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--accent-titanium);
}

.batch-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Checkbox on Received Card */
.received-card-item {
  position: relative;
}

.card-select-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #ffffff;
}

/* Transfer Confirmation Modal */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.confirm-card {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 440px;
  background: #18181b;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: springScale 0.25s ease-out;
}

.confirm-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #ffffff;
}

.confirm-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.confirm-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.confirm-file-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
}

.confirm-buttons button {
  flex: 1;
}

/* Daily Transfer Stats Meter */
.daily-stats-meter {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
}

.daily-stats-left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
  max-width: 100%;
}

.daily-stats-tag {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

#dailyStatsText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

