/* ==========================================================================
   F-LAB CLUB — Light-First Design System
   Direction: Feeld restraint + Hinge clarity + contemporary editorial magazine
   Style: Light, spacious, human, intimate, premium, photo-first, simple
   Language: English Only
   ========================================================================== */

:root {
  /* 1. Core Light Palette */
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #efeee9;
  --surface-active: #e5e4de;
  --text: #181817;
  --text-secondary: #74736f;
  --text-muted: #9e9d98;
  --border: #deddd7;
  --border-subtle: #eae9e3;
  --border-hover: #c4c3bc;
  --accent: #3730a3;
  --accent-hover: #312e81;
  --accent-soft: rgba(55, 48, 163, 0.08);
  --danger: #c93b45;
  --viewer-bg: #090909;

  /* Aliases for backwards compatibility */
  --club-bg: var(--bg);
  --club-surface: var(--surface);
  --club-surface-subtle: var(--surface-soft);
  --club-surface-active: var(--surface-active);
  --club-border: var(--border);
  --club-border-hover: var(--border-hover);
  --club-border-active: var(--text);

  --club-text-primary: var(--text);
  --club-text-secondary: var(--text-secondary);
  --club-text-muted: var(--text-muted);
  --club-accent: var(--accent);
  --club-accent-hover: var(--accent-hover);
  --club-accent-soft: var(--accent-soft);

  /* Typography */
  --club-font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --club-font-mono: "Space Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Restrained Radii: 6px / 10px / 16px */
  --club-radius-sm: 6px;
  --club-radius-md: 10px;
  --club-radius-lg: 16px;
  --club-radius-full: 9999px;

  /* Dimensions */
  --club-nav-rail-width: 76px;
  --club-feed-max-width: 640px;
  --club-bottom-nav-height: 56px;
  --club-top-bar-height: 52px;

  /* Z-indices */
  --club-z-nav: 90;
  --club-z-modal: 100;
  --club-z-viewer: 110;
  --club-z-toast: 120;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--club-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

button:active {
  transform: scale(0.99);
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, textarea, select {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-md);
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--text);
}

/* --------------------------------------------------------------------------
   Buttons & Core Elements
   -------------------------------------------------------------------------- */
.club-btn-primary {
  background: var(--text);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: var(--club-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--text);
  transition: all 0.15s ease;
}

.club-btn-primary:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.club-btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: var(--club-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.15s ease;
}

.club-btn-secondary:hover {
  background: var(--surface-soft);
  border-color: var(--border-hover);
}

.club-btn-sm {
  padding: 7px 16px;
  font-size: 12.5px;
}

.club-btn-xs {
  padding: 5px 12px;
  font-size: 11.5px;
}

.club-btn-block {
  width: 100%;
  padding: 12px;
}

.club-btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}

.club-btn-icon:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.club-follow-btn {
  padding: 7px 18px;
  border-radius: var(--club-radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.15s ease;
}

.club-follow-btn:hover {
  background: var(--surface-soft);
  border-color: var(--border-hover);
}

.club-follow-btn.following {
  background: var(--surface-soft);
  border-color: transparent;
  color: var(--text-secondary);
}

.club-tag-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--club-radius-full);
  background: var(--surface-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   App Shell & Slim Navigation Rail (Desktop)
   -------------------------------------------------------------------------- */
.club-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

@media (min-width: 860px) {
  .club-app {
    flex-direction: row;
  }
}

.club-rail {
  display: none;
}

@media (min-width: 860px) {
  .club-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: var(--club-nav-rail-width);
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 24px 0 20px 0;
    z-index: var(--club-z-nav);
  }

  .club-rail-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-bottom: 24px;
  }

  .club-rail-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--text);
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.04em;
    display: grid;
    place-items: center;
  }

  .club-rail-logo-sub {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
  }

  .club-rail-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    flex: 1;
  }

  .club-rail-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: var(--club-radius-md);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 500;
    width: 58px;
    text-align: center;
    transition: all 0.15s ease;
  }

  .club-rail-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.7;
  }

  .club-rail-link:hover {
    color: var(--text);
    background: var(--surface-soft);
  }

  .club-rail-link.active {
    color: var(--text);
    font-weight: 700;
  }

  .club-rail-link.active svg {
    stroke: var(--text);
    stroke-width: 2.2;
  }

  .club-rail-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
  }

  .club-rail-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   Mobile Top Bar & Bottom Navigation
   -------------------------------------------------------------------------- */
.club-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--club-top-bar-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 18px;
  padding-right: 18px;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 860px) {
  .club-mobile-top {
    display: none;
  }
}

.club-mobile-brand {
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.club-mobile-avatar-link {
  display: flex;
  align-items: center;
}

.club-mobile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* Mobile Bottom Navigation (Flat, Light, No Glass, No Floating Circle) */
.club-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--club-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: var(--club-z-nav);
}

@media (min-width: 860px) {
  .club-bottom-nav {
    display: none;
  }
}

.club-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  padding: 6px 10px;
  flex: 1;
}

.club-tab-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
}

.club-tab-item:hover {
  color: var(--text);
}

.club-tab-item.active {
  color: var(--text);
  font-weight: 700;
}

.club-tab-item.active svg {
  stroke-width: 2.2;
}

/* Main Content Area */
.club-main {
  flex: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--club-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 24px);
}

@media (min-width: 860px) {
  .club-main {
    margin-left: var(--club-nav-rail-width);
    padding-bottom: 60px;
  }
}

/* --------------------------------------------------------------------------
   Logged-Out Landing Page (2 Columns, Single Viewport)
   -------------------------------------------------------------------------- */
.club-landing-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 60px 24px;
}

.club-landing-hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 120px);
  justify-content: center;
}

@media (min-width: 860px) {
  .club-landing-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 40px 0;
  }
}

.club-landing-left {
  flex: 1;
  max-width: 480px;
  text-align: left;
}

.club-landing-brand-mark {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

.club-brand-sep {
  color: var(--text-muted);
}

.club-brand-c {
  color: var(--text-secondary);
}

.club-landing-headline {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 18px;
}

.club-landing-subtext {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 24px;
}

.club-landing-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 32px;
}

.meta-dot {
  color: var(--border-hover);
}

.club-landing-cta-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.club-landing-right {
  flex: 1;
  max-width: 460px;
  width: 100%;
}

.club-editorial-single-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--club-radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.club-editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.club-editorial-single-frame:hover .club-editorial-img {
  transform: scale(1.02);
}

.club-editorial-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-soft);
}

/* Below Fold Reassurance */
.club-landing-secondary {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.club-secondary-card {
  max-width: 480px;
  text-align: center;
}

.club-secondary-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.club-secondary-line {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Home Feed (Single Column, 620-660px, Borderless Posts)
   -------------------------------------------------------------------------- */
.club-feed-wrapper {
  max-width: var(--club-feed-max-width);
  margin: 0 auto;
  padding: 24px 16px 60px 16px;
}

.club-feed-header {
  margin-bottom: 32px;
  padding-bottom: 12px;
}

.club-feed-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.club-feed-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

.club-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Single Post: No boxed card look, separated by spacing and subtle divider */
.club-post {
  display: flex;
  flex-direction: column;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.club-post:last-child {
  border-bottom: none;
}

.club-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.club-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.club-post-avatar-link {
  display: flex;
}

.club-post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
}

.club-post-avatar-editorial {
  background: var(--text);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: none;
}

.club-post-meta {
  display: flex;
  flex-direction: column;
}

.club-post-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.club-post-context {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 1px;
}

.club-post-more-btn {
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
}

.club-post-more-btn:hover {
  color: var(--text);
}

/* Post Media */
.club-post-media {
  position: relative;
  width: 100%;
  border-radius: var(--club-radius-md);
  overflow: hidden;
  background: #000000;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.club-post-media img,
.club-post-media video {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  margin: 0 auto;
}

.club-media-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--club-radius-full);
}

/* Actions Row (No Engagement Metrics or Counters) */
.club-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px 8px 2px;
}

.club-actions-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.club-action-icon {
  color: var(--text-secondary);
  padding: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.club-action-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1;
}

.club-post-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

.club-metric-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.club-metric-dot {
  opacity: 0.4;
}

.club-action-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: all 0.15s ease;
}

.club-action-icon:hover {
  color: var(--text);
}

.club-action-icon.liked {
  color: var(--danger);
}

.club-action-icon.liked svg {
  stroke: var(--danger);
  fill: var(--danger);
}

.club-action-icon.saved {
  color: var(--accent);
}

.club-action-icon.saved svg {
  stroke: var(--accent);
  fill: var(--accent);
}

/* Tumblr x Hinge x Feeld x Happn Editorial Thought Post */
.club-post-thought {
  background: linear-gradient(145deg, #fbfaf7 0%, #f0eee8 100%);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-md);
  padding: 32px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  box-shadow: var(--club-shadow-sm);
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.club-post-thought:hover {
  border-color: #c5c3bc;
}

.club-thought-kicker {
  margin-bottom: 20px;
}

.club-thought-prompt-badge {
  display: inline-block;
  padding: 5px 14px;
  background: #eae8df;
  color: var(--accent);
  border-radius: var(--club-radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.club-thought-body {
  font-family: Georgia, Cambria, 'Times New Roman', serif;
  font-size: 21px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 24px 0;
  padding: 0;
  font-style: normal;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.club-thought-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.club-thought-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.club-thought-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.club-thought-tag {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}

/* Caption (Clamped 2-3 lines + more) */
.club-post-caption-wrap {
  padding: 2px 2px 4px 2px;
}

.club-post-caption {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.club-post-caption.expanded {
  display: block;
  overflow: visible;
}

.club-caption-author {
  font-weight: 700;
  margin-right: 6px;
  color: var(--text);
}

.club-caption-more {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  cursor: pointer;
}

.club-caption-more:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Explore View (3 Columns Desktop / 2 Columns Mobile)
   -------------------------------------------------------------------------- */
.club-explore-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 60px 16px;
}

.club-explore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.club-explore-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.club-explore-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.club-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.club-filter-btn {
  padding: 6px 14px;
  border-radius: var(--club-radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.club-filter-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.club-filter-btn.active {
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
}

.club-sort-select {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-md);
  cursor: pointer;
  width: auto;
}

.club-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 760px) {
  .club-explore-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.club-explore-tile {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-soft);
  border-radius: var(--club-radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.club-explore-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.club-explore-tile:hover img {
  transform: scale(1.02);
}

.club-tile-video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--club-radius-sm);
  z-index: 2;
}

.club-tile-thought-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(24, 24, 23, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--club-radius-full);
  z-index: 2;
}

.club-tile-stats-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.club-explore-tile:hover .club-tile-stats-overlay {
  opacity: 1;
}

@media (max-width: 760px) {
  .club-tile-stats-overlay {
    opacity: 0.9;
    padding: 6px 8px;
    gap: 8px;
  }
}

.club-tile-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Members Directory (Large Portrait Cards)
   -------------------------------------------------------------------------- */
.club-members-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 60px 16px;
}

.club-members-header {
  margin-bottom: 24px;
}

.club-members-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.club-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.club-member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.club-member-card:hover {
  border-color: var(--border-hover);
}

.club-member-portrait-link {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--surface-soft);
  overflow: hidden;
}

.club-member-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.club-member-card:hover .club-member-portrait {
  transform: scale(1.02);
}

.club-member-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.club-member-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.club-member-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  margin-bottom: 8px;
}

.club-member-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.club-member-action {
  margin-top: auto;
}

.club-member-action .club-follow-btn {
  width: 100%;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Profile Page (/c/:slug)
   -------------------------------------------------------------------------- */
.club-profile-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.club-profile-cover-frame {
  width: 100%;
  height: clamp(180px, 32vw, 290px);
  background: var(--surface-soft);
  position: relative;
  overflow: hidden;
}

@media (min-width: 860px) {
  .club-profile-cover-frame {
    border-radius: var(--club-radius-lg);
    margin-top: 16px;
  }
}

.club-profile-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-profile-cover-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-soft);
}

.club-profile-header {
  padding: 0 20px 20px 20px;
  position: relative;
}

.club-profile-identity-row {
  margin-top: -42px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.club-profile-avatar-wrap {
  position: relative;
}

.club-profile-avatar-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  object-fit: cover;
  background: var(--surface);
}

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

.club-profile-info {
  display: flex;
  flex-direction: column;
}

.club-profile-name {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.club-profile-context {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  margin-bottom: 12px;
}

.club-profile-bio {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  max-width: 600px;
}

/* Simple Underline Navigation Tabs */
.club-tabs-nav {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  margin-bottom: 20px;
}

.club-tab-link {
  padding: 12px 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.15s ease;
}

.club-tab-link:hover {
  color: var(--text);
}

.club-tab-link.active {
  color: var(--text);
  border-bottom: 2px solid var(--text);
  margin-bottom: -1px;
}

.club-profile-content {
  padding: 0 20px;
}

/* Private Vault (Restrained Locked Tiles) */
.club-private-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.club-private-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.club-private-tile-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.club-private-tile-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.club-private-tile-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.club-private-tile-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.club-private-tile-action {
  margin-top: auto;
}

.club-private-req-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.club-private-req-link:hover {
  text-decoration: underline;
}

/* About Card */
.club-about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-md);
  padding: 24px;
  max-width: 600px;
}

.club-about-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.club-about-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.club-about-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.club-about-meta-row {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
}

.club-about-meta-label {
  color: var(--text-muted);
}

.club-about-meta-val {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Share Flow (/club/share)
   -------------------------------------------------------------------------- */
.club-share-wrap {
  max-width: 540px;
  margin: 0 auto;
  padding: 32px 18px 60px 18px;
}

.club-share-header {
  margin-bottom: 20px;
}

.club-share-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Mode Switcher Tabs */
.club-share-tabs {
  display: flex;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-md);
  padding: 3px;
  margin-bottom: 22px;
}

.club-share-tab-btn {
  flex: 1;
  padding: 9px 16px;
  border-radius: calc(var(--club-radius-md) - 2px);
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.club-share-tab-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--club-shadow-sm);
}

.club-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.club-prompt-chip {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.club-prompt-chip:hover,
.club-prompt-chip.active {
  border-color: var(--accent);
  background: #f0eff9;
  color: var(--accent);
}

.club-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.club-tag-chip {
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.club-tag-chip:hover,
.club-tag-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.club-thought-live-preview {
  margin-top: 10px;
  background: linear-gradient(145deg, #fbfaf7 0%, #f0eee8 100%);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-md);
  padding: 24px 20px;
  box-shadow: var(--club-shadow-sm);
}

.club-share-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 1. Dropzone */
.club-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--club-radius-lg);
  padding: 40px 20px;
  text-align: center;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.club-dropzone:hover,
.club-dropzone.dragover {
  border-color: var(--text);
  background: var(--surface-soft);
}

.club-dropzone-icon {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.club-dropzone-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.club-dropzone-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* 2. Preview */
.club-preview-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-md);
  padding: 14px;
}

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

.club-preview-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.club-link-btn {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
}

.club-preview-media {
  max-height: 380px;
  border-radius: var(--club-radius-sm);
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-preview-item {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

/* 3. Form Sections */
.club-form-section {
  display: flex;
  flex-direction: column;
}

.club-field-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 8px;
}

.club-textarea {
  min-height: 84px;
  resize: vertical;
}

/* 4. Privacy Radio Options */
.club-radio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.club-radio-option {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.club-radio-option:hover {
  border-color: var(--border-hover);
}

.club-radio-option.selected {
  border-color: var(--text);
  background: var(--surface-soft);
}

.club-radio-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.club-radio-top input[type="radio"] {
  width: auto;
  accent-color: var(--text);
  cursor: pointer;
}

.club-radio-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.club-radio-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 3px;
  padding-left: 24px;
}

/* Consent Checkbox */
.club-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.club-form-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--text);
}

.club-form-checkbox label {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  cursor: pointer;
}

.club-share-actions {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   You Page (Simple List, No Dashboard Cards)
   -------------------------------------------------------------------------- */
.club-you-wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 32px 18px 60px 18px;
}

.club-you-header {
  margin-bottom: 24px;
}

.club-you-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.club-you-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.club-you-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
}

.club-you-meta {
  display: flex;
  flex-direction: column;
}

.club-you-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.club-you-view-link {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.club-you-view-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.club-you-list {
  display: flex;
  flex-direction: column;
}

.club-you-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.club-you-row:hover {
  color: var(--text-secondary);
}

.club-you-row-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

.club-you-signout {
  color: var(--danger);
  margin-top: 12px;
  border-bottom: none;
}

.club-you-signout:hover {
  color: #a72832;
}

/* --------------------------------------------------------------------------
   Auth & Generic Modals (Light, 420px max width)
   -------------------------------------------------------------------------- */
.club-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--club-z-modal);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.club-modal-overlay.open {
  display: flex;
}

.club-modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--club-radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  position: relative;
}

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

.club-modal-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.club-modal-close {
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px;
}

.club-modal-close:hover {
  color: var(--text);
}

.club-modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.45;
}

.club-form-group {
  margin-bottom: 16px;
}

.club-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.club-input {
  width: 100%;
}

.club-auth-status {
  margin-top: 14px;
  font-size: 12px;
  text-align: center;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Media Viewer (Stays Dark: #090909)
   -------------------------------------------------------------------------- */
.club-viewer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--viewer-bg);
  z-index: var(--club-z-viewer);
  flex-direction: column;
  user-select: none;
  touch-action: none;
}

.club-viewer-overlay.open {
  display: flex;
}

.club-viewer-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 100%);
  z-index: 10;
}

.club-viewer-top button {
  color: #ffffff;
}

.club-viewer-canvas {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.club-viewer-canvas img,
.club-viewer-canvas video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
}

.club-viewer-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(20, 20, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: var(--club-radius-full);
  z-index: 10;
}

/* Comments Drawer / Bottom Sheet */
.club-drawer {
  display: none;
  position: fixed;
  z-index: calc(var(--club-z-viewer) + 5);
  background: #141416;
  color: #f0f0ee;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.club-drawer.open {
  display: flex;
  flex-direction: column;
}

@media (max-width: 859px) {
  .club-drawer {
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    border-radius: var(--club-radius-lg) var(--club-radius-lg) 0 0;
  }
}

@media (min-width: 860px) {
  .club-drawer {
    top: 0;
    bottom: 0;
    right: 0;
    width: 360px;
    border-radius: 0;
    border-right: none;
  }
}

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

.club-drawer-author {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.club-drawer-caption {
  font-size: 12.5px;
  color: #a8a8a6;
  margin-top: 3px;
  line-height: 1.4;
}

.club-drawer-close {
  color: #8e8e92;
  font-size: 16px;
  padding: 4px 8px;
}

.club-drawer-close:hover {
  color: #ffffff;
}

.club-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.club-drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #78787c;
  margin-bottom: 12px;
}

.club-comment-author-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
}

.club-comment-author-name:hover {
  text-decoration: underline;
}

.club-comment-text {
  color: #c4c4c0;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
}

.club-comment-avatar-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #242428;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.club-drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #141416;
}

.club-drawer-input {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  background: #1e1e22;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: var(--club-radius-md);
}

.club-drawer-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.club-drawer-login-prompt {
  font-size: 12.5px;
  color: #a0a09e;
  text-align: center;
}

.club-drawer-login-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

/* Toast Notifications */
.club-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--club-radius-full);
  font-size: 12.5px;
  font-weight: 500;
  z-index: var(--club-z-toast);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.club-toast.show {
  opacity: 1;
}

/* Empty States */
.club-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.club-empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.club-empty-state p {
  font-size: 13.5px;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.5;
}
