/* SoccerWork — Main Stylesheet */

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

:root {
  --green:      #1a7a3c;
  --green-dark: #145f30;
  --green-light:#e8f5ed;
  --dark:       #1e1e2e;
  --gray:       #6b7280;
  --gray-light: #f3f4f6;
  --white:      #ffffff;
  --border:     #e5e7eb;
  --radius:     8px;
  --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--white);
  padding: .55rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; border: none; cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--green-dark); text-decoration: none; color: var(--white); }
.btn-outline {
  display: inline-flex; align-items: center;
  border: 2px solid var(--green); color: var(--green);
  padding: .5rem 1.2rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; cursor: pointer; background: transparent;
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--green); color: var(--white); text-decoration: none; }
.btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--dark); padding: .5rem .8rem; border-radius: var(--radius);
  font-size: .9rem;
}
.btn-ghost:hover { background: var(--gray-light); text-decoration: none; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; }
.btn-danger { background: #dc2626; color: #fff; border: none; border-radius: var(--radius); cursor: pointer; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--green); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark); color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1.5rem;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 700; color: var(--white);
  text-decoration: none; margin-right: auto;
}
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { color: rgba(255,255,255,.8); font-size: .9rem; }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-actions { display: flex; gap: .5rem; align-items: center; }
.nav-actions .btn-ghost { color: rgba(255,255,255,.85); }
.nav-actions .btn-ghost:hover { background: rgba(255,255,255,.1); }
.nav-actions .btn-outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.nav-actions .btn-outline:hover { background: rgba(255,255,255,.15); }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--dark) 0%, #2d3748 100%); color: var(--white); padding: 5rem 1.5rem; }
.hero-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.hero-sub { font-size: 1.15rem; opacity: .85; margin-bottom: 2rem; }
.hero-search { display: flex; gap: .5rem; max-width: 500px; margin: 0 auto; }
.hero-search input {
  flex: 1; padding: .65rem 1rem; border-radius: var(--radius);
  border: none; font-size: 1rem;
}
.hero-search input:focus { outline: 3px solid var(--green); }

/* ── Stats bar ── */
.stats-bar { background: var(--green); color: var(--white); padding: 1.5rem; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; }
.stat span { font-size: .9rem; opacity: .9; }

/* ── Sections ── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.recent-players { background: var(--gray-light); }
.recent-players h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }

/* ── Player Grid ── */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}
.player-card {
  background: var(--white); border-radius: 12px;
  padding: 1.25rem; text-align: center;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  display: block; color: inherit; text-decoration: none;
  position: relative; overflow: hidden;
}
.player-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.card-badges { display: flex; gap: .4rem; justify-content: center; margin-bottom: .5rem; flex-wrap: wrap; }
.card-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
}
.player-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.card-pos { font-size: .8rem; color: var(--green); font-weight: 600; margin-bottom: .2rem; }
.card-meta { font-size: .8rem; color: var(--gray); margin-bottom: .75rem; }

/* ── Score Bar ── */
.score-bar {
  height: 6px; background: var(--border); border-radius: 99px; overflow: hidden;
}
.score-bar.large { height: 12px; }
.score-fill {
  height: 100%; background: linear-gradient(90deg, var(--green), #4ade80);
  border-radius: 99px; transition: width .5s ease;
}

/* ── Badges ── */
.badge {
  display: inline-block; padding: .2rem .55rem;
  border-radius: 99px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
}
.badge-premium  { background: #fef3c7; color: #92400e; }
.badge-available{ background: #d1fae5; color: #065f46; }
.badge-unavailable { background: #fee2e2; color: #991b1b; }
.badge-verified { background: #dbeafe; color: #1e40af; }
.badge-exclusive{ background: #ede9fe; color: #5b21b6; }
.badge-active   { background: #d1fae5; color: #065f46; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-suspended{ background: #fee2e2; color: #991b1b; }

/* ── CTA Section ── */
.cta-section { background: var(--dark); color: var(--white); padding: 4rem 1.5rem; text-align: center; }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-inner h2 { font-size: 2rem; margin-bottom: .75rem; }
.cta-inner p { opacity: .8; margin-bottom: 1.5rem; }

/* ── Footer ── */
.site-footer { background: var(--gray-light); border-top: 1px solid var(--border); padding: 2rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.footer-brand p { font-size: .85rem; color: var(--gray); margin-top: .25rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: .85rem; color: var(--gray); }
.footer-links a:hover { color: var(--green); }
.lang-switcher { display: flex; gap: .5rem; align-items: center; font-size: .85rem; }
.lang-switcher a { color: var(--gray); }
.lang-switcher a.active { color: var(--green); font-weight: 700; }

/* ── Auth Pages ── */
.auth-page { display: flex; justify-content: center; padding: 3rem 1rem; min-height: 60vh; align-items: center; }
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-md); }
.auth-card h1 { margin-bottom: 1.25rem; font-size: 1.5rem; }
.auth-card label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 1rem; }
.auth-card label input, .auth-card label select {
  display: block; width: 100%; margin-top: .3rem;
  padding: .6rem .85rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1rem;
}
.auth-card label input:focus { outline: 2px solid var(--green); border-color: transparent; }
.auth-card fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.auth-card legend { font-weight: 600; font-size: .9rem; padding: 0 .4rem; }
.radio-label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin-bottom: .5rem; cursor: pointer; }
.radio-label input { width: auto; }
.auth-switch { margin-top: 1rem; text-align: center; font-size: .9rem; color: var(--gray); }
.error-list { background: #fee2e2; border: 1px solid #fca5a5; border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; }
.error-list li { font-size: .85rem; color: #991b1b; list-style: disc inside; }
.error-msg { background: #fee2e2; color: #991b1b; padding: .65rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }

/* ── Search Page ── */
.search-page { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }
.search-filters { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; height: fit-content; }
.search-filters h2 { font-size: 1rem; margin-bottom: 1rem; }
.search-filters label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .75rem; }
.search-filters input, .search-filters select {
  display: block; width: 100%; margin-top: .25rem;
  padding: .5rem .75rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .9rem;
}
.age-range { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; font-weight: 400; cursor: pointer; }
.checkbox-label input { width: auto; }
.search-filters .btn-primary { width: 100%; margin-top: .5rem; }
.result-count { font-size: .9rem; color: var(--gray); margin-bottom: 1rem; }
.no-results { text-align: center; padding: 2rem; color: var(--gray); }

/* ── Pagination ── */
.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pagination a {
  padding: .4rem .75rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .85rem; color: var(--dark);
}
.pagination a.active { background: var(--green); color: var(--white); border-color: var(--green); }
.pagination a:hover:not(.active) { background: var(--gray-light); text-decoration: none; }

/* ── Dashboard ── */
.dashboard-page { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.dashboard-page h1 { margin-bottom: .5rem; }
.role-badge { font-size: .9rem; color: var(--gray); margin-bottom: 1.5rem; }
.dash-section { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.dash-section h2 { margin-bottom: 1rem; }
.score-widget { margin-bottom: 1rem; }
.score-widget p { font-size: .85rem; color: var(--gray); margin-top: .4rem; }
.dash-player-list { list-style: none; }
.dash-player-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }

/* ── Profile Pages ── */
.profile-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.profile-hero {
  display: flex; gap: 2rem; align-items: flex-start;
  background: var(--dark); color: var(--white);
  border-radius: 16px; padding: 2rem; margin-bottom: 2rem;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-size: 1.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-avatar.large { width: 96px; height: 96px; font-size: 2rem; }
.profile-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.profile-hero-info h1 { font-size: 2rem; font-weight: 800; margin-bottom: .25rem; }
.profile-position { color: rgba(255,255,255,.7); font-size: 1rem; }
.profile-nationality { color: rgba(255,255,255,.6); font-size: .9rem; }
.profile-views { font-size: .8rem; opacity: .6; margin-top: .5rem; }
.agent-badge { font-size: .9rem; margin-top: .75rem; }
.agent-badge a { color: #86efac; }

.profile-body { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
.profile-main { }
.profile-sidebar { }

.profile-section { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem; }
.profile-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--dark); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.info-grid div { }
.info-grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); }
.info-grid dd { font-size: .95rem; font-weight: 600; }

.career-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.career-table th { background: var(--gray-light); text-align: left; padding: .5rem .75rem; font-size: .8rem; }
.career-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--border); }

.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.score-widget { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.score-widget h3 { font-size: .9rem; font-weight: 600; margin-bottom: .75rem; }
.contact-widget { background: var(--green-light); border-radius: 12px; padding: 1.25rem; text-align: center; }
.contact-widget .btn-primary { width: 100%; margin-bottom: .5rem; }
.contact-hint { font-size: .85rem; color: var(--gray); }

/* ── Club logo ── */
.club-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; background: var(--white); padding: 4px; flex-shrink: 0; }
.club-avatar { background: #1e40af; color: var(--white); }

/* ── Credits system ── */
.nav-credits {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
  padding: .3rem .7rem; border-radius: 99px; font-size: .82rem; font-weight: 700;
  text-decoration: none; transition: background .15s;
}
.nav-credits:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.nav-credits-low { background: rgba(220,38,38,.3); color: #fca5a5; }

.credits-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--green-light); color: var(--green);
  padding: .3rem .8rem; border-radius: 99px; font-size: .85rem; font-weight: 700;
  text-decoration: none;
}
.credits-pill-low { background: #fee2e2; color: #dc2626; }
.credits-pill-large {
  background: var(--green-light); color: var(--green);
  padding: .4rem 1rem; border-radius: 99px; font-size: 1rem; font-weight: 700;
}

/* Credits page */
.credits-page { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }

.credits-balance-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a2a 100%);
  border-radius: 16px; padding: 1.75rem 2rem; margin-bottom: 2rem; color: var(--white);
}
.credits-balance-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.credits-balance-amount { display: flex; align-items: baseline; gap: .5rem; }
.credits-icon   { font-size: 2rem; }
.credits-number { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.credits-label  { font-size: 1rem; opacity: .7; }
.credits-balance-meta p { font-size: .9rem; opacity: .8; }
.credits-low { color: #fca5a5 !important; opacity: 1 !important; margin-top: .35rem !important; }

.credits-uses { margin-bottom: 2rem; }
.credits-uses h2, .credits-packages h2, .credits-recent h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.credits-uses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: .75rem; }
.credit-use-card {
  display: flex; align-items: center; gap: .75rem;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: .85rem 1rem;
}
.credit-use-icon { font-size: 1.4rem; flex-shrink: 0; }
.credit-use-card strong { font-size: .88rem; display: block; }
.credit-use-card p { font-size: .75rem; color: var(--gray); margin: 0; }
.credit-use-cost {
  margin-left: auto; font-size: .9rem; font-weight: 800; color: var(--green);
  white-space: nowrap; flex-shrink: 0;
}

.packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 1rem; margin-bottom: 1rem; }
.package-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.5rem; text-align: center; position: relative; transition: box-shadow .15s;
}
.package-card:hover { box-shadow: var(--shadow-md); }
.package-featured { border-color: var(--green); border-width: 2px; }
.package-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-size: .7rem; font-weight: 700;
  padding: .2rem .75rem; border-radius: 99px; white-space: nowrap;
}
.package-name    { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); margin-bottom: .5rem; }
.package-credits { font-size: 2.5rem; font-weight: 800; color: var(--dark); line-height: 1; }
.package-credits span { font-size: .85rem; font-weight: 400; color: var(--gray); }
.package-price   { font-size: 1.4rem; font-weight: 700; color: var(--green); margin: .35rem 0 .15rem; }
.package-cpc     { font-size: .72rem; color: var(--gray); }
.credits-stripe-note { font-size: .82rem; color: var(--gray); text-align: center; margin-top: .5rem; }

/* Transaction list */
.txn-list { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.txn-row {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.txn-row:last-child { border-bottom: none; }
.txn-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.txn-info { flex: 1; }
.txn-info strong { font-size: .875rem; display: block; }
.txn-info span   { font-size: .78rem; color: var(--gray); }
.txn-right { text-align: right; flex-shrink: 0; }
.txn-amount  { font-size: 1rem; font-weight: 800; display: block; }
.txn-time    { font-size: .72rem; color: var(--gray); }
.txn-positive { color: var(--green); }
.txn-negative { color: #dc2626; }

/* Transaction table (history page) */
.txn-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.txn-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.txn-table th { background: var(--gray-light); text-align: left; padding: .65rem 1rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.txn-table td { padding: .65rem 1rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.txn-table tr:last-child td { border-bottom: none; }
.txn-date span { display: block; }
.txn-date .txn-time-small { font-size: .75rem; color: var(--gray); }
.txn-icon-small { margin-right: .3rem; }
.txn-amount-cell { font-size: .95rem; font-weight: 800; }

/* No credits box on profile */
.no-credits-box {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px;
  padding: 1.25rem; text-align: center;
}
.no-credits-icon { font-size: 2rem; margin-bottom: .5rem; }
.no-credits-box strong { display: block; font-size: .95rem; margin-bottom: .5rem; }
.no-credits-box p { font-size: .85rem; color: var(--gray); }

.credit-spent-note { font-size: .75rem; color: var(--green); margin-bottom: .5rem; font-weight: 600; }

/* Boost badge */
.badge-boost { background: #fef3c7; color: #92400e; }

/* ── Notification dot ── */
.notif-dot {
  display: inline-flex; align-items: center; justify-content: center;
  background: #dc2626; color: #fff; border-radius: 99px;
  font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px;
  padding: 0 4px; margin-left: .3rem; vertical-align: middle;
}

/* ── Notifications list ── */
.notif-list { display: flex; flex-direction: column; gap: 0; }
.notif-item {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-unread { background: #eff6ff; }
.notif-content { flex: 1; }
.notif-content strong { font-size: .9rem; }
.notif-content p { font-size: .82rem; color: var(--gray); margin-top: .15rem; }
.notif-time { font-size: .75rem; color: var(--gray); display: block; margin-top: .2rem; }

/* ── Roster invite card ── */
.roster-invite-card {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
  padding: 1.1rem; margin-bottom: .75rem; flex-wrap: wrap;
}
.roster-invite-club { font-size: 1rem; font-weight: 700; color: var(--dark); }
.roster-invite-msg { font-size: .85rem; color: var(--gray); margin-top: .35rem; font-style: italic; }
.roster-invite-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ── Roster search results ── */
.roster-results { display: flex; flex-direction: column; gap: .5rem; }
.roster-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  flex-wrap: wrap;
}
.roster-row-info { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; flex: 1; }
.roster-name { font-weight: 700; color: var(--dark); }

/* ── Verify card (club dashboard) ── */
.verify-card {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
  padding: 1rem 1.1rem; margin-bottom: .65rem; flex-wrap: wrap;
}
.verify-player-name { font-weight: 700; font-size: .95rem; color: var(--dark); }
.verify-card-actions { display: flex; gap: .4rem; flex-shrink: 0; align-self: center; }

/* ── Claim selected card ── */
.claim-selected-card {
  background: var(--green-light); border-radius: var(--radius); padding: 1rem;
  margin-bottom: .5rem;
}
.claim-club-name { font-size: 1.05rem; font-weight: 700; }
.claim-club-meta { font-size: .82rem; color: var(--gray); margin-top: .2rem; }

/* ── Physical Measurements (profile) ── */
.physical-measurements {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .25rem;
}
.phys-stat {
  background: var(--gray-light); border-radius: 10px;
  padding: .85rem 1.1rem; text-align: center; min-width: 110px;
}
.phys-stat-icon { font-size: 1.4rem; margin-bottom: .2rem; }
.phys-stat-val  { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.phys-stat-val small { font-size: .65rem; font-weight: 400; color: var(--gray); }
.phys-stat-label { font-size: .72rem; color: var(--gray); margin-top: .25rem; text-transform: uppercase; letter-spacing: .04em; }

/* Body composition bar */
.body-comp-bar {
  display: flex; height: 6px; border-radius: 99px; overflow: hidden;
  margin-top: .5rem; background: var(--border); gap: 0;
}
.body-comp-fat    { background: #fbbf24; border-radius: 99px 0 0 99px; }
.body-comp-muscle { background: #3b82f6; border-radius: 0 99px 99px 0; }

/* Attribute bars (profile) */
.attr-bars { }
.attr-bars-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; font-weight: 600; color: var(--dark);
  margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .04em;
}
.attr-bar-row {
  display: grid; grid-template-columns: 160px 1fr 36px;
  align-items: center; gap: .75rem; margin-bottom: .6rem;
}
.attr-bar-label { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.attr-grade { font-size: .72rem; font-weight: 700; }
.attr-bar-track { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.attr-bar-fill { height: 100%; border-radius: 99px; transition: width .6s ease; }
.attr-bar-num { font-size: .875rem; font-weight: 800; text-align: right; }

/* Attribute edit (edit form) */
.attr-edit-grid { display: flex; flex-direction: column; gap: .85rem; }
.attr-edit-row {
  display: grid; grid-template-columns: 200px 1fr;
  align-items: center; gap: 1rem;
  padding: .75rem 1rem; background: var(--gray-light); border-radius: 8px;
}
.attr-edit-label { display: flex; align-items: center; gap: .75rem; }
.attr-icon { font-size: 1.4rem; flex-shrink: 0; }
.attr-edit-label strong { display: block; font-size: .875rem; }
.attr-edit-label .field-hint { display: block; margin-top: .1rem; }
.attr-slider-wrap { display: flex; align-items: center; gap: .75rem; }
.attr-slider { flex: 1; -webkit-appearance: none; height: 6px; border-radius: 99px; background: var(--border); outline: none; cursor: pointer; }
.attr-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.attr-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--green); cursor: pointer; border: none; }
.attr-slider-val { font-size: 1.2rem; font-weight: 800; color: var(--green); min-width: 36px; text-align: center; }

/* ── Edit Tabs ── */
.edit-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.edit-tab {
  padding: .65rem 1.25rem; font-size: .9rem; font-weight: 600;
  color: var(--gray); text-decoration: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color .15s, border-color .15s;
}
.edit-tab:hover { color: var(--green); text-decoration: none; }
.edit-tab.active { color: var(--green); border-bottom-color: var(--green); }

/* Club search */
.club-search-wrap { position: relative; }
.club-search-box { position: relative; }
.club-selected-badge {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .4rem; font-size: .88rem; font-weight: 600;
}
.ms-item-propose { color: var(--green); font-weight: 600; border-top: 1px solid var(--border); }
.cv-country { font-size: .75rem; color: var(--gray); margin-left: .4rem; font-weight: 400; }
.minor-badge {
  font-size: .8rem; background: rgba(255,255,255,.12); border-radius: 6px;
  padding: .4rem .7rem; margin-top: .5rem; color: rgba(255,255,255,.85);
}
.notice-box {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius);
  padding: .75rem 1rem; font-size: .875rem; color: #1e40af;
}
.notice-box.notice-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.checklist { display: flex; flex-direction: column; gap: .4rem; margin-top: .25rem; }
.checklist-item { font-size: .875rem; color: var(--gray); padding: .3rem 0; }
.checklist-item.done { color: var(--green); font-weight: 500; }

.pos-secondary {
  display: inline-block; font-size: .7rem; font-weight: 700;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.8);
  padding: .15rem .45rem; border-radius: 99px; margin-left: .35rem;
}

/* ── Edit Profile Page ── */
.edit-page { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem; }
.edit-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .75rem; }
.edit-header h1 { font-size: 1.75rem; }
.edit-score { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.edit-score span { font-size: .9rem; white-space: nowrap; }
.edit-score .score-bar { flex: 1; min-width: 120px; }

.edit-section { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem; }
.edit-section h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.1rem; color: var(--dark); padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.edit-section h3 { font-size: .95rem; font-weight: 700; margin: 1rem 0 .75rem; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.edit-form label { display: block; font-size: .875rem; font-weight: 500; color: var(--dark); }
.edit-form label input,
.edit-form label select,
.edit-form label textarea {
  display: block; width: 100%; margin-top: .3rem;
  padding: .6rem .85rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .95rem; font-family: inherit;
  transition: border-color .15s;
}
.edit-form label input:focus,
.edit-form label select:focus,
.edit-form label textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,122,60,.1); }
.edit-form textarea { resize: vertical; min-height: 100px; }
.edit-form .checkbox-label input { width: auto; display: inline; margin-top: 0; }

.field-hint { font-size: .8rem; color: var(--gray); margin-top: .35rem; }
.field-hint a { color: var(--green); }

.edit-actions { display: flex; gap: .75rem; align-items: center; margin-top: .5rem; padding: 1.5rem 0 .5rem; }

.alert { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .9rem; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

/* Career history table in edit page */
/* Multi-select widget */
.form-group { margin-top: 1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
.field-hint-inline { font-size: .75rem; font-weight: 400; color: var(--gray); }

.multiselect-widget { position: relative; }
.ms-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .4rem; min-height: 0; }
.ms-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--green-light); color: var(--green);
  padding: .25rem .6rem; border-radius: 99px; font-size: .82rem; font-weight: 600;
}
.ms-tag button {
  background: none; border: none; cursor: pointer; color: var(--green);
  font-size: 1rem; line-height: 1; padding: 0; display: flex;
}
.ms-tag button:hover { color: #dc2626; }
.ms-search-wrap { }
.ms-search {
  width: 100%; padding: .6rem .85rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .95rem;
}
.ms-search:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,122,60,.1); }
@keyframes onAutoFillStart { from {} to {} }
.ms-search:-webkit-autofill { animation-name: onAutoFillStart; }
.ms-search:-webkit-autofill, .ms-search:-webkit-autofill:hover, .ms-search:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  background-color: white !important;
}
.ms-dropdown {
  position: absolute; z-index: 50; width: 100%;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  max-height: 220px; overflow-y: auto;
}
.ms-item { padding: .55rem .85rem; cursor: pointer; font-size: .9rem; }
.ms-item:hover { background: var(--green-light); color: var(--green); }

/* Free agent toggle */
.free-agent-toggle { font-size: .95rem; cursor: pointer; }
.free-agent-toggle input { width: auto; margin-right: .4rem; }

/* Career CV display in edit page */
.career-cv { display: flex; flex-direction: column; gap: 0; margin-bottom: 1rem; }
.cv-entry {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem; border-left: 3px solid var(--green);
  background: var(--gray-light); margin-bottom: .5rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.cv-entry-main { flex: 1; }
.cv-club { font-weight: 700; font-size: .95rem; }
.cv-period { font-size: .82rem; color: var(--gray); margin: .15rem 0; }
.cv-stats { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .25rem; }
.cv-stats span { font-size: .8rem; color: var(--dark); }
.cv-delete { margin-left: 1rem; flex-shrink: 0; }

/* Career period grid */
.career-period-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: .6rem;
}
.career-period-grid label { font-size: .78rem; font-weight: 500; }
.career-period-grid input, .career-period-grid select {
  display: block; width: 100%; margin-top: .25rem;
  padding: .45rem .6rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .85rem;
}
.career-period-grid input:focus, .career-period-grid select:focus { outline: none; border-color: var(--green); }

/* Overlap warning */
.overlap-warning {
  display: flex; align-items: center; gap: .5rem;
  background: #fef3c7; border: 1px solid #fcd34d; border-radius: var(--radius);
  padding: .6rem .85rem; font-size: .875rem; color: #92400e;
  margin: .75rem 0;
}

/* Edit modal */
.edit-modal-box {
  background: #fff; border-radius: 16px; padding: 0;
  width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.edit-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.edit-modal-header h3 { margin: 0; font-size: 1.05rem; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--gray); }
.modal-close:hover { color: #dc2626; }
#editCareerForm { padding: 1.25rem 1.5rem; }

.career-add-form { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.career-add-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: .6rem; margin-bottom: .85rem;
}
.career-wide { grid-column: 1; }
.career-add-grid label { font-size: .78rem; font-weight: 500; }
.career-add-grid input {
  display: block; width: 100%; margin-top: .25rem;
  padding: .45rem .6rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .85rem;
}
.career-add-grid input:focus { outline: none; border-color: var(--green); }

@media (max-width: 768px) {
  .search-page { grid-template-columns: 1fr; }
  .profile-body { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stats-inner { gap: 2rem; }
  .profile-hero { flex-direction: column; align-items: center; text-align: center; }
}
