/* ── Account Menu Block ── */

.nyehs-acct {
    flex-shrink: 0;
}

/* ── Wrapper item (position anchor for dropdown) ── */
.nyehs-acct__item {
    position: relative;
}

/* ── Trigger button ── */
.nyehs-acct__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    background-color: #0F172A;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--wp--preset--font-family--lato, inherit);
    line-height: 1.5;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.nyehs-acct__trigger:hover {
    opacity: 0.85;
}

.nyehs-acct__trigger-icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.nyehs-acct__trigger-label {
    /* Inline so it sits naturally after the icon/avatar in the flex row */
}

/* Logged-in avatar chip */
.nyehs-acct__trigger-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0;
    flex-shrink: 0;
}

/* ── Hover bridge ── */
.nyehs-acct__item--parent::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 36px;
}

/* ── Dropdown panel — dark glassmorphism ── */
.nyehs-acct__panel {
    position: fixed;
    right: 0;
    left: auto;
    width: 340px;
    /* Dark glass — semi-transparent so blur has effect */
    background: linear-gradient(
        160deg,
        rgba(15, 23, 42, 0.65) 0%,
        rgba(30, 58, 110, 0.65) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 0.5px rgba(0, 0, 0, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-sizing: border-box;
    z-index: 200;
    cursor: default;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    opacity: 0;
    transform: scaleY(0.82) translateY(-8px);
    transform-origin: top right;
    filter: blur(6px);
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity    0.2s  cubic-bezier(0.4, 0, 0.2, 1),
        transform  0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter     0.2s  cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.2s  cubic-bezier(0.4, 0, 0.2, 1);
}

/* Secondary bridge on the panel itself */
.nyehs-acct__panel::before {
    content: '';
    position: absolute;
    top: -36px;
    left: 0;
    right: 0;
    height: 36px;
}

/* Open state — panel is always portalled to body so only the self-class
   and JS-toggled ancestor classes drive visibility */
.nyehs-acct__panel--open,
.nyehs-acct__item--open > .nyehs-acct__panel,
.nyehs-acct__item--input-focused > .nyehs-acct__panel {
    opacity: 1;
    transform: scaleY(1) translateY(0);
    filter: blur(0);
    visibility: visible;
    pointer-events: auto;
}

/* ── Panel body — animation wrapper ── */
/* Pure opacity fade — no scale/translate so overflow:hidden never clips   */
/* or exposes the white panel background. Height is animated in JS so the  */
/* panel resizes smoothly instead of snapping between view heights.        */
@keyframes nyehs-body-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes nyehs-body-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Clips children to rounded corners — no backdrop-filter here so
   overflow:hidden produces clean anti-aliased edges */
.nyehs-acct__panel-body {
    border-radius: 20px;
    overflow: hidden;
}

.nyehs-acct__panel-body--out {
    animation: nyehs-body-out 0.15s ease-in forwards;
    pointer-events: none;
}

.nyehs-acct__panel-body--in {
    animation: nyehs-body-in 0.22s ease-out forwards;
}

/* ── Panel header (both states) ── */
.nyehs-acct__panel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 28px 24px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 65% at 50% -10%, rgba(0, 23, 199, 0.72) 0%, transparent 70%),
        linear-gradient(165deg, rgba(0, 23, 199, 0.55) 0%, rgba(0, 10, 90, 0.42) 100%);
    color: #fff;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

/* Ambient light orb — drifts from top-left */
.nyehs-acct__panel-header::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -15%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 23, 199, 0.28) 0%, transparent 65%);
    pointer-events: none;
}

/* Logged-out: icon circle */
.nyehs-acct__panel-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 14px;
    color: #fff;
}

.nyehs-acct__panel-title {
    margin: 0 0 4px;
    font-size: var(--wp--preset--font-size--large);
    font-weight: 400;
    font-family: var(--wp--preset--font-family--gt-eesti-display, inherit);
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Success variant — green tint on the icon circle */
.nyehs-acct__panel-icon-wrap--success {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.3);
}

/* Logout variant — warm amber farewell tint */
.nyehs-acct__panel-icon-wrap--logout {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.3);
}

.nyehs-acct__panel-subtitle {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

/* Logged-in: avatar circle */
.nyehs-acct__panel-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.35);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0;
}

.nyehs-acct__panel-greeting {
    margin: 0 0 4px;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nyehs-acct__panel-name {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    font-family: var(--wp--preset--font-family--gt-eesti-display, inherit);
    letter-spacing: 0.03em;
}

.nyehs-acct__panel-email {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ── Form body ── */
.nyehs-acct__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 24px 20px;
    background: rgba(255, 255, 255, 0.75);
}

.nyehs-acct__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nyehs-acct__label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* Input with leading icon */
.nyehs-acct__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nyehs-acct__input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

.nyehs-acct__input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid rgba(226, 232, 240, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    font-family: inherit;
    color: #0f172a;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nyehs-acct__input::placeholder {
    color: rgba(203, 213, 225, 0.8);
}

.nyehs-acct__input:focus {
    border-color: var(--wp--preset--color--accent, #0d41ff);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 3px rgba(13, 98, 255, 0.08);
}

/* ── Password visibility toggle ── */
.nyehs-acct__input--has-toggle {
    padding-right: 38px;
}

.nyehs-acct__pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 0;
    transition: color 0.15s ease;
}

.nyehs-acct__pwd-toggle:hover {
    color: #475569;
}

.nyehs-acct__pwd-eye-off {
    display: none;
}

.nyehs-acct__pwd-toggle.is-visible .nyehs-acct__pwd-eye {
    display: none;
}

.nyehs-acct__pwd-toggle.is-visible .nyehs-acct__pwd-eye-off {
    display: block;
}

/* ── Hide WordPress password strength meter inside the panel ── */
.nyehs-acct__panel #pass-strength-result,
.nyehs-acct__panel .pass-strength-result,
.nyehs-acct__panel .password-strength-meter,
.nyehs-acct__panel .pw-weak,
.nyehs-acct__panel .pw-bad,
.nyehs-acct__panel .pw-good,
.nyehs-acct__panel .pw-strong,
.nyehs-acct__panel .pw-mismatch {
    display: none !important;
}

/* ── Remember me + forgot row ── */
.nyehs-acct__remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
}

.nyehs-acct__remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    user-select: none;
    line-height: 1;
    flex-shrink: 1;
    min-width: 0;
    position: relative; /* contain the absolutely-positioned input */
}

.nyehs-acct__remember-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.nyehs-acct__remember-box {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    box-sizing: border-box; /* border is inside the 17px — no extra height added */
    border-radius: 5px;
    border: 1.5px solid rgba(203, 213, 225, 0.6);
    background: rgba(248, 250, 252, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.nyehs-acct__remember-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
    opacity: 0;
    transition: opacity 0.1s ease;
}

.nyehs-acct__remember-input:checked + .nyehs-acct__remember-box {
    background: var(--wp--preset--color--accent, #0d41ff);
    border-color: var(--wp--preset--color--accent, #0d41ff);
}

.nyehs-acct__remember-input:checked + .nyehs-acct__remember-box::after {
    opacity: 1;
}

.nyehs-acct__remember:hover .nyehs-acct__remember-box {
    border-color: var(--wp--preset--color--accent, #0d41ff);
}

.nyehs-acct__remember-input:focus-visible + .nyehs-acct__remember-box {
    outline: 2px solid var(--wp--preset--color--accent, #0d41ff);
    outline-offset: 2px;
}

.nyehs-acct__remember-label {
    position: relative;
    top: 2px;
}

/* ── Inline field error (appears below the input) ── */
.nyehs-acct__field-error[hidden] {
    display: none;
}

.nyehs-acct__field-error {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 4px 2px 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #e03131;
    line-height: 1.4;
    animation: nyehs-field-error-in 0.18s ease-out;
}

.nyehs-acct__field-error::before {
    content: '';
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

@keyframes nyehs-field-error-in {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Form-level error (server errors with no specific field) ── */
.nyehs-acct__error[hidden] {
    display: none;
}

.nyehs-acct__error {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e03131;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 2px;
    line-height: 1.4;
}

.nyehs-acct__error::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.75;
}

/* ── Input invalid state ── */
@keyframes nyehs-field-shake {
    0%        { transform: translateX(0); }
    15%       { transform: translateX(-5px); }
    35%       { transform: translateX(5px); }
    55%       { transform: translateX(-4px); }
    70%       { transform: translateX(3px); }
    85%       { transform: translateX(-2px); }
    100%      { transform: translateX(0); }
}

.nyehs-acct__input.is-invalid {
    border-color: #ef4444;
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
    animation: nyehs-field-shake 0.38s ease-out;
}

.nyehs-acct__input-wrap:has(.nyehs-acct__input.is-invalid) .nyehs-acct__input-icon {
    color: #ef4444;
    transition: color 0.15s ease;
}

/* ── Submit button ── */
.nyehs-acct__submit {
    width: 100%;
    padding: 11px 20px;
    margin-top: 4px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--wp--preset--color--accent, #0d41ff) 0%, #1a56f5 100%);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    -webkit-font-smoothing: antialiased;
}

.nyehs-acct__submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nyehs-acct__submit:active {
    transform: translateY(0);
    opacity: 1;
}

/* ── Forgot password ── */
.nyehs-acct__forgot {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--wp--preset--color--accent, #0d41ff);
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nyehs-acct__forgot:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ── Sign-up section ── */
.nyehs-acct__signup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 14px 24px 18px;
    background: rgba(255, 255, 255, 0.75);
}

.nyehs-acct__signup-text {
    font-size: 0.8125rem;
    color: #64748b;
}

.nyehs-acct__signup-link {
    font-size: 0.8125rem;
    color: var(--wp--preset--color--accent, #0d41ff);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
    /* reset <button> defaults so it looks identical to <a> */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
}

.nyehs-acct__signup-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ── Viewing another profile banner ── */
.nyehs-acct__viewing-banner {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    font-size: 0.75rem;
    color: rgba(30, 41, 59, 0.7);
    line-height: 1.3;
}

.nyehs-acct__viewing-banner svg {
    flex-shrink: 0;
    color: rgba(99, 102, 241, 0.7);
}

.nyehs-acct__viewing-banner strong {
    font-weight: 600;
    color: #1e293b;
}

/* ── Logged-in nav links ── */
.nyehs-acct__panel-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 12px;
    gap: 2px;
    background: rgba(255, 255, 255, 0.75);
}

.nyehs-acct__panel-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.nyehs-acct__panel-link:hover {
    background: rgba(241, 245, 249, 0.75);
    color: var(--wp--preset--color--accent, #0d41ff);
}

.nyehs-acct__panel-link--logout:hover {
    background: rgba(254, 242, 242, 0.75);
    color: #dc2626;
}

.nyehs-acct__panel-link-icon {
    flex-shrink: 0;
    opacity: 0.6;
}

.nyehs-acct__panel-link:hover .nyehs-acct__panel-link-icon {
    opacity: 1;
}

/* ── Messages / Notifications stat tiles ── */
.nyehs-acct__panel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.75);
}

.nyehs-acct__panel-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 14px 8px 12px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.75);
    border: 1.5px solid rgba(241, 245, 249, 0.75);
    text-decoration: none;
    color: inherit;
    transition:
        background    0.15s ease,
        border-color  0.15s ease,
        box-shadow    0.15s ease,
        transform     0.15s ease;
}

.nyehs-acct__panel-stat:hover {
    background: rgba(241, 245, 249, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.nyehs-acct__panel-stat-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.nyehs-acct__panel-stat-count {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: #94a3b8;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    font-family: var(--wp--preset--font-family--gt-eesti-display, inherit);
}

.nyehs-acct__panel-stat-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

/* Active — there are unread items */
.nyehs-acct__panel-stat--active {
    background: rgba(13, 98, 255, 0.05);
    border-color: rgba(13, 98, 255, 0.18);
}

.nyehs-acct__panel-stat--active:hover {
    background: rgba(13, 98, 255, 0.09);
    border-color: rgba(13, 98, 255, 0.28);
    box-shadow: 0 4px 12px rgba(13, 98, 255, 0.1);
}

.nyehs-acct__panel-stat--active .nyehs-acct__panel-stat-icon {
    color: var(--wp--preset--color--accent, #0d41ff);
}

.nyehs-acct__panel-stat--active .nyehs-acct__panel-stat-count {
    color: var(--wp--preset--color--accent, #0d41ff);
}

.nyehs-acct__panel-stat--active .nyehs-acct__panel-stat-label {
    color: rgba(13, 98, 255, 0.75);
}

/* Thin rule above Log out */
.nyehs-acct__panel-nav-sep {
    display: none;
}

/* ── Membership banner ── */
.nyehs-acct__membership {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.75);
}

.nyehs-acct__membership-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.nyehs-acct__membership--active .nyehs-acct__membership-icon {
    background: #dcfce7;
    color: #16a34a;
}

.nyehs-acct__membership--cta .nyehs-acct__membership-icon {
    background: #dbeafe;
    color: var(--wp--preset--color--accent, #0d41ff);
}

.nyehs-acct__membership--pending .nyehs-acct__membership-icon {
    background: #fef3c7;
    color: #d97706;
}

.nyehs-acct__membership--expired .nyehs-acct__membership-icon {
    background: #fee2e2;
    color: #dc2626;
}

.nyehs-acct__membership-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nyehs-acct__membership-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.nyehs-acct__membership-sub {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
}

.nyehs-acct__membership-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wp--preset--color--accent, #0d41ff);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.nyehs-acct__membership-btn:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ── Membership card trigger ── */
.nyehs-acct__card-trigger-wrap {
    padding: 10px 16px 14px;
    background: rgba(255, 255, 255, 0.75);
}

.nyehs-acct__card-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.045);
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.01em;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.09),
        inset 0 1px 1px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        background   0.18s ease,
        box-shadow   0.18s ease,
        color        0.18s ease;
    -webkit-font-smoothing: antialiased;
}

.nyehs-acct__card-trigger:hover {
    background: rgba(0, 0, 0, 0.07);
    color: var(--wp--preset--color--accent, #0d41ff);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.09),
        inset 0 1px 1px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.9);
}

.nyehs-acct__card-trigger:active {
    background: rgba(0, 0, 0, 0.07);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.12),
        inset 0 1px 2px rgba(0, 0, 0, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.7);
}

.nyehs-acct__card-trigger-icon {
    flex-shrink: 0;
    color: var(--wp--preset--color--accent, #0d41ff);
}

.nyehs-acct__card-trigger-text {
    flex: 1;
}

.nyehs-acct__card-trigger-chevron {
    flex-shrink: 0;
    color: #94a3b8;
    margin-left: auto;
}

/* ── Membership card panel-header modifier ── */
.nyehs-acct__panel-header--card {
    position: relative;
}

.nyehs-acct__card-back {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 6px 12px 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.nyehs-acct__card-back:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nyehs-acct__card-back:active {
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nyehs-acct__card-back svg {
    display: block;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

.nyehs-acct__card-back span {
    margin-left: -1px;
}

/* ── Card view body (instructions + wallet buttons) ── */
.nyehs-acct__card-view-body {
    padding: 16px 20px 20px;
    background: rgba(255, 255, 255, 0.75);
}

.nyehs-acct__card-view-instructions {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

/* Wallet buttons inside card view — strip standalone padding/border, stack vertically */
.nyehs-acct__card-view-body .nyehs-acct__wallet {
    padding: 0;
    border-top: none;
    flex-direction: column;
    flex-wrap: nowrap;   /* neutralise plugin's flex-wrap: wrap */
    align-items: stretch;
    gap: 8px;
}

/* border-box prevents padding from adding to the stretched width */
.nyehs-acct__card-view-body .nyehs-wallet-btn {
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
}

.nyehs-acct__card-view-body .nyehs-wallet-btn__badge {
    height: 36px;
    width: auto;
}

/* ── Mobile — panel fixed positioning (JS moves panel to <body>) ── */
@media (max-width: 960px) {
    .nyehs-acct__panel {
        /* JS sets top/left/right inline; position:fixed keeps panel viewport-relative
           when scrolling. width:auto lets left+right determine the width. */
        position: fixed;
        width: auto;
        transform-origin: top center;
    }
}

/* No-JS fallback: viewport safety on very small screens */
@media (max-width: 520px) {
    .nyehs-acct__panel {
        width: calc(100vw - 24px);
        right: 0;
        left: auto;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .nyehs-acct__panel,
    .nyehs-acct__submit {
        transition: none;
    }
    .nyehs-acct__panel-body--out,
    .nyehs-acct__panel-body--in {
        animation: none;
    }
}

/* ── Nav link count badge (My Tickets) ── */
.nyehs-acct__nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--wp--preset--color--accent, #0d41ff);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    flex-shrink: 0;
}
