/* Neolithic — header profile-icon account flyout.
   Uses the header sub-palette tokens (--neo-h-*) so it matches the bar in both
   themes. Desktop only (revealed via .neo-acct-open, set by account-flyout.js). */

.neo-header .elementor-widget-icon.neo-acct-has-flyout { position: relative; }
.neo-header .neo-acct-icon-link { display: inline-flex; align-items: center; line-height: 0; }

.neo-acct-flyout {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    min-width: 210px;
    padding: 16px 18px;
    background: rgba(10, 8, 5, 0.97);
    border: 1px solid var(--neo-h-line, rgba(201, 168, 76, 0.14));
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 100020;
}
:root[data-theme="light"] .neo-acct-flyout { background: var(--neo-panel, #fff); }

.neo-header .elementor-widget-icon.neo-acct-open .neo-acct-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.neo-acct-flyout__name {
    display: block;
    font-family: var(--neo-font-brutalist, 'Cinzel', serif);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neo-h-cream, #f5f0e8);
}
.neo-acct-flyout__rank {
    display: block;
    margin-top: 3px;
    font-family: var(--neo-font-body, 'Source Serif 4', serif);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--neo-h-gold, #c9a84c);
}
.neo-acct-flyout__cta {
    display: block;
    padding: 9px 0;
    font-family: var(--neo-font-body, 'Source Serif 4', serif);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .3s ease, padding-left .3s ease;
    color: var(--neo-h-gold, #c9a84c);
    letter-spacing: 0.16em;
}
.neo-acct-flyout__cta:hover { color: var(--neo-h-gold, #c9a84c); padding-left: 6px; }

/* Single link: name/standing above, then this — icon + label, logged-in only. */
.neo-acct-flyout__out {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--neo-h-line, rgba(201, 168, 76, 0.14));
    font-family: var(--neo-font-body, 'Source Serif 4', serif);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--neo-h-muted, #8f8a78);
    transition: color .3s ease;
}
.neo-acct-flyout__out svg { flex: none; }
.neo-acct-flyout__out:hover { color: var(--neo-h-gold, #c9a84c); }
.neo-acct-flyout__line {
    margin: 0 0 4px;
    font-family: var(--neo-font-body, 'Source Serif 4', serif);
    font-style: italic;
    font-size: 12px;
    line-height: 1.6;
    color: var(--neo-h-sand, #ddd5c0);
}
.neo-acct-flyout__cta { color: var(--neo-h-gold, #c9a84c); letter-spacing: 0.16em; }

@media (prefers-reduced-motion: reduce) {
    .neo-acct-flyout { transition: none; }
}
