/* Nae rays storefront, balance tracker and WooCommerce account views. */
.nae-brand-group {
    display: inline-flex;
    align-items: center;
    gap: clamp(9px, 1.4vw, 18px);
    min-width: 0;
}

.nae-rays-header {
    min-height: 38px;
    padding: 5px 11px 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--nae-line, rgba(23, 32, 42, .18));
    border-radius: 999px;
    color: var(--nae-text, #17202a);
    background: transparent;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}
.nae-rays-header:hover { background: var(--nae-soft, rgba(255,255,255,.28)); transform: translateY(-1px); }
.nae-rays-header:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.nae-rays-header strong { min-width: 1ch; font-size: 13px; font-weight: 450; font-variant-numeric: tabular-nums; }

.nae-rays-sun { display: inline-flex; color: inherit; line-height: 0; }
.nae-rays-sun svg { width: 28px; height: 23px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.nae-rays-sun-core { opacity: .96; }
.nae-rays-ray { transition: opacity .22s ease; }
.nae-rays-ray.is-active { opacity: .96; }
.nae-rays-ray.is-inactive { opacity: .14; }
.nae-rays-sun-large svg { width: 116px; height: 94px; stroke-width: 1.15; }
.nae-rays-sun-account svg { width: 54px; height: 44px; stroke-width: 1.25; }

.nae-rays-purchase {
    width: min(100%, 940px);
    margin: 10px auto 0;
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(30px, 6vw, 84px);
    align-items: center;
    padding: clamp(26px, 5vw, 64px);
    border: 1px solid var(--nae-line, rgba(23, 32, 42, .18));
    border-radius: clamp(24px, 4vw, 42px);
    background: var(--nae-soft, rgba(255,255,255,.24));
    box-shadow: var(--nae-shadow, 0 20px 60px rgba(16,24,40,.09));
}
.nae-rays-purchase-copy .nae-rays-eyebrow { margin: 0 0 18px; color: var(--nae-muted); font-size: 14px; }
.nae-rays-purchase-copy h2 { margin: 0 0 20px !important; font-size: clamp(38px, 5vw, 70px) !important; line-height: 1 !important; font-weight: 300 !important; }
.nae-rays-purchase-copy p:last-child { margin: 0; color: var(--nae-muted); font-size: 16px; line-height: 1.65; }
.nae-rays-purchase-form { display: grid; gap: 22px; }
.nae-rays-slider-wrap { padding-top: 8px; }
.nae-rays-slider {
    width: 100%;
    height: 4px;
    margin: 0;
    appearance: none;
    border: 0;
    border-radius: 999px;
    outline: 0;
    background: linear-gradient(to right, var(--nae-text) 0 var(--nae-rays-progress, 25%), var(--nae-line) var(--nae-rays-progress, 25%) 100%);
    cursor: pointer;
}
.nae-rays-slider::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; border: 1px solid var(--nae-text); border-radius: 50%; background: var(--nae-bg); box-shadow: 0 4px 12px rgba(0,0,0,.13); }
.nae-rays-slider::-moz-range-thumb { width: 24px; height: 24px; border: 1px solid var(--nae-text); border-radius: 50%; background: var(--nae-bg); box-shadow: 0 4px 12px rgba(0,0,0,.13); }
.nae-rays-slider:focus-visible::-webkit-slider-thumb { outline: 2px solid currentColor; outline-offset: 4px; }
.nae-rays-ticks { margin-top: 17px; display: grid; grid-template-columns: repeat(5, 1fr); color: var(--nae-muted); font-size: 13px; }
.nae-rays-ticks span { text-align: center; transition: color .18s ease, font-weight .18s ease; }
.nae-rays-ticks span:first-child { text-align: left; }
.nae-rays-ticks span:last-child { text-align: right; }
.nae-rays-ticks span.is-active { color: var(--nae-text); font-weight: 500; }
.nae-rays-selection { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--nae-line); }
.nae-rays-selection span { color: var(--nae-muted); font-size: 13px; }
.nae-rays-selection strong { text-align: right; font-size: 17px; font-weight: 400; }
.nae-rays-continue {
    min-height: 48px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--nae-text) !important;
    border-radius: 999px !important;
    background: var(--nae-text) !important;
    color: var(--nae-bg) !important;
    text-decoration: none !important;
    font: inherit;
    font-weight: 350;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease;
}
.nae-rays-continue:hover { opacity: .9; transform: translateY(-1px); }
.nae-rays-continue:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.nae-rays-bank-note { margin: -7px 0 0 !important; color: var(--nae-muted); font-size: 12px !important; line-height: 1.55 !important; text-align: center; }
.nae-rays-notice { margin: 28px 0; padding: 22px; border: 1px solid var(--nae-line); border-radius: 20px; color: var(--nae-muted); }

.nae-rays-account-summary {
    margin: 0 0 30px;
    padding: 18px 22px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--nae-line);
    border-radius: 22px;
    color: var(--nae-text);
    background: var(--nae-soft);
    text-decoration: none;
}
.nae-rays-account-summary span:last-child { display: grid; gap: 4px; }
.nae-rays-account-summary small { color: var(--nae-muted); }
.nae-rays-account-summary strong { font-size: 20px; font-weight: 400; }
.nae-rays-account { display: grid; gap: 28px; scroll-margin-top: 104px; }
.nae-rays-account-hero { padding: clamp(24px, 4vw, 42px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(18px, 4vw, 40px); border: 1px solid var(--nae-line); border-radius: 28px; background: var(--nae-soft); }
.nae-rays-account-hero p { margin: 0 0 5px; color: var(--nae-muted); }
.nae-rays-account-hero h2 { display: inline; margin: 0 !important; font-size: clamp(38px, 5vw, 62px) !important; font-weight: 300 !important; font-variant-numeric: tabular-nums; }
.nae-rays-account-hero span { color: var(--nae-muted); }
.nae-rays-account-block { padding: 25px; border: 1px solid var(--nae-line); border-radius: 24px; }
.nae-rays-account-block h3 { margin-top: 0 !important; }
.nae-rays-ledger { display: grid; }
.nae-rays-ledger > div { padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--nae-line); }
.nae-rays-ledger > div:first-child { border-top: 0; }
.nae-rays-ledger span { display: grid; gap: 3px; }
.nae-rays-ledger strong { font-weight: 400; }
.nae-rays-ledger small, .nae-rays-muted { color: var(--nae-muted); }
.nae-rays-ledger b { font-weight: 500; font-variant-numeric: tabular-nums; }
.nae-rays-ledger b.is-negative { opacity: .72; }

@media (max-width: 760px) {
    .nae-rays-purchase { grid-template-columns: 1fr; gap: 34px; padding: 26px 20px; }
    .nae-rays-account-hero { grid-template-columns: auto 1fr; }
    .nae-rays-account-hero .nae-rays-continue { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .nae-header { gap: 10px; }
    .nae-actions { gap: 6px; }
    .nae-actions .nae-icon-button { width: 38px; height: 38px; }
    .nae-brand-group { gap: 7px; }
    .nae-rays-header { width: 34px; min-height: 34px; padding: 0; justify-content: center; gap: 0; }
    .nae-rays-header strong { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    .nae-rays-sun-header svg { width: 24px; height: 20px; }
    .nae-rays-account-hero { grid-template-columns: 1fr; text-align: center; }
    .nae-rays-sun-large { justify-content: center; }
    .nae-rays-account { scroll-margin-top: 82px; }
}
@media (prefers-reduced-motion: reduce) {
    .nae-rays-ray, .nae-rays-header, .nae-rays-continue { transition: none; }
}
