/* Profiles & Registrations CSS */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}
.profile-stat {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border: 1px solid #e2e8e5;
}
.profile-stat strong {
    display: block;
    font-size: 32px;
    color: #123a63;
}
.profile-stat span {
    font-size: 14px;
    color: #64748b;
}

.profile-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0 20px;
}
.profile-section-title h2 {
    margin: 0;
    color: #061a2f;
}

.profile-btn {
    border: 0;
    background: #123a63;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.profile-btn:hover { background: #0b2540; }
.profile-btn.coach-btn { background: #d9a441; color: #07182c; }

.profile-search {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e2e8e5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}
.profile-card {
    background: #fff;
    border: 1px solid #e2e8e5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.03);
}
.profile-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #e8f2ed;
}
.profile-card-body { padding: 18px; }
.profile-card h3 { margin: 0 0 8px; color: #061a2f; }
.profile-badge {
    display: inline-block;
    background: #fff5dd;
    color: #a76a00;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.profile-card p { margin: 6px 0; color: #64748b; font-size: 14px; }
.profile-card .view {
    width: 100%;
    margin-top: 14px;
    background: #edf4fa;
    color: #123a63;
    border: 1px solid #cde2d6;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.profile-card .view:hover { background: #dceaf5; }
.profile-card .view.coach-view { background: #061b36; color: #fff; }

.profile-empty {
    text-align: center;
    padding: 45px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    grid-column: 1 / -1;
}

/* Modals */
.profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    overflow: auto;
    padding: 30px;
}
.profile-modal-box {
    max-width: 750px;
    margin: 30px auto;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.profile-close {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    z-index: 10;
}
.profile-modal-box h2 { margin-top: 0; color: #061a2f; }

/* Forms */
.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.profile-form-group.full { grid-column: 1 / -1; }
.profile-form-group label {
    font-weight: 700;
    font-size: 13px;
    color: #334155;
}
.profile-form-group input, 
.profile-form-group select, 
.profile-form-group textarea {
    padding: 11px;
    border: 1px solid #d7e0dc;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
}
.profile-form-group textarea { min-height: 80px; resize: vertical; }
.profile-submit {
    margin-top: 18px;
    width: 100%;
    padding: 13px;
    border: none;
    background: #123a63;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}
.profile-form-section-title {
    color: #08251b;
    border-bottom: 2px solid #d9a441;
    padding-bottom: 8px;
    margin: 25px 0 15px;
    font-size: 17px;
}
.declaration-box {
    background: #f4f8fb;
    border: 1px solid #dce7ef;
    border-left: 4px solid #d9a441;
    border-radius: 8px;
    padding: 13px 15px;
    margin: 10px 0;
}
.declaration-box h4 { margin: 0 0 6px; color: #08251b; font-size: 14px; }
.declaration-box p { margin: 0; color: #526273; font-size: 13px; line-height: 1.6; }

/* Modal Profile Views */
.player-profile-page { background: #fff; min-height: 100%; color: #10283f; }
.profile-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 3px solid #d9a441;
    background: linear-gradient(135deg,#061b35,#0d3558);
    color: #fff;
    border-radius: 12px 12px 0 0;
    margin: 0 0 20px 0;
}
.brand-logo {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    border: 2px solid #d9a441;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #d9a441;
    font-size: 20px;
}
.academy-name { font-size: 24px; font-weight: 900; }
.academy-address { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.profile-heading { padding: 0 22px 15px; text-align: center; }
.profile-heading span { display: block; font-size: 24px; font-weight: 900; letter-spacing: 2px; color: #082b4c; }
.profile-heading small { color: #738296; }
.profile-main {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 28px;
    padding: 0 24px 24px;
}
.profile-photo-wrap {
    position: relative;
    background: #eef3f8;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe3ea;
    box-shadow: 0 10px 25px rgba(11,37,64,0.1);
}
.profile-photo-wrap img { width: 100%; height: 390px; object-fit: cover; display: block; }
.profile-id {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8,43,76,0.9);
    color: #d9a441;
    padding: 10px;
    text-align: center;
    font-weight: 900;
    letter-spacing: 1px;
}
.profile-info h1 { margin: 3px 0 5px; font-size: 34px; color: #082b4c; }
.player-tag {
    display: inline-block;
    background: #d9a441;
    color: #082b4c;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.info-item {
    padding: 11px 13px;
    background: #f5f8fb;
    border-left: 3px solid #d9a441;
    border-radius: 7px;
}
.info-item span { display: block; font-size: 11px; color: #718096; text-transform: uppercase; font-weight: 700; }
.info-item strong { display: block; margin-top: 3px; font-size: 14px; }
.achievement-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 9px;
    background: #082b4c;
    color: #fff;
}
.achievement-box h3 { margin: 0 0 5px; color: #d9a441; }
.profile-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 22px;
    border-top: 1px solid #dbe3ea;
    color: #64748b;
    font-size: 11px;
}

/* Coach Card Specific */
.coach-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dce6ef;
    box-shadow: 0 8px 24px rgba(9,33,59,0.07);
}
.coach-card-head {
    background: linear-gradient(135deg,#061b36,#0b3159);
    padding: 25px;
    text-align: center;
    color: #fff;
}
.coach-card-head img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #d9a441;
    background: #e7edf3;
}
.coach-role {
    display: inline-block;
    background: #d9a441;
    color: #07182c;
    font-weight: 800;
    font-size: 11px;
    padding: 6px 11px;
    border-radius: 30px;
    margin-top: 12px;
}
.coach-card-head h3 { font-size: 22px; margin: 12px 0 4px; }
.coach-card-body { padding: 20px; }
.coach-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.coach-quick div {
    background: #f5f8fb;
    padding: 11px;
    border-radius: 8px;
    font-size: 12px;
}
.coach-quick b { display: block; color: #061b36; margin-bottom: 3px; }

/* Coach Profile View */
.coach-phead {
    background: linear-gradient(135deg,#04152b,#0c345d);
    color: #fff;
    padding: 30px 38px;
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 4px solid #d9a441;
    border-radius: 12px 12px 0 0;
    margin: 0 0 20px 0;
}
.coach-phead img {
    width: 210px;
    height: 210px;
    object-fit: cover;
    border-radius: 14px;
    border: 5px solid #d9a441;
    background: #e7edf3;
}
.coach-phead h2 { font-size: 34px; margin: 7px 0; }
.coach-prole { color: #f0c76a; font-weight: 800; letter-spacing: 1px; }
.coach-pid { font-size: 12px; color: #c9d7e5; }
.coach-pc { padding: 0; }
.coach-pg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 13px;
}
.coach-bio {
    margin-top: 18px;
    background: #f7f9fc;
    border-left: 4px solid #d9a441;
    padding: 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.65;
}
.coach-bio b { display: block; margin-bottom: 5px; color: #061b36; }

@media(max-width:850px){
    .profile-main { grid-template-columns: 1fr; }
    .profile-photo-wrap { max-width: 300px; margin: auto; }
    .profile-info h1 { text-align: center; }
    .player-tag { display: block; width: max-content; margin: 0 auto 15px; }
    .profile-form-grid, .coach-quick, .coach-phead { flex-direction: column; text-align: center; }
    .coach-phead { flex-direction: column; text-align: center; }
    .coach-phead h2 { font-size: 27px; }
}

