html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* ====== Global polish ====== */
:root {
    --tg-bg: #0b1220;
    --tg-card: rgba(255,255,255,.10);
    --tg-border: rgba(255,255,255,.18);
    --tg-text: rgba(255,255,255,.92);
    --tg-muted: rgba(255,255,255,.65);
    --tg-shadow: 0 18px 60px rgba(0,0,0,.35);
}

html, body {
    height: 100%;
}

body {
    background: radial-gradient(1200px 600px at 10% 10%, rgba(64, 112, 244,.18), transparent 60%), radial-gradient(1000px 500px at 90% 20%, rgba(255, 193, 7,.16), transparent 55%), #f7f8fb;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ====== Navbar ====== */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.75) !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
}

    .navbar .navbar-brand {
        font-weight: 800;
        letter-spacing: .2px;
    }

.nav-link {
    font-weight: 600;
}

/* ====== Hero ====== */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin: 18px auto 0;
    max-width: 1200px;
    box-shadow: var(--tg-shadow);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: saturate(1.05) contrast(1.05);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.65) 55%, rgba(11,18,32,.35) 100%), radial-gradient(800px 400px at 20% 10%, rgba(64,112,244,.30), transparent 60%);
}

.hero-title {
    color: var(--tg-text);
    font-weight: 900;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    letter-spacing: .4px;
    text-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.hero-subtitle {
    color: var(--tg-muted);
    font-size: 1.08rem;
    max-width: 52ch;
}

.hero-badge {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    color: var(--tg-text);
    border-radius: 999px;
    padding: .55rem .85rem;
}

.hero-cta {
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.20);
}

.btn-outline-light {
    border-color: rgba(255,255,255,.45) !important;
    color: rgba(255,255,255,.95) !important;
}

    .btn-outline-light:hover {
        background: rgba(255,255,255,.12) !important;
    }

/* right-side card */
.hero-card {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    color: var(--tg-text);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.pill {
    font-size: .85rem;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    padding: .35rem .65rem;
    border-radius: 999px;
}

/* Stats */
.stat {
    border-radius: 18px;
    padding: 14px 14px 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    transition: transform .18s ease, background .18s ease;
}

    .stat:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,.11);
    }

.stat__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
}

.stat__value {
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1.1;
}

.stat__label {
    font-size: .9rem;
    color: rgba(255,255,255,.68);
}

.stat--primary .stat__icon {
    box-shadow: 0 0 0 6px rgba(13,110,253,.14);
}

.stat--success .stat__icon {
    box-shadow: 0 0 0 6px rgba(25,135,84,.14);
}

.stat--danger .stat__icon {
    box-shadow: 0 0 0 6px rgba(220,53,69,.14);
}

.stat--warning .stat__icon {
    box-shadow: 0 0 0 6px rgba(255,193,7,.14);
}

.hr-soft {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}

/* ====== Feature cards ====== */
.feature-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 60px rgba(0,0,0,.10);
    }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(13,110,253,.10);
    border: 1px solid rgba(13,110,253,.18);
}

/* ====== Footer ====== */
.footer {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(10px);
}

    .footer a {
        font-weight: 700;
    }

/* ===== Layout polish ===== */
.tg-body {
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(64,112,244,.18), transparent 60%), radial-gradient(1000px 500px at 90% 20%, rgba(255,193,7,.16), transparent 55%), #f7f8fb;
}

/* Glass navbar */
.tg-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,.75);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.tg-brand-mark {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(13,110,253,.12);
    border: 1px solid rgba(13,110,253,.18);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.tg-brand-text {
    font-weight: 900;
    letter-spacing: .2px;
}

.tg-main {
    padding-top: 10px;
}

/* Footer */
.tg-footer {
    margin-top: 28px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(12px);
}

.tg-footer-logo {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.06);
}

.tg-footer-link {
    font-weight: 800;
    color: rgba(0,0,0,.75);
    padding: .55rem .85rem;
    border-radius: 14px;
    background: rgba(13,110,253,.08);
    border: 1px solid rgba(13,110,253,.12);
    transition: transform .15s ease, background .15s ease;
}

    .tg-footer-link:hover {
        transform: translateY(-1px);
        background: rgba(13,110,253,.12);
        color: rgba(0,0,0,.85);
    }
/* ===== Main menu (pills) ===== */
.tg-menu {
    gap: .35rem;
}

.tg-navlink {
    display: flex;
    align-items: center;
    padding: .55rem .9rem !important;
    border-radius: 14px;
    color: rgba(0,0,0,.72) !important;
    font-weight: 800;
    transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

    .tg-navlink:hover {
        background: rgba(13,110,253,.08);
        color: rgba(0,0,0,.86) !important;
        transform: translateY(-1px);
    }

    .tg-navlink.is-active {
        background: rgba(13,110,253,.12);
        border: 1px solid rgba(13,110,253,.18);
        box-shadow: 0 10px 26px rgba(0,0,0,.08);
        color: rgba(0,0,0,.92) !important;
    }

/* Dropdown look */
.tg-dropdown {
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 22px 60px rgba(0,0,0,.14);
    padding: .5rem;
}

.tg-dd-item {
    border-radius: 14px;
    font-weight: 700;
    padding: .6rem .75rem;
}

    .tg-dd-item:hover {
        background: rgba(13,110,253,.10);
    }

/* Fix bootstrap dropdown toggle arrow spacing in pills */
.tg-navlink.dropdown-toggle::after {
    margin-left: .45rem;
}

/* ===== Notification bell ===== */
.tg-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: rgba(0,0,0,.75) !important;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.08);
    transition: all .18s ease;
    font-size: 1.2rem;
}

    .tg-bell:hover {
        background: rgba(13,110,253,.12);
        color: rgba(0,0,0,.9) !important;
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(0,0,0,.10);
    }

/* badge */
.tg-bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc3545;
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.tg-body {
    min-height: 100vh;
}

.tg-main {
    flex: 1;
}

/* ===== Auth pages (Login/Register) ===== */
.auth-wrap {
    min-height: calc(100vh - 140px); /* header+footer space */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 12px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 26px;
    padding: 22px 22px 20px;
    box-shadow: 0 22px 70px rgba(0,0,0,.12);
    backdrop-filter: blur(10px);
}

.auth-head {
    padding-top: 2px;
}

.auth-logo {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,.12);
    border: 1px solid rgba(13,110,253,.18);
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
    font-size: 1.4rem;
}

.auth-title {
    font-weight: 900;
    letter-spacing: .2px;
}

.auth-subtitle {
    color: rgba(0,0,0,.60);
    font-weight: 600;
}

.auth-hr {
    border: 0;
    height: 1px;
    margin: 16px 0 14px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.12), transparent);
}

.auth-input {
    border-radius: 16px;
}

.auth-btn {
    border-radius: 16px;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.auth-link {
    font-weight: 800;
    text-decoration: none;
}

    .auth-link:hover {
        text-decoration: underline;
    }

/* ===== Auth pages (Login/Register) ===== */
.auth-wrap {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 12px;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 26px;
    padding: 22px 22px 20px;
    box-shadow: 0 22px 70px rgba(0,0,0,.12);
    backdrop-filter: blur(10px);
}

.auth-head {
    padding-top: 2px;
}

.auth-logo {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,.12);
    border: 1px solid rgba(13,110,253,.18);
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
    font-size: 1.4rem;
}

.auth-title {
    font-weight: 900;
    letter-spacing: .2px;
}

.auth-subtitle {
    color: rgba(0,0,0,.60);
    font-weight: 600;
}

.auth-hr {
    border: 0;
    height: 1px;
    margin: 16px 0 14px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.12), transparent);
}

.auth-input {
    border-radius: 16px;
}

.auth-btn {
    border-radius: 16px;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.auth-link {
    font-weight: 800;
    text-decoration: none;
}

    .auth-link:hover {
        text-decoration: underline;
    }

/* ===== Partners Page ===== */

.page-title {
    font-weight: 900;
    letter-spacing: .3px;
}

/* Partner card */
.partner-card {
    background: #fff;
    border-radius: 22px;
    padding: 18px 12px 16px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 14px 40px rgba(0,0,0,.06);
    transition: all .2s ease;
    height: 100%;
}

    .partner-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 60px rgba(0,0,0,.12);
    }

/* Logo container */
.partner-logo-wrapper {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.partner-logo {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all .25s ease;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partner-name {
    font-weight: 700;
    font-size: .95rem;
}

/* Empty state */
.empty-state {
    padding: 50px 20px;
    background: rgba(0,0,0,.02);
    border-radius: 22px;
    border: 1px dashed rgba(0,0,0,.1);
}

/* ===== Profile Page ===== */

.profile-card {
    background: #fff;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    max-width: 700px;
    margin: auto;
}

.profile-header {
    padding-bottom: 10px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(13,110,253,.1);
    border: 1px solid rgba(13,110,253,.2);
}

.profile-role {
    font-size: .9rem;
    padding: 6px 12px;
    border-radius: 999px;
}

.profile-info {
    background: rgba(0,0,0,.03);
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

    .profile-info i {
        font-size: 1.2rem;
    }

.profile-btn {
    border-radius: 14px;
    font-weight: 700;
    padding: 8px 18px;
}

/* ===== Cities Page ===== */
.city-search .input-group {
    box-shadow: 0 14px 40px rgba(0,0,0,.06);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
}

.city-search .form-control {
    border: 0;
}

.city-search .input-group-text {
    border: 0;
}

.city-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .city-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 70px rgba(0,0,0,.12);
    }

.city-cover {
    position: relative;
    height: 220px;
    overflow: hidden;
}

    .city-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.02);
        transition: transform .25s ease;
    }

.city-card:hover .city-cover img {
    transform: scale(1.08);
}

.city-cover__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.70), rgba(0,0,0,.05));
}

.city-name {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    color: white;
    font-weight: 900;
    text-shadow: 0 12px 30px rgba(0,0,0,.5);
}

.city-actions {
    background: rgba(0,0,0,.02);
}

.city-btn {
    border-radius: 16px;
    padding: 12px 14px;
}

/* Pagination polish */
.tg-pagination .page-link {
    border-radius: 14px !important;
    margin: 0 4px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 26px rgba(0,0,0,.04);
}

.tg-pagination .page-item.active .page-link {
    font-weight: 900;
}

/* ===== City Leaders ===== */
.leader-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 45px rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .leader-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 24px 70px rgba(0,0,0,.12);
    }

.leader-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leader-badge {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,193,7,.18);
    border: 1px solid rgba(255,193,7,.35);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.leader-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 12px 14px;
    font-weight: 700;
}

.leader-value {
    font-weight: 900;
    font-size: 1.35rem;
}

/* ===== Admin-like forms (Update City Leaders) ===== */
.admin-form-card {
    max-width: 560px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.tg-select {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 10px 26px rgba(0,0,0,.04);
}

    .tg-select:focus {
        border-color: rgba(13,110,253,.35);
        box-shadow: 0 0 0 .25rem rgba(13,110,253,.15);
    }

.tg-action-btn {
    border-radius: 16px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.admin-form-card {
    max-width: 560px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.tg-input {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 10px 26px rgba(0,0,0,.04);
}

    .tg-input:focus {
        border-color: rgba(13,110,253,.35);
        box-shadow: 0 0 0 .25rem rgba(13,110,253,.15);
    }

/* ===== Delete confirm styling ===== */
.delete-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220,53,69,.12);
    border: 1px solid rgba(220,53,69,.22);
    box-shadow: 0 14px 34px rgba(0,0,0,.10);
    font-size: 1.7rem;
    color: #dc3545;
}

.delete-warning {
    background: rgba(255,193,7,.16);
    border: 1px solid rgba(255,193,7,.30);
    border-radius: 18px;
    padding: 14px 16px;
    color: rgba(0,0,0,.78);
}

/* Partner preview */
.partner-preview {
    max-height: 150px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
    padding: 8px;
    background: #fff;
}

.partner-confirm-logo {
    max-width: 320px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

    .partner-confirm-logo img {
        max-height: 150px;
        width: 100%;
        object-fit: contain;
    }

/* ===== Tournaments cards ===== */
.tournament-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .tournament-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 70px rgba(0,0,0,.12);
    }

.tournament-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .tournament-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.02);
        transition: transform .25s ease;
    }

.tournament-card:hover .tournament-cover img {
    transform: scale(1.08);
}

.tournament-cover__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.70), rgba(0,0,0,.05));
}

.tournament-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.tournament-pill {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: .45rem .7rem;
    font-weight: 800;
}

.tournament-status {
    border-radius: 999px;
    padding: .45rem .7rem;
    font-weight: 900;
}

.status-upcoming {
    background: rgba(13,110,253,.18);
    border: 1px solid rgba(13,110,253,.28);
    color: rgba(255,255,255,.92);
}

.status-started {
    background: rgba(25,135,84,.18);
    border: 1px solid rgba(25,135,84,.28);
    color: rgba(255,255,255,.92);
}

.status-finished {
    background: rgba(220,53,69,.18);
    border: 1px solid rgba(220,53,69,.28);
    color: rgba(255,255,255,.92);
}

.tournament-meta {
    display: grid;
    gap: 10px;
    background: rgba(0,0,0,.02);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 12px 14px;
}

.tmeta {
    display: flex;
    align-items: center;
    color: rgba(0,0,0,.72);
    font-weight: 700;
}

/* ===== Message view ===== */
.message-box {
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,.06);
    font-weight: 600;
}

.message-box__title {
    font-weight: 800;
    margin-bottom: 6px;
}

/* previous message */
.message-box--previous {
    background: rgba(0,0,0,.03);
}

/* current message */
.message-box--current {
    background: rgba(13,110,253,.08);
    border: 1px solid rgba(13,110,253,.18);
}

/* ===== Messages tables ===== */
.tg-table-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0,0,0,.06);
}

.tg-table thead th {
    background: rgba(0,0,0,.02);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.tg-msg-link {
    font-weight: 800;
    text-decoration: none;
    color: rgba(0,0,0,.85);
}

    .tg-msg-link:hover {
        text-decoration: underline;
    }

/* ===== Gallery cards ===== */
.gallery-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .gallery-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 70px rgba(0,0,0,.12);
    }

.gallery-cover {
    position: relative;
    height: 220px;
    overflow: hidden;
}

    .gallery-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.02);
        transition: transform .25s ease;
    }

.gallery-card:hover .gallery-cover img {
    transform: scale(1.08);
}

.gallery-cover__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.05));
}

/* ===== Access denied ===== */
.access-image img {
    max-height: 220px;
    object-fit: contain;
    border: 1px solid rgba(0,0,0,.08);
    padding: 10px;
    background: #fff;
}

/* ===== 404 page ===== */
.notfound-image img {
    max-height: 220px;
    object-fit: contain;
    border: 1px solid rgba(0,0,0,.08);
    padding: 10px;
    background: #fff;
}

/* ===== Enter Result ===== */
.result-team-card {
    background: rgba(0,0,0,.02);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    padding: 16px;
}

.result-team-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.result-team-badge {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,.12);
    border: 1px solid rgba(13,110,253,.18);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* read/unread polish */
.notification-item.is-unread {
    background: rgba(13,110,253,.06);
}

/* read/unread polish */
.notification-item.is-unread {
    background: rgba(13,110,253,.06);
}

.notification-item.is-read {
    background: rgba(0,0,0,.02);
}
/* ===== Payments table ===== */
.payment-status {
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .8rem;
}

.status-paid {
    background: rgba(25,135,84,.15);
    border: 1px solid rgba(25,135,84,.25);
    color: #198754;
}

.status-refunded {
    background: rgba(220,53,69,.15);
    border: 1px solid rgba(220,53,69,.25);
    color: #dc3545;
}

.status-pending {
    background: rgba(255,193,7,.15);
    border: 1px solid rgba(255,193,7,.25);
    color: #ffc107;
}

/* ===== Referee comments ===== */
.comment-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 16px 45px rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .comment-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 60px rgba(0,0,0,.10);
    }

.comment-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,.12);
    border: 1px solid rgba(13,110,253,.18);
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

/* ===== Join Team players ===== */
.player-card {
    background: rgba(0,0,0,.02);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 14px;
}

/* ===== Tournament details ===== */
.tournament-details-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 45px rgba(0,0,0,.06);
}

.details-grid {
    display: grid;
    gap: 10px;
}

.details-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(0,0,0,.02);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 12px 14px;
    font-weight: 700;
    color: rgba(0,0,0,.78);
}

.participants-box {
    background: rgba(0,0,0,.02);
    border: 1px dashed rgba(0,0,0,.12);
    border-radius: 18px;
    padding: 14px 16px;
}

.winner-box {
    background: rgba(255,193,7,.16);
    border: 1px solid rgba(255,193,7,.30);
    border-radius: 18px;
    padding: 14px 16px;
}

.details-actions {
    background: rgba(0,0,0,.02);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    padding: 14px;
}

/* Round card */
.round-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0,0,0,.06);
}

.round-head {
    padding: 12px 14px;
    background: rgba(0,0,0,.02);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Score / winner pills */
.score-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 900;
    background: rgba(13,110,253,.12);
    border: 1px solid rgba(13,110,253,.18);
}

.winner-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 900;
    background: rgba(25,135,84,.12);
    border: 1px solid rgba(25,135,84,.18);
}

.tournament-details-card {
    max-width: 860px;
    margin: 0 auto;
}
