
/*
 * A shared dock for hero controls (profile details, gallery, etc.).
 * By centralising the buttons in a single flex container we avoid them overlapping or
 * stacking on top of each other. Each button sets its own pointer events so the
 * dock itself remains non‑interactive.
 */
.ogx-profile-hero-tab-dock{
    position:absolute;
    left:50%;
    bottom:-18px;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:8;
    pointer-events:none;
}

/* Ensure any child of the dock can receive events */
.ogx-profile-hero-tab-dock > *{
    pointer-events:auto;
}

/* Remove the old single‑button wrapper now that we use a shared dock */
.ogx-expanded-profile-toggle-wrap{
    display:none;
}

.ogx-expanded-profile-toggle{
    pointer-events:auto;
    position:relative;
    appearance:none;
    border:1px solid rgba(126, 208, 255, 0.24);
    border-top-color:rgba(126, 208, 255, 0.14);
    background:linear-gradient(180deg, rgba(11,17,27,0.88) 0%, rgba(9,14,22,0.96) 58%, rgba(7,11,18,0.99) 100%);
    color:#eef8ff;
    border-radius:999px;
    min-height:30px;
    padding:5px 13px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    font-weight:800;
    font-size:11px;
    line-height:1;
    letter-spacing:.01em;
    box-shadow:0 10px 20px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.04);
    cursor:pointer;
    white-space:nowrap;
    transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

/*
 * Remove decorative pseudo elements on the profile toggle. When two buttons sit next to
 * each other the pseudo elements would overlap and create a messy large pill behind them.
 */
.ogx-expanded-profile-toggle::before,
.ogx-expanded-profile-toggle::after{
    display:none;
}

.ogx-expanded-profile-toggle:hover,
.ogx-expanded-profile-toggle:focus-visible{
    transform:translateY(-1px);
    border-color:rgba(126, 208, 255, 0.40);
    box-shadow:0 12px 22px rgba(0,0,0,.24), 0 0 0 1px rgba(94,192,255,.08) inset;
    outline:none;
}

.ogx-expanded-profile-toggle .dashicons{
    width:14px;
    height:14px;
    font-size:14px;
    line-height:14px;
}

.ogx-expanded-profile-toggle-caret{
    transition:transform .18s ease;
}

.khdb-profile-hero.ogx-expanded-open .ogx-expanded-profile-toggle-caret{
    transform:rotate(180deg);
}

.ogx-expanded-profile-panel{
    display:none;
    margin:34px 0 18px;
    border-radius:22px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(14,20,29,0.98) 0%, rgba(8,12,18,0.98) 100%);
    box-shadow:0 18px 48px rgba(0,0,0,.22);
    overflow:hidden;
}

.ogx-expanded-profile-panel.is-open{
    display:block;
}

.ogx-expanded-profile-shell{
    padding:18px;
}

.ogx-expanded-profile-head{
    margin-bottom:14px;
}

/* Identity row inside the expanded profile */
.ogx-profile-identity {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}
.ogx-profile-identity .ogx-identity-item {
    color: #e2f2ff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ogx-profile-identity .ogx-identity-item::after {
    content: '\2022';
    margin: 0 6px;
    color: #6d8dac;
}
.ogx-profile-identity .ogx-identity-item:last-child::after {
    content: '';
    margin: 0;
}

/* Progress bar */
.ogx-profile-progress {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}
.ogx-profile-progress-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(94,192,255,0.9), rgba(151,224,255,0.9));
    width: 0%;
    transition: width 0.3s ease;
}

.ogx-expanded-profile-kicker{
    font-size:11px;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:#8bcfff;
    margin-bottom:8px;
}

.ogx-expanded-profile-head h4{
    margin:0;
    font-size:24px;
    line-height:1.15;
    color:#f6fbff;
}

.ogx-expanded-profile-head p{
    margin:8px 0 0;
    color:#9eb8ca;
    font-size:13px;
    line-height:1.55;
    max-width:880px;
}

.ogx-expanded-profile-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
}

.ogx-expanded-profile-card{
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    border-radius:18px;
    padding:15px;
}

.ogx-expanded-profile-card-title{
    color:#eef8ff;
    font-size:15px;
    font-weight:800;
    margin-bottom:10px;
}

.ogx-expanded-profile-list{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:9px;
}

.ogx-expanded-profile-list li{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 12px;
    border-radius:14px;
    background:rgba(255,255,255,.03);
}

.ogx-expanded-profile-list span{
    color:#d8ebf7;
    font-size:13px;
    font-weight:700;
}

.ogx-expanded-profile-list strong{
    color:#7f9bb0;
    font-size:12px;
    font-weight:700;
}

.ogx-expanded-profile-foot{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;
}

/* Edit trigger button in footer */
.ogx-expanded-profile-foot .ogx-profile-edit-trigger{
    appearance:none;
    border:1px solid rgba(94,192,255,.26);
    background:rgba(94,192,255,.08);
    color:#e7f7ff;
    border-radius:999px;
    padding:8px 14px;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    transition:background .18s ease, border-color .18s ease;
}
.ogx-expanded-profile-foot .ogx-profile-edit-trigger:hover,
.ogx-expanded-profile-foot .ogx-profile-edit-trigger:focus-visible{
    background:rgba(94,192,255,.18);
    border-color:rgba(94,192,255,.5);
    outline:none;
}

@media (max-width: 782px){
    .ogx-expanded-profile-grid{
        grid-template-columns:1fr;
    }

    .ogx-expanded-profile-toggle{
        min-height:28px;
        padding:5px 11px;
        font-size:10px;
        gap:6px;
    }

    .ogx-expanded-profile-toggle-wrap{
        bottom:-16px;
    }

    .ogx-expanded-profile-toggle::before{
        top:-9px;
        height:16px;
        width:74%;
    }

    .ogx-expanded-profile-toggle::after{
        width:58%;
    }

    .ogx-expanded-profile-panel{
        margin-top:30px;
    }

    .ogx-expanded-privacy-pill{
        min-height:30px;
        padding:5px 9px;
        font-size:10px;
        gap:6px;
    }

    .ogx-expanded-privacy-menu{
        width:138px;
        max-width:calc(100vw - 20px);
    }
}

/* Modal styles for editing profile details */
.ogx-profile-modal{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:10000;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.6);
    padding:20px;
}

.ogx-profile-modal-overlay{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:transparent;
}

.ogx-profile-modal-content{
    position:relative;
    background:linear-gradient(180deg, rgba(14,20,29,0.98) 0%, rgba(8,12,18,0.98) 100%);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:18px;
    box-shadow:0 18px 48px rgba(0,0,0,.22);
    width:100%;
    max-width:680px;
    max-height:80vh;
    overflow-y:auto;
    padding:20px;
    color:#eef8ff;
}

.ogx-profile-modal-content h3{
    margin-top:0;
    font-size:22px;
    font-weight:800;
    margin-bottom:16px;
}

.ogx-profile-field{
    margin-bottom:16px;
}

.ogx-profile-field label{
    display:block;
    font-size:13px;
    font-weight:700;
    color:#8bcfff;
    margin-bottom:4px;
}

.ogx-profile-field input,
.ogx-profile-field textarea{
    width:100%;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.06);
    color:#e2f2ff;
    border-radius:8px;
    padding:8px 10px;
    font-size:13px;
    resize:vertical;
}

.ogx-profile-save-button,
.ogx-profile-cancel-button{
    appearance:none;
    border:none;
    border-radius:999px;
    padding:8px 16px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    margin-right:12px;
}
.ogx-profile-save-button{
    background:rgba(94,192,255,.85);
    color:#0d1827;
}
.ogx-profile-cancel-button{
    background:rgba(255,255,255,.16);
    color:#e2f2ff;
}



.ogx-expanded-profile-head-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}

.ogx-expanded-privacy-control{
    position:relative;
    display:inline-flex;
    max-width:100%;
}

.ogx-expanded-privacy-control[hidden]{
    display:none !important;
}

.ogx-expanded-privacy-pill{
    appearance:none;
    border:1px solid rgba(126,208,255,0.24);
    border-top-color:rgba(126,208,255,0.14);
    background:linear-gradient(180deg, rgba(11,17,27,0.88) 0%, rgba(9,14,22,0.96) 58%, rgba(7,11,18,0.99) 100%);
    color:#eef8ff;
    border-radius:999px;
    min-height:32px;
    max-width:100%;
    padding:5px 10px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-weight:800;
    font-size:11px;
    line-height:1;
    letter-spacing:.01em;
    white-space:nowrap;
    box-shadow:0 10px 20px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.04);
    cursor:pointer;
    transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ogx-expanded-privacy-pill:hover,
.ogx-expanded-privacy-pill:focus-visible{
    transform:translateY(-1px);
    border-color:rgba(126, 208, 255, 0.40);
    box-shadow:0 12px 22px rgba(0,0,0,.24), 0 0 0 1px rgba(94,192,255,.08) inset;
    outline:none;
}

.ogx-expanded-privacy-pill .dashicons,
.ogx-expanded-privacy-option .dashicons{
    width:14px;
    height:14px;
    font-size:14px;
    line-height:14px;
}

.ogx-expanded-privacy-pill-caret{
    transition:transform .18s ease;
}

.ogx-expanded-privacy-control.is-open .ogx-expanded-privacy-pill-caret{
    transform:rotate(180deg);
}

.ogx-expanded-privacy-menu{
    position:absolute;
    top:calc(100% + 6px);
    right:0;
    left:auto;
    width:146px;
    max-width:min(146px, calc(100vw - 24px));
    padding:6px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(14,20,29,0.98) 0%, rgba(8,12,18,0.98) 100%);
    box-shadow:0 18px 48px rgba(0,0,0,.28);
    display:flex;
    flex-direction:column;
    gap:5px;
    z-index:30;
}

.ogx-expanded-privacy-menu[hidden]{
    display:none !important;
}

.ogx-expanded-privacy-option{
    appearance:none;
    width:100%;
    border:1px solid rgba(255,255,255,.06);
    background:rgba(255,255,255,.03);
    color:#eef8ff;
    border-radius:11px;
    min-height:34px;
    padding:7px 9px;
    display:flex;
    align-items:center;
    gap:7px;
    text-align:left;
    font-weight:700;
    font-size:11px;
    cursor:pointer;
    transition:background .18s ease, border-color .18s ease, transform .18s ease;
}

.ogx-expanded-privacy-option:hover,
.ogx-expanded-privacy-option:focus-visible{
    background:rgba(255,255,255,.06);
    border-color:rgba(94,192,255,.22);
    outline:none;
}

.ogx-expanded-privacy-option.is-active{
    border-color:rgba(94,192,255,.35);
    box-shadow:0 0 0 1px rgba(94,192,255,.12) inset;
    background:rgba(94,192,255,.08);
}

.ogx-expanded-profile-private{
    padding:18px;
    border-radius:16px;
    background:rgba(255,255,255,.03);
    color:#d7e9f9;
    text-align:center;
    margin-top:8px;
}
