:root{
    --bg-image: url("../img/bg_20.png");
    --glass: rgba(255,255,255,.72);
    --glass-strong: rgba(255,255,255,.85);
    --text: #2b2441;
    --accent: #c78ce9;
    --accent-soft: #e9c9f7;
    --shadow: 0 10px 30px rgba(28,20,56,.15);
    --radius: 18px;
}
body{
    min-height: 80vh !important;
    margin:0;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial;
    color: var(--text);
    background-color: rgba(233, 201, 247, 0.6);
}
.wave-top{ line-height:0; transform: scaleY(-1); }
.wave-bottom{ line-height:0; }
.wave path{ fill: var(--accent-soft); }

.page{ position: relative; isolation: isolate; }
.overlay{
    position: fixed; inset: 0;
    background: radial-gradient(800px 600px at 85% 10%, rgba(255,255,255,.65), transparent 60%);
    pointer-events: none; z-index: -1;
}

.hero{ padding: 64px 20px 24px; text-align: center; }
.hero h1{ margin:0 0 10px; font-size: clamp(28px, 4vw, 44px); }
.hero p{ margin:0 auto; opacity:.85; max-width: 760px; font-size: clamp(14px, 2vw, 18px); }

.flag-grid{
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    max-width: 700px;
    justify-items: center;
    list-style:none;
    padding:0;
}
.flag-grid li img{
    width:80px; height:auto;
    border-radius:6px;
    box-shadow:0 4px 10px rgba(0,0,0,.1);
    transition: transform .2s ease;
}
.flag-grid li img:hover{ transform:scale(1.05); }


.toolbar{
    margin: 28px auto 4px;
    display:flex; gap:12px; justify-content:center; flex-wrap:wrap;
}
.input,.select{
    appearance:none;
    border:1px solid rgba(0,0,0,.06);
    background:var(--glass);
    padding:12px 14px;
    border-radius:12px;
    box-shadow:var(--shadow);
    backdrop-filter: blur(6px);
    font-size:15px;
    min-width:260px;
    outline:none;
}

.container{ max-width:1100px; margin:0 auto; padding:20px; }
.country{
    background: var(--glass);
    border:1px solid rgba(0,0,0,.05);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow:hidden;
    margin-bottom:16px;
    transition: transform .2s ease;
}
.country:hover{ transform: translateY(-2px); }

.country__head{
    display:flex; align-items:center; gap:14px;
    width:100%;
    background: linear-gradient(180deg, var(--glass-strong), rgba(255,255,255,.75));
    border:0; outline:0;
    padding:14px 16px;
    cursor:pointer;
}
.country__flag{
    width:40px; height:27px; border-radius:4px; object-fit:cover;
    box-shadow:0 2px 6px rgba(0,0,0,.15);
    flex:0 0 auto;
}
.country__name{ font-weight:700; font-size:18px; }
.country__meta{ margin-left:auto; display:flex; align-items:center; gap:10px; opacity:.8; font-size:14px; }
.chev{ width:18px; height:18px; transform: rotate(0deg); transition: transform .25s ease; }
.country.open .chev{ transform: rotate(180deg); }

.country__body{ height:0; overflow:hidden; transition: height .28s ease; background: rgba(255,255,255,.6); }
.clubs{ padding:12px 16px 18px; display:grid; gap:10px; }
.club{
    display:flex; align-items:center; gap:10px;
    padding:10px 12px;
    background:#fff;
    border:1px solid rgba(0,0,0,.04);
    border-radius:12px;
    box-shadow:0 6px 16px rgba(30,10,60,.06);
    font-size:15px;
}
.club__dot{ width:8px; height:8px; border-radius:50%; background:var(--accent); }
.footer-note{ text-align:center; opacity:.7; font-size:13px; margin:26px 0 40px; }


html, body { height: 100%; }

.page{
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}


main.container{
    flex: 1 0 auto;
}


.wave-bottom{
    flex-shrink: 0;
}

main.container {
    flex: 1 0 auto;
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
}

.country {
    width: 100%;
    box-sizing: border-box;
}

.cta-btn {
    margin-top: 1.5rem;
    padding: .9rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    background: #e683c4 !important;
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
}

.cta-btn:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
}

.cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 28px rgba(124, 92, 255, .2);
}


.btn.cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, #e456b4, #f38edc);
    color: #fff;
    padding: 15px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(228, 86, 180, 0.4);
    transition: all .3s ease;
}

.btn.cta-btn:hover {
    background: linear-gradient(90deg, #d947a6, #f071c7);
    box-shadow: 0 6px 12px rgba(228, 86, 180, 0.5);
    transform: translateY(-2px);
}