:root {
    --tc-ink: #15251f;
    --tc-muted: #6e7d76;
    --tc-green: #176b45;
    --tc-green-dark: #0f4d32;
    --tc-green-soft: #e8f4ee;
    --tc-lime: #d8f45b;
    --tc-clay: #c86f45;
    --tc-cream: #f7f5ef;
    --tc-white: #fff;
    --tc-border: #e3e9e5;
    --tc-shadow: 0 16px 50px rgba(23, 55, 42, .09);
}

body {
    background: #f5f7f5;
    color: var(--tc-ink);
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
    padding-bottom: 78px;
}

a { color: var(--tc-green); }
.text-muted { color: var(--tc-muted) !important; }
.bg-tennis { background: var(--tc-green); }
.section-space { padding: 5rem 0; }
.eyebrow {
    color: var(--tc-green);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.tc-navbar {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(227, 233, 229, .9);
    backdrop-filter: blur(16px);
}

.tc-brand {
    color: var(--tc-ink);
    font-weight: 800;
    letter-spacing: -.04em;
}

.tc-brand:hover { color: var(--tc-green); }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-right: .55rem;
    border-radius: 12px;
    background: var(--tc-green);
    color: var(--tc-lime);
    transform: rotate(-6deg);
}

.tc-navbar .nav-link {
    color: #52615b;
    font-size: .92rem;
    font-weight: 700;
}

.tc-navbar .nav-link:hover,
.tc-navbar .nav-link.active { color: var(--tc-green); }

.btn {
    border-radius: 12px;
    font-weight: 750;
    padding: .7rem 1.1rem;
}

.btn-tennis {
    border-color: var(--tc-green);
    background: var(--tc-green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(23, 107, 69, .18);
}

.btn-tennis:hover {
    border-color: var(--tc-green-dark);
    background: var(--tc-green-dark);
    color: #fff;
}

.btn-lime {
    border-color: var(--tc-lime);
    background: var(--tc-lime);
    color: #203222;
}

.btn-soft {
    border-color: transparent;
    background: var(--tc-green-soft);
    color: var(--tc-green-dark);
}

.tc-card,
.card {
    border: 1px solid var(--tc-border);
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(22, 55, 41, .05);
}

.tc-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #0c402b;
    color: #fff;
}

.tc-hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 43, 28, .96) 0%, rgba(10, 55, 36, .83) 40%, rgba(10, 55, 36, .12) 76%),
        url("/images/brand/tenniscopio-social-hero.png") 70% center / cover no-repeat;
    content: "";
}

.tc-hero::after {
    position: absolute;
    right: -90px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 65px solid rgba(216, 244, 91, .16);
    border-radius: 50%;
    content: "";
}

.tc-hero-content { position: relative; z-index: 1; }
.tc-hero h1 {
    max-width: 780px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 850;
    letter-spacing: -.065em;
    line-height: .96;
}

.tc-hero .lead {
    max-width: 620px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.18rem;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: rgba(255, 255, 255, .82);
    font-size: .85rem;
}

.avatar-stack { display: flex; }
.avatar-stack span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--tc-clay);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}
.avatar-stack span:first-child { margin-left: 0; background: var(--tc-green); }
.avatar-stack span:nth-child(2) { background: #765a9e; }
.avatar-stack span:nth-child(3) { background: #bc6845; }

.floating-stat {
    position: absolute;
    z-index: 2;
    right: 8%;
    bottom: 10%;
    width: 250px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 22px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--tc-shadow);
    color: var(--tc-ink);
    backdrop-filter: blur(14px);
}

.feature-icon,
.stat-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--tc-green-soft);
    color: var(--tc-green);
    font-size: 1.25rem;
}

.social-feature {
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.social-feature:hover { transform: translateY(-5px); box-shadow: var(--tc-shadow); }

.community-strip {
    background: var(--tc-ink);
    color: #fff;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--tc-border);
    border-radius: 999px;
    background: #fff;
    padding: .55rem .85rem;
    color: #405149;
    font-size: .82rem;
    font-weight: 700;
}

.page-hero {
    padding: 3.2rem 0 2rem;
    background: linear-gradient(180deg, #eef7f2 0%, #f5f7f5 100%);
}

.search-panel {
    margin-top: -1rem;
    padding: 1.1rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--tc-shadow);
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: var(--tc-border);
    border-radius: 12px;
    background-color: #fbfcfb;
}
.form-control:focus,
.form-select:focus {
    border-color: #72a98d;
    box-shadow: 0 0 0 .25rem rgba(23, 107, 69, .1);
}

.player-card {
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.player-card:hover { transform: translateY(-4px); box-shadow: var(--tc-shadow); }
.player-card-accent {
    height: 7px;
    background: linear-gradient(90deg, var(--tc-green), var(--tc-lime));
}
.player-card-header {
    min-width: 0;
}
.player-card-identity {
    min-width: 0;
    overflow: hidden;
}
.player-card-name {
    overflow-wrap: anywhere;
}
.player-card-top-skills {
    min-height: 76px;
}
.top-skills-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.top-skill-pill {
    justify-content: center;
    min-width: 0;
    padding: .38rem .32rem;
    gap: 3px;
    text-align: center;
    white-space: nowrap;
    font-size: .62rem;
}
.top-skill-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.self-rating-marker {
    display: inline-grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8f4ee;
    color: var(--tc-green);
    font-size: 1rem;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--tc-green), #2a9365);
    box-shadow: 0 8px 20px rgba(23, 107, 69, .2);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 850;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.score-ring {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    background: conic-gradient(var(--tc-lime) 80%, #e7ece9 0);
}
.score-ring span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    font-size: .9rem;
    font-weight: 850;
}

.metric-card {
    overflow: hidden;
    position: relative;
}
.metric-card::after {
    position: absolute;
    right: -18px;
    bottom: -24px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--tc-green-soft);
    content: "";
}
.metric-value { font-size: 2rem; font-weight: 850; letter-spacing: -.04em; }

.auth-shell { min-height: calc(100vh - 76px); }
.auth-visual {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(10, 57, 37, .12), rgba(10, 57, 37, .84)),
        url("/images/brand/tenniscopio-social-hero.png") center / cover;
}
.auth-visual-copy {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
    color: #fff;
}

.privacy-consent-box {
    padding: 1rem;
    border: 1px solid var(--tc-border);
    border-radius: 18px;
    background: #fbfcfb;
}
.privacy-consent-box .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    border-color: #96aa9e;
}
.privacy-consent-box .form-check-input:checked {
    border-color: var(--tc-green);
    background-color: var(--tc-green);
}
.privacy-link {
    color: var(--tc-green);
    font-weight: 800;
    text-decoration: none;
}
.privacy-link:hover { text-decoration: underline; }
.privacy-copy h3 {
    margin-top: 1.35rem;
    margin-bottom: .55rem;
    color: var(--tc-ink);
    font-size: 1rem;
    font-weight: 850;
}
.privacy-copy p,
.privacy-copy li {
    color: #536159;
    line-height: 1.65;
}

.tc-bottom-nav {
    border-top: 1px solid var(--tc-border);
    background: rgba(255,255,255,.96);
    box-shadow: 0 -10px 30px rgba(18, 47, 35, .08);
    backdrop-filter: blur(12px);
}
.tc-bottom-nav .nav-link {
    display: grid;
    gap: .15rem;
    place-items: center;
    color: #718078;
    font-size: .68rem;
    font-weight: 750;
}
.tc-bottom-nav .nav-link i { font-size: 1.25rem; }
.tc-bottom-nav .nav-link.active { color: var(--tc-green); }

.dashboard-nav .list-group-item {
    border: 0;
    border-radius: 12px !important;
    color: #536159;
    font-weight: 700;
}
.dashboard-nav .list-group-item:hover {
    background: var(--tc-green-soft);
    color: var(--tc-green);
}

@media (max-width: 991.98px) {
    .tc-hero { min-height: 740px; }
    .tc-hero::before {
        background:
            linear-gradient(180deg, rgba(7, 43, 28, .92) 0%, rgba(7, 43, 28, .7) 54%, rgba(7, 43, 28, .4) 100%),
            url("/images/brand/tenniscopio-social-hero.png") 64% center / cover no-repeat;
    }
    .floating-stat { display: none; }
    .tc-hero h1 { font-size: clamp(2.8rem, 13vw, 4.6rem); }
    .section-space { padding: 3.5rem 0; }
}

@media (min-width: 992px) {
    body { padding-bottom: 0; }
}
