/* PADEUM Players - Mobile App Styles (Phase 6A.2 Social-First) */
:root {
  --bg-main: #0B0E14;
  --bg-card: #141A24;
  --bg-input: #1C2433;
  --border: #2A364F;
  --border-focus: #4F6B9E;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --orange: #FF6B00;
  --orange-hover: #E05E00;
  --orange-light: rgba(255, 107, 0, 0.15);
  --green: #10B981;
  --green-light: rgba(16, 185, 129, 0.15);
  --red: #EF4444;
  --red-light: rgba(239, 68, 68, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-title: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Phase 6B Plans + Discovery + Challenges --- */
.plans-screen,
.create-plan-screen,
.plan-detail {
  display: grid;
  gap: 20px;
  width: 100%;
}

.plans-hero {
  align-items: end;
  display: flex;
  justify-content: space-between;
  padding: 2px 3px 6px;
}

.plans-hero h1,
.create-plan-screen h1,
.plan-detail-hero h1 {
  font-family: var(--font-title);
}

.plans-hero h1 { font-size: 32px; margin-top: 3px; }
.plans-hero p { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-top: 7px; max-width: 590px; }

.social-tabs {
  border-bottom: 1px solid rgba(148, 163, 184, .15);
  display: flex;
  gap: 8px;
}

.social-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 46px;
  padding: 0 15px;
}

.social-tab.active { border-bottom-color: var(--orange); color: var(--text-main); }
.tab-badge { background: var(--orange); border-radius: 999px; color: white; font-size: 10px; margin-left: 7px; padding: 2px 6px; }
.plans-panel { min-width: 0; }
.plans-toolbar { margin-bottom: 16px; }
.plans-type-filter { border-left: 1px solid rgba(148, 163, 184, .14) !important; max-width: 190px; padding-left: 12px !important; }

.plans-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-card {
  background: linear-gradient(145deg, rgba(25, 31, 42, .88), rgba(17, 21, 29, .8));
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 17px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}
.plan-card-feed { background: rgba(19, 24, 33, .72); border-radius: 14px; margin-bottom: 10px; }
.plan-card-header { align-items: start; display: grid; gap: 10px; grid-template-columns: auto minmax(0, 1fr) auto; }
.plan-type-icon { align-items: center; background: rgba(255, 107, 0, .12); border: 1px solid rgba(255, 107, 0, .24); border-radius: 11px; color: var(--orange); display: inline-flex; height: 42px; justify-content: center; width: 42px; }
.plan-type-icon.large { border-radius: 14px; height: 56px; width: 56px; }
.plan-type-label { color: var(--orange); display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-card h3 { font-family: var(--font-title); font-size: 16px; line-height: 1.28; margin-top: 2px; }
.plan-private { align-items: center; color: var(--text-dim); display: inline-flex; font-size: 10px; gap: 4px; }
.plan-description { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.plan-facts { display: grid; gap: 7px; }
.plan-facts span,
.plan-detail-facts span { align-items: center; color: var(--text-muted); display: flex; font-size: 12px; gap: 8px; min-width: 0; }
.plan-facts .padeum-icon,
.plan-detail-facts .padeum-icon { color: var(--orange); flex: none; }
.plan-looking-note { align-items: center; background: rgba(255, 107, 0, .08); border-left: 2px solid var(--orange); border-radius: 0 9px 9px 0; color: var(--text-main); display: flex; font-size: 12px; gap: 7px; padding: 9px 10px; }
.plan-looking-note.detail { align-items: flex-start; flex-direction: column; margin-top: 18px; padding: 13px 14px; }
.plan-looking-note.detail .padeum-icon { float: left; }
.plan-looking-note.detail span { color: var(--text-muted); }
.plan-card-footer { align-items: center; border-top: 1px solid rgba(148, 163, 184, .11); display: flex; gap: 10px; justify-content: space-between; padding-top: 11px; }
.plan-creator { align-items: center; appearance: none; background: none; border: 0; color: var(--text-muted); cursor: pointer; display: flex; font: inherit; font-size: 11px; gap: 7px; min-width: 0; padding: 0; text-align: left; }
.plan-creator span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-card-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.plan-action { align-items: center; appearance: none; background: var(--orange); border: 1px solid var(--orange); border-radius: 9px; color: white; cursor: pointer; display: inline-flex; font: inherit; font-size: 11px; font-weight: 750; gap: 5px; min-height: 34px; padding: 0 9px; }
.plan-action.secondary { background: transparent; border-color: rgba(148, 163, 184, .25); color: var(--text-muted); }
.home-plans-stream { border-bottom: 1px solid rgba(148, 163, 184, .15); margin-bottom: 8px; padding-bottom: 14px; }
.text-action { appearance: none; background: none; border: 0; color: var(--orange); cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
.plans-empty { min-height: 260px; }

.plan-form { display: grid; gap: 16px; margin: 0 auto; max-width: 760px; padding: 22px; width: 100%; }
.plan-type-picker { border: 0; display: grid; gap: 9px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; }
.plan-type-picker legend { color: var(--text-main); font-size: 13px; font-weight: 750; grid-column: 1 / -1; margin-bottom: 2px; }
.plan-type-choice input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.plan-type-choice > span { align-items: center; background: var(--bg-input); border: 1px solid var(--border); border-radius: 12px; color: var(--text-muted); cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-height: 92px; padding: 13px 8px; text-align: center; }
.plan-type-choice input:checked + span { background: rgba(255, 107, 0, .1); border-color: var(--orange); color: var(--orange); }
.plan-type-choice strong { font-size: 11px; line-height: 1.25; }
.plan-form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-submit { justify-content: center; min-height: 48px; }

.plan-detail { max-width: 900px; }
.plan-detail .app-header { align-items: center; }
.plan-status,
.challenge-status { border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 5px 9px; text-transform: uppercase; }
.status-open,
.status-pending { background: rgba(255, 107, 0, .12); color: var(--orange); }
.status-accepted { background: rgba(35, 190, 105, .12); color: var(--green); }
.status-cancelled,
.status-declined { background: rgba(148, 163, 184, .1); color: var(--text-dim); }
.plan-detail-hero { background: linear-gradient(150deg, rgba(27, 33, 44, .94), rgba(17, 21, 29, .82)); border: 1px solid rgba(148, 163, 184, .16); border-radius: 20px; padding: 24px; }
.plan-detail-hero h1 { font-size: clamp(25px, 4vw, 38px); line-height: 1.15; margin: 7px 0 9px; }
.plan-detail-hero > p { color: var(--text-muted); line-height: 1.58; max-width: 680px; }
.plan-detail-facts { display: grid; gap: 10px; margin-top: 20px; }
.plan-detail-facts strong { color: var(--text-main); font-weight: 650; }
.plan-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.btn-danger-soft { appearance: none; background: rgba(239, 68, 68, .08); border: 1px solid rgba(239, 68, 68, .25); border-radius: var(--radius-sm); color: #fca5a5; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; padding: 10px 13px; }
.plan-detail-columns { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.participant-section h2 { align-items: center; display: flex; font-family: var(--font-title); font-size: 15px; gap: 8px; }
.participant-section h2 > span { color: var(--orange); margin-left: auto; }
.participant-list { display: grid; gap: 8px; margin-top: 13px; }
.participant-list > div { align-items: center; display: flex; gap: 9px; }
.participant-list > div > span { display: flex; flex-direction: column; }
.participant-list strong { font-size: 12px; }
.participant-list small { color: var(--text-dim); font-size: 10px; }
.prepared-match-cta { align-items: center; display: grid; gap: 12px; grid-template-columns: auto 1fr auto; }
.prepared-match-cta > span { color: var(--orange); }
.prepared-match-cta strong { font-size: 13px; }
.prepared-match-cta p { color: var(--text-dim); font-size: 11px; margin-top: 3px; }

.challenges-list { display: grid; gap: 10px; }
.challenge-card { align-items: start; background: rgba(20, 25, 34, .78); border: 1px solid rgba(148, 163, 184, .14); border-radius: 15px; display: grid; gap: 12px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 15px; }
.challenge-icon { align-items: center; background: rgba(255, 107, 0, .1); border-radius: 10px; color: var(--orange); display: inline-flex; height: 42px; justify-content: center; width: 42px; }
.challenge-direction { color: var(--orange); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.challenge-copy h3 { font-family: var(--font-title); font-size: 15px; margin-top: 2px; }
.challenge-copy p { color: var(--text-muted); font-size: 12px; margin-top: 5px; }
.challenge-meta { color: var(--text-dim); font-size: 10.5px; margin-top: 7px; }
.challenge-side { align-items: flex-end; display: flex; flex-direction: column; gap: 10px; }
.compact-social-form { display: grid; gap: 13px; }
.profile-social-actions { display: grid; gap: 9px; grid-template-columns: minmax(0, 1fr) auto; margin-top: 16px; width: 100%; }

@media (max-width: 759px) {
  .social-bottom-nav .shell-nav-item { font-size: 9px; gap: 3px; min-width: 0; padding: 7px 2px; }
  .social-bottom-nav .shell-nav-item > .padeum-icon { height: 20px; width: 20px; }
  .plans-hero { align-items: flex-start; gap: 14px; }
  .plans-hero h1 { font-size: 27px; }
  .plans-hero p { font-size: 12px; }
  .plans-grid,
  .plan-detail-columns { grid-template-columns: 1fr; }
  .plan-card { border-radius: 14px; padding: 14px; }
  .plan-card-footer { align-items: flex-start; flex-direction: column; }
  .plan-card-actions { justify-content: flex-start; width: 100%; }
  .plan-type-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-form-grid { grid-template-columns: 1fr; }
  .plan-form { padding: 16px; }
  .plan-detail-hero { border-radius: 16px; padding: 18px; }
  .plan-detail-actions > button { justify-content: center; flex: 1 1 45%; }
  .prepared-match-cta { align-items: start; grid-template-columns: auto 1fr; }
  .prepared-match-cta button { grid-column: 1 / -1; width: 100%; }
  .challenge-card { grid-template-columns: auto minmax(0, 1fr); }
  .challenge-side { align-items: flex-start; grid-column: 2; }
  .profile-social-actions { grid-template-columns: 1fr; }
  .plans-type-filter { max-width: 130px; }
}

/* --- Phase 6F: mentions, notifications and sharing --- */
.mention-input-wrap { position: relative; }
.mention-autocomplete {
  background: rgba(20, 25, 34, .99);
  border: 1px solid rgba(255, 107, 0, .28);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 120;
}
.mention-option {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  gap: 9px;
  min-height: 48px;
  padding: 6px 8px;
  text-align: left;
  width: 100%;
}
.mention-option:hover,
.mention-option:focus-visible { background: rgba(255, 107, 0, .1); outline: none; }
.mention-option > span { display: flex; flex-direction: column; min-width: 0; }
.mention-option strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-option small { color: var(--text-dim); font-size: 10px; }
.mention-link {
  appearance: none;
  background: none;
  border: 0;
  color: var(--orange);
  cursor: pointer;
  display: inline;
  font: inherit;
  font-weight: 720;
  padding: 0;
}
.mention-link:hover { text-decoration: underline; }
.shell-icon-wrap { display: inline-flex; position: relative; }
.notification-badge {
  align-items: center;
  background: var(--orange);
  border: 2px solid var(--bg-main);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 9px;
  font-weight: 850;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 4px;
  position: absolute;
  right: -10px;
  top: -8px;
}
.mobile-header-actions { align-items: center; display: flex; gap: 4px; }
.mobile-notification-action {
  align-items: center;
  appearance: none;
  background: none;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
}
.notifications-screen,
.post-detail-screen { margin: 0 auto; max-width: 760px; }
.notification-list { display: grid; gap: 8px; }
.notification-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.notification-item.unread { background: rgba(255, 107, 0, .065); border-color: rgba(255, 107, 0, .24); }
.notification-open {
  align-items: center;
  appearance: none;
  background: none;
  border: 0;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  gap: 11px;
  min-height: 76px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}
.notification-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.notification-copy strong { font-size: 13px; line-height: 1.35; }
.notification-copy small { color: var(--text-dim); font-size: 11px; }
.notification-unread-dot { background: var(--orange); border-radius: 50%; height: 8px; width: 8px; }
.post-reshared-by {
  align-items: center;
  appearance: none;
  background: none;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 11px;
  gap: 6px;
  margin: -2px 0 10px 4px;
  padding: 0;
}
.post-secondary-actions { align-items: center; display: flex; gap: 2px; }
.post-action-icon {
  align-items: center;
  appearance: none;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.post-action-icon:hover { background: rgba(255, 107, 0, .1); color: var(--orange); }

@media (max-width: 759px) {
  .notifications-screen,
  .post-detail-screen { max-width: none; }
  .notification-open { padding: 11px 12px; }
  .post-actions-bar { align-items: flex-end; }
  .post-reactions-row { max-width: calc(100% - 108px); overflow-x: auto; }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

.app-container {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

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

.brand-badge {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.brand-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Cards & Layout */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Buttons */
.btn-primary {
  width: 100%;
  min-height: 48px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-hover);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  min-height: 48px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-secondary:hover, .btn-secondary:active {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
}

.btn-danger {
  width: 100%;
  min-height: 48px;
  background: var(--red-light);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  min-height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 15px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--orange);
}

/* Alerts */
.alert-box {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}

.alert-error {
  background: var(--red-light);
  border: 1px solid var(--red);
  color: #FCA5A5;
}

.alert-info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93C5FD;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-reg {
  background: var(--orange-light);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.badge-guest {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-success {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status-prepared {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--green);
  padding: 4px 10px;
}

/* Slots & Teams */
.team-section {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.team-header {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.team-a-color { color: #60A5FA; }
.team-b-color { color: #F87171; }

.slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.slot-card {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.slot-card.filled {
  border-style: solid;
  border-color: var(--border-focus);
}

.slot-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.slot-empty-text {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  margin-top: 4px;
}

.slot-player-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.slot-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  padding: 18px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-title {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
}

.modal-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.modal-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.modal-tab.active {
  background: var(--orange);
  color: #fff;
}

.search-results {
  margin-top: 10px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.player-item:hover {
  border-color: var(--orange);
}

/* ======================================================
   PHASE 6A.2 SOCIAL-FIRST COMPONENTS
====================================================== */

/* Avatars */
.avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 2px solid var(--border);
  color: var(--orange);
  font-family: var(--font-title);
  font-weight: 800;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-xs { width: 32px; height: 32px; font-size: 11px; }
.avatar-sm { width: 40px; height: 40px; font-size: 13px; }
.avatar-md { width: 48px; height: 48px; font-size: 16px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-xl { width: 84px; height: 84px; font-size: 30px; }

.avatar-ring-status {
  box-shadow: 0 0 0 2px var(--orange);
}

/* Home Quick Bar */
.home-user-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: border-color 0.15s ease;
}

.home-user-badge:hover {
  border-color: var(--orange);
}

/* Status Horizontal Feed */
.status-feed-container {
  margin-bottom: 14px;
}

.status-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.status-feed-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.status-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.status-scroll-row::-webkit-scrollbar {
  height: 4px;
}
.status-scroll-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.status-card {
  flex: 0 0 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.status-card:hover {
  border-color: var(--orange);
}

.status-card-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.status-card-text {
  font-size: 12px;
  color: var(--text-main);
  font-style: italic;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* Profile Hero */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 18px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-avatar-wrap {
  margin-bottom: 12px;
}

.profile-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 2px;
}

.profile-nickname {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 6px;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.profile-status-bubble {
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 13px;
  font-style: italic;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  max-width: 100%;
}

.social-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 0;
  margin-top: 4px;
}

.social-stat-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex: 1;
}

.social-stat-num {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.social-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.social-stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* Follow Button */
.btn-follow {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-follow.following {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-follow.following:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Discovery Item */
.discovery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.discovery-item:hover {
  border-color: var(--border-focus);
}

.discovery-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.discovery-person-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.discovery-person-copy strong,
.discovery-person-copy span {
  display: block;
}

.discovery-person-copy span,
.discovery-person-copy small {
  color: var(--text-muted);
  font-size: 12px;
}

/* Photo Uploader */
.photo-uploader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

/* --- Trajectory Styles --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

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

.stat-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
}

.stat-val {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.badge-outcome {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-outcome.won {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-outcome.lost {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-outcome.no-result {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-pill.guest {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-pill.padeum {
  background: var(--orange-light);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.match-venue {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.match-date {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.match-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
}

.match-score-val {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
}

.match-teams-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.team-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.team-role-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  width: 48px;
  flex-shrink: 0;
}

.empty-state-box {
  text-align: center;
  padding: 36px 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  margin-top: 16px;
}

/* --- Rating Styles --- */
.rating-hero-card {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0.03) 100%);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating-score-huge {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.badge-calibration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.badge-rating-official {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.badge-delta {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-delta.pos {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-delta.neg {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-delta.neutral {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-dim);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 500;
}

/* --- Ranking Styles --- */
.ranking-hero-card {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.12) 0%, rgba(20, 26, 36, 0.95) 100%);
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ranking-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 16px;
  gap: 4px;
}

.ranking-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.ranking-tab.active {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
}

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

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.leaderboard-item.me {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.1) 0%, var(--bg-card) 100%);
  border-color: var(--orange);
}

.leaderboard-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.leaderboard-pos {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
}

.leaderboard-pos.top-1 { color: #f59e0b; }
.leaderboard-pos.top-2 { color: #94a3b8; }
.leaderboard-pos.top-3 { color: #d97706; }

.leaderboard-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.leaderboard-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.leaderboard-stats {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.leaderboard-pts {
  text-align: right;
  flex-shrink: 0;
}

.leaderboard-pts-val {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--orange);
}

.leaderboard-pts-lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

/* --- Phase 6A.3 Social Posts & Media Styles --- */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 11px;
}

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

.post-author-text {
  display: flex;
  flex-direction: column;
}

.post-author-name {
  font-weight: 780;
  font-size: 14.5px;
  color: var(--text-main);
}

.post-author-meta {
  font-size: 11.5px;
  color: var(--text-dim);
}

.post-body {
  font-size: 15px;
  line-height: 1.56;
  color: var(--text-main);
  margin-bottom: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.post-tag {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 11px;
  color: var(--orange);
  padding: 2px 8px;
  font-weight: 600;
}

/* Post Photos Grid */
.post-photos {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  display: grid;
  gap: 4px;
  background: #000;
}

.post-photos.photos-1 {
  grid-template-columns: 1fr;
  max-height: 360px;
}

.post-photos.photos-2 {
  grid-template-columns: 1fr 1fr;
  max-height: 240px;
}

.post-photos.photos-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  max-height: 280px;
}

.post-photos.photos-3 .post-photo-img:first-child {
  grid-row: span 2;
}

.post-photos.photos-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  max-height: 280px;
}

.post-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  background: #111;
}

/* Reactions Bar */
.post-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: 3px;
  padding-top: 11px;
}

.post-reactions-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reaction-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  min-height: 34px;
  padding: 4px 7px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  transition: all 0.15s ease;
}

.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--orange);
}

.reaction-btn.active {
  background: rgba(255, 107, 0, 0.12);
  border-color: rgba(255, 107, 0, 0.38);
  color: var(--orange);
  font-weight: 700;
}

.reaction-btn .padeum-icon,
.btn-toggle-comments .padeum-icon,
.post-icon-action .padeum-icon,
.btn-share-achievement .padeum-icon {
  stroke-width: 2;
}

.btn-toggle-comments {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.btn-toggle-comments:hover {
  color: var(--text-main);
  background: var(--bg-input);
}

/* Comments Section */
.post-comments-container {
  margin-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 12px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.comment-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: transparent;
  border-left: 2px solid rgba(255, 107, 0, 0.2);
  padding: 6px 8px;
  border-radius: 0;
  font-size: 13px;
}

.comment-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-author-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
}

.comment-body-text {
  color: var(--text-main);
  word-break: break-word;
}

.comment-delete-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
}

.comment-delete-btn:hover {
  color: var(--red);
}

.comment-form {
  display: flex;
  gap: 8px;
}

.comment-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
}

.comment-input:focus {
  border-color: var(--orange);
}

.comment-submit-btn {
  background: var(--orange);
  border: none;
  color: #fff;
  border-radius: 20px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* Gallery Grid (3 columns) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.gallery-cell {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-input);
}

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

/* Create Post Form */
.post-photo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.post-photo-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.post-photo-limit {
  color: var(--text-dim);
  font-size: 12px;
}

.camera-capture-action[hidden] {
  display: none;
}

.photo-previews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.photo-preview-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-input);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Phase 6A.4 Moments & Achievements --- */
.post-achievement-box {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.14), rgba(255, 107, 0, 0.025));
  border: 1px solid rgba(255, 107, 0, 0.38);
  border-radius: 14px;
  box-shadow: inset 3px 0 0 rgba(255, 107, 0, 0.62);
  padding: 13px 14px 13px 16px;
  margin: 2px 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.padeum-icon {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}

.post-achievement-icon,
.moment-achievement-icon {
  color: var(--orange);
  display: grid;
  place-items: center;
}

.post-achievement-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.post-achievement-copy strong {
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 15.5px;
  line-height: 1.25;
}

.post-achievement-copy span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
}

.btn-share-achievement {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--orange);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 8px;
}

.moment-achievement-icon {
  background: #242424;
  height: 100%;
  width: 100%;
}

.moments-reel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.moments-reel::-webkit-scrollbar {
  display: none;
}

.moment-bubble {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.moment-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
}

.moment-text-preview {
  font-size: 9px;
  line-height: 1.2;
  color: var(--text-main);
  text-align: center;
  padding: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.moment-ring {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  pointer-events: none;
}

/* --- Phase 6A.5 Social Shell + Home Feed --- */
body.social-authenticated {
  display: block;
  background:
    radial-gradient(circle at 58% -16%, rgba(255, 107, 0, 0.08), transparent 31rem),
    var(--bg-main);
}

body.social-authenticated .app-container {
  margin-left: 244px;
  max-width: 760px;
  padding: 28px 28px 72px;
}

body.social-authenticated .app-container.social-home-active {
  margin-left: 244px;
  max-width: 1120px;
  padding-left: 28px;
  padding-right: 28px;
}

.social-sidebar {
  background: rgba(11, 14, 20, 0.96);
  border-right: 1px solid rgba(148, 163, 184, 0.15);
  bottom: 0;
  display: flex;
  flex-direction: column;
  left: 0;
  padding: 28px 20px 22px;
  position: fixed;
  top: 0;
  width: 244px;
  z-index: 80;
}

.shell-brand,
.shell-nav-item,
.shell-account,
.shell-logout,
.mobile-profile-action {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.shell-brand {
  align-items: center;
  display: flex;
  gap: 9px;
  min-height: 48px;
  text-align: left;
}

.shell-brand-copy {
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.shell-nav-primary {
  display: grid;
  gap: 5px;
  margin-top: 38px;
}

.shell-nav-secondary {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding-top: 22px;
}

.shell-nav-item {
  align-items: center;
  border-radius: 12px;
  color: var(--text-muted);
  display: flex;
  font-size: 15px;
  font-weight: 620;
  gap: 14px;
  min-height: 50px;
  padding: 0 14px;
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease;
  width: 100%;
}

.shell-nav-item:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-main);
}

.shell-nav-item.active {
  background: var(--orange-light);
  color: var(--orange);
}

.shell-nav-item.active .padeum-icon {
  stroke-width: 2.2;
}

.shell-nav-item > .padeum-icon {
  height: 22px;
  stroke-width: 2;
  width: 22px;
}

.shell-account {
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  gap: 10px;
  margin-top: auto;
  min-height: 64px;
  padding-top: 15px;
  text-align: left;
  width: 100%;
}

.shell-account > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shell-account strong,
.shell-account small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-account strong {
  font-size: 13px;
}

.shell-account small {
  color: var(--text-dim);
  font-size: 11px;
}

.shell-logout {
  color: var(--text-dim);
  font-size: 12px;
  min-height: 44px;
  text-align: left;
}

.shell-logout:hover {
  color: var(--text-main);
}

.social-mobile-header,
.social-bottom-nav {
  display: none;
}

.account-menu-layer {
  inset: 0;
  position: fixed;
  z-index: 140;
}

.account-menu-popover {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  display: grid;
  min-width: 210px;
  overflow: hidden;
  padding: 6px;
  position: absolute;
  right: 14px;
  top: 60px;
}

.account-menu-item {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--text-main);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
  width: 100%;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: var(--bg-input);
}

.account-menu-separator {
  border-top: 1px solid var(--border);
  margin: 5px 7px;
}

.account-menu-logout { color: var(--red); }

@media (min-width: 760px) {
  .account-menu-popover {
    bottom: 22px;
    left: 72px;
    right: auto;
    top: auto;
  }
}

@media (min-width: 1200px) {
  .account-menu-popover { left: 220px; }
}

.social-home {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 720px) minmax(280px, 320px);
  width: 100%;
}

.social-feed-column {
  min-width: 0;
}

.home-feed-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 4px;
}

.section-eyebrow {
  color: var(--orange);
  display: block;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-feed-heading h1 {
  font-family: var(--font-title);
  font-size: clamp(25px, 2.3vw, 32px);
  line-height: 1.15;
  margin-top: 2px;
}

.home-create-button {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 750;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
}

.home-create-button:hover {
  background: var(--orange-hover);
}

.home-moments {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 18px;
  padding: 2px 4px 18px;
}

.section-title-with-icon,
.profile-meta-icon,
.badge-calibration,
.badge-rating-official,
.badge-outcome,
.alert-box,
.btn-secondary,
.btn-ghost {
  align-items: center;
  gap: 7px;
}

.section-title-with-icon,
.profile-meta-icon,
.badge-calibration,
.badge-rating-official,
.badge-outcome {
  display: inline-flex;
}

.success-hero-icon,
.loading-state-icon,
.empty-state-icon {
  color: var(--orange);
  display: grid;
  margin-bottom: 12px;
  place-items: center;
}

.loading-state-icon .padeum-icon,
.badge-calibration .padeum-icon {
  animation: padeum-loading-spin 1.2s linear infinite;
}

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

.section-kicker,
.feed-section-heading,
.context-block-heading {
  align-items: center;
  display: flex;
}

.section-kicker {
  color: var(--orange);
  gap: 8px;
  margin-bottom: 12px;
}

.section-kicker h2,
.section-kicker h3 {
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 760;
}

.moment-item {
  align-items: center;
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex: 0 0 94px;
  flex-direction: column;
  gap: 7px;
  min-height: 112px;
  padding: 2px 3px;
}

.moment-item:hover .moment-ring,
.moment-item:focus-visible .moment-ring {
  border-color: #ff9142;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.13);
}

.moment-item .moment-bubble {
  flex: none;
  min-width: 72px;
  width: 72px;
}

.moment-owner {
  color: var(--text-muted);
  display: -webkit-box;
  font-size: 11px;
  line-height: 1.25;
  max-width: 92px;
  min-height: 28px;
  overflow: hidden;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.moments-empty {
  align-items: center;
  color: var(--text-dim);
  display: flex;
  font-size: 13px;
  gap: 9px;
  min-height: 70px;
}

.feed-section-heading {
  justify-content: space-between;
  padding: 0 4px 10px;
}

.feed-section-heading h2 {
  font-family: var(--font-title);
  font-size: 17px;
}

.feed-section-heading span {
  color: var(--text-dim);
  font-size: 11px;
}

.social-home .post-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 0;
  margin: 0;
  padding: 19px 2px 22px;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.social-home .post-card.post-highlighted {
  background: rgba(255, 107, 0, 0.06);
  box-shadow: 0 0 0 8px rgba(255, 107, 0, 0.06);
}

.post-author-info {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.post-author-text {
  min-width: 0;
}

.post-author-name,
.post-author-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-owner-actions {
  display: flex;
  gap: 2px;
}

.post-icon-action {
  align-items: center;
  appearance: none;
  background: none;
  border: 0;
  border-radius: 10px;
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
}

.post-icon-action:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--orange);
}

.social-home .post-photos {
  border-radius: 14px;
}

.social-context-rail {
  align-self: start;
  background: linear-gradient(180deg, rgba(24, 29, 39, 0.76), rgba(17, 21, 29, 0.45));
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 18px;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 13px;
  position: sticky;
  top: 28px;
}

.home-user-badge,
.community-preview-item,
.context-links button,
.active-match-context > button {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.home-user-badge {
  align-items: center;
  display: flex;
  background: rgba(255, 107, 0, 0.065);
  border: 1px solid rgba(255, 107, 0, 0.12);
  border-radius: 13px;
  gap: 11px;
  min-height: 68px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.home-user-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.home-user-copy strong,
.home-user-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-user-copy strong {
  font-size: 13.5px;
}

.home-user-copy small {
  color: var(--text-dim);
  font-size: 11px;
}

.rail-link-label,
.context-block-heading button,
.active-match-context > button {
  color: var(--orange);
  font-size: 11px;
  font-weight: 750;
}

.rail-link-label {
  white-space: nowrap;
}

.context-block {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: 13px;
  padding: 15px 3px 0;
}

.context-block-heading {
  justify-content: space-between;
  margin-bottom: 10px;
}

.context-block h2 {
  font-family: var(--font-title);
  font-size: 13.5px;
}

.context-block-heading button {
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  gap: 5px;
}

.community-preview-list {
  display: grid;
}

.community-preview-item {
  align-items: center;
  border-radius: 10px;
  display: flex;
  gap: 9px;
  min-height: 58px;
  padding: 8px 7px;
  text-align: left;
  width: 100%;
}

.community-preview-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.context-empty {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr;
  line-height: 1.45;
  padding: 12px 10px;
}

.context-empty > span {
  color: var(--orange);
}

.community-preview-item > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.community-preview-item strong,
.community-preview-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-preview-item strong {
  font-size: 12px;
}

.community-preview-item small,
.context-empty,
.active-match-context p {
  color: var(--text-dim);
  font-size: 11px;
}

.active-match-context {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: auto 1fr auto;
}

.context-icon {
  color: var(--orange);
}

.context-links {
  display: grid;
  gap: 5px;
}

.context-links h2 {
  margin-bottom: 5px;
}

.context-links button {
  align-items: center;
  border-radius: 9px;
  color: var(--text-muted);
  display: flex;
  font-size: 12px;
  gap: 10px;
  min-height: 52px;
  padding: 6px 8px;
  text-align: left;
}

.context-links button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.context-link-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.context-link-copy strong {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
}

.context-link-copy small {
  color: var(--text-dim);
  font-size: 10.5px;
}

.discovery-screen {
  display: grid;
  gap: 18px;
}

.discovery-page-header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  padding: 1px 2px 3px;
}

.discovery-page-header h1 {
  font-family: var(--font-title);
  font-size: 30px;
  line-height: 1.1;
  margin-top: 3px;
}

.discovery-page-header p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 7px;
  max-width: 470px;
}

.discovery-back {
  flex: none;
  min-height: 42px;
}

.discovery-search-panel {
  align-items: center;
  background: linear-gradient(135deg, rgba(27, 33, 44, 0.9), rgba(20, 25, 34, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 11px 13px;
}

.discovery-search-icon {
  color: var(--orange);
  display: grid;
  place-items: center;
}

.discovery-search-panel .form-input {
  background: transparent;
  border: 0;
  font-size: 14px;
  min-height: 44px;
  padding: 0 3px;
}

.discovery-search-panel .form-input:focus {
  border: 0;
  box-shadow: none;
}

.discovery-search-hint {
  color: var(--text-dim);
  font-size: 10.5px;
  white-space: nowrap;
}

.discovery-results {
  display: grid;
  gap: 9px;
}

.discovery-results .discovery-item {
  background: rgba(24, 29, 39, 0.72);
  border-color: rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  min-height: 78px;
  padding: 12px 14px;
}

.discovery-results .discovery-item:hover {
  background: rgba(30, 36, 48, 0.9);
  border-color: rgba(255, 107, 0, 0.42);
  transform: translateY(-1px);
}

.discovery-results .btn-follow {
  border-radius: 10px;
  min-height: 38px;
  min-width: 104px;
  padding: 7px 12px;
  text-transform: none;
}

.discovery-state {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
  padding: 34px 18px;
  text-align: center;
}

.discovery-state > .padeum-icon {
  color: var(--orange);
  margin-bottom: 12px;
}

.discovery-state strong {
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 16px;
}

.discovery-state p {
  font-size: 12.5px;
  margin-top: 5px;
}

.discovery-state .padeum-icon:first-child {
  stroke-width: 2;
}

.feed-state,
.feed-loading {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  padding: 38px 18px;
  text-align: center;
}

.feed-state > .padeum-icon {
  color: var(--orange);
  margin-bottom: 13px;
}

.feed-state h3 {
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 17px;
}

.feed-state p,
.feed-loading p {
  font-size: 13px;
  margin: 7px auto 0;
  max-width: 370px;
}

.feed-state .btn-secondary {
  margin-top: 17px;
  max-width: 210px;
}

.feed-state-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.feed-state-actions .btn-primary,
.feed-state-actions .btn-secondary {
  margin: 0;
  min-width: 128px;
}

.feed-skeleton {
  display: grid;
  gap: 9px;
  width: min(100%, 420px);
}

.feed-skeleton span {
  animation: feed-pulse 1.25s ease-in-out infinite alternate;
  background: var(--bg-input);
  border-radius: 999px;
  display: block;
  height: 12px;
}

.feed-skeleton span:nth-child(2) { width: 84%; }
.feed-skeleton span:nth-child(3) { width: 62%; }

@keyframes feed-pulse {
  from { opacity: 0.36; }
  to { opacity: 0.82; }
}

.social-create-overlay {
  padding: 18px;
}

.create-menu-card {
  max-width: 430px;
  width: 100%;
}

.create-menu-options {
  display: grid;
  gap: 9px;
}

.create-menu-option {
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  gap: 13px;
  min-height: 74px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.create-menu-option:hover {
  border-color: var(--orange);
}

.create-menu-icon {
  color: var(--orange);
  display: grid;
  place-items: center;
}

.create-menu-option > span:last-child {
  display: flex;
  flex-direction: column;
}

.create-menu-option strong {
  font-family: var(--font-title);
  font-size: 14px;
}

.create-menu-option small,
.create-menu-note {
  color: var(--text-dim);
  font-size: 11px;
}

.create-menu-note {
  margin-top: 12px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 1199px) and (min-width: 760px) {
  body.social-authenticated .app-container,
  body.social-authenticated .app-container.social-home-active {
    margin-left: 84px;
    max-width: 760px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .social-sidebar {
    align-items: center;
    padding: 24px 12px 18px;
    width: 84px;
  }

  .social-sidebar .shell-brand-copy,
  .social-sidebar .shell-nav-item span,
  .social-sidebar .shell-account > span:last-child,
  .social-sidebar .shell-logout {
    display: none;
  }

  .social-sidebar .shell-brand .brand-badge {
    font-size: 10px;
    padding: 4px 5px;
  }

  .shell-nav-item {
    justify-content: center;
    padding: 0;
    width: 52px;
  }

  .shell-account {
    border-top: 0;
    justify-content: center;
    width: 52px;
  }

  .social-home {
    grid-template-columns: minmax(0, 640px);
  }

  .social-context-rail {
    display: none;
  }
}

@media (max-width: 759px) {
  body.social-authenticated .app-container,
  body.social-authenticated .app-container.social-home-active {
    margin: 0 auto;
    max-width: 640px;
    padding: 64px 12px 94px;
  }

  .social-sidebar {
    display: none;
  }

  .social-mobile-header {
    align-items: center;
    backdrop-filter: blur(18px);
    background: rgba(11, 14, 20, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    height: 54px;
    justify-content: space-between;
    left: 0;
    padding: 0 14px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 80;
  }

  .social-mobile-header .shell-brand-copy {
    font-size: 15px;
  }

  .mobile-profile-action {
    align-items: center;
    display: flex;
    min-height: 48px;
    min-width: 48px;
    justify-content: center;
  }

  .social-bottom-nav {
    backdrop-filter: blur(18px);
    background: rgba(11, 14, 20, 0.94);
    border-top: 1px solid rgba(148, 163, 184, 0.17);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    min-height: 72px;
    padding: 5px max(7px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
    position: fixed;
    right: 0;
    z-index: 90;
  }

  .social-bottom-nav .shell-nav-item {
    align-items: center;
    flex-direction: column;
    font-size: 10px;
    gap: 2px;
    justify-content: center;
    min-height: 58px;
    padding: 3px;
  }

  .social-bottom-nav .shell-nav-item > .padeum-icon {
    height: 21px;
    stroke-width: 2;
    width: 21px;
  }

  .social-home {
    display: block;
  }

  .social-context-rail {
    display: none;
  }

  .home-feed-heading {
    margin-bottom: 10px;
  }

  .home-feed-heading h1 {
    font-size: 23px;
  }

  .home-create-button {
    min-height: 42px;
    padding: 0 12px;
  }

  .home-moments {
    margin-bottom: 14px;
    margin-left: -12px;
    margin-right: -12px;
    padding-bottom: 14px;
    padding-left: 16px;
    padding-right: 0;
  }

  .section-kicker {
    margin-bottom: 9px;
  }

  .moment-item {
    flex-basis: 90px;
    min-height: 108px;
  }

  .moments-reel {
    padding-right: 16px;
  }

  .social-home .post-card {
    margin-left: -12px;
    margin-right: -12px;
    padding: 17px 12px 20px;
  }

  .social-home .post-card.post-highlighted {
    box-shadow: none;
  }

  .post-header {
    align-items: center;
    margin-bottom: 12px;
  }

  .post-actions-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-top: 10px;
  }

  .post-reactions-row {
    flex-wrap: wrap;
  }

  .reaction-btn {
    min-height: 36px;
  }

  .post-achievement-box {
    border-radius: 13px;
    padding: 12px 11px 12px 14px;
  }

  .post-body {
    font-size: 14.5px;
  }

  .discovery-screen {
    gap: 14px;
  }

  .discovery-page-header {
    align-items: flex-start;
    gap: 12px;
  }

  .discovery-page-header h1 {
    font-size: 25px;
  }

  .discovery-page-header p {
    font-size: 12px;
    margin-top: 5px;
  }

  .discovery-back {
    min-height: 40px;
    padding: 6px 10px;
  }

  .discovery-search-panel {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 8px 11px;
  }

  .discovery-search-hint {
    display: none;
  }

  .discovery-results .discovery-item {
    gap: 10px;
    min-height: 74px;
    padding: 10px 11px;
  }

  .discovery-results .btn-follow {
    min-width: 88px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .post-photo-img {
    max-width: 100%;
  }

  .feed-state-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 240px);
  }

  .feed-state-actions .btn-primary,
  .feed-state-actions .btn-secondary {
    width: 100%;
  }

  .create-menu-card {
    margin-top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Phase 6C Match Board --- */
.match-board-screen,
.match-detail {
  display: grid;
  gap: 20px;
  width: 100%;
}

.match-board-hero h1 { font-family: var(--font-title); font-size: 32px; margin-top: 3px; }
.match-board-hero p { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-top: 7px; max-width: 590px; }

.match-board-grid,
.home-matches-stream .match-board-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 14px;
  transition: border-color 0.15s ease, transform 0.05s ease;
}

.match-card:hover,
.match-card:focus-visible {
  border-color: var(--border-focus);
  outline: none;
}

.match-card-compact {
  padding: 10px 12px;
}

.match-card-header {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.match-card-icon { color: var(--orange); }
.match-card-time { color: var(--text-muted); flex: 1; font-size: 13px; }

.match-privacy-badge,
.match-score-badge,
.match-audience-badge {
  align-items: center;
  background: var(--bg-input);
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  padding: 3px 8px;
}

.match-privacy-badge.private { color: var(--red); }
.match-score-badge { background: var(--orange-light); color: var(--orange); }
.match-audience-badge { color: var(--text-muted); }

.match-card-teams { display: grid; gap: 8px; margin-bottom: 12px; }
.match-team {
  align-items: center;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 10px;
  padding: 8px 10px;
}

.match-team-side {
  background: var(--border);
  border-radius: 50%;
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  height: 22px;
  line-height: 22px;
  text-align: center;
  width: 22px;
}

.match-team-name {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
}

.match-card-footer {
  align-items: center;
  color: var(--text-dim);
  display: flex;
  font-size: 12px;
  gap: 14px;
}

.match-card-footer span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.match-board-empty,
.discovery-state .match-board-empty {
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 20px;
  text-align: center;
}

.match-board-empty strong { color: var(--text-main); font-size: 16px; }
.match-board-empty p { font-size: 13px; line-height: 1.5; max-width: 420px; }

.match-detail-hero {
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
}

.match-detail-icon { color: var(--orange); }
.match-detail-hero h1 { font-family: var(--font-title); font-size: 22px; }

.match-detail-facts {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 14px;
  justify-content: center;
}

.match-detail-facts span { align-items: center; display: inline-flex; gap: 5px; }

.match-detail-score {
  background: var(--orange-light);
  border-radius: var(--radius-sm);
  color: var(--orange);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
  padding: 8px 16px;
}

.match-detail-teams {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.match-detail-team {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.match-detail-team h2 {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.match-detail-player {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0;
}

.match-detail-player.anonymous {
  color: var(--text-dim);
}

.match-player-name {
  flex: 1 1 100%;
  font-size: 14px;
  font-weight: 500;
}

.match-player-meta {
  color: var(--text-dim);
  flex: 1 1 100%;
  font-size: 11px;
}

.match-detail-audience {
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.match-audience-count {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 14px;
  gap: 6px;
}

.match-intent-btn.active {
  background: var(--orange-light);
  color: var(--orange);
}

.home-matches-stream { margin-bottom: 18px; }
.home-matches-stream .feed-section-heading { margin-bottom: 10px; }

@media (max-width: 640px) {
  .match-detail-teams { grid-template-columns: 1fr; }
  .match-detail-audience { flex-direction: column; gap: 10px; }
}


/* ======================================================
   PHASE 6D — STATUS / PRESENCE
   ====================================================== */

.status-preview-context {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-preview-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-left: auto;
  flex-shrink: 0;
}

.community-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-status-strip {
  margin-bottom: 14px;
}

@media (min-width: 1200px) {
  .home-status-strip {
    display: none;
  }
}

.home-status-strip-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.home-status-strip-item {
  flex: 0 0 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.home-status-strip-item:hover {
  border-color: var(--orange);
}

.home-own-status-item,
.home-own-status-rail {
  border-color: rgba(255, 107, 0, 0.42);
  background: rgba(255, 107, 0, 0.06);
}

.home-own-status-item {
  flex-basis: 180px;
}

.home-own-status-rail {
  width: 100%;
  margin-bottom: 8px;
}

.home-status-strip-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-status-strip-copy strong {
  font-size: 13px;
}

.home-status-strip-copy small {
  font-size: 12px;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-strip-context {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
}

.profile-status-bubble {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  width: 100%;
}

.profile-status-context {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.community-preview-copy strong,
.community-preview-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-status-text {
  font-style: italic;
}

.profile-status-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 6px;
}

.profile-status-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.profile-status-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.status-creator-card {
  max-width: 460px;
}

.status-viewer-card {
  max-width: 460px;
  width: 100%;
}

.status-viewer-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.status-viewer-author-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.status-viewer-author-copy strong {
  font-size: 15px;
}

.status-viewer-author-copy small {
  font-size: 12px;
  color: var(--text-muted);
}

.status-viewer-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.status-viewer-body {
  margin-bottom: 16px;
}

.status-viewer-text {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 12px;
  white-space: pre-wrap;
}

.status-viewer-photo {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.status-viewer-club {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.status-viewer-reactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.status-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.status-reaction-btn.active {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 107, 0, 0.08);
}

.status-reaction-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-viewer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================================================
   Phase 6G: Planes V2 (Jugar / Social + Recommendations)
   ================================================== */

.home-plans-recommendations {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.plan-recommendation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.plan-recommendation-card:hover {
  transform: translateY(-1px);
}

.plan-rec-jugar {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.12) 0%, rgba(255, 107, 0, 0.04) 100%);
  border: 1px solid rgba(255, 107, 0, 0.35);
}

.plan-rec-jugar .rec-icon {
  color: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.plan-rec-social {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(56, 189, 248, 0.04) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.plan-rec-social .rec-icon {
  color: #38bdf8;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.plan-recommendation-card .rec-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.plan-recommendation-card .rec-body strong {
  font-size: 13.5px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-recommendation-card .rec-body span {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-rec-action {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  border: 0;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-rec-action.btn-rec-social {
  background: #0284c7;
}

.btn-rec-action:hover {
  filter: brightness(1.1);
}

/* --- Plan Card Badges & Spots --- */
.plan-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 6px;
}

.plan-badge-jugar {
  background: rgba(255, 107, 0, 0.15);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.plan-badge-social {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.plan-category-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.plan-spots-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.plan-spots-tag.urgent {
  color: #f59e0b;
}

.plan-spots-tag.full {
  color: #10b981;
}

.plan-spots-row {
  margin-top: -4px;
  margin-bottom: 2px;
}

/* --- Create Plan V2 UI --- */
.plan-type-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.plan-type-toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.plan-type-toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.plan-type-toggle-btn.active {
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.09);
  color: var(--text-main);
}

.plan-type-toggle-btn.active strong {
  color: var(--orange);
}

.confirmed-players-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirmed-players-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 6px;
}

.confirmed-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.confirmed-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
}

.confirmed-player-chip.creator-chip {
  border-color: rgba(255, 107, 0, 0.35);
  background: rgba(255, 107, 0, 0.08);
}

.chip-remove {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  margin-left: 2px;
}

.chip-remove:hover {
  color: #ef4444;
}

.player-search-autocomplete-box {
  position: relative;
}

.player-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.player-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.player-search-item:last-child {
  border-bottom: 0;
}

.player-search-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* --- Plan Detail V2 UI --- */
.plan-detail-hero-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.plan-spots-banner {
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.plan-spots-banner.urgent {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.plan-spots-banner.full {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

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

.confirmed-player-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.confirmed-player-card:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.04);
  transform: translateY(-1px);
}

/* ==========================================================================
   Phase 6H — Clubes (Entity, Profiles, Directory, Admin)
   ========================================================================== */

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

.club-card {
  background: var(--bg-card, #131722);
  border: 1px solid var(--border, rgba(148, 163, 184, 0.15));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.club-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange, #ff6b00);
}

.club-card-cover {
  height: 90px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.club-card-avatar {
  position: absolute;
  bottom: -20px;
  left: 14px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1e293b;
  border: 2px solid var(--bg-card, #131722);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange, #ff6b00);
}

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

.club-card-body {
  padding: 26px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.club-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.club-card-title {
  font-family: var(--font-title, inherit);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main, #f8fafc);
  margin: 0;
}

.badge-padeum-verified {
  background: linear-gradient(135deg, var(--orange, #ff6b00) 0%, #ea580c 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.club-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
}

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

.club-card-actions .btn-follow {
  flex: 1;
  padding: 7px 12px;
  font-size: 13px;
}

/* Club Profile Screen */
.club-profile-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.club-profile-card {
  background: var(--bg-card, #131722);
  border: 1px solid var(--border, rgba(148, 163, 184, 0.15));
  border-radius: 16px;
  overflow: hidden;
}

.club-profile-cover {
  height: 140px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.club-profile-avatar {
  position: absolute;
  bottom: -32px;
  left: 18px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #1e293b;
  border: 3px solid var(--bg-card, #131722);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange, #ff6b00);
}

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

.club-profile-info {
  padding: 40px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.club-profile-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.club-profile-name {
  font-family: var(--font-title, inherit);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main, #f8fafc);
  margin: 0;
}

.club-profile-locality {
  font-size: 14px;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.club-profile-address {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  margin: 0;
}

.club-profile-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main, #cbd5e1);
  margin: 4px 0 0;
}

.club-profile-stats {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.club-stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.club-stat-pill strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main, #f8fafc);
}

.club-stat-pill span {
  font-size: 11px;
  color: var(--text-secondary, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.club-profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.club-profile-actions .btn-follow {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
}

.club-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.btn-contact-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main, #f8fafc);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-contact-chip:hover {
  background: rgba(255, 107, 0, 0.12);
  border-color: var(--orange, #ff6b00);
  color: var(--orange, #ff6b00);
}

.club-stream-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.02) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.club-facilities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.facility-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main, #f8fafc);
}

/* Phase 6H.3: portada, galería y administración de fotos */

.club-profile-hero {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.15));
  margin-bottom: 14px;
}

.club-profile-hero img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.club-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.club-gallery-thumb {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary, #1e293b);
  display: block;
}

.club-gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.club-gallery-thumb-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  text-align: left;
}

.club-gallery-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 16, 0.94);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.club-gallery-viewer-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--bg-card, #131722);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.15));
}

.club-gallery-viewer-frame img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  background: #000;
}

.club-gallery-viewer-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
}

.club-gallery-viewer-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 14px;
}

.reg-photo-preview {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 8px;
  background: var(--bg-secondary, #1e293b);
}

.reg-gallery-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--bg-secondary, #1e293b);
  border-radius: 8px;
}

.reg-gallery-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.admin-gallery-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--bg-secondary, #1e293b);
  border-radius: 10px;
  align-items: flex-start;
}

.admin-gallery-item > img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.admin-gallery-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .club-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Phase 6I: Match Detail canónico post-partido */

.match-final-score-card {
  background: var(--bg-card, #131722);
  border: 1px solid var(--border, rgba(148, 163, 184, 0.15));
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
  margin-top: 12px;
}

.match-final-score {
  font-family: var(--font-title, inherit);
  font-size: 40px;
  font-weight: 800;
  color: var(--text-main, #f8fafc);
  margin: 6px 0 2px;
}

.match-final-winner {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange, #ff6b00);
  margin: 0;
}

.match-final-club {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main, #f8fafc);
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 12px;
}

.match-final-time {
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  margin: 8px 0 0;
}

.match-final-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.match-final-team {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-secondary, #1e293b);
}

.match-final-team.winner {
  border: 1px solid var(--orange, #ff6b00);
}

.match-final-team h3 {
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--text-main, #f8fafc);
}

.match-final-sets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-set-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-main, #f8fafc);
}

.rating-delta-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
}

.rating-delta-chip.up {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

.rating-delta-chip.down {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

/* 6K.1: Visor de foto de perfil (lightbox) — patrón del visor de galería 6H.3 */
.photo-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 16, 0.94);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.photo-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.photo-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(19, 23, 34, 0.85);
  color: #e2e8f0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.photo-lightbox-close:hover,
.photo-lightbox-close:focus-visible {
  background: rgba(30, 38, 55, 0.95);
  outline: 2px solid var(--orange, #f59e0b);
}

/* 6K.1: avatar grande de perfil como disparador del visor (sin romper layout) */
.avatar-clickable {
  background: none;
  border: none;
  padding: 0;
  margin: 0 auto;
  display: block;
  cursor: zoom-in;
  border-radius: 50%;
}

.avatar-clickable:focus-visible {
  outline: 2px solid var(--orange, #f59e0b);
  outline-offset: 3px;
}
