@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════
   COLOR THEME — derived from the Synshare logo
   Cyan / Teal / Deep Navy palette
   ═══════════════════════════════════════════════════ */
:root {
  /* Brand colors from Synshare logo */
  --brand-dark: #0c2340;
  --brand-navy: #143d66;
  --brand-cyan: #00a5b8;
  --brand-teal: #0089a0;
  --brand-light: #3dd8e8;
  --brand-pale: #c4f0f5;
  --brand-glow: #00d4f0;

  /* UI tokens */
  --bg: #eef5f8;
  --bg-gradient-top: linear-gradient(180deg, #daeef4 0%, #eef5f8 200px);
  --card-bg: #ffffff;
  --card-shadow: 0 4px 24px rgba(0, 165, 184, 0.08), 0 1px 6px rgba(0,0,0,0.04);
  --card-radius: 18px;

  --text-primary: #0c2340;
  --text-secondary: #4a6d82;
  --text-muted: #7a9bae;

  --border: #d4e4ea;
  --border-light: #eaf1f4;

  --accent: var(--brand-cyan);
  --accent-hover: var(--brand-teal);
  --accent-bg: rgba(0, 165, 184, 0.08);
  --accent-bg-hover: rgba(0, 165, 184, 0.14);

  --success: #1a9e8f;
  --danger: #ef5350;
}

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

::selection {
  background: rgba(0, 165, 184, 0.2);
  color: var(--brand-dark);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated gradient accent bar at very top */
body::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-cyan), var(--brand-light), var(--brand-glow), var(--brand-cyan), var(--brand-dark));
  background-size: 200% 100%;
  animation: barShimmer 4s ease infinite;
}

@keyframes barShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Subtle background pattern */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(0, 165, 184, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(0, 229, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 165, 184, 0.08);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s;
}

.logo-link:hover {
  opacity: 0.85;
}

.logo-img {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 165, 184, 0.15));
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-accent {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.03em;
}

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

.network-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--accent-bg);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 165, 184, 0.12);
  font-weight: 500;
  transition: all 0.2s;
}

.network-pill:hover {
  background: var(--accent-bg-hover);
}

.network-pill i {
  color: var(--brand-cyan);
  font-size: 0.75rem;
}

.net-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  background: rgba(0, 165, 184, 0.12);
  color: var(--brand-teal);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.room-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 6px 4px 14px;
  transition: all 0.3s;
}

.room-pill:focus-within {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 165, 184, 0.1);
  background: #fff;
}

.room-pill.has-room {
  border-color: rgba(0, 165, 184, 0.3);
  background: rgba(0, 165, 184, 0.04);
}

.room-pill > i {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.room-pill.has-room > i {
  color: var(--brand-cyan);
}

.room-pill input {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--text-primary);
  width: 80px;
  font-weight: 500;
}

.room-pill input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.room-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.room-btn i {
  font-size: 0.65rem;
}

.room-btn:active {
  transform: scale(0.93);
}

/* Generate button */
.room-generate-btn {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
  color: #fff;
  box-shadow: 0 1px 6px rgba(0, 165, 184, 0.25);
}

.room-generate-btn:hover {
  box-shadow: 0 2px 10px rgba(0, 165, 184, 0.35);
}

/* Share button */
.room-share-btn {
  background: rgba(0, 165, 184, 0.1);
  color: var(--brand-teal);
  border: 1px solid rgba(0, 165, 184, 0.2);
}

.room-share-btn:hover {
  background: rgba(0, 165, 184, 0.18);
}

/* Remove button */
.room-remove-btn {
  background: rgba(239, 83, 80, 0.08);
  color: #ef5350;
  padding: 4px 7px;
  border: 1px solid rgba(239, 83, 80, 0.15);
}

.room-remove-btn:hover {
  background: rgba(239, 83, 80, 0.18);
}

/* ═══════════════════════════════════════════════════
   ROOM SHARE PANEL
   ═══════════════════════════════════════════════════ */
.room-share-panel {
  background: linear-gradient(135deg, rgba(0, 165, 184, 0.04), rgba(0, 137, 160, 0.06));
  border-bottom: 1px solid rgba(0, 165, 184, 0.1);
  padding: 16px 40px;
  position: relative;
  z-index: 9;
  animation: slideDown 0.3s ease;
}

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

.room-share-content {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.room-share-info {
  flex: 1;
  min-width: 0;
}

.room-share-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.room-share-title i {
  color: var(--brand-cyan);
  font-size: 1rem;
}

.room-share-title strong {
  color: var(--brand-cyan);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.room-share-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.room-share-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.room-share-link {
  flex: 1;
  padding: 8px 14px;
  border: 1.5px solid rgba(0, 165, 184, 0.2);
  border-radius: 10px;
  background: #fff;
  font-family: 'Inter', monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
  outline: none;
  cursor: text;
  min-width: 0;
}

.room-share-link:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 165, 184, 0.08);
}

.room-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 165, 184, 0.25);
}

.room-copy-btn:hover {
  box-shadow: 0 4px 14px rgba(0, 165, 184, 0.35);
  transform: translateY(-1px);
}

.room-copy-btn:active {
  transform: scale(0.96);
}

.room-share-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.room-share-qr canvas {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
}

.qr-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.room-share-close {
  position: absolute;
  top: 10px;
  right: 16px;
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.room-share-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════
   AUTH PILL BUTTON
   ═══════════════════════════════════════════════════ */
.auth-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 165, 184, 0.3);
  letter-spacing: 0.01em;
}

.auth-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 165, 184, 0.4);
  background: linear-gradient(135deg, var(--brand-light), var(--brand-cyan));
}

.auth-pill:active {
  transform: scale(0.96);
}

.auth-pill i {
  font-size: 0.78rem;
}

.auth-pill.logged-in {
  background: var(--accent-bg);
  color: var(--brand-teal);
  border: 1px solid rgba(0, 165, 184, 0.2);
  box-shadow: none;
  font-weight: 500;
}

.auth-pill.logged-in:hover {
  background: var(--accent-bg-hover);
  box-shadow: 0 2px 10px rgba(0, 165, 184, 0.15);
}

.logout-pill {
  background: rgba(239, 83, 80, 0.08) !important;
  color: #ef5350 !important;
  box-shadow: none !important;
  padding: 8px 12px;
  border: 1px solid rgba(239, 83, 80, 0.15) !important;
}

.logout-pill:hover {
  background: rgba(239, 83, 80, 0.18) !important;
  box-shadow: 0 2px 10px rgba(239, 83, 80, 0.2) !important;
}

/* ═══════════════════════════════════════════════════
   AUTH MODAL — OVERLAY & CARD
   ═══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-card {
  background: var(--card-bg);
  border-radius: 22px;
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 165, 184, 0.06);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50%;
  font-size: 1.15rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  transform: rotate(90deg);
}

/* ─── Modal Tabs ─────────────────────────────────── */
.modal-tabs {
  display: flex;
  gap: 4px;
  background: #f5f7f8;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.modal-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-tab:hover {
  color: var(--text-secondary);
}

.modal-tab.active {
  background: var(--card-bg);
  color: var(--brand-teal);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ─── Auth Forms ─────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: #fafcfd;
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 165, 184, 0.1);
  background: #fff;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-error {
  font-size: 0.82rem;
  color: var(--danger);
  min-height: 0;
  transition: all 0.2s;
}

.form-error:not(:empty) {
  padding: 8px 12px;
  background: rgba(239, 83, 80, 0.07);
  border-radius: 8px;
  border: 1px solid rgba(239, 83, 80, 0.12);
}

.btn-auth {
  padding: 13px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0, 165, 184, 0.3);
  letter-spacing: 0.01em;
}

.btn-auth:hover {
  box-shadow: 0 6px 22px rgba(0, 165, 184, 0.4);
  transform: translateY(-1px);
}

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

.btn-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.upgrade-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(0, 165, 184, 0.06), rgba(0, 137, 160, 0.04));
  border: 1px solid rgba(0, 165, 184, 0.12);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--brand-teal);
  font-weight: 500;
}

.upgrade-badge i {
  color: var(--brand-cyan);
}

/* ═══════════════════════════════════════════════════
   MAIN — centered card layout
   ═══════════════════════════════════════════════════ */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 24px 24px;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.app-card {
  width: 100%;
  max-width: 880px;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(0, 165, 184, 0.06);
}

/* ═══════════════════════════════════════════════════
   TAB SIDEBAR — vertical icon tabs
   ═══════════════════════════════════════════════════ */
.tab-sidebar {
  width: 76px;
  min-width: 76px;
  background: linear-gradient(180deg, #f8fbfc 0%, #f2f7f9 100%);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  gap: 4px;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  border-left: 3px solid transparent;
  position: relative;
}

.tab-btn:hover {
  color: var(--brand-teal);
  background: rgba(0, 165, 184, 0.04);
}

.tab-btn i {
  font-size: 1.15rem;
  transition: transform 0.2s;
}

.tab-btn:hover i {
  transform: scale(1.1);
}

.tab-btn.active {
  color: var(--brand-cyan);
  border-left-color: var(--brand-cyan);
  background: rgba(0, 165, 184, 0.06);
  font-weight: 600;
}

.tab-btn.active i {
  filter: drop-shadow(0 0 4px rgba(0, 165, 184, 0.3));
}

/* ═══════════════════════════════════════════════════
   TAB CONTENT AREA
   ═══════════════════════════════════════════════════ */
.tab-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 28px 32px;
  flex: 1;
  min-height: 0;
  animation: fadeIn 0.3s ease;
}

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

.tab-pane.active {
  display: flex;
}

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

.pane-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.status-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(38, 166, 154, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(38, 166, 154, 0.12);
  color: var(--success);
}

.file-count-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   TEXT TAB
   ═══════════════════════════════════════════════════ */
textarea#text-input {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #fafcfd;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.7;
  resize: none;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

textarea#text-input:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 165, 184, 0.08);
  background: #fff;
}

textarea#text-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.pane-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-clear {
  padding: 10px 22px;
  border: 1px solid rgba(239, 83, 80, 0.2);
  border-radius: 10px;
  background: rgba(239, 83, 80, 0.05);
  color: #ef5350;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-clear:hover {
  background: rgba(239, 83, 80, 0.12);
  border-color: rgba(239, 83, 80, 0.35);
  box-shadow: 0 2px 10px rgba(239, 83, 80, 0.1);
}

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

.btn-save {
  padding: 10px 28px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 10px rgba(0, 165, 184, 0.25);
  letter-spacing: 0.01em;
}

.btn-save:hover {
  box-shadow: 0 4px 16px rgba(0, 165, 184, 0.35);
  transform: translateY(-1px);
}

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

/* ═══════════════════════════════════════════════════
   FILES TAB — DROPZONE
   ═══════════════════════════════════════════════════ */
.dropzone {
  border: 2px dashed rgba(0, 165, 184, 0.25);
  border-radius: 14px;
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(0, 165, 184, 0.02) 0%, rgba(0, 165, 184, 0.05) 100%);
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.dropzone:hover {
  border-color: rgba(0, 165, 184, 0.4);
  background: linear-gradient(180deg, rgba(0, 165, 184, 0.04) 0%, rgba(0, 165, 184, 0.08) 100%);
}

.dropzone:hover .dropzone-icon {
  transform: translateY(-3px);
  color: var(--brand-cyan);
}

.dropzone.dragover {
  border-color: var(--brand-cyan);
  background: rgba(0, 165, 184, 0.08);
  border-style: solid;
}

.dropzone-icon {
  font-size: 2.2rem;
  color: var(--brand-light);
  transition: all 0.3s ease;
  background: rgba(0, 165, 184, 0.08);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.dropzone p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-align: center;
  margin: 0;
}

.browse-link {
  color: var(--brand-cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 165, 184, 0.3);
  padding-bottom: 1px;
  transition: all 0.2s;
}

.browse-link:hover {
  border-bottom-color: var(--brand-cyan);
}

.dropzone-hint {
  color: var(--text-muted) !important;
  font-size: 0.76rem !important;
}

.upgrade-link {
  color: var(--brand-cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 165, 184, 0.4);
  transition: all 0.2s;
}

.upgrade-link:hover {
  color: var(--brand-teal);
  border-bottom-style: solid;
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   LOADER BAR
   ═══════════════════════════════════════════════════ */
.loader-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-glow), var(--brand-cyan));
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: 4px;
  display: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════
   FILE LIST
   ═══════════════════════════════════════════════════ */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.file-list::-webkit-scrollbar {
  width: 5px;
}
.file-list::-webkit-scrollbar-track {
  background: transparent;
}
.file-list::-webkit-scrollbar-thumb {
  background: rgba(0, 165, 184, 0.2);
  border-radius: 10px;
}
.file-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 165, 184, 0.35);
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: #fafcfd;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  transition: all 0.2s;
}

.file-item:hover {
  background: var(--accent-bg);
  border-color: rgba(0, 165, 184, 0.18);
  transform: translateX(2px);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  min-width: 0;
}

.file-info i {
  color: var(--brand-light);
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(0, 165, 184, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.file-meta {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.file-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.85rem;
  text-decoration: none;
}

.icon-btn:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text-primary);
}

.icon-btn.download:hover {
  color: var(--success);
  background: rgba(38, 166, 154, 0.08);
}

.icon-btn.delete:hover {
  color: var(--danger);
  background: rgba(239, 83, 80, 0.08);
}

/* ═══════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--brand-dark);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(13, 33, 55, 0.3);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.3, 0.265, 1.3);
  z-index: 2000;
  white-space: nowrap;
  border: 1px solid rgba(0, 165, 184, 0.15);
  letter-spacing: 0.01em;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 14px 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

.site-footer a {
  color: var(--brand-cyan);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
  }

  #header {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .logo-img {
    height: 36px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tagline {
    font-size: 0.6rem;
  }

  .nav-right {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }

  .network-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .room-pill {
    padding: 4px 10px;
  }

  .room-pill input {
    width: 60px;
    font-size: 0.72rem;
  }

  .auth-pill {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  main {
    padding: 12px 10px;
    min-height: 0;
  }

  .app-card {
    flex-direction: column;
    min-height: 0;
    border-radius: 14px;
  }

  .tab-sidebar {
    width: 100%;
    min-width: unset;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    gap: 0;
    background: linear-gradient(90deg, #f8fbfc 0%, #f2f7f9 100%);
  }

  .tab-btn {
    flex: 1;
    flex-direction: row;
    gap: 8px;
    padding: 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
    font-size: 0.72rem;
  }

  .tab-btn.active {
    border-left-color: transparent;
    border-bottom-color: var(--brand-cyan);
  }

  .tab-btn i {
    font-size: 1rem;
  }

  .tab-pane {
    padding: 20px 16px;
    overflow: visible;
  }

  .pane-header h1 {
    font-size: 1.25rem;
  }

  .dropzone {
    padding: 28px 16px;
  }

  .dropzone-icon {
    font-size: 1.8rem;
    width: 46px;
    height: 46px;
  }

  textarea#text-input {
    min-height: 200px;
  }

  .modal-card {
    padding: 28px 24px 24px;
    border-radius: 18px;
    max-width: 360px;
  }

  .pane-footer {
    flex-wrap: wrap;
  }

  .btn-save, .btn-clear {
    flex: 1;
    justify-content: center;
  }

  .room-share-panel {
    padding: 14px 16px;
  }

  .room-share-content {
    flex-direction: column;
    gap: 14px;
  }

  .room-share-qr {
    flex-direction: row;
    gap: 10px;
  }

  .room-share-qr canvas {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .network-pill {
    display: none;
  }

  .room-pill {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }
}
