:root {
    --muted: #514561;
    --accent: #5136aa;
    --paper: #f0ebfb;
    --white: #fff;
    --line: #d3cae2;
    --orange: #ffd65f;
}
body { padding-bottom: 0; }
.brand img { border-radius: 12px; }
.brand span { font: 20px Pusia, sans-serif; }
.hero { background: radial-gradient(ellipse at 68% 25%, #9458cf, #542297 63%, #3b166d); }
main.store { width: 100%; }
.cart-trigger { position: relative; }
#cart-count { background: var(--orange); }
.store .tabs { flex-wrap: wrap; }
.tab.active { color: #28170b; -webkit-text-stroke: 0; }
.store .section-note, .store .muted { color: #f0e8ff; }
.store .store-section, .store .passes { margin-top: 30px; }
.section-line h2, .panel-title h2 { font-family: Pusia, system-ui, sans-serif; }
.store .product-card { border: 2px solid #1b1229; box-shadow: 0 4px #170e28; }
.store .price {
    color: #172013;
    background: #e0f6c2;
    border-radius: 7px;
    padding: 4px 8px;
    font: 800 17px/1.2 system-ui, sans-serif;
    -webkit-text-stroke: 0;
}
.pass-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.promo-panel, .status-banner, .commerce-notice { color: var(--ink); }
.foot .footer-links, .foot .wrap > p { color: #e5dcf4; }
.foot .footer-links { justify-content: center; }
.client-download { display: none; }
dialog { background: #fff; color: var(--ink); }
dialog[open] {
    opacity: 1;
    transform: none;
}
.dialog-body .recipient-row input { margin-bottom: 0; min-width: 0; }
@media (max-width: 640px) {
    .brand span { font-size: 15px; }
    .tab { font-size: 14px; padding-inline: 9px; }
}

.hero .wrap { min-height: 240px; }
.hero p { max-width: 29rem; }
.store .tabs { gap: 8px; }
.store .product-card { gap: 10px; }
.store .product-card:hover { border-color: #9c7ee9; }
.store .card-art { background: radial-gradient(ellipse at 50% 30%, #fff, #e6daf7); }
.store .card-art img { filter: drop-shadow(0 6px 6px #35204a35); }
.store .card-caption { color: #4a2d87; }
.dialog-heading { background: #f2eafb; }
@media (max-width: 640px) {
    .hero .wrap { min-height: 0; }
    .headerActions .login { padding-inline: 8px; font-size: 13px; }
}

#interid-dialog, #account-dialog {
    max-height: min(90vh, calc(100dvh - 24px));
    border: 1px solid #d3cae2;
    border-radius: 16px;
    box-shadow: 0 15px 48px #0d0a1470;
}
#interid-dialog .dialog-body > p { margin-bottom: 14px; }
#interid-dialog form { color: #221732; }

#account-dialog .dialog-heading { background: #fff; }
#account-dialog .dialog-body { background: #f7f3ff; }
.profile-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    color: #fff;
    background: radial-gradient(ellipse at 92% 10%, #7752bd, #392177 68%, #2b175a);
}
.profile-banner img { width: 58px; height: 58px; border: 2px solid #eacfff; }
.profile-identity h3 { font-weight: 850; font-size: clamp(19px, 5vw, 25px); overflow-wrap: anywhere; }
.profile-tag { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: #f0e2ff; }
.profile-tag span { font-family: ui-monospace, monospace; font-weight: 750; }
.profile-copy {
    padding: 3px 7px;
    border: 1px solid #bba8e9;
    border-radius: 6px;
    background: #2c1956;
    color: #fff;
    font-size: 12px;
}
.profile-pass { padding: 4px 8px; border-radius: 7px; color: #2c2120; background: #ffdf79; font-size: 12px; font-weight: 800; }
.profile-balances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 20px; }
.profile-balances > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1px 9px;
    align-items: center;
    border: 1px solid #dfd4f0;
    border-radius: 12px;
    padding: 9px;
    background: #fff;
}
.profile-balances img { height: 34px; width: 34px; object-fit: contain; grid-row: span 2; }
.profile-balances dt { color: #594971; font-size: 12px; }
.profile-balances dd { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 850; overflow-wrap: anywhere; }
.profile-orders .orders-heading { margin: 0 0 8px; font-weight: 850; font-size: 17px; }
.profile-orders .order-card, .profile-orders .muted { background: #fff; }
.profile-orders .muted { border: 1px dashed #d1c3e8; border-radius: 10px; padding: 12px; color: #594971; }
.profile-orders .order-card-top { flex-wrap: wrap; }
.profile-orders .order-status {
    width: fit-content;
    border-radius: 6px;
    padding: 3px 6px;
    color: #543398;
    background: #eee5ff;
}
.profile-orders .order-status[data-status="fulfilled"] { color: #135639; background: #daf5e6; }
.profile-orders .order-status[data-status="pending"] { color: #664809; background: #ffefc2; }
#account-dialog .account-controls { justify-content: flex-end; margin-bottom: 0; }
@media (max-width: 430px) {
    .profile-banner { grid-template-columns: auto minmax(0, 1fr); gap: 8px 11px; padding: 12px; }
    .profile-pass { grid-column: 2; justify-self: start; }
    .profile-balances img { width: 26px; height: 26px; }
}
