/* ==========================================================================
   Fit Together — member app styles (reuses the marketing site's design tokens)
   ========================================================================== */

:root {
  --navy-950: #05070d;
  --navy-900: #0b0f1a;
  --navy-800: #121a2c;
  --navy-700: #1c2740;
  --navy-600: #2a3652;

  --accent: #db1f52;
  --accent-2: #ff3d68;
  --accent-dark: #a81440;
  --accent-tint: rgba(219, 31, 82, 0.12);

  --green: #1fae6e;
  --green-tint: rgba(31, 174, 110, 0.14);
  --amber: #e2a63a;
  --amber-tint: rgba(226, 166, 58, 0.14);
  --red: #e2483a;
  --red-tint: rgba(226, 72, 58, 0.14);

  --muted-invert: #a7afc0;
  --faint-invert: #6b7690;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-hard: 0 30px 60px -25px rgba(11, 15, 26, 0.55);
  --container: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: radial-gradient(circle at 15% 0%, #170a13 0%, var(--navy-950) 55%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: #fff;
}

p { margin: 0 0 14px; color: var(--muted-invert); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.config-warning {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
}

.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 17px;
}

.app-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted-invert);
}

.app-nav-links a:hover { color: #fff; }

.app-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.app-shell.narrow { max-width: 440px; }

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.card h2 { font-size: 19px; margin-bottom: 4px; }
.card .card-sub { font-size: 13.5px; margin-bottom: 20px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-invert);
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  color: #fff;
  font-family: inherit;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--faint-invert); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-2);
}

.field textarea { resize: vertical; min-height: 80px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-danger { background: rgba(226, 72, 58, 0.16); color: #ff9a8f; border: 1px solid rgba(226, 72, 58, 0.4); }

.tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted-invert);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.tab-btn.active { background: var(--accent); color: #fff; }

.form-msg {
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: none;
}

.form-msg.show { display: block; }
.form-msg.error { background: var(--red-tint); color: #ff9a8f; }
.form-msg.success { background: var(--green-tint); color: #6fe0ac; }

.avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--navy-800));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

.dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--accent-2);
  background: rgba(255, 61, 104, 0.06);
}

.dropzone input[type="file"] { display: none; }

.dropzone-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--accent-2);
}

.dropzone strong { display: block; color: #fff; font-size: 14.5px; margin-bottom: 4px; }
.dropzone span { font-size: 12.5px; color: var(--faint-invert); }

.upload-progress {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 14px;
  display: none;
}

.upload-progress.show { display: block; }

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-2);
  transition: width 0.2s ease;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.media-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-tile img, .media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-tile .kind-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(5, 7, 13, 0.6);
  color: #fff;
  text-transform: uppercase;
}

.status-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.pending { background: var(--amber-tint); color: var(--amber); }
.status-badge.approved { background: var(--green-tint); color: var(--green); }
.status-badge.rejected { background: var(--red-tint); color: #ff8579; }

.media-tile-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(5, 7, 13, 0.65);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.empty-state {
  text-align: center;
  padding: 30px 16px;
  color: var(--faint-invert);
  font-size: 13.5px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.feed-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feed-card-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--navy-800);
}

.feed-card-thumb img, .feed-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card-thumb .kind-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(5, 7, 13, 0.6);
  color: #fff;
  text-transform: uppercase;
}

.feed-card-meta { padding: 14px 16px 16px; }

.feed-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.feed-card-sub {
  font-size: 12px;
  color: var(--faint-invert);
  margin-bottom: 8px;
}

.feed-card-caption {
  font-size: 13px;
  color: var(--muted-invert);
  margin: 0;
}

.review-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.review-row:last-child { border-bottom: none; }

.review-thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-800);
}

.review-thumb img, .review-thumb video { width: 100%; height: 100%; object-fit: cover; }

.review-meta { flex: 1; min-width: 0; }
.review-meta strong { display: block; font-size: 14px; color: #fff; margin-bottom: 2px; }
.review-meta span { font-size: 12.5px; color: var(--faint-invert); }

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

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

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

@media (max-width: 560px) {
  .app-shell { padding: 32px 16px 64px; }
  .card { padding: 20px; }
}
