/* ==================================================
ROOT
================================================== */
:root{
    --primary:#ee3780;
    --primary-light:#ff6aa4;
    --dark:#0f1117;
    --dark-2:#171923;
    --text:#121212;
    --text-light:#6b7280;
    --bg:#f5f5f7;
    --white:#ffffff;
    --border:#e5e7eb;
}
/* ==================================================
RESET
================================================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body{
    font-family:'Plus Jakarta Sans',sans-serif;
    background:var(--bg);
    color:var(--text);
}
/* ==================================================
LAYOUT
================================================== */
.container{
    width:92%;
    max-width:1400px;
    margin:auto;
}
/* ==================================================
TOPBAR
================================================== */
.topbar{
    background:var(--primary);
    position:sticky;
    top:0;
    z-index:999;
}
.topbar-content{
    min-height:75px;
    display:flex;
    align-items:center;
}
.logo{
    width:120px;
}
/* ==================================================
HERO
================================================== */
.hero{
    background:
    radial-gradient(
        circle at top right,
        rgba(238,55,128,.25),
        transparent 35%
    ),
    linear-gradient(
        135deg,
        #0f1117,
        #171923
    );
    padding:120px 0;
    position:relative;
    overflow:hidden;
}
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:
    linear-gradient(
        rgba(255,255,255,.03) 1px,
        transparent 1px
    ),
    linear-gradient(
        90deg,
        rgba(255,255,255,.03) 1px,
        transparent 1px
    );
    background-size:50px 50px;
}
.hero::after{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    background:rgba(238,55,128,.12);
    filter:blur(120px);
    top:-200px;
    right:-100px;
}
.hero-content{
    position:relative;
    z-index:2;
    display:flex;
    justify-content:space-between;
    gap:60px;
}
.hero-left{
    max-width:650px;
}
.badge{
    display:inline-block;
    padding:10px 20px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:999px;
    color:#fff;
    margin-bottom:25px;
}
.hero h1{
    font-size:56px;
    line-height:1.1;
    color:#fff;
    margin-bottom:25px;
}
.hero h1 span{
    color:var(--primary);
}
.hero p{
    color:#d0d0d0;
    font-size:20px;
    line-height:1.7;
    margin-bottom:35px;
}
/* ==================================================
HERO DIVIDER
================================================== */
.hero-divider{
    height:80px;
    margin-top:-40px;
    background:#fff;
    border-top-left-radius:100% 80px;
    border-top-right-radius:100% 80px;
    position:relative;
    z-index:5;
}
/* ==================================================
BUTTONS
================================================== */
.btn-pink{
    padding:9px 17px;
    border:none;
    border-radius:14px;
    font-weight:700;
    color: white;
    background:linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );
    box-shadow:
    0 10px 30px rgba(238,55,128,.35);
}
.btn-pink:hover{
    transform:translateY(-3px);
}
/* ==================================================
FEATURE CARDS
================================================== */
.hero-right{
    width:380px;
    display:flex;
    flex-direction:column;
    gap:20px;
}
.feature-card{
    background:rgba(255,255,255,.04);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:26px;
    transition:.3s;
}
.feature-card:nth-child(2){
    margin-left:25px;
}
.feature-card:nth-child(3){
    margin-left:50px;
}
.feature-card:hover{
    transform:translateY(-6px);
    border-color:rgba(238,55,128,.4);
}
.feature-card h3{
    color:#fff;
    margin-bottom:10px;
}
.feature-card p{
    color:#bfbfbf;
    font-size:14px;
}
/* ==================================================
FILTERS
================================================== */
.filters{
    background:#fff;
    padding:25px 0;
    border-bottom:1px solid #ececec;
}
.filter-group{
    display:flex;
    gap:10px;
}
.year{
    border:none;
    background:#f3f4f6;
    padding:12px 22px;
    border-radius:999px;
    font-weight:600;
}
.year.active{
    background:var(--primary);
    color:#fff;
}
/* ==================================================
STATS
================================================== */
.stats{
    padding:40px 0;
}
.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}
.stat-card{
    background:rgba(255,255,255,.75);
    backdrop-filter:blur(14px);
    border-radius:24px;
    padding:32px;
    box-shadow:
    0 15px 40px rgba(0,0,0,.05);
    transition: transform .35s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s cubic-bezier(.2,.8,.2,1);
    will-change: transform, box-shadow;
}
.stat-card h2{
    margin-top:10px;
    font-size:42px;
    line-height:1;
}
.stat-card:hover{
    transform: translateY(-6px);
    box-shadow:
    0 18px 45px rgba(241, 63, 133, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.08);
}
/* ==================================================
HIGHLIGHT
================================================== */
.highlight{
    margin:30px 0;
}
.highlight-card{
    background:linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );
    color:#fff;
    padding:28px 40px;
    min-height:140px;
    border-radius:28px;
    display:flex;
    position:relative;
    overflow:hidden;
    justify-content:space-between;
}
.highlight-card::after{
    content:"";
    position:absolute;
    width:250px;
    height:250px;
    right:-80px;
    top:-80px;
    border-radius:50%;
    background:
    rgba(255,255,255,.08);
}
.school-meta{
    margin-top:10px;
    opacity:.9;
}
.score-box{
    text-align:right;
}
.score-box span{
    font-size:14px;
    opacity:.8;
}
.score-box h2{
    font-size:64px;
    font-weight:800;
    line-height:1;
}
/* ==================================================
CHAMPION BADGE
================================================== */
.champion-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(8px);
    border-radius:999px;
    margin-bottom:15px;
    font-size:13px;
}
/* ==================================================
RANKING TABLE
================================================== */
.ranking-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}
.ranking-header h2{
    margin:0;
}
.ranking-count{
    background:#fff;
    padding:10px 16px;
    border-radius:999px;
    font-weight:600;
    font-size:14px;
    color:#6b7280;
    box-shadow:
    0 5px 20px rgba(0,0,0,.05);
}
.table-wrapper{
    border:1px solid #e5e7eb;
    background:#fff;
    max-height:70vh;
    border-radius:24px;
    overflow:auto;
    box-shadow:
    0 20px 60px rgba(0,0,0,.06);
}
table{
    width:100%;
    min-width:1600px;
    border-collapse:separate;
    border-spacing:0;
    font-size: 0.9rem;
}
thead th{
    position:sticky;
    top:0;
    background:linear-gradient(
        90deg,
        #111,
        #1f2937
    ) !important;
    color:#fff !important;
    z-index:20;
}
thead th *{
    color:#fff !important;
}
th,
td{
    padding:14px 12px;
    white-space:nowrap;
}
thead th:first-child,
tbody td:first-child{
    position:sticky;
    left:0;
}
thead th:first-child{
    z-index:30;
}
tbody td:first-child{
    background:#fff;
    z-index:5;
    color:var(--primary);
    font-weight:800;
}
tbody tr:nth-child(even){
    background:#fafafa;
}
tbody tr:hover{
    background:#fff0f6;
}
thead th:nth-child(2),
tbody td:nth-child(2) {
    position: sticky;
    left: 85px;
}
thead th:nth-child(2) {
    z-index: 30;
}
tbody td:nth-child(2) {
    z-index: 4;
    background: #fff;
}
tbody tr:nth-child(even) td:nth-child(2) {
    background: #fafafa;
}
tbody tr:hover td:nth-child(2) {
    background: #fff0f6;
}
/* ==================================================
LOGIN
================================================== */
.subtitle{
    color:#717789;
}
.forgot-password{
    color:#717789;
    text-decoration:none;
}
.btn-submit{
    width:100%;
    border:none;
    padding:14px;
    border-radius:8px;
    color:#fff;
    background:linear-gradient(
        90deg,
        #ff3377,
        #ff5e97
    );
}
/* ==================================================
LOCKED
================================================== */
.locked {
    position: relative;
    isolation: isolate;
}

/* trava o conteúdo */
.locked .content-inner {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

/* 🚫 BLOQUEIA SCROLL DO WRAPPER */
.locked {
    overflow: hidden !important;
}

/* overlay sempre por cima */
.lock-layer {
    position: absolute;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;
    font-weight: 600;
    color: #fff;

    background: rgba(15, 17, 23, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    border-radius: inherit;
}
#modalLogin .modal-content {
    border-radius: 20px !important;
    padding: 36px 40px !important; 
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background-color: #ffffff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}
#modalLogin .modal-header {
    border-bottom: none !important;
    padding: 0 0 16px 0 !important;
}
#modalLogin .modal-header h2 {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    color: #111111 !important;
    margin: 0 !important;
}
#modalLogin .subtitle.mb-4 {
    text-align: left !important;
    color: #8A8A93 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-top: -8px !important;
    margin-bottom: 24px !important;
}
#modalLogin label.subtitle {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #444446 !important;
    margin-bottom: 8px !important;
    margin-top: 16px !important;
}
#modalLogin .form-control {
    border-radius: 10px !important;
    padding: 14px 16px !important;
    border: 1px solid #E5E5EA !important;
    background-color: #FAFAFC !important;
    color: #1C1C1E !important;
    font-size: 14px !important;
}
#modalLogin .form-control:focus {
    background-color: #ffffff !important;
    border-color: #e6207e !important;
    box-shadow: 0 0 0 4px rgba(230, 32, 126, 0.15) !important;
}
#modalLogin .forgot-password {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #636366 !important;
    text-decoration: none !important;
    margin-top: 10px !important;
    margin-bottom: 24px !important;
    display: inline-block !important;
}
#modalLogin .forgot-password:hover {
    color: #e6207e !important;
    text-decoration: underline !important;
}
#modalLogin .btn-pink {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #ff3399 0%, #e6207e 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(230, 32, 126, 0.25) !important;
}
#modalLogin .btn-pink:hover {
    background: linear-gradient(135deg, #ff4da6 0%, #d1136e 100%) !important;
    box-shadow: 0 6px 22px rgba(230, 32, 126, 0.35) !important;
    transform: translateY(-1px) !important;
}
#modalLogin .modal-content,
#modalCadastro .modal-content {
    border-radius: 20px !important;
    padding: 36px 40px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background-color: #ffffff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}
#modalLogin .modal-header,
#modalCadastro .modal-header {
    border-bottom: none !important;
    padding: 0 0 16px 0 !important;
}
#modalLogin .modal-header h2,
#modalCadastro .modal-header h2 {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    color: #111111 !important;
    margin: 0 !important;
}
#modalLogin .subtitle.mb-4,
#modalCadastro .subtitle.mb-4 {
    text-align: left !important;
    color: #8A8A93 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-bottom: 24px !important;
}
#modalLogin label.subtitle,
#modalCadastro label.subtitle {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #444446 !important;
    margin-bottom: 6px !important;
    margin-top: 4px !important;
}
#modalLogin .form-control,
#modalCadastro .form-control,
#modalCadastro .form-select {
    border-radius: 10px !important;
    padding: 12px 14px !important;
    border: 1px solid #E5E5EA !important;
    background-color: #FAFAFC !important;
    color: #1C1C1E !important;
    font-size: 14px !important;
}
#modalLogin .form-control:focus,
#modalCadastro .form-control:focus,
#modalCadastro .form-select:focus {
    background-color: #ffffff !important;
    border-color: #e6207e !important;
    box-shadow: 0 0 0 4px rgba(230, 32, 126, 0.15) !important;
}
#modalLogin .btn-pink,
#modalCadastro .btn-pink {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #ff3399 0%, #e6207e 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(230, 32, 126, 0.25) !important;
}
#modalLogin .btn-pink:hover,
#modalCadastro .btn-pink:hover {
    background: linear-gradient(135deg, #ff4da6 0%, #d1136e 100%) !important;
    box-shadow: 0 6px 22px rgba(230, 32, 126, 0.35) !important;
    transform: translateY(-1px) !important;
}
.invalid-feedback-custom {
    color: #e6207e;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    transition: all 0.2s ease;
}
.highlight {
    padding: 1.5rem 0;
}
.highlight-card {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #ed327b 0%, #be1e5d 100%);
    border-radius: 20px;
    padding: 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(237, 50, 123, 0.15);
}
.school-info-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}
.school-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}
.school-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}
.school-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 2px 0 0 0;
    font-weight: 500;
}
.school-stats-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}
.score-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}
.champion-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.score-box.highlight-purple .champion-badge {
    background: rgba(0, 0, 0, 0.15);
}
.score-number {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}
.lock-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(190, 30, 93, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.lock-content { color: #ffffff; padding: 20px; }
.lock-icon { font-size: 1.8rem; display: block; margin-bottom: 4px; }
.lock-content h5 { font-weight: 700; margin-bottom: 4px; font-size: 1rem; }
.lock-content p { font-size: 0.8rem; margin-bottom: 10px; }
@media (min-width: 1200px) {
    .highlight-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 24px 32px;
        gap: 32px;
    }
    .school-info-section {
        max-width: 30%;
    }
    .school-stats-section {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        max-width: 70%;
    }
    .score-box {
        flex: 1;
        min-width: 140px;
        padding: 12px 6px;
    }
    .score-number {
        font-size: 2rem;
    }
}
/* ==================================================
RESPONSIVE
================================================== */
@media(max-width:992px){
    .hero-content{
        flex-direction:column;
    }
    .hero-right{
        width:100%;
    }
    .feature-card:nth-child(2),
    .feature-card:nth-child(3){
        margin-left:0;
    }
    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }
    .highlight-card{
        flex-direction:column;
        gap:25px;
    }
}
@media(max-width:576px){
    .hero{
        padding:80px 0;
    }
    .hero h1{
        font-size:42px;
    }
    .hero p{
        font-size:16px;
    }
    .stats-grid{
        grid-template-columns:1fr;
    }
    .stat-card h2{
        font-size:32px;
    }
    .score-box{
        text-align:left;
    }
}