/* /public/css/user/profilep.css */

/* ===== Theme ===== */
:root {
  --cream: #faf7f0;
  --surface: #ffffff;
  --ink: #1f2724;
  --muted: #6e756e;
  --gold: #d4af37;
  --gold-900: #8e7a20;
  --green: #0b3d2e;
  --green-700: #083024;
  --ring: rgba(212, 175, 55, 0.3);
  --shadow: 0 8px 26px rgba(12, 23, 18, 0.08);
  --shadow-lg: 0 16px 44px rgba(12, 23, 18, 0.1);
  --radius: 20px;
}

body {
  background: var(--cream);
  color: var(--ink);
}

.container {
  max-width: 1120px;
  margin: 28px auto 64px;
  padding: 0 18px;
}

/* ===== Root layout ===== */
.fw-profile-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== Card wrapper ===== */
.fw-prof-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 20, 15, 0.06);
}

/* ===== HERO (dashboard-style) ===== */
.fw-prof-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  position: relative;
  background: linear-gradient(
      120deg,
      rgba(249, 250, 251, 0.94),
      rgba(248, 248, 245, 0.96)
    ),
    #f9fafb;
  box-shadow: var(--shadow-lg);
}

.fw-prof-hero::after {
  content: "";
  position: absolute;
  inset-inline: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37, #b8892a);
  opacity: 0.8;
}

.fw-prof-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fw-prof-avatar-btn {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

.fw-prof-avatar-ring {
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, #d4af37, #b8892a);
  display: inline-flex;
}

.fw-prof-avatar-img {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  object-fit: cover;
  background: #e5e7eb;
}

.fw-prof-avatar-initial {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 28px;
  color: var(--green);
  background: linear-gradient(180deg, #fdfbf5, #f5f0e0);
}

/* hero meta */
.fw-prof-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fw-prof-hero-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fw-prof-hero-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #111827;
}

.fw-prof-hero-subrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.fw-prof-hero-username {
  color: var(--muted);
  font-size: 0.85rem;
}

.fw-prof-pill {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 61, 46, 0.15);
  background: rgba(11, 61, 46, 0.03);
  color: var(--green);
  white-space: nowrap;
}

.fw-prof-pill--tier {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.4);
}

.fw-prof-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.fw-prof-hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fw-prof-hero-stat-item .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.fw-prof-hero-stat-item .stat-value {
  font-size: 1.05rem;
  font-weight: 600;
}

/* hero right */
.fw-prof-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 220px;
}

.fw-prof-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fw-prof-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* horizontal centring */
  text-align: center;
  line-height: 1;
  gap: 8px;               /* helps when we add the + */
  border-radius: 999px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 16px;
  padding-right: 16px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  background: #ffffff;
  color: var(--green);
  box-shadow: 0 4px 10px rgba(12, 23, 18, 0.08);
  transition: transform 0.12s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease;
    height: 32px;
}

.fw-prof-btn:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 7px 18px rgba(12, 23, 18, 0.12);
}

.fw-prof-btn--primary {
  background: linear-gradient(135deg, #0b3d2e, #145c3f);
  color: #f9fafb;
  border-color: rgba(6, 95, 70, 0.9);
}

.fw-prof-btn--ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
}

/* + badge inside Add round */
.fw-prof-btn--addround::before {
  content: "+";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 14px;
  line-height: 1;

  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);

  flex: 0 0 auto; /* key: prevents flex weirdness */
}

.fw-prof-btn.is-following {
  background: #ecfdf3;
  color: #166534;
  border-color: rgba(22, 101, 52, 0.45);
}

/* hero highlight */
.fw-prof-hero-highlight {
  border-radius: 16px;
  background: radial-gradient(
      1000px 280px at 10% -40%,
      rgba(212, 175, 55, 0.25),
      transparent 65%
    ),
    linear-gradient(180deg, #ffffff, #fbf7eb);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 14px 16px;
  text-align: right;
  min-width: 220px;
}

.fw-prof-hero-highlight .h-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fw-prof-hero-highlight .h-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  margin-top: 2px;
}

.fw-prof-hero-highlight .h-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== Tabs ===== */
.fw-prof-tabs {
  padding: 10px 12px 14px;
}

.fw-prof-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(10, 20, 15, 0.06);
  padding-bottom: 6px;
}

.fw-prof-tab {
  border-radius: 999px;
  padding: 7px 13px;
  border: 1px solid rgba(10, 20, 15, 0.08);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease,
    background 0.18s ease, border-color 0.18s ease;
}

.fw-prof-tab:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.fw-prof-tab.is-active {
  background: linear-gradient(180deg, #ffffff, #fbf7eb);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.18);
}

.fw-prof-tab--wip {
  opacity: 0.8;
  font-style: italic;
}

/* ===== Panels / layout ===== */
.fw-prof-tab-panels {
  padding: 10px 4px 4px;
}

.fw-prof-panel {
  display: none;
  padding: 10px 10px 16px;
}

.fw-prof-panel.is-active {
  display: block;
}

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.panel-head h3 {
  font-size: 1rem;
  margin: 0;
}

.panel-head .sub {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ===== Grids / subcards ===== */
.fw-prof-grid {
  display: grid;
  gap: 12px;
}

.fw-prof-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fw-prof-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fw-prof-subcard {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(10, 20, 15, 0.06);
  box-shadow: var(--shadow);
  padding: 12px 14px 14px;
}

@media (max-width: 960px) {
  .fw-prof-grid--3,
  .fw-prof-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Stat strip ===== */
.fw-prof-stat-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.s-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(10, 20, 15, 0.06);
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.s-title {
  color: var(--muted);
  font-size: 0.75rem;
}

.s-value {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green);
}

@media (max-width: 960px) {
  .fw-prof-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Tournament modules ===== */
.prof-tournament-list {
  display: grid;
  gap: 10px;
}

.prof-tournament-item {
  border-radius: 16px;
  border: 1px solid rgba(10, 20, 15, 0.06);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.prof-tournament-header {
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: linear-gradient(180deg, #ffffff, #fbfbf4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.prof-tournament-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.prof-tournament-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.prof-tournament-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.prof-tournament-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fw-prof-pill--position {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.45);
}

.fw-prof-pill--score {
  background: rgba(11, 61, 46, 0.04);
  border-color: rgba(11, 61, 46, 0.2);
}

.prof-tournament-body {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(10, 20, 15, 0.06);
  display: none;
}

.prof-tournament-item.is-expanded .prof-tournament-body {
  display: block;
}

.prof-tournament-round-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 150px;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.82rem;
}

.prof-tournament-round-row .round-label {
  font-weight: 600;
}

.prof-tournament-round-row .round-meta {
  color: var(--muted);
}

.prof-tournament-round-row .round-extra a {
  font-size: 0.8rem;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .prof-tournament-round-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Achievements ===== */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.badge {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(10, 20, 15, 0.15);
}

.badge .icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.badge .b-title {
  font-weight: 700;
  color: var(--ink);
}

.badge .b-sub {
  font-size: 0.78rem;
}

.badge.earned {
  border-style: solid;
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff, #fbf7eb);
}

@media (max-width: 960px) {
  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== WIP targets & misc ===== */
.fw-prof-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.fw-prof-wip-target {
  margin-top: 8px;
  min-height: 60px;
  border-radius: 12px;
  border: 1px dashed rgba(10, 20, 15, 0.12);
  background: rgba(249, 250, 251, 0.7);
}

/* canvas default */
canvas {
  width: 100%;
}

/* Responsive hero collapse */
@media (max-width: 960px) {
  .fw-prof-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .fw-prof-hero::after {
    inset-inline: 16px;
  }

  .fw-prof-hero-right {
    align-items: flex-start;
  }

  .fw-prof-hero-highlight {
    text-align: left;
  }
}

/* ===========================================================
   Rounds WIP – premium expandable cards
=========================================================== */

.fw-round-history {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.fw-round-history__loading,
.fw-round-history__empty,
.fw-round-history__error {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(10, 20, 15, 0.16);
  background: rgba(249, 250, 251, 0.7);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Card */
.fw-round-card {
  border-radius: 18px;
  border: 1px solid rgba(10, 20, 15, 0.06);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  outline: none;
  transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fw-round-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(12, 23, 18, 0.12);
  border-color: rgba(212, 175, 55, 0.36);
}

.fw-round-card:focus-visible {
  box-shadow: 0 0 0 4px var(--ring), 0 16px 40px rgba(12, 23, 18, 0.12);
  border-color: rgba(212, 175, 55, 0.6);
}

/* Top */
.fw-round-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 16px 12px;
  background:
    radial-gradient(900px 260px at 0% 0%, rgba(212,175,55,0.15), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbfbf4);
  border-bottom: 1px solid rgba(10, 20, 15, 0.06);

  /* Integrated actions live inside header */
  position: relative;
}

.fw-round-left {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.fw-round-date {
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fw-round-course {
  font-size: 1.05rem;
  font-weight: 850;
  color: #111827;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fw-round-sub {
  font-size: 0.84rem;
  color: var(--muted);
}

.fw-round-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fw-round-scorebox {
  border-radius: 14px;
  padding: 9px 11px;
  width: 64px;
  text-align: right;
  background: linear-gradient(180deg, #ffffff, #fbf7eb);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

/* If round includes a Hole-in-One, give the scorebox a premium gold accent */
.fw-round-card.has-hio .fw-round-scorebox{
  background:
    radial-gradient(160px 70px at 30% 20%, rgba(255,255,255,0.70), transparent 60%),
    linear-gradient(135deg, rgba(212,175,55,0.55), rgba(212,175,55,0.20));
  border: 1px solid rgba(212,175,55,0.70);
  box-shadow:
    inset 0 0 0 1px rgba(212,175,55,0.35),
    0 10px 22px rgba(0,0,0,0.10);
}
.fw-round-card.has-hio .fw-round-score{
  color: #0b3d2e;
}

.fw-round-score {
  font-size: 1.45rem;
  font-weight: 950;
  color: var(--green);
  line-height: 1;
}

.fw-round-tp {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 850;
  color: var(--gold-900);
  letter-spacing: 0.01em;
}

.fw-round-tp.is-muted {
  color: #9ca3af;
  font-weight: 650;
}

/* -----------------------------------------------------------
   Integrated actions: Expand / Edit (desktop only)
   - smaller, slicker, not over-bold
   - no "pencil" overlap (single clip-path)
----------------------------------------------------------- */
.fw-round-actionbar{
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 6;
}

.fw-round-action{
  height: 22px;                 /* ~30% shorter vs prior */
  padding: 0 14px;
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 600;             /* un-bold */
  font-size: 0.78rem;
  letter-spacing: 0.015em;

  border: 1px solid rgba(10, 20, 15, 0.14);
  color: #f9fafb;
  text-decoration: none;
  cursor: pointer;

  background: rgba(11, 61, 46, 0.92);
  box-shadow: 0 10px 22px rgba(12, 23, 18, 0.10);

  /* sharp angled ends without pseudo elements */
  clip-path: polygon(
    10px 0%,
    calc(100% - 10px) 0%,
    100% 50%,
    calc(100% - 10px) 100%,
    10px 100%,
    0% 50%
  );

  transition: transform 0.12s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.fw-round-action:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(12, 23, 18, 0.12);
}

.fw-round-action:active{
  transform: translateY(0.5px);
}

.fw-round-action--edit{
  background: rgba(212, 175, 55, 0.95);
  color: #102019;
  border-color: rgba(184, 137, 42, 0.45);
}

/* Hide integrated actions on mobile (mobile uses header -> modal) */
@media (max-width: 720px){
  .fw-round-actionbar{ display: none; }
  .fw-round-card__top{ padding-bottom: 12px; cursor: pointer; }
  .fw-round-card__top:active{ filter: brightness(0.99); }
}

/* Legacy handle styles kept (harmless if markup is gone) */
.fw-round-handle-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(10, 20, 15, 0.06);
  background: linear-gradient(180deg, #ffffff, #fbfbf4);
}

.fw-round-handle {
  width: min(32%, 260px);
  min-width: 180px;
  border: 1px solid rgba(11, 61, 46, 0.22);
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.95), rgba(20, 92, 63, 0.92));
  color: #f9fafb;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 750;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(12, 23, 18, 0.12);
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.fw-round-handle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(12, 23, 18, 0.14);
  filter: brightness(1.03);
}

.fw-round-handle:active {
  transform: translateY(0.5px);
}

@media (max-width: 720px) {
  .fw-round-handle-wrap { display: none; }
}

/* Expand container (desktop drawer) */
.fw-round-expand {
  max-height: 0px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.42s cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 0.20s ease,
    transform 0.20s ease;
  will-change: max-height, opacity, transform;
  background: #fff;
}

/* ✅ Reliable reveal: driven by aria-hidden state */
.fw-round-expand[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0px);
}

/* (Optional compatibility if JS still adds is-open) */
.fw-round-card.is-open .fw-round-expand {
  opacity: 1;
  transform: translateY(0px);
}

.fw-round-expand__inner {
  padding: 12px 16px 0;
}

/* Chips (only in expanded drawer on desktop; in modal on mobile) */
.fw-round-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.fw-rpill {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(249, 250, 251, 0.92);
  color: var(--green);
  font-size: 0.8rem;
}

.fw-rpill .k {
  color: var(--muted);
  font-size: 0.74rem;
}

.fw-rpill .v {
  font-weight: 850;
}

.fw-rpill.is-good {
  border-color: rgba(22, 101, 52, 0.25);
  background: rgba(236, 253, 243, 0.9);
  color: #166534;
}

/* Scorecard shell */
.fw-scorecard {
  border-radius: 16px;
  border: 1px solid rgba(10, 20, 15, 0.06);
  box-shadow: 0 10px 28px rgba(12, 23, 18, 0.06);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #fbfbf4);
}

.fw-scorecard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(10, 20, 15, 0.06);
}

.fw-scorecard__title {
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.02em;
}

.fw-scorecard__meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.fw-scorecard__tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.fw-scorecard table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.fw-scorecard th,
.fw-scorecard td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(10, 20, 15, 0.06);
  text-align: center;
  font-size: 0.82rem;
  white-space: nowrap;
}

.fw-scorecard th {
  background: linear-gradient(180deg, #ffffff, #fbf7eb);
  color: #111827;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.fw-scorecard td.is-left,
.fw-scorecard th.is-left {
  text-align: left;
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 2;
  border-right: 1px solid rgba(10, 20, 15, 0.06);
}

.fw-scorecard th.is-left {
  background: linear-gradient(180deg, #ffffff, #fbf7eb);
  z-index: 3;
}

.fw-scorecard .muted {
  color: var(--muted);
  font-weight: 650;
}

.fw-scorecard .strong {
  font-weight: 900;
  color: var(--green);
}

.fw-scorecard__footer {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(10, 20, 15, 0.06);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Notes */
.fw-round-notes {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(10, 20, 15, 0.06);
  background: rgba(249, 250, 251, 0.75);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Responsive for top grid */
@media (max-width: 560px) {
  .fw-round-card__top { gap: 10px; padding: 12px 12px 10px; }
  .fw-round-course { font-size: 1.0rem; }
  .fw-round-scorebox { width: 58px; padding: 8px 10px; }
}
/* ===========================================================
   Mobile modal (scorecard)
=========================================================== */

.fw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 18px;
  animation: fwFadeIn 0.18s ease both;
}

@keyframes fwFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fw-modal {
  width: min(980px, 96vw);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0,0,0,0.22);
  border: 1px solid rgba(212, 175, 55, 0.35);
  transform: translateY(6px);
  animation: fwSlideUp 0.2s ease both;
}

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

.fw-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background:
    radial-gradient(900px 260px at 0% 0%, rgba(212,175,55,0.16), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbfbf4);
  border-bottom: 1px solid rgba(10, 20, 15, 0.08);
}

.fw-modal__title {
  font-weight: 900;
  color: var(--green);
}

.fw-modal__close {
  border-radius: 999px;
  border: 1px solid rgba(10, 20, 15, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--green);
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(12, 23, 18, 0.08);
}

.fw-modal__body {
  overflow: auto;
  max-height: calc(88vh - 58px);
  padding: 12px 14px 16px;
  background: #fff;
}

/* Subline layout: meta + tab inline (saves space) */
.fw-round-subline{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Leaning rectangle tab */
.fw-round-tab{
  height: 22px;
  padding: 0 12px;
  border: 1px solid rgba(11, 61, 46, 0.22);
  background: rgba(11, 61, 46, 0.92);
  color: #f9fafb;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;

  /* the lean */
  transform: skewX(-18deg);
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(12, 23, 18, 0.10);
}

.fw-round-tab > span{
  display: inline-block;
  transform: skewX(18deg); /* unskew text */
}

.fw-round-tab:hover{
  filter: brightness(1.03);
  transform: skewX(-18deg) translateY(-1px);
}

.fw-round-tab:active{
  transform: skewX(-18deg) translateY(0.5px);
}

/* Mobile: no tab (mobile uses header → modal) */
@media (max-width: 720px){
  .fw-round-tab{ display: none; }
}

.fw-round-chiprow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fw-round-chiprow-left{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fw-round-link{
  font-size: 0.82rem;
  color: rgba(11, 61, 46, 0.92);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
}

.fw-round-link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 1;
}

/* Premium scorecard: softer hierarchy, less shouting */
.fw-scorecard{
  border-radius: 18px;
  border: 1px solid rgba(10, 20, 15, 0.06);
  box-shadow: 0 16px 40px rgba(12, 23, 18, 0.07);
  background: #fff;
}

.fw-scorecard__head{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(10, 20, 15, 0.06);
  background:
    radial-gradient(900px 260px at 0% 0%, rgba(212,175,55,0.14), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbfbf4);
}

.fw-scorecard__title{
  font-weight: 750;
  letter-spacing: 0.01em;
}

.fw-scorecard__meta{
  font-size: 0.78rem;
  opacity: 0.85;
}

/* Table: lighter headers, clearer rows, subtle zebra */
.fw-scorecard table{
  min-width: 980px;
}

.fw-scorecard th{
  font-weight: 650;         /* down from heavy */
  font-size: 0.70rem;
  text-transform: none;     /* less shouty */
  letter-spacing: 0.02em;
  color: rgba(17,24,39,0.78);
  background: rgba(250, 247, 240, 0.55);
}

.fw-scorecard td{
  font-size: 0.82rem;
  color: rgba(17,24,39,0.92);
}

.fw-scorecard tbody tr:nth-child(odd) td{
  background: rgba(249, 250, 251, 0.55);
}

.fw-scorecard td.is-left,
.fw-scorecard th.is-left{
  font-weight: 650;
  color: rgba(17,24,39,0.78);
  background: #fff;
}

/* Total column should feel “special”, not just bold everywhere */
.fw-scorecard td.strong{
  font-weight: 750;
  color: var(--green);
  background: transparent;
}

.fw-scorecard td.strong.is-totalkey{
  background: rgba(236, 253, 243, 0.60);
}

.fw-scorecard__footer{
  font-size: 0.78rem;
  opacity: 0.85;
  padding: 10px 14px 12px;
}


/* Emphasis rows: Par + Strokes (focus without heavy fill) */
.fw-scorecard tr.is-key td{
  font-weight: 700;
  color: rgba(17,24,39,0.95);
}

.fw-scorecard tr.is-key th.is-left{
  font-weight: 750;
  color: rgba(17,24,39,0.82);
}

/* Keep only the TOTAL cell as the subtle highlight anchor */
.fw-scorecard tr.is-key td.strong.is-totalkey{
  background: rgba(236, 253, 243, 0.70);
  color: var(--green);
}
/* Micro cue between 9 and 10 (Out/In divider) */
.fw-scorecard th:nth-child(11),
.fw-scorecard td:nth-child(11){
  border-left: 2px solid rgba(10, 20, 15, 0.08);
  padding-left: 14px;
}

.fw-scorecard th:nth-child(10),
.fw-scorecard td:nth-child(10){
  padding-right: 14px;
}

.fw-round-par{
  font-size: 0.86em;
  font-weight: 600;
  color: rgba(17,24,39,0.60);
  margin-left: 6px;
}


/* Missing / yes / HIO cells */
.fw-scorecard td.is-miss{
  opacity: 0.45;
}

.fw-scorecard td.is-yes{
  color: rgba(11, 61, 46, 0.92);
  font-weight: 650;
}


/* Outcome markers (strokes vs par): clear shape language */
.fw-scorecard td.is-birdie,
.fw-scorecard td.is-eagle,
.fw-scorecard td.is-bogey,
.fw-scorecard td.is-double{
  position: relative;
  font-weight: 750;
}

/* Base pseudo for all shapes */
.fw-scorecard td.is-birdie::before,
.fw-scorecard td.is-eagle::before,
.fw-scorecard td.is-bogey::before,
.fw-scorecard td.is-double::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25px;
  height: 25px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.9;
}

/* Inner outline for double outcomes */
.fw-scorecard td.is-eagle::after,
.fw-scorecard td.is-double::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 19px;          /* smaller to create gap */
  height: 19px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.9;
}

/* Birdie: single circle */
.fw-scorecard td.is-birdie::before{
  border-radius: 999px;
  border: 2px solid rgba(11, 61, 46, 0.55);
}

/* Eagle or better: double circle */
.fw-scorecard td.is-eagle::before,
.fw-scorecard td.is-eagle::after{
  border-radius: 999px;
  border: 2px solid rgba(11, 61, 46, 0.65);
}

/* Bogey: single square */
.fw-scorecard td.is-bogey::before{
  border-radius: 5px;
  border: 2px solid rgba(212, 175, 55, 0.65);
}

/* Double bogey+: double square */
.fw-scorecard td.is-double::before,
.fw-scorecard td.is-double::after{
  border-radius: 5px;
  border: 2px solid rgba(212, 175, 55, 0.72);
}

.fw-scorecard td.is-hio{
  position: relative;
  font-weight: 900;
  color: #0b3d2e;
  background:
    radial-gradient(220px 90px at 30% 20%, rgba(255,255,255,0.70), transparent 60%),
    linear-gradient(135deg, rgba(212,175,55,0.45), rgba(212,175,55,0.16));
  box-shadow:
    inset 0 0 0 1px rgba(212,175,55,0.60),
    inset 0 0 18px rgba(212,175,55,0.22),
    0 8px 18px rgba(0,0,0,0.06);
}

.fw-scorecard td.is-hio::before{ display:none; }

.fw-scorecard td.is-hio::after{
  content: "✦";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.72rem;
  color: rgba(184, 137, 42, 0.95);
  opacity: 0.9;
}

/* Month divider between round cards */
.fw-round-month-divider{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 2px;
  color: rgba(17,24,39,0.58);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fw-round-month-divider::before,
.fw-round-month-divider::after{
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(10, 20, 15, 0.08);
}

.fw-round-month-divider > span{
  padding: 0 6px;
  background: transparent;
}

/* Pills: missing value */
.fw-rpill .v.is-miss{
  opacity: 0.45;
}

.fw-scorecard td.is-hio::before,

.fw-scorecard td.is-hio{
  position: relative;
  font-weight: 900;
  color: #0b3d2e;
  background:
    radial-gradient(220px 90px at 30% 20%, rgba(255,255,255,0.70), transparent 60%),
    linear-gradient(135deg, rgba(212,175,55,0.45), rgba(212,175,55,0.16));
  box-shadow:
    inset 0 0 0 1px rgba(212,175,55,0.60),
    inset 0 0 18px rgba(212,175,55,0.22),
    0 8px 18px rgba(0,0,0,0.06);
}

.fw-scorecard td.is-hio::before{ display:none; }

.fw-scorecard td.is-hio::after{ pointer-events:none; }


/* Mobile: remove horizontal padding from panels */
@media (max-width: 720px){
  .fw-prof-panel{ padding-left:0 !important; padding-right:0 !important; }
}

@media (max-width: 560px){
  .fw-round-card__top{
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .fw-round-right{
    align-self: flex-start;
  }
}


/* Rounds filters (replaces old WIP sub text) */
.fw-round-filters{
  margin-left: auto;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.fw-round-filter{
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 20, 15, 0.08);
  background: rgba(249, 250, 251, 0.75);
  box-shadow: 0 8px 18px rgba(12, 23, 18, 0.05);
}

.fw-round-filter .k{
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(17,24,39,0.55);
}

.fw-round-select{
  border: none;
  background: transparent;
  color: rgba(11, 61, 46, 0.95);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.fw-round-select:focus-visible{
  outline: 3px solid var(--ring);
  border-radius: 10px;
}

@media (max-width: 720px){
  .fw-round-filters{
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

/* ---- summary.css (standalone; profile styles inlined) ---- */

/* /public/css/user/my-rounds.css */

/* NOTE:
   Keeping your file intact and only adding/adjusting what you requested.
   (If you truly do not want any imports, tell me and I will inline required styles,
   but I am not removing existing lines without you explicitly asking.)
*/

/* Page wrapper tweaks */
.fw-myrounds-page.container {
  padding-top: 18px;
  padding-bottom: 40px;
}

.fw-myrounds-toolbar {
  margin-top: 14px;
}

.fw-myrounds-list {
  margin-top: 14px;
  /* ✅ restore inner breathing room so cards don't touch edges */
  padding: 14px;
}

/* Handicap selection UI bits */
.fw-hcap-check {
  display: none;
}

.fw-hcap-tag {
  display: none;
}

.fw-round-card.is-selectmode .fw-hcap-check,
.fw-round-card.is-selectmode .fw-hcap-tag {
  display: block;
}

.fw-round-card.is-selectmode {
  position: relative;
  padding-left: 44px;
}

.fw-hcap-check {
  position: absolute;
  left: 14px;
  top: 16px;
}

.fw-hcap-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
}

.fw-hcap-tag {
  position: absolute;
  left: 44px;
  top: 14px;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fbf7eb;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #6b5a2b;
}

.fw-hcap-tag.is-ineligible {
  background: #f6f6f6;
  border-color: rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.55);
}

/* Mini actions (leave as you had them) */
.fw-round-private-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fw-round-mini {
  font-size: 0.82rem;
  color: rgba(0,0,0,0.65);
  text-decoration: none;
}

.fw-round-mini:hover {
  text-decoration: underline;
}

.fw-round-mini--danger {
  color: #b33a2f;
}

/* ===========================================================
   My Rounds – Header/layout tweaks
=========================================================== */

.fw-myrounds-hero {
  align-items: center;
}

.fw-myrounds-hero-left {
  /* ✅ My Rounds: title sits ABOVE identity row */
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.fw-myrounds-avatar {
  padding: 3px;
  flex-shrink: 0;
}

.fw-myrounds-avatar .fw-prof-avatar-img,
.fw-myrounds-avatar .fw-prof-avatar-initial {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.fw-myrounds-title {
  margin: 0;
  white-space: nowrap;
}

.fw-myrounds-stats {
  margin-top: 2px;
  gap: 14px;
}

.fw-myrounds-actions {
  flex-wrap: nowrap;
}

/* ✅ Header CTAs: prevent 2-line wrapping + ensure center alignment */
.fw-myrounds-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none; /* ✅ remove underline */
}

/* ✅ Ensure no underline on hover for CTA links */
.fw-myrounds-actions a.fw-myrounds-btn:hover {
  text-decoration: none;
}

/* Keep Calculate Handicap visually distinct without altering the other two */
.fw-myrounds-btn--handicap {
  /* no colour override unless your base styles already apply; keep as-is */
}

.fw-myrounds-btn--handicap:hover,
#btn-handicap:hover{
  filter: brightness(1.03);
  transform: translateY(-0.5px);
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.18);
}

.fw-myrounds-btn--handicap:active,
#btn-handicap:active{
  transform: translateY(0.5px);
}

@media (max-width: 960px) {
  .fw-myrounds-actions {
    flex-wrap: wrap;
  }
}

/* ===========================================================
   Filters – compact, single-row mobile + active colour cue
=========================================================== */

.fw-myrounds-toolbar {
  padding: 10px 12px 12px;
}

.fw-myrounds-filters {
  width: 100%;
  justify-content: flex-start;
}

.fw-round-filter.is-active {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(180deg, #ffffff, #fbf7eb);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.10);
}

@media (max-width: 640px) {
  .fw-myrounds-hero {
    padding: 16px 16px;
  }

  .fw-prof-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .fw-myrounds-hero-right {
    align-items: stretch;
    gap: 10px;
  }

  /* ✅ Mobile CTAs:
     Profile + Add round on one row
     Calculate handicap full width underneath
  */
  .fw-myrounds-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .fw-myrounds-btn--handicap {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }

  /* Filters in one row (compact) */
  .fw-myrounds-toolbar {
    padding: 10px 10px 12px;
  }

  .fw-myrounds-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .fw-round-filter {
    padding: 6px 8px;
    justify-content: center;
    gap: 6px;
  }

  .fw-round-filter .k {
    display: none;
  }

  .fw-round-select {
    width: 100%;
    text-align: center;
    font-size: 0.80rem;
  }

  /* ===========================================================
     Mobile round card actions: stacked icon buttons BETWEEN left and right
  =========================================================== */

  /* Hide the desktop text actions on mobile */
  .fw-round-private-actions {
    display: none !important;
  }

  /* Show the mid action stack */
  .fw-round-mid-actions {
    display: flex !important;
  }
}

/* Default hidden (desktop) */
.fw-round-mid-actions {
  display: none;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
}

.fw-round-iconbtn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}

.fw-round-iconbtn svg {
  width: 16px;
  height: 16px;
}

.fw-round-iconbtn--danger {
  border-color: rgba(179, 58, 47, 0.30);
}

/* -----------------------------------------------------------
   Summary page overrides (My Rounds)
----------------------------------------------------------- */

/* Ensure list card keeps inner padding so cards don't sit flush */
.fw-myrounds-list { padding: 14px; }
.fw-myrounds-toolbar { padding: 12px 12px 14px; }

/* Header: avatar sits beside stats under title */
.fw-myrounds-identity-row { display:flex; align-items:center; gap:14px; min-width:0; }
.fw-myrounds-avatar { flex: 0 0 auto; }
.fw-myrounds-avatar.fw-prof-avatar-ring { padding: 3px; }
.fw-myrounds-avatar .fw-prof-avatar-img,
.fw-myrounds-avatar .fw-prof-avatar-initial { width: 64px; height: 64px; }

/* CTA buttons: no underline, centered text */
.fw-prof-hero-actions .fw-prof-btn { text-decoration: none; justify-content:center; }
.fw-prof-hero-actions .fw-prof-btn:hover { text-decoration: none; }

/* Make Profile CTA more visible */
.fw-prof-btn--ghost { background: rgba(255,255,255,0.95); border-color: rgba(11,61,46,0.24); }

/* Calculate handicap: gold */
.fw-myrounds-btn--handicap,
#btn-handicap,
.fw-btn-handicap {
  background: linear-gradient(135deg, #d4af37, #b8892a) !important;
  border-color: rgba(184, 137, 42, 0.65) !important;
  color: #102019 !important;
}

/* Filters: active cue */
.fw-round-filter.is-active {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(180deg, #ffffff, #fbf7eb);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.10);
}

/* Round header: prevent wrapping */
.fw-round-course, .fw-round-sub { white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }

/* Actions to the RIGHT of fw-round-right */
.fw-round-right { display:flex; align-items:center; gap:10px; }
.fw-round-actions-right { display:flex; gap:8px; align-items:center; }
.fw-round-iconbtn{
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(10, 20, 15, 0.12);
  background: rgba(255,255,255,0.92);
  display:grid;
  place-items:center;
  cursor:pointer;
  text-decoration:none;
  box-shadow: 0 10px 18px rgba(12, 23, 18, 0.06);
}
.fw-round-iconbtn svg{ width:16px; height:16px; }
.fw-round-iconbtn--danger{ border-color: rgba(185, 28, 28, 0.20); color:#991b1b; }

/* Mobile: two CTAs on top row, handicap full width below */
@media (max-width: 640px){
  .fw-prof-hero-actions{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:10px;
    width:100%;
  }
  .fw-prof-hero-actions .fw-btn-handicap{
    grid-column: 1 / -1;
    width:100%;
  }
  .fw-round-filters{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:8px;
  }
  .fw-round-filter .k{ display:none; }
  .fw-round-select{ width:100%; text-align:center; }
}



/* ===========================================================
   My Rounds – Mobile action stack
   - Edit/Delete stacked next to scorebox
   - Remove expand/collapse chevron on mobile (header tap opens modal)
=========================================================== */
@media (max-width: 720px){
  .fw-round-actions-right{
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
  }
  .fw-round-actions-right [data-round-toggle]{
    display: none !important;
  }
}