/* InstaShadow header account menu (account-nav.js): Log In / Sign Up for guests; avatar, name, plan and a menu for
   members; a hamburger left of the logo on phones. Used on the viewer pages and the analyzer. */
.account-header{position:relative}
.account-nav{
    --an-grad:linear-gradient(90deg,#11D411 0%,#27DEBF 97%);
    --an-avatar:56px;
    position:relative;
    display:flex;
    align-items:center;
    gap:16px;
    color:#fff;
    font-family:Roboto,"Helvetica Neue",Arial,sans-serif;
}
.account-nav [hidden]{display:none!important}
.account-nav button{font:inherit;cursor:pointer}
.account-nav a:focus-visible,
.account-nav button:focus-visible{outline:2px solid #11D411;outline-offset:3px}

/* Pricing (the analyzer's header, as on InstaCognito): outlined like the account pages' header link */
.account-nav__pricing,
.account-nav__mobile-pricing{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:99px;
    height:39px;
    padding:0 18px;
    border:1px solid #11D411;
    border-radius:12px;
    color:#11D411;
    font-size:18px;
    line-height:22px;
    text-decoration:none;
    white-space:nowrap;
}
.account-nav__pricing:hover,
.account-nav__mobile-pricing:hover{background:rgba(17,212,17,.1)}
.account-nav__guest{display:flex;align-items:center;gap:15px}
.account-nav__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:99px;
    height:39px;
    padding:0 18px;
    border:0;
    border-radius:12px;
    background:var(--an-grad);
    color:#fff;
    font-size:18px;
    font-weight:400;
    line-height:22px;
    text-decoration:none;
    white-space:nowrap;
}
.account-nav__button:hover{filter:brightness(1.06)}
.account-nav__button--outline{
    color:#11D411;
    border:1px solid transparent;
    background:linear-gradient(#000,#000) padding-box,var(--an-grad) border-box;
}
.account-nav__button--outline:hover{filter:none;background:linear-gradient(#0b160b,#0b160b) padding-box,var(--an-grad) border-box}

/* Member: avatar, name over the plan pill, chevron */
.account-nav__member{display:flex;align-items:center;gap:14px}
.account-nav__avatar{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:var(--an-avatar);
    height:var(--an-avatar);
    flex:0 0 var(--an-avatar);
    border-radius:50%;
    background:var(--an-grad);
    color:#fff;
    font-size:calc(var(--an-avatar) * .44);
    font-weight:700;
}
.account-nav__meta{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.account-nav__identity{padding:0;border:0;background:transparent;color:#fff;text-align:left}
.account-nav__name{
    display:block;
    max-width:170px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:16px;
    font-weight:700;
    line-height:19px;
}
.account-nav__plan{
    display:inline-flex;
    align-items:center;
    gap:8px;
    height:32px;
    padding:0 3px 0 10px;
    border:1px solid #11D411;
    border-radius:9px;
    color:#fff;
    font-size:12px;
    font-weight:500;
    white-space:nowrap;
}
.account-nav__plan a{
    display:inline-flex;
    align-items:center;
    height:25px;
    padding:0 9px;
    border-radius:6px;
    color:#fff;
    background:var(--an-grad);
    text-decoration:none;
}
.account-nav__more{
    align-self:flex-end;
    width:24px;
    height:24px;
    margin:0 0 4px -4px;
    padding:0;
    border:0;
    display:grid;
    place-items:center;
    background:transparent;
}
.account-nav__chevron{
    width:9px;
    height:9px;
    border-right:1.6px solid #11D411;
    border-bottom:1.6px solid #11D411;
    transform:rotate(45deg) translate(-2px,-2px);
    transition:transform .15s ease;
}
.account-nav.is-open .account-nav__chevron{transform:rotate(225deg) translate(-1px,-1px)}

.account-nav__panel{
    position:absolute;
    top:calc(100% + 16px);
    right:0;
    min-width:186px;
    padding:16px 14px;
    border-radius:20px;
    background:rgba(38,42,38,.96);
    -webkit-backdrop-filter:blur(20px);
    backdrop-filter:blur(20px);
    box-shadow:0 20px 40px rgba(0,0,0,.5);
    z-index:300;
}
.account-nav__links{display:grid;gap:2px}
.account-nav__links > a,
.account-nav__links > button{
    width:100%;
    padding:6px 16px;
    border:0;
    border-radius:10px;
    text-align:left;
    color:#fff;
    background:transparent;
    font-size:20px;
    line-height:24px;
    text-decoration:none;
}
.account-nav__links > a:hover,
.account-nav__links > button:hover{color:#11D411;background:rgba(255,255,255,.05)}
.account-nav__links > button:disabled{cursor:wait;opacity:.6}
.account-nav__mobile-toggle,
.account-nav__mobile-pricing,
.account-nav .account-nav__mobile-guest,
.account-nav .account-nav__mobile-identity{display:none}
.account-nav__status{max-width:240px;margin:0;color:rgba(255,255,255,.7);font-size:13px;line-height:1.5}
.account-nav__status:not(:empty){padding:8px 12px}

@media (max-width:1000px) and (min-width:768px){
    .account-nav{gap:12px}
    .account-nav__name{max-width:110px}
}

@media (max-width:767px){
    .account-header{box-sizing:border-box;padding-left:62px!important}
    .account-nav{position:static;gap:0}
    .account-nav .account-nav__desktop,
    .account-nav__pricing{display:none}
    .account-nav__mobile-pricing{display:flex;width:100%;box-sizing:border-box;margin-bottom:16px}
    /* Hamburger left of the logo; a cross while open */
    .account-nav__mobile-toggle{
        position:absolute;
        left:16px;
        top:50%;
        transform:translateY(-50%);
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        justify-content:center;
        gap:5px;
        width:30px;
        height:30px;
        padding:4px;
        border:0;
        background:transparent;
    }
    .account-nav__mobile-toggle span{display:block;width:18px;height:2px;border-radius:2px;background:#fff;transition:transform .15s,opacity .15s,width .15s}
    .account-nav__mobile-toggle span:nth-child(2){width:14px}
    .account-nav.is-open .account-nav__mobile-toggle span{width:22px}
    .account-nav.is-open .account-nav__mobile-toggle span:first-child{transform:translateY(7px) rotate(45deg)}
    .account-nav.is-open .account-nav__mobile-toggle span:nth-child(2){opacity:0}
    .account-nav.is-open .account-nav__mobile-toggle span:last-child{transform:translateY(-7px) rotate(-45deg)}
    .account-nav__panel{
        position:absolute;
        top:100%;
        left:0;
        right:0;
        min-width:0;
        padding:20px 20px 24px;
        border-radius:0 0 26px 26px;
        background:rgba(0,0,0,.94);
        box-shadow:0 30px 60px rgba(0,0,0,.6);
        display:flex;
        flex-direction:column;
        gap:18px;
    }
    .account-nav .account-nav__mobile-guest{display:grid;grid-template-columns:1fr 1fr;gap:16px}
    .account-nav__mobile-guest > a{min-width:0;width:100%}
    .account-nav .account-nav__mobile-identity{display:flex;align-items:center;gap:10px;order:-1}
    .account-nav__mobile-identity .account-nav__avatar{--an-avatar:50px}
    .account-nav__mobile-identity .account-nav__name{flex:1;min-width:0;max-width:none}
    .account-nav__links{gap:6px}
    .account-nav__links > a,
    .account-nav__links > button{padding:8px 0;font-size:18px}
    .account-nav__status{max-width:none;text-align:center}
}
