/* ==========================================================================
   DROP • FLAGSHIP LUXURY (APPLE PRO / LINEAR AESTHETIC)
   Ultra-Refined Dark Canvas • Glassmorphism • Precision Micro-Interactions
   ========================================================================== */

:root {
  --bg-deep: #07080b;
  --card-glass: rgba(16, 18, 27, 0.78);
  --card-glass-elevated: rgba(22, 25, 38, 0.88);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-border-hover: rgba(255, 255, 255, 0.18);
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.12);

  --input-glass: rgba(10, 12, 18, 0.6);
  --input-border: rgba(255, 255, 255, 0.08);
  --input-focus-border: #6366f1;
  --input-focus-glow: 0 0 0 3px rgba(99, 102, 241, 0.28);

  --text-pure: #ffffff;
  --text-primary: #f1f3f9;
  --text-secondary: #949ab1;
  --text-tertiary: #606782;

  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --accent-gradient-hover: linear-gradient(135deg, #60a5fa 0%, #4f46e5 100%);
  --accent-glow: 0 8px 24px -4px rgba(99, 102, 241, 0.4);

  --danger: #f43f5e;
  --danger-glow: rgba(244, 63, 94, 0.15);
  --success: #10b981;

  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-input: 12px;
  --radius-pill: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   RESET & LUXURY BACKGROUND
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% -15%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(circle at 10% 95%, rgba(56, 189, 248, 0.09), transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Wrapper */
.app-container {
  width: 100%;
  max-width: 460px;
  margin: auto 0;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-pure);
  transition: transform var(--transition-smooth);
}

.brand-link:hover {
  transform: scale(1.02);
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* --------------------------------------------------------------------------
   MOBILE APP SUGGESTION BANNER (WEB MOBILE ONLY)
   -------------------------------------------------------------------------- */
.app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-inner);
  padding: 10px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: smoothFadeIn 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-banner.hidden {
  display: none !important;
}

.app-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-banner-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-banner-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-banner-download {
  text-decoration: none;
  font-size: 0.78rem !important;
  padding: 6px 12px !important;
  height: 28px !important;
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4) !important;
}

.btn-ghost-icon {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color var(--transition-smooth);
}

.btn-ghost-icon:hover {
  color: var(--text-pure);
}

/* --------------------------------------------------------------------------
   SEGMENTED PILL TAB CONTROL
   -------------------------------------------------------------------------- */
.tab-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-pure);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-pure);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-icon {
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   GLASSMORPHIC CARD & PANELS
   -------------------------------------------------------------------------- */
.app-card {
  background: var(--card-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.8), var(--card-highlight);
  border-radius: var(--radius-card);
  padding: 26px;
}

.view-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.view-panel.active {
  display: flex;
  animation: smoothFadeIn 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#view-share {
  gap: 14px;
}

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

/* Active Drop Notification Banner */
.active-drop-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.18) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 16px rgba(56, 189, 248, 0.1);
  animation: smoothFadeIn 200ms ease-out forwards;
}

.active-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.active-pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

.active-banner-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.active-banner-title {
  font-size: 0.82rem;
  color: var(--text-pure);
  font-weight: 500;
}

.active-banner-title strong {
  color: #38bdf8;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.active-banner-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.active-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-banner-view {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-banner-view:hover {
  background: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.btn-banner-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 5px 7px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-banner-delete:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.btn-banner-dismiss {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.btn-banner-dismiss:hover {
  color: var(--text-primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   PREMIUM INPUTS & TEXTAREA
   -------------------------------------------------------------------------- */
.clean-textarea {
  width: 100%;
  background: var(--input-glass);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 14px 16px;
  resize: vertical;
  min-height: 95px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-smooth);
}

.clean-textarea:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-glow), inset 0 2px 4px rgba(0, 0, 0, 0.3);
  background: rgba(12, 15, 24, 0.8);
}

.clean-textarea::placeholder {
  color: var(--text-tertiary);
}

/* Live Input Detection Bar */
.live-input-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-bottom-left-radius: var(--radius-input);
  border-bottom-right-radius: var(--radius-input);
  margin-top: -4px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  transition: all var(--transition-smooth);
}

.live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.live-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  white-space: nowrap;
}

.live-tag-badge.code {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.live-tag-badge.note {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.live-tag-desc {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.live-stats {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   DROPZONE & FILE CHIPS
   -------------------------------------------------------------------------- */
.clean-dropzone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background: var(--input-glass);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.clean-dropzone:hover, .clean-dropzone.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.06);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.18);
}

.upload-quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.upload-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.upload-action-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}

.upload-action-btn svg {
  color: #38bdf8;
  transition: transform 0.2s ease;
}

.upload-action-btn:hover svg {
  transform: scale(1.1);
}

.dropzone-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dropzone-icon {
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropzone-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-pure);
}

.dropzone-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.btn-camera-snap {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-camera-snap:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.hidden-input {
  display: none;
}

/* Staged Chips */
.staged-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.8rem;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.chip-size {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.chip-remove {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color var(--transition-smooth);
}

.chip-remove:hover {
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   OPTIONS BAR (TTL & BURN)
   -------------------------------------------------------------------------- */
.options-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 4px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 12px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.clean-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 6px 12px;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.clean-select:focus {
  border-color: #6366f1;
}

.clean-select option {
  background: #111524;
  color: var(--text-primary);
}

.ttl-limit-notice {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  animation: smoothFadeIn 150ms ease-out forwards;
  white-space: nowrap;
}

/* Clean Toggle */
.clean-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.clean-toggle input {
  position: absolute;
  opacity: 0;
}

.toggle-track {
  width: 34px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  position: relative;
  transition: all var(--transition-smooth);
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-tertiary);
  transition: all var(--transition-smooth);
}

.clean-toggle input:checked + .toggle-track {
  background: #6366f1;
  border-color: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.clean-toggle input:checked + .toggle-track::after {
  transform: translateX(16px);
  background: #ffffff;
}

.toggle-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   REAL-TIME UPLOAD PROGRESS BAR
   -------------------------------------------------------------------------- */
.upload-progress-container {
  background: var(--card-glass-elevated);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: smoothFadeIn 200ms ease-out forwards;
}

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

.upload-status-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

.upload-status-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-percent-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.upload-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
  border-radius: var(--radius-pill);
  position: relative;
  transition: width 120ms ease-out;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.progress-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.upload-progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.upload-stat-left {
  color: var(--text-secondary);
}

.upload-stat-right {
  color: #38bdf8;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   PREMIUM BUTTONS
   -------------------------------------------------------------------------- */
.action-footer {
  margin-top: 6px;
}

.btn-primary {
  height: 46px;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--accent-glow);
  transition: all var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -4px rgba(99, 102, 241, 0.55);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-pure);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-secondary.sm {
  height: 34px;
  padding: 0 14px;
  font-size: 0.8rem;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius-btn);
  transition: all var(--transition-smooth);
}

.btn-ghost:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost.sm {
  padding: 4px 8px;
  font-size: 0.8rem;
}

.text-danger {
  color: var(--danger) !important;
}

.text-danger:hover {
  background: var(--danger-glow) !important;
}

.btn-danger-action, .btn-danger-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-danger-action:hover, .btn-danger-ghost:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
  transform: translateY(-1px);
}

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

.vault-actions-footer button {
  flex: 1;
}

.full-width {
  width: 100%;
}

/* --------------------------------------------------------------------------
   RECEIVE VIEW (PIN BOXES)
   -------------------------------------------------------------------------- */
.receive-intro {
  text-align: center;
  padding: 4px 0 10px 0;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-pure);
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.pin-input-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 10px 0;
}

.pin-box {
  width: 66px;
  height: 76px;
  background: var(--input-glass);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-smooth);
}

.pin-box:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-glow), inset 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  background: rgba(14, 18, 30, 0.9);
}

/* --------------------------------------------------------------------------
   SHARE SCREEN
   -------------------------------------------------------------------------- */
.share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulseAnim 2s infinite;
}

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

.pulse-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.time-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: #a5b4fc;
}

/* Drop Picked Up Banner */
.share-pickup-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.18) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.2);
  animation: smoothFadeIn 220ms ease-out forwards;
}

.pickup-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseDot 1.5s infinite;
  flex-shrink: 0;
}

.pickup-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pickup-heading {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 700;
}

.pickup-desc {
  font-size: 0.72rem;
  color: #a7f3d0;
}

/* PIN Hero Card */
.pin-hero-card {
  background: var(--input-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition-smooth);
}

.pin-hero-card:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.pin-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 600;
}

.pin-hero-digits {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-pure);
  line-height: 1.1;
  margin: 3px 0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.pin-hint {
  font-size: 0.72rem;
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   SHARE SCREEN PAYLOAD OVERVIEW
   -------------------------------------------------------------------------- */
.share-payload-card {
  background: var(--card-glass-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: smoothFadeIn 220ms ease-out forwards;
}

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

.payload-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.payload-badge.code {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.payload-badge.note {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.payload-badge.files {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.payload-stat-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.share-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(10, 12, 18, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
}

.share-link-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.share-link-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.share-link-domain {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-pure);
}

.share-link-full {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-open-link {
  text-decoration: none;
  font-size: 0.75rem !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.1) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: var(--radius-btn);
  padding: 4px 10px !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-smooth);
}

.btn-open-link:hover {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.share-text-box {
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.share-text-snippet {
  font-size: 0.82rem;
  color: #f1f5f9;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 70px;
  overflow-y: auto;
}

.share-files-chips,
.staged-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.staged-chip,
.share-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 4px 12px 4px 10px;
  font-size: 0.78rem;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.staged-chip:hover,
.share-file-chip:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.chip-name {
  color: #f1f5f9;
  font-weight: 500;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-size {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.btn-remove-chip {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}

.btn-remove-chip:hover {
  color: #f87171;
  transform: scale(1.15);
}

/* QR Code */
.share-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
}

.clean-qr-box {
  background: #ffffff;
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clean-qr-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.clean-qr-box img,
.clean-qr-box svg {
  display: block;
  border-radius: 4px;
  width: 140px;
  height: 140px;
  max-width: 140px;
  max-height: 140px;
}

.qr-hint {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.copy-url-group {
  display: flex;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.copy-url-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.clean-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  background: var(--input-glass);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0 14px;
  outline: none;
  box-sizing: border-box;
}

.burn-alert {
  font-size: 0.8rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  line-height: 1.4;
}

.share-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 8px;
}

.share-actions-row #btn-view-vault-sender {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all var(--transition-smooth);
}

.share-actions-row #btn-view-vault-sender:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

/* --------------------------------------------------------------------------
   VAULT / RECEIVED VIEW
   -------------------------------------------------------------------------- */
.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vault-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-pure);
}

/* Direct Link Hero Card */
.vault-link-hero {
  background: linear-gradient(135deg, rgba(14, 25, 45, 0.9) 0%, rgba(16, 20, 36, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: smoothFadeIn 240ms ease-out forwards;
}

.vault-link-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vault-link-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.vault-link-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.vault-link-domain-badge {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.01em;
}

.vault-link-url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38bdf8;
  word-break: break-all;
  line-height: 1.3;
}

.vault-link-hero-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

.btn-open-main-link {
  text-decoration: none;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4) !important;
  height: 44px !important;
  font-size: 0.9rem !important;
}

.btn-open-main-link:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.6) !important;
  transform: translateY(-1px);
}

.vault-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.block-label-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.block-sub-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.block-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-link-action {
  text-decoration: none;
  font-size: 0.78rem !important;
  height: 30px !important;
  padding: 0 12px !important;
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
}

/* Vault Inline Clickable Links */
.vault-inline-link {
  color: #38bdf8;
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.4);
  padding-bottom: 1px;
  font-weight: 500;
  transition: all var(--transition-smooth);
}

.vault-inline-link:hover {
  color: #ffffff;
  border-bottom-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border-radius: 3px;
  padding: 1px 3px;
}

.ext-arrow {
  font-size: 0.75em;
  opacity: 0.8;
  margin-left: 2px;
}

.text-preview-box {
  background: var(--input-glass);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 19, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.15);
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: #080a10;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-hover-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(8, 12, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-hover-badge {
  opacity: 1;
}

.gallery-item-footer {
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 13, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 6px;
}

.gallery-item-name {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.gallery-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-gallery-action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 7px;
  height: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.btn-inspect-action {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-inspect-action:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.btn-save-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.btn-save-action:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.file-rows-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--input-glass);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.file-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.file-row-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-pure);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   CAMERA MODAL
   -------------------------------------------------------------------------- */
.clean-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.clean-modal.active,
.clean-modal.show {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1001;
  background: var(--card-glass-elevated);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  padding: 22px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

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

.modal-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-pure);
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-body video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}

.modal-footer {
  margin-top: 14px;
}

.update-modal-card {
  text-align: center;
  max-width: 380px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 22px;
}

.update-header-glow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.update-text-center {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-heading {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-pure);
}

.update-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.update-notes-container {
  width: 100%;
  background: rgba(14, 18, 28, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  text-align: left;
  margin: 2px 0 6px 0;
  max-height: 125px;
  overflow-y: auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.update-notes-label {
  font-weight: 600;
  color: #38bdf8;
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.update-notes-body {
  color: #e2e8f0;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-line;
  word-break: break-word;
}

.update-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   TOAST SHELF
   -------------------------------------------------------------------------- */
.toast-shelf {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: 90vw;
}

.clean-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 25, 38, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: toastIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.app-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding: 8px 0;
}

.footer-version-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-smooth);
}

.footer-version-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.footer-dot {
  opacity: 0.4;
}

/* --------------------------------------------------------------------------
   HEADER RIGHT ACTIONS & VAULT HISTORY BUTTON
   -------------------------------------------------------------------------- */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-vault-history-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-smooth);
  position: relative;
}

.btn-vault-history-toggle:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  transform: translateY(-1px);
}

.history-count-badge {
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* --------------------------------------------------------------------------
   DROPZONE TOOLS & FOLDER BUTTON
   -------------------------------------------------------------------------- */
.dropzone-tools {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-dropzone-tool {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-dropzone-tool:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   ADVANCED OPTIONS & CUSTOM 4-CHAR PIN & E2EE
   -------------------------------------------------------------------------- */
.advanced-section {
  margin: 10px 0 6px 0;
}

.btn-advanced-toggle {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  transition: color var(--transition-smooth);
}

.btn-advanced-toggle:hover {
  color: var(--text-secondary);
}

.advanced-chevron {
  font-size: 0.75rem;
  transition: transform var(--transition-smooth);
}

.btn-advanced-toggle.open .advanced-chevron {
  transform: rotate(180deg);
}

.advanced-drawer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 200ms ease-out;
}

.advanced-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.advanced-label {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-pure);
}

.advanced-sublabel {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.custom-pin-input {
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 12px;
  height: 38px;
}

.e2ee-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.e2ee-toggle-label-wrap {
  display: flex;
  flex-direction: column;
}

.e2ee-badge-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fbbf24;
}

/* --------------------------------------------------------------------------
   P2P & E2EE BADGES
   -------------------------------------------------------------------------- */
.share-badges-row,
.vault-tech-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.gold-pill {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}

.green-pill {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.cyan-pill {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}

.zero-db-badge-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: #22d3ee;
}

.p2p-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulseGlow 2s infinite;
}

/* --------------------------------------------------------------------------
   QR SCANNER ACTION & MODAL
   -------------------------------------------------------------------------- */
.receive-quick-actions {
  display: flex;
  justify-content: center;
  margin: 12px 0 6px 0;
}

.btn-qr-scan-action {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.12);
  transition: all var(--transition-smooth);
}

.btn-qr-scan-action:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.qr-modal-card {
  max-width: 360px;
}

.qr-scanner-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-viewfinder-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.qr-viewfinder-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-target-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  pointer-events: none;
}

.qr-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
  animation: laserScan 2s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 5%; opacity: 0.7; }
  100% { top: 95%; opacity: 1; }
}

.qr-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #38bdf8;
}

.qr-corner.top-left { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.qr-corner.top-right { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.qr-corner.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.qr-corner.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.qr-status-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* --------------------------------------------------------------------------
   VAULT HISTORY MODAL & CARDS
   -------------------------------------------------------------------------- */
.history-modal-card {
  max-width: 440px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.history-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-filter-bar {
  display: flex;
  gap: 6px;
  padding: 0 20px 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.history-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.history-filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 600;
}

.history-modal-body {
  overflow-y: auto;
  padding: 14px 20px;
  flex: 1;
}

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

.history-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-input);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-smooth);
}

.history-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.history-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.history-pin-badge {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
}

.history-direction-tag {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.history-status-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.history-status-pill.active { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.history-status-pill.picked-up { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.history-status-pill.burned { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.history-status-pill.expired { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

.history-card-content {
  font-size: 0.8rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.history-btn-revoke {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.history-btn-revoke:hover {
  background: var(--danger-glow);
}

.history-empty-state {
  text-align: center;
  padding: 30px 10px;
}

.empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}

.empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-pure);
}

.empty-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.history-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   UNIVERSAL FILE & IMAGE INSPECTOR MODAL
   ========================================================================== */
.inspector-modal {
  z-index: 2000 !important;
}

.inspector-modal .modal-card {
  max-width: 900px;
  width: 94vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: rgba(13, 16, 23, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.1);
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.inspector-modal-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inspector-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.inspector-file-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.inspector-meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.inspector-file-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.inspector-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sm-pill {
  font-size: 0.7rem !important;
  padding: 2px 8px !important;
  height: 20px !important;
}

.secondary-pill {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.inspector-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-inspector-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem !important;
  height: 32px !important;
  padding: 0 12px !important;
}

.inspector-modal-body {
  flex: 1;
  overflow: auto;
  position: relative;
  min-height: 260px;
  max-height: calc(88vh - 120px);
  padding: 0;
  background: #090c10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image Viewer & Lightbox */
.inspector-image-container {
  width: 100%;
  height: 100%;
  min-height: 350px;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
  background-image: 
    linear-gradient(45deg, #11161d 25%, transparent 25%), 
    linear-gradient(-45deg, #11161d 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #11161d 75%), 
    linear-gradient(-45deg, transparent 75%, #11161d 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.inspector-display-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease-out;
  cursor: grab;
}

.inspector-display-img:active {
  cursor: grabbing;
}

/* Code & Text Viewer */
.inspector-code-wrapper {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 65vh;
  display: flex;
  font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  background: #0d1117;
  color: #c9d1d9;
  overflow: auto;
  text-align: left;
}

.inspector-line-numbers {
  padding: 16px 10px 16px 16px;
  background: #090d13;
  color: #484f58;
  user-select: none;
  text-align: right;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 48px;
}

.inspector-code-content {
  flex: 1;
  padding: 16px;
  margin: 0;
  white-space: pre;
  overflow-x: auto;
  color: #e6edf3;
}

/* PDF Viewer */
.inspector-pdf-frame {
  width: 100%;
  height: 65vh;
  border: none;
  background: #2b2b2b;
}

/* Media Players */
.inspector-media-box {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 16px;
}

.inspector-audio-player {
  width: 100%;
  max-width: 480px;
}

.inspector-video-player {
  width: 100%;
  max-height: 60vh;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

/* Binary Info Card */
.inspector-binary-card {
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 420px;
}

.inspector-binary-icon {
  font-size: 3.5rem;
  margin-bottom: 4px;
}

.inspector-binary-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-pure);
}

.inspector-binary-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Inspector Footer Toolbar */
.inspector-footer-bar {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.inspector-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-toolbar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toolbar:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
}

.toolbar-text {
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
}

/* File Row Actions on Vault Screen */
.file-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-inspect-file {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem !important;
  height: 28px !important;
  padding: 0 10px !important;
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #38bdf8 !important;
}

.btn-inspect-file:hover {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #fff !important;
  border-color: #38bdf8 !important;
}

/* --- ABOUT APP & WHAT'S NEW MODAL SYSTEM --- */
.btn-info-toggle,
.btn-api-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-info-toggle:hover,
.btn-api-toggle:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  transform: scale(1.05);
}

.info-modal-card {
  max-width: 560px;
  width: 92%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.1);
  overflow: hidden;
}

.info-modal-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-brand-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 8px;
  border-radius: 20px;
}

.info-brand-logo {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.5px;
  color: #f8fafc;
}

.info-brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  margin-left: 2px;
  box-shadow: 0 0 8px #38bdf8;
}

.info-modal-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-pure);
}

/* Info Segmented Tabs */
.info-segmented-tabs {
  display: flex;
  padding: 8px 20px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-pill-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.info-pill-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.info-pill-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

.changelog-badge-new {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.info-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
}

.info-tab-content {
  display: none;
}

.info-tab-content.active {
  display: block;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* About App Hero & Features Grid */
.about-hero-card {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  margin-bottom: 16px;
}

.about-hero-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

.about-hero-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.feature-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-detail h5 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
}

.feature-detail p {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.feature-detail code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
  color: #38bdf8;
}

/* Changelog Header Action Row */
.changelog-header-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 14px;
  gap: 10px;
}

.changelog-current-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.changelog-current-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.changelog-current-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.btn-update-action-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 6px 12px;
}

/* Changelog Timeline */
.changelog-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.changelog-card {
  position: relative;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.changelog-card.latest-version {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.04);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.08);
}

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

.changelog-ver-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.changelog-ver-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.changelog-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #10b981;
  color: #042f2e;
}

.changelog-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-list li {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.changelog-list li::before {
  content: "•";
  color: #38bdf8;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   ENHANCED VIDEO & NATIVE MOBILE APK POLISH
   ========================================================================== */

/* Safe Area Insets for Notch / Android Navigation Bar */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

body {
  padding-top: var(--sat);
  padding-bottom: var(--sab);
  padding-left: var(--sal);
  padding-right: var(--sar);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overscroll-behavior-y: contain;
}

/* Touch Active Feedback for Native Feel */
.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active,
.quick-action-btn:active,
.tab-btn:active,
.staged-chip:active,
.gallery-item:active,
.share-file-chip:active,
.btn-gallery-action:active,
.btn-icon:active,
.info-pill-btn:active {
  transform: scale(0.96) !important;
  transition: transform 0.08s ease !important;
}

/* Video Gallery Items in Vault */
.video-gallery-item {
  position: relative;
  background: linear-gradient(145deg, #0b0f19 0%, #060910 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.video-gallery-item:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
}

.gallery-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000000;
  transition: transform 0.3s ease;
}

.video-gallery-item:hover .gallery-video-thumb {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
  pointer-events: none;
}

.video-gallery-item:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.video-play-btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.5), 0 0 12px rgba(56, 189, 248, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-gallery-item:hover .video-play-btn-circle {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.7), 0 0 18px rgba(56, 189, 248, 0.4);
}

.video-play-btn-circle svg {
  fill: #ffffff;
  margin-left: 2px;
}

.video-badge-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.3px;
}

/* Staged Video Badge */
.staged-chip.video-chip {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

/* Mobile Responsive Overrides & Viewport Containment */
@media (max-width: 600px) {
  html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body {
    overflow-x: visible !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100% !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .app-container {
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 48px 14px !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .app-card {
    padding: 16px 12px !important;
    border-radius: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Prevent iOS Safari and Android WebView auto-zoom on input focus */
  input,
  textarea,
  select,
  .clean-input,
  .clean-textarea {
    font-size: 16px !important;
  }

  /* Stack URL input and action buttons cleanly without horizontal overflow */
  .copy-url-group {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .copy-url-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .copy-url-actions button {
    width: 100% !important;
    height: 42px !important;
    justify-content: center !important;
    padding: 0 10px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }

  /* File Chips on Mobile */
  .staged-chips-list {
    gap: 6px;
    max-height: 140px;
  }

  .staged-chip {
    max-width: 100%;
    padding: 5px 10px 5px 8px;
  }

  .chip-name {
    max-width: 130px;
    font-size: 0.75rem;
  }

  /* Upload Progress Container on Mobile */
  .upload-progress-card {
    padding: 12px 14px;
  }

  .upload-status-title {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  /* Inspector Modal on Mobile */
  .inspector-modal-card {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 92vh !important;
    border-radius: 16px !important;
  }

  .inspector-modal-header {
    padding: 12px 14px !important;
  }

  .inspector-file-name {
    font-size: 0.92rem !important;
    max-width: 130px !important;
  }

  .inspector-media-box {
    padding: 10px 6px !important;
  }

  .inspector-video-player {
    max-height: 50vh !important;
    border-radius: 10px !important;
  }

  .inspector-footer-bar {
    padding: 8px 14px !important;
  }

  /* Gallery Grid on Mobile */
  .image-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .gallery-img-wrap {
    height: 110px !important;
  }

  /* Share Screen & Actions on Mobile */
  .pin-hero-digits {
    font-size: 2.2rem !important;
    letter-spacing: 0.12em !important;
    word-break: break-all !important;
  }

  .share-actions-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .share-actions-row button {
    width: 100% !important;
    height: 42px !important;
    font-size: 0.82rem !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   ULTRA-BOOST EXTENSIONS: SOUND, CLIPBOARD, NATIVE SHARE & PREVIEWS
   ========================================================================== */

/* Header Sound Mute Toggle */
.btn-sound-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 6px 9px;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sound-toggle:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  transform: translateY(-1px);
}

.btn-sound-toggle.muted {
  color: #64748b;
  border-color: rgba(255, 255, 255, 0.06);
}

/* Smart Clipboard PIN Paste Helper */
.pin-clipboard-helper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 6px;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-paste-pin-pill {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.1);
}

.btn-paste-pin-pill:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.btn-paste-pin-pill strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Native Web Share Button */
.btn-share-native {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Enhanced Staged Previews Gallery */
.staged-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.staged-preview-card {
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.staged-preview-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.staged-thumb-container {
  width: 100%;
  height: 68px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.staged-file-glyph {
  font-size: 1.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staged-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.staged-card-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staged-card-size {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.staged-card-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f87171;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 2;
}

.staged-card-remove:hover {
  background: #f87171;
  color: #ffffff;
  transform: scale(1.1);
}

/* Dragover Glow Effect */
.clean-dropzone.drag-active {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.25) !important;
  transform: scale(1.008);
}

/* ==========================================================================
   HEADER APK BUTTON & MOBILE APP BANNER
   ========================================================================== */
.btn-apk-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 9999px;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-apk-header:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: bannerFadeDown 0.3s ease-out;
}

@keyframes bannerFadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.app-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-banner-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-banner-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
}

.app-banner-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-banner-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-banner-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

/* ==========================================================================
   VOICE AUDIO RECORDER MODAL & WAVEFORM
   ========================================================================== */
.audio-modal .modal-card {
  max-width: 440px;
}

.audio-recorder-modal-card {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.15);
}

.audio-modal-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-modal-icon {
  font-size: 1.15rem;
}

.audio-recorder-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
}

.audio-visualizer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.waveform-bars-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 52px;
  width: 100%;
  padding: 0 16px;
}

.wave-bar {
  width: 5px;
  height: 8px;
  background: rgba(56, 189, 248, 0.35);
  border-radius: 9999px;
  transition: height 0.15s ease, background-color 0.2s ease;
}

.waveform-bars-wrapper.recording .wave-bar {
  background: #38bdf8;
  animation: waveMotion 0.8s ease-in-out infinite alternate;
}

.waveform-bars-wrapper.recording .wave-bar:nth-child(1) { animation-delay: 0.05s; }
.waveform-bars-wrapper.recording .wave-bar:nth-child(2) { animation-delay: 0.15s; }
.waveform-bars-wrapper.recording .wave-bar:nth-child(3) { animation-delay: 0.25s; }
.waveform-bars-wrapper.recording .wave-bar:nth-child(4) { animation-delay: 0.1s; }
.waveform-bars-wrapper.recording .wave-bar:nth-child(5) { animation-delay: 0.3s; }
.waveform-bars-wrapper.recording .wave-bar:nth-child(6) { animation-delay: 0.08s; }
.waveform-bars-wrapper.recording .wave-bar:nth-child(7) { animation-delay: 0.28s; }
.waveform-bars-wrapper.recording .wave-bar:nth-child(8) { animation-delay: 0.18s; }
.waveform-bars-wrapper.recording .wave-bar:nth-child(9) { animation-delay: 0.35s; }
.waveform-bars-wrapper.recording .wave-bar:nth-child(10) { animation-delay: 0.12s; }
.waveform-bars-wrapper.recording .wave-bar:nth-child(11) { animation-delay: 0.22s; }
.waveform-bars-wrapper.recording .wave-bar:nth-child(12) { animation-delay: 0.04s; }

@keyframes waveMotion {
  0% { height: 8px; }
  50% { height: 46px; }
  100% { height: 12px; }
}

.audio-recording-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: recPulse 1s infinite alternate;
}

@keyframes recPulse {
  from { transform: scale(0.8); opacity: 0.5; }
  to { transform: scale(1.25); opacity: 1; }
}

.rec-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 0.05em;
}

.audio-timer-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: #f8fafc;
  text-align: center;
  letter-spacing: 0.05em;
  margin-top: 10px;
}

.audio-status-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 4px;
}

.audio-preview-box {
  margin-top: 18px;
  width: 100%;
}

.audio-preview-box audio {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  outline: none;
}

.audio-recorder-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}



