/* ── Squad Manager — Base Styles ─────────────────────────────────────────── */

:root {
    --sm-nav-bg:      #0d1117;
    --sm-accent:      #3b82f6;
    --sm-accent-dark: #1d4ed8;
    --sm-sidebar-w:   220px;
    --sm-body-bg:     #f4f5f7;
    --sm-card-bg:     #ffffff;
    --sm-border:      rgba(0,0,0,.08);
    --sm-shadow-sm:   0 1px 6px rgba(0,0,0,.07);
    --sm-shadow-md:   0 4px 20px rgba(0,0,0,.12);
    --sm-radius:      .75rem;
    --sm-text-muted:  #6c757d;
    --hero-min-h:     140px;
}

body { background: var(--sm-body-bg); font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; }

/* ── Sidebar layout ──────────────────────────────────────────────────────── */
.sm-layout { display: flex; min-height: 100vh; }

.sm-sidebar {
    width: var(--sm-sidebar-w);
    min-width: var(--sm-sidebar-w);
    background: var(--sm-nav-bg);
    border-right: 1px solid rgba(255,255,255,.06);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    overflow-y: auto; z-index: 1030;
}

.sm-main { margin-left: var(--sm-sidebar-w); flex: 1; min-width: 0; }

/* ── Brand ───────────────────────────────────────────────────────────────── */
.sm-sidebar-brand {
    display: flex; align-items: center; gap: .7rem;
    padding: 1rem .9rem; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.sm-brand-icon { font-size: 1.4rem; color: var(--sm-accent); flex-shrink: 0; }
.sm-brand-name { font-size: .88rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.sm-brand-sub  { font-size: .63rem; color: rgba(255,255,255,.38); margin-top: .1rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── Age group picker ────────────────────────────────────────────────────── */
.sm-sidebar-ag { padding: .6rem .75rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.sm-ag-btn {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 500;
    padding: .35rem .65rem; border-radius: .4rem; width: 100%; text-align: left; transition: background .15s;
}
.sm-ag-btn:hover, .sm-ag-btn:focus { background: rgba(255,255,255,.13); color: #fff; outline: none; }

/* ── Nav links ───────────────────────────────────────────────────────────── */
.sm-sidebar-nav { flex: 1; padding: .5rem 0; }

.sm-nav-section {
    font-size: .6rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: rgba(255,255,255,.3); padding: .9rem 1rem .25rem;
}
.sm-nav-link {
    display: flex; align-items: center; gap: .6rem;
    padding: .42rem 1rem; font-size: .82rem;
    color: rgba(255,255,255,.65); text-decoration: none;
    border-left: 3px solid transparent; transition: color .12s, background .12s;
}
.sm-nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sm-nav-link--active {
    color: #fff; background: rgba(59,130,246,.18);
    border-left-color: var(--nav-accent, var(--sm-accent)); font-weight: 600;
}
.sm-nav-team { padding-left: 1.1rem; font-size: .8rem; }
.sm-team-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }

/* ── User block ──────────────────────────────────────────────────────────── */
.sm-sidebar-user { padding: .6rem .75rem .75rem; border-top: 1px solid rgba(255,255,255,.07); }
.sm-user-block { display: flex; align-items: center; gap: .65rem; }
.sm-user-initials {
    width: 32px; height: 32px; border-radius: 50%; background: var(--sm-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sm-user-info { flex: 1; min-width: 0; }
.sm-user-name { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-user-role { font-size: .65rem; color: rgba(255,255,255,.38); text-transform: capitalize; }
.sm-logout-btn { color: rgba(255,255,255,.4); text-decoration: none; font-size: 1rem; transition: color .15s; flex-shrink: 0; }
.sm-logout-btn:hover { color: #f87171; }
.sm-role-badge { background: var(--sm-accent); font-size: .62rem; text-transform: capitalize; vertical-align: middle; }

/* ── Page hero banner ────────────────────────────────────────────────────── */
.sm-page-hero {
    background: linear-gradient(135deg, var(--hero-dark, #0d1220) 0%, var(--hero-mid, #1B3A6B) 60%, var(--hero-bright, #0d1220) 100%);
    border-radius: var(--sm-radius); padding: 2rem; color: #fff;
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    margin-bottom: 1.5rem; position: relative; overflow: hidden; min-height: var(--hero-min-h);
}
.sm-page-hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, var(--hero-accent, rgba(59,130,246,.12)) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.sm-page-hero > * { position: relative; z-index: 1; }
.sm-page-hero-icon {
    width: 125px;
    height: 125px;
    font-size: 125px;
    line-height: 125px;
    color: var(--hero-icon, rgba(255,255,255,.12));
    flex-shrink: 0;
}
.sm-page-hero-logo {
    width: 125px;
    height: 125px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    flex-shrink: 0;
}
.sm-page-hero-body { flex: 1; min-width: 0; }
.sm-page-hero-title { font-size: 1.5rem; font-weight: 800; line-height: 1.1; margin: 0; }
.sm-page-hero-sub   { color: rgba(255,255,255,.5); font-size: .85rem; margin-top: .3rem; }
.sm-page-hero-actions { display: flex; gap: .5rem; flex-shrink: 0; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sm-page-hero .btn-outline-light { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.8); }
.sm-page-hero .btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); }

/* ── Stat tiles ──────────────────────────────────────────────────────────── */
.sm-stat-tile {
    background: var(--sm-card-bg); border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-sm); padding: 1.1rem 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    border-left: 4px solid var(--sm-accent);
}
.sm-stat-tile--green  { border-left-color: #22c55e; }
.sm-stat-tile--red    { border-left-color: #ef4444; }
.sm-stat-tile--orange { border-left-color: #f97316; }
.sm-stat-tile--purple { border-left-color: #a855f7; }
.sm-stat-icon         { font-size: 1.55rem; color: var(--sm-accent); flex-shrink: 0; }
.sm-stat-icon--green  { color: #22c55e; }
.sm-stat-icon--red    { color: #ef4444; }
.sm-stat-icon--orange { color: #f97316; }
.sm-stat-icon--purple { color: #a855f7; }
.sm-stat-value { font-size: 1.65rem; font-weight: 800; line-height: 1; color: #111; }
.sm-stat-label { font-size: .7rem; color: var(--sm-text-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card { border: none; border-radius: var(--sm-radius); box-shadow: var(--sm-shadow-sm); }
.card-header { background: transparent; border-bottom: 1px solid var(--sm-border); font-weight: 600; padding: .85rem 1.25rem; }
.portal-card {
    background: var(--sm-card-bg); border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-sm); border: 1px solid var(--sm-border); overflow: hidden; transition: box-shadow .2s;
}
.portal-card:hover { box-shadow: var(--sm-shadow-md); }
.portal-card .card-header-custom { padding: .9rem 1.25rem .75rem; border-bottom: 1px solid var(--sm-border); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.portal-card .card-header-custom h5, .portal-card .card-header-custom h6 { margin: 0; font-weight: 700; }
.portal-card .card-body-custom { padding: 1.25rem; }

/* ── Player cards (squad list) ───────────────────────────────────────────── */
.player-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: .75rem;
}
.player-card-wrap { position: relative; }
.player-compare-check {
    position: absolute;
    bottom: .45rem;
    right: .5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .5rem;
    border-radius: 999px;
    background: rgba(59,130,246,.12);
    border: 1px solid rgba(59,130,246,.35);
    box-shadow: var(--sm-shadow-sm);
    font-size: .65rem;
    font-weight: 600;
    color: #1d4ed8;
}
.player-compare-check input { margin: 0; }
.player-compare-check input:disabled { cursor: not-allowed; opacity: .55; }
.player-card { z-index: 1; }
.player-card {
    background: var(--sm-card-bg); border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-sm); border: 1px solid var(--sm-border);
    padding: .85rem 1rem; display: flex; align-items: center; gap: .85rem;
    text-decoration: none; color: inherit; transition: box-shadow .15s, transform .12s; position: relative;
}
.player-card:hover { box-shadow: var(--sm-shadow-md); transform: translateY(-1px); color: inherit; }
.player-card-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.player-card-body { flex: 1; min-width: 0; }
.player-card-name { font-size: .88rem; font-weight: 700; color: #1a1f2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .2rem; }
.player-card-meta { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-bottom: .2rem; }
.player-card-date { font-size: .7rem; color: #9ca3af; }
.player-card-score { font-size: 1.1rem; font-weight: 800; flex-shrink: 0; width: 36px; text-align: center; line-height: 1; }

.team-pill {
    display: inline-flex; align-items: center;
    padding: .12em .5em; border-radius: 20px;
    font-size: .68rem; font-weight: 700; color: #fff; line-height: 1.4;
}
.player-card-pos-text { font-size: .7rem; color: var(--sm-text-muted); }
.sm-compare-count {
    font-size: .7rem;
    color: rgba(255,255,255,.7);
    font-weight: 600;
}
.sm-compare-popup {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #111827;
    color: #fff;
    padding: .6rem .9rem;
    border-radius: .6rem;
    font-size: .8rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease;
    z-index: 1080;
    pointer-events: none;
}
.sm-compare-popup.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Position group headers ──────────────────────────────────────────────── */
.position-group { margin-bottom: 1.5rem; }
.position-group-header {
    display: flex; align-items: center; gap: .6rem;
    padding: .45rem .85rem; background: #1a1f2e;
    border-radius: .45rem; color: rgba(255,255,255,.85);
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .09em; margin-bottom: .75rem;
}
.position-group-header .pos-count {
    background: rgba(255,255,255,.15); border-radius: 20px;
    padding: .1em .55em; font-size: .68rem;
}

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.sm-filter-bar {
    background: var(--sm-card-bg); border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-sm); padding: .85rem 1.25rem;
    margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.sm-filter-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--sm-text-muted); white-space: nowrap; }
.sm-search-wrap { flex: 1; min-width: 200px; position: relative; }
.sm-search-wrap .bi { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: .9rem; pointer-events: none; }
.sm-search-wrap input { padding-left: 2.1rem; border-radius: .4rem; border: 1px solid #dee2e6; font-size: .85rem; height: 36px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.sm-search-wrap input:focus { outline: none; border-color: var(--sm-accent); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }

.sm-toggle-btn {
    display: inline-flex; align-items: center;
    padding: .28rem .7rem; border-radius: .35rem;
    font-size: .78rem; font-weight: 500;
    border: 1px solid #dee2e6; background: transparent; color: #4b5563;
    cursor: pointer; transition: all .12s; text-decoration: none;
}
.sm-toggle-btn:hover { background: #f3f4f6; color: #111; }
.sm-toggle-btn.active { background: var(--sm-accent); border-color: var(--sm-accent); color: #fff; font-weight: 600; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; padding: .65rem 1rem; }
.table td { vertical-align: middle; padding: .7rem 1rem; }
.table-dark th { color: rgba(255,255,255,.6) !important; }

/* Rounded tables (global) */
.table-responsive {
    border-radius: var(--sm-radius);
    overflow-x: auto;
    overflow-y: visible;
}
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--sm-radius);
}

/* Admin tables: rounded corners + sticky headers */
.sm-admin .table-responsive > .table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background-clip: padding-box;
}
.sm-admin .table thead.table-dark th {
    background-color: #212529;
    color: rgba(255,255,255,.6) !important;
}
.sm-admin .table thead:not(.table-dark) th {
    background-color: #f8f9fa;
}

/* Two-row sticky headers (position weights) */
.sm-admin #weightsTable thead tr:nth-child(1) th {
    top: 0;
    z-index: 6;
    height: 44px;
    background-color: #212529;
    color: rgba(255,255,255,.6) !important;
}
.sm-admin #weightsTable thead tr:nth-child(2) th {
    top: 44px;
    z-index: 5;
    background-color: #212529;
    color: rgba(255,255,255,.6) !important;
}

/* Force sticky header on age-group-skills */
.sm-admin #skillsTable thead th {
    position: sticky;
    top: 0;
    z-index: 7;
    background-color: #212529 !important;
    color: rgba(255,255,255,.6) !important;
}
.sm-compare-win {
    background: rgba(34,197,94,.22);
    border-left: 4px solid #22c55e;
    font-weight: 700;
}
.sm-compare-score {
    background: #111827 !important;
    color: #fff !important;
}
.sm-compare-win .sm-compare-score {
    background: #22c55e !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,.25);
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-label { font-weight: 500; font-size: .88rem; }

/* ── Skill bars ──────────────────────────────────────────────────────────── */
.progress { border-radius: .4rem; background: #e9ecef; }
.progress-bar { font-size: .7rem; font-weight: 600; border-radius: .4rem; }
.bg-sm-orange { background-color: #fd7e14 !important; color: #fff; }

/* ── Login ───────────────────────────────────────────────────────────────── */
.sm-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--sm-nav-bg); }
.sm-login-card { width: 100%; max-width: 400px; border-radius: 1rem; box-shadow: 0 8px 32px rgba(0,0,0,.35); }
.sm-login-logo { font-size: 2rem; color: var(--sm-accent); text-align: center; margin-bottom: .5rem; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.text-accent { color: var(--sm-accent) !important; }
.bg-accent   { background-color: var(--sm-accent) !important; }
.team-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }

/* ── Context banner ──────────────────────────────────────────────────────── */
.sm-context-banner { font-size: .85rem; position: sticky; top: 0; z-index: 100; }
.sm-context-banner .btn { font-size: .75rem; }

/* SVG icon base */
.sm-ico { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; }
.sm-svg { width: 2.2em; height: 2.2em; fill: currentColor; display: inline-block; vertical-align: -0.125em; }
.sm-team-ico { width: 1.8em; height: 1.8em; margin-right: .45rem; }
.sm-page-hero-icon.sm-svg { width: 5rem; height: 5rem; }
.sm-nav-link .sm-svg { width: 1.6em; height: 1.6em; margin-right: .4rem; }
.sm-ico-heatmap { color: #C9A059; }
.sm-ico-splinter { color: #59c9a5; }
.sm-ico-due { color: #C95959; }
.sm-ico-teams { color: #598FC9; }
.sm-ico-coaches { color: #AF59C9; }
.sm-ico-all { color: #59C9C8; }
.sm-ico-overview { color: #ffffff; }

/* Ensure tool icons match other nav icon sizes */
.sm-nav-link i,
.sm-nav-link .sm-svg {
    font-size: 1.6rem;
    width: 1.6em;
    height: 1.6em;
}

.team-squad-logo {
    width: 125px;
    height: 125px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    flex-shrink: 0;
}
.sm-stat-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    border: 2px solid transparent;
}

/* Squad overview cards */
.team-squad-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sm-shadow-sm);
    border: 1px solid #e5e7eb;
}
.team-squad-header {
    color: #fff;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-radius: var(--sm-radius);
    min-height: var(--hero-min-h);
    flex-wrap: wrap;
}
.team-squad-name { font-size: 1.2rem; font-weight: 800; }
.team-squad-sub { font-size: .85rem; opacity: .85; }
.team-squad-chips {
    padding: .75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    border-bottom: 1px solid #eef2f7;
}
.team-pos-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: .25rem .6rem;
    font-size: .75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.team-pos-chip strong {
    background: #10b981;
    color: #fff;
    border-radius: 999px;
    padding: .05rem .4rem;
    margin-left: .35rem;
    font-size: .7rem;
}
.team-squad-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
}
.team-squad-radar {
    min-height: 240px;
    display: flex;
    flex-direction: column;
}
.team-radar-canvas {
    width: 100% !important;
    max-height: 220px;
}
.team-squad-radar-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}
.team-radar-label { font-weight: 700; font-size: .85rem; }
.team-squad-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem .6rem;
    align-content: start;
}
.team-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    gap: .5rem;
}
.team-cat-name { color: #334155; }
@media (max-width: 992px) {
    .team-squad-body { grid-template-columns: 1fr; }
    .team-squad-scores { grid-template-columns: 1fr; }
}

/* Heatmap table */
.sm-heatmap-table th, .sm-heatmap-table td { font-size: .8rem; padding: .35rem .4rem; }
.sm-heatmap-table th:first-child, .sm-heatmap-table td:first-child { min-width: 140px; }
.sm-heatmap-table { border-radius: 16px; overflow: hidden; }
.sm-heatmap-table thead th { padding-bottom: 6px; }
.sm-heatmap-table th:not(:first-child) { width: 68px; max-width: 68px; }
.sm-heatmap-head { height: 120px; vertical-align: bottom; text-align: center; }
.sm-heatmap-head span { display: inline-block; writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); white-space: nowrap; line-height: 1; }
.sm-heatmap-table tbody tr { cursor: pointer; }
.sm-heatmap-group td {
    background: #cbd5e1;
    color: #12171b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .7rem;
}
.sm-heatmap-group,
.sm-heatmap-group:hover {
    background: #12171b !important;
}

/* Colored tabs */
.sm-tabs { border-bottom: none; gap: .5rem; }
.sm-tabs .nav-link {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    color: #475569;
    background: #f8fafc;
    padding: .35rem .9rem;
    font-weight: 600;
}
.sm-tabs .nav-link:hover { background: #eef2f7; color: #0f172a; }
.sm-tabs .nav-link.active {
    background: var(--tab-accent, var(--sm-accent));
    border-color: var(--tab-accent, var(--sm-accent));
    color: #fff;
}

/* Rounded table wrappers */
.sm-table-wrap {
    border-radius: var(--sm-radius);
    overflow: hidden;
}

/* Password requirements checklist */
.sm-pw-req {
    list-style: none;
    padding-left: 0;
    margin: .5rem 0 1.25rem;
}
.sm-pw-req li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: #94a3b8;
}
.sm-pw-req li .bi { color: #94a3b8 !important; }
.sm-pw-req li.met { color: #16a34a !important; }
.sm-pw-req li.met .bi { color: #16a34a !important; }
.sm-heatmap-desc th {
    padding: .5rem .75rem;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.7);
    background: #1f2529;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sm-heatmap-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 34px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
}

/* Toasts */
.sm-toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1080;
    pointer-events: none;
}
.sm-toast {
    min-width: 260px;
    max-width: 420px;
    box-shadow: var(--sm-shadow-md);
    pointer-events: auto;
}

/* ── Profile hero ────────────────────────────────────────────────────────── */
.profile-hero { border-radius: var(--sm-radius); padding: 2rem; color: #fff; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; position: relative; overflow: hidden; min-height: var(--hero-min-h); }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; color: #fff; flex-shrink: 0; border: 3px solid rgba(255,255,255,.25); }
.profile-name { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.profile-meta { font-size: .9rem; color: rgba(255,255,255,.75); margin-top: .4rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.overall-score-circle { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.12); border: 3px solid rgba(255,255,255,.3); display: flex; flex-direction: column; align-items: center; justify-content: center; margin-left: auto; flex-shrink: 0; color: #fff; text-align: center; }
.overall-score-circle .score-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.overall-score-circle .score-lbl { font-size: .58rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
.pos-badge { display: inline-block; padding: .3em .75em; border-radius: 20px; font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); margin: .15rem; }
.hero-pos-row { display: flex; gap: 2rem; margin-top: .8rem; flex-wrap: wrap; }
.hero-col-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: .25rem; }

/* ── Skill grid ──────────────────────────────────────────────────────────── */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.skill-item { background: var(--sm-body-bg); border-radius: .5rem; padding: .75rem 1rem; position: relative; }
.skill-item .skill-name { font-size: .78rem; font-weight: 600; color: var(--sm-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.skill-item--na { background: #f0f2f5; opacity: .6; }
.skill-na-label { font-size: .72rem; color: #adb5bd; font-style: italic; margin-top: .25rem; }
.radar-wrap { position: relative; width: 100%; max-width: 340px; margin: 0 auto; }

/* ── Tooltip ─────────────────────────────────────────────────────────────── */
.skill-subtip { display: none; position: fixed; z-index: 9999; background: #1a1f3c; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 10px 14px; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.45); color: #fff; white-space: nowrap; }
.skill-subtip-header { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); margin-bottom: 7px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.skill-has-tip { cursor: default; }
.skill-subtip-consider { font-size: .75rem; color: rgba(255,255,255,.55); margin: 6px 0 4px; }
.skill-subtip-item { font-size: .82rem; padding: 2px 0; color: #e2e8f0; }
.skill-subtip-item::before { content: '• '; color: #7dcfff; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn, .btn-sm, .btn-lg {
    font-size: .85rem !important;
    padding: .45rem 1rem !important;
    border-radius: .55rem !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
}
.btn-light,
.btn-light:focus,
.btn-light:active,
.btn-light.active,
.btn-check:checked + .btn-light,
.btn-check:active + .btn-light,
.btn-outline-light,
.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-light.active,
.btn-check:checked + .btn-outline-light,
.btn-check:active + .btn-outline-light {
    background: #fff !important;
    border-color: #fff !important;
    color: #111 !important;
    opacity: 1 !important;
}
.btn-light:hover,
.btn-check:checked + .btn-light:hover,
.btn-outline-light:hover,
.btn-check:checked + .btn-outline-light:hover {
    background: #A3B2C4 !important;
    border-color: #A3B2C4 !important;
    color: #fff !important;
    opacity: 1 !important;
}

/* Force true white for heatmap filter buttons */
.sm-page-hero .btn-light,
.sm-page-hero .btn-light:focus,
.sm-page-hero .btn-light:active,
.sm-page-hero .btn-check:checked + .btn-light {
    background: #fff !important;
    border-color: #fff !important;
    color: #111 !important;
    opacity: 1 !important;
}
.sm-page-hero .btn-light:hover,
.sm-page-hero .btn-check:checked + .btn-light:hover {
    background: #A3B2C4 !important;
    border-color: #A3B2C4 !important;
    color: #fff !important;
    opacity: 1 !important;
}

/* White-background buttons (match Edit Details) */
.btn-primary, .btn-primary:focus,
.btn-outline-primary, .btn-outline-primary:focus,
.btn-secondary, .btn-secondary:focus,
.btn-outline-secondary, .btn-outline-secondary:focus,
.btn-success, .btn-success:focus,
.btn-outline-success, .btn-outline-success:focus {
    background-color: var(--sm-accent);
    border-color: var(--sm-accent);
    color: #fff;
}
.btn-primary:hover, .btn-primary:active,
.btn-outline-primary:hover, .btn-outline-primary:active,
.btn-secondary:hover, .btn-secondary:active,
.btn-outline-secondary:hover, .btn-outline-secondary:active,
.btn-success:hover, .btn-success:active,
.btn-outline-success:hover, .btn-outline-success:active {
    background-color: var(--sm-accent-dark);
    border-color: var(--sm-accent-dark);
    color: #fff;
}

/* Dark/colored background buttons (match View Squad) */
.btn-outline-light {
    border-color: #fff;
    color: #111;
    background: #fff;
}

/* Cancel/Delete style */
.btn-danger, .btn-outline-danger {
    background: #fff;
    border-color: #ef4444;
    color: #ef4444;
}
.btn-danger:hover, .btn-danger:active,
.btn-outline-danger:hover, .btn-outline-danger:active {
    background: #f3f4f6;
    border-color: #ef4444;
    color: #ef4444;
}
.btn-outline-light:hover, .btn-outline-light:active {
    background: #A3B2C4;
    color: #fff;
    border-color: #A3B2C4;
}

/* Buttons on dark/colored hero cards should be white w/ gray hover */
.sm-page-hero .btn,
.team-squad-header .btn,
.profile-hero .btn {
    background-color: #fff !important;
    color: #111 !important;
    border-color: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}
.sm-page-hero .btn:hover,
.team-squad-header .btn:hover,
.sm-page-hero .btn:active,
.team-squad-header .btn:active,
.profile-hero .btn:hover,
.profile-hero .btn:active {
    background-color: #A3B2C4 !important;
    color: #fff !important;
    border-color: #A3B2C4 !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}
