* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: #f4f7fb;
    color: #172033;
}

.header {
    background: linear-gradient(135deg, #073b7a, #0066cc);
    color: white;
    padding: 18px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-wrap {
    width: 190px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px 8px;
}

.topmax-logo {
    width: 190px;
    max-height: 62px;
    object-fit: contain;
    display: block;
}

.brand h1 {
    font-size: 20px;
}

.brand p {
    font-size: 12px;
    opacity: .85;
    margin-top: 3px;
}

.portal {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero {
    background:
        linear-gradient(rgba(3,55,112,.90), rgba(0,94,184,.90)),
        url("https://images.unsplash.com/photo-1461896836934-ffe607ba8211?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    padding: 65px 6%;
    color: white;
}

.hero-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,.16);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 14px;
}

.hero p {
    line-height: 1.7;
    opacity: .92;
}

.container {
    max-width: 1200px;
    margin: -30px auto 60px;
    padding: 0 20px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.07);
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-title > span {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e8f2ff;
    color: #0764bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    outline: none;
    font: inherit;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #0875d1;
    box-shadow: 0 0 0 3px rgba(8,117,209,.1);
}

.instruction {
    color: #68758a;
    font-size: 14px;
    margin-bottom: 25px;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.sport-card {
    position: relative;
    border: 2px solid #e7ebf1;
    border-radius: 16px;
    padding: 25px 18px;
    cursor: pointer;
    text-align: center;
    transition: .25s;
}

.sport-card:hover {
    transform: translateY(-4px);
    border-color: #4c9de8;
}

.sport-card.selected {
    border-color: #0875d1;
    background: #f0f7ff;
}

.check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d5dce5;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected .check {
    background: #0875d1;
    border-color: #0875d1;
    color: white;
}

.sport-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    border-radius: 18px;
    background: #edf5ff;
    color: #0875d1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.sport-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.sport-card p {
    font-size: 12px;
    color: #7b8798;
}

.summary {
    margin-top: 30px;
    padding: 22px;
    background: #f7faff;
    border: 1px solid #dfeeff;
    border-radius: 14px;
}

#selectedList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.selected-tag {
    background: #0875d1;
    color: white;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.empty {
    color: #8a96a7;
    font-size: 13px;
}

.submit-area {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.submit-area p {
    color: #7a8697;
    font-size: 12px;
}

button {
    border: none;
    background: linear-gradient(135deg, #075cae, #087fdc);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.alert {
    padding: 15px 18px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 14px;
}

.alert.success {
    background: #e9f9ef;
    color: #168244;
}

.alert.error {
    background: #fff0f0;
    color: #c62828;
}

.alert.info {
    background: #edf6ff;
    color: #0865b3;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat {
    padding: 20px;
    border-radius: 12px;
    background: #f4f8fd;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 30px;
    color: #0869bd;
}

.stat span {
    font-size: 13px;
}

.admin-toolbar {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7faff;
    border: 1px solid #dfeaf8;
    border-radius: 10px;
    padding: 12px 14px;
    max-width: 480px;
}

.search-box i {
    color: #6b7a90;
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font: inherit;
    color: #172033;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 13px;
    border-bottom: 1px solid #e7ebf1;
    text-align: left;
    font-size: 13px;
}

th {
    background: #f5f8fc;
}

footer {
    text-align: center;
    padding: 25px;
    color: #7c8798;
    font-size: 12px;
}

.logo-wrap {
    width: 150px;
    height: 55px;
}

.topmax-logo {
    width: 150px;
    max-height: 55px;
}

@media (max-width: 900px) {
    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h2 {
        font-size: 34px;
    }
}

@media (max-width: 600px) {
    .portal {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .sports-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .card {
        padding: 20px;
    }

    .submit-area {
        flex-direction: column;
        align-items: stretch;
    }

    button {
        width: 100%;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h2 {
        font-size: 28px;
    }
}
