/*
 * HeroSMP store theme.
 * Built on PayNow's Summit template (Benj), restyled for HeroSMP.
 *
 * Palette is sampled from the HeroSMP logo: the red suit, the gold lightning and
 * the blue energy swirl. The base is a deep navy rather than a neutral grey so the
 * panels read as part of the same scene as the logo.
 *
 * Each category owns an accent (--accent) and a readable text colour on top of it
 * (--ink). Components never hard-code a category colour; they read those two.
 */

:root {
    --hs-bg: #080B17;
    --hs-bg-2: #0B0F1F;
    --hs-panel: #111733;
    --hs-panel-2: #182043;
    --hs-panel-3: #212A55;
    --hs-line: #222B55;
    --hs-line-2: #2E3870;

    --hs-text: #FFFFFF;
    --hs-muted: #A3ABCF;
    --hs-dim: #6B7399;

    --hs-red: #FF4D52;
    --hs-gold: #FFE81F;
    --hs-blue: #3E7BFA;
    --hs-sky: #4EC7FF;
    --hs-pink: #FF8EB6;
    --hs-green: #22C55E;

    --hs-radius: 16px;
    --hs-radius-sm: 11px;
    --hs-width: 1100px;

    --hs-font-display: 'Rubik', system-ui, sans-serif;
    --hs-font-body: 'Nunito', system-ui, sans-serif;

    --accent: var(--hs-primary, var(--hs-red));
    --ink: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }

[x-cloak] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body.hs-body {
    margin: 0;
    min-height: 100vh;
    background: var(--hs-bg);
    color: var(--hs-text);
    font-family: var(--hs-font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }

.hs-app {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: clip;
}

.hs-wrap {
    width: 100%;
    max-width: var(--hs-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hs-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 72px;
    flex: 1;
}

/* ---------------------------------------------------------------- type */

.hs-h1, .hs-h2, .hs-h3,
.hs-cat-title, .hs-prod-name, .hs-line-name,
.hs-bar-text strong, .hs-btn, .hs-kicker, .hs-ip-label {
    font-family: var(--hs-font-display);
}

.hs-h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); font-weight: 900; line-height: 1.05; letter-spacing: -0.5px; }
.hs-h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 900; line-height: 1.1; }
.hs-h3 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.15; }

.hs-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.hs-muted { color: var(--hs-muted); }
.hs-dim { color: var(--hs-dim); }
.hs-small { font-size: 14px; }
.hs-center { text-align: center; }
.hs-cap { text-transform: capitalize; }
p { margin: 0; }

.hs-rich > * + * { margin-top: 0.75em; }
.hs-rich a { color: var(--accent); font-weight: 700; }
.hs-rich strong { color: var(--hs-text); }

.hs-prose { color: var(--hs-muted); }
.hs-prose h1, .hs-prose h2, .hs-prose h3, .hs-prose h4 {
    font-family: var(--hs-font-display);
    font-weight: 800;
    color: var(--hs-text);
    line-height: 1.2;
    margin: 1.1em 0 0.4em;
}
.hs-prose h1:first-child, .hs-prose h2:first-child, .hs-prose h3:first-child { margin-top: 0; }
.hs-prose ol { list-style: decimal; padding-left: 1.3em; }
.hs-prose ul { list-style: none; padding-left: 0; }
.hs-prose ul li { position: relative; padding-left: 26px; }
.hs-prose ul li + li { margin-top: 6px; }
.hs-prose ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    position: absolute;
    left: 0;
    top: 0.2em;
    color: var(--hs-green);
}
.hs-prose img { border-radius: var(--hs-radius-sm); }
.hs-prose blockquote { margin: 0; padding-left: 14px; border-left: 4px solid var(--accent); }
.hs-prose code { background: var(--hs-panel-2); padding: 1px 6px; border-radius: 6px; color: var(--hs-text); }

/* ---------------------------------------------------------------- surfaces */

.hs-panel {
    position: relative;
    background: var(--hs-panel);
    border: 2px solid var(--hs-line);
    border-radius: var(--hs-radius);
    padding: 28px;
}

.hs-tile {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--accent);
    background: var(--hs-panel-2);
    border: 2px solid var(--hs-line-2);
    overflow: hidden;
}
.hs-tile--solid {
    color: var(--ink);
    background: var(--accent);
    border-color: transparent;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22);
}
.hs-tile img, .hs-tile--face img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }

.hs-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--hs-panel-2);
    border: 1px solid var(--hs-line-2);
    color: var(--hs-muted);
    font-size: 12px;
    font-weight: 700;
}
.hs-pill strong { color: var(--accent); }

.hs-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hs-tag--pink { background: rgba(255, 142, 182, 0.16); color: var(--hs-pink); }
.hs-tag--blue { background: rgba(78, 199, 255, 0.14); color: var(--hs-sky); }
.hs-tag--green { background: rgba(34, 197, 94, 0.15); color: var(--hs-green); }

.hs-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 11px 14px;
    border-radius: var(--hs-radius-sm);
    background: rgba(255, 232, 31, 0.09);
    border: 1px solid rgba(255, 232, 31, 0.28);
    color: #FFF3A6;
    font-size: 14px;
}
.hs-note--bad { background: rgba(255, 77, 82, 0.1); border-color: rgba(255, 77, 82, 0.35); color: #FFB3B5; }
.hs-note--good { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.35); color: #A7F3C4; }

.hs-stack { display: flex; flex-direction: column; gap: 14px; }
.hs-stack--tight { gap: 4px; }
.hs-row { display: flex; gap: 10px; align-items: center; }
.hs-row--wrap { flex-wrap: wrap; }
.hs-grow { flex: 1; }
.hs-push { margin-left: auto; }
.hs-block { width: 100%; }

/* ---------------------------------------------------------------- buttons */

.hs-btn {
    --btn-bg: var(--hs-panel-2);
    --btn-ink: var(--hs-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--hs-radius-sm);
    background: var(--btn-bg);
    color: var(--btn-ink);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.24);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.hs-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.hs-btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.24); }
.hs-btn:focus-visible { outline: 3px solid var(--hs-text); outline-offset: 2px; }

.hs-btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.hs-btn--gold { --btn-bg: var(--hs-gold); --btn-ink: #1A1400; }
.hs-btn--red { --btn-bg: var(--hs-red); --btn-ink: #FFFFFF; }
.hs-btn--green { --btn-bg: var(--hs-green); --btn-ink: #04140A; }
.hs-btn--accent { --btn-bg: var(--accent); --btn-ink: var(--ink); }
.hs-btn--discord { --btn-bg: #5865F2; --btn-ink: #FFFFFF; }
.hs-btn--ghost {
    --btn-bg: transparent;
    box-shadow: inset 0 0 0 2px var(--hs-line-2);
}
.hs-btn--ghost:hover { --btn-bg: var(--hs-panel-2); }
.hs-btn--danger-text { color: #FF8A8D; }
.hs-btn--disabled,
.hs-btn--disabled:hover {
    --btn-bg: var(--hs-panel-2);
    --btn-ink: var(--hs-dim);
    cursor: not-allowed;
    transform: none;
    filter: none;
    box-shadow: none;
}

.hs-btn-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.14);
    overflow: hidden;
    font-size: 14px;
}
.hs-btn-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hs-btn-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }

.hs-btn-count {
    position: absolute;
    top: -9px;
    right: -9px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--hs-gold);
    color: #1A1400;
    font-size: 12px;
    font-weight: 900;
    border: 3px solid var(--hs-panel);
}
.hs-bar-actions .hs-btn { position: relative; }

.hs-icon-btn {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--hs-panel-2);
    border: 0;
    color: var(--hs-muted);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}
.hs-icon-btn:hover { color: var(--hs-text); background: var(--hs-panel-3); }
.hs-icon-btn--danger:hover { color: #FFFFFF; background: var(--hs-red); }

/* ---------------------------------------------------------------- masthead */

.hs-backdrop {
    position: absolute;
    inset: 0 0 auto 0;
    height: 460px;
    overflow: hidden;
    opacity: 0.3;
    pointer-events: none;
}
.hs-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hs-hero-position, center); }
.hs-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--hs-bg));
}

.hs-masthead { padding-top: 26px; }

.hs-logo {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: max-content;
    margin: 0 auto -48px;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.hs-logo:hover { transform: translateY(-3px) rotate(-1.5deg); }
.hs-logo img {
    display: block;
    height: var(--hs-logo-h, 170px);
    width: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}
.hs-logo-text {
    font-family: var(--hs-font-display);
    font-weight: 900;
    font-size: 54px;
    text-transform: uppercase;
    color: var(--hs-red);
    text-shadow: 0 5px 0 #7A1E21;
}

.hs-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 104px;
    padding: 20px 24px;
    background: var(--hs-panel);
    border: 2px solid var(--hs-line);
    border-radius: 20px;
}

.hs-bar-context {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
}
.hs-bar-icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--hs-gold);
    color: #1A1400;
    font-size: 20px;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
.hs-bar-context.is-link:hover .hs-bar-icon { transform: translateX(-3px); }
.hs-bar-text { display: flex; flex-direction: column; min-width: 0; }
.hs-bar-text strong { font-size: 21px; font-weight: 900; line-height: 1.15; }
.hs-bar-text em {
    font-style: normal;
    font-size: 14px;
    font-weight: 800;
    color: var(--hs-red);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-bar-actions { display: flex; gap: 12px; align-items: center; }

/* The IP chip hangs off the bottom edge of the bar, centred under the logo. */
.hs-ip {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 176px;
    padding: 9px 20px 10px;
    border: 2px solid var(--hs-line-2);
    border-radius: 14px;
    background: var(--hs-panel-2);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.hs-ip:hover { transform: translate(-50%, calc(50% - 2px)); border-color: var(--hs-red); }
.hs-ip-label { font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.hs-ip-sub { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hs-gold); }
.hs-ip.is-copied { border-color: var(--hs-green); }
.hs-ip.is-copied .hs-ip-sub { color: var(--hs-green); }
.hs-ip-count {
    position: absolute;
    top: -11px;
    right: -11px;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--hs-red);
    color: #FFFFFF;
    font-family: var(--hs-font-display);
    font-size: 12px;
    font-weight: 900;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.hs-ip-count[hidden] { display: none; }

/* ---------------------------------------------------------------- home */

.hs-welcome {
    margin-top: 10px;
    text-align: center;
    color: var(--hs-muted);
    font-weight: 700;
}
.hs-welcome p { margin: 0; }

.hs-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hs-cat {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 212px;
    padding: 30px 34px 32px 48px;
    overflow: hidden;
    border-radius: var(--hs-radius);
    background: var(--hs-panel);
    border: 2px solid var(--hs-line);
    text-decoration: none;
    isolation: isolate;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
/* Big soft disc behind the art, gives each card depth without a gradient. */
.hs-cat::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -70px;
    top: -110px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: var(--hs-panel-2);
    transition: transform 0.35s ease;
}
.hs-cat:hover { transform: translateY(-4px); border-color: var(--accent); }
.hs-cat:hover::before { transform: scale(1.08); }

.hs-cat-notch {
    position: absolute;
    left: -2px;
    bottom: 40px;
    width: 10px;
    height: 54px;
    border-radius: 0 7px 7px 0;
    background: var(--accent);
}

.hs-cat-art {
    position: absolute;
    z-index: -1;
    right: 34px;
    top: 50%;
    font-size: 104px;
    color: var(--accent);
    opacity: 0.9;
    transform: translateY(-50%) rotate(-10deg);
    filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.28));
    transition: transform 0.3s ease;
}
.hs-cat:hover .hs-cat-art { transform: translateY(-54%) rotate(-4deg) scale(1.06); }

.hs-cat-body { display: flex; flex-direction: column; gap: 2px; }
.hs-cat-title { font-size: clamp(32px, 4vw, 42px); font-weight: 900; line-height: 1.05; letter-spacing: -0.5px; }
.hs-cat-cta { font-family: var(--hs-font-display); font-weight: 800; font-size: 16px; color: var(--accent); }
.hs-cat-cta i { font-size: 13px; margin-left: 4px; transition: transform 0.2s ease; }
.hs-cat:hover .hs-cat-cta i { transform: translateX(4px); }

.hs-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.hs-info-card { display: flex; flex-direction: column; gap: 16px; }
.hs-info-head { display: flex; align-items: center; gap: 14px; }
.hs-info-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.hs-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.hs-module { padding: 24px; }

.hs-goal { height: 14px; border-radius: 999px; background: var(--hs-panel-2); overflow: hidden; }
.hs-goal span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.hs-goal-meta { display: flex; justify-content: space-between; font-size: 14px; }
.hs-goal-meta strong { margin-left: auto; color: var(--accent); font-family: var(--hs-font-display); }

.hs-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 10px; }
.hs-face {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--hs-panel-2);
    transition: transform 0.15s ease;
}
.hs-face:hover { transform: translateY(-3px); }
.hs-face img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }

/* ---------------------------------------------------------------- spend bonus */

.hs-bonus {
    --bonus: var(--hs-accent-bolts, var(--hs-sky));
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 26px;
    background: var(--hs-panel);
    border: 2px solid var(--hs-line);
    border-radius: var(--hs-radius);
}
.hs-bonus-head { display: flex; align-items: center; gap: 12px; }
.hs-bonus-icon {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--bonus);
    color: #04121C;
    font-size: 17px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}
.hs-bonus-sub { color: var(--hs-muted); font-size: 15px; font-weight: 600; }

.hs-bonus-track {
    position: relative;
    height: 16px;
    margin: 4px 9px;
    border-radius: 999px;
    background: var(--hs-bg-2);
    border: 2px solid var(--hs-line-2);
}
.hs-bonus-fill {
    height: 100%;
    border-radius: inherit;
    background: repeating-linear-gradient(-45deg, var(--bonus) 0 10px, var(--hs-blue) 10px 20px);
    transition: width 0.4s ease;
}
.hs-bonus-dot {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--hs-panel-3);
    border: 3px solid var(--hs-bg);
    transition: background 0.2s ease;
}
.hs-bonus-dot.is-on { background: var(--hs-green); }

.hs-bonus-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.hs-bonus-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 16px 10px 14px;
    border-radius: 13px;
    background: var(--hs-panel-2);
    border: 2px solid var(--hs-line-2);
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hs-bonus-spend { font-family: var(--hs-font-display); font-weight: 900; font-size: 20px; line-height: 1.1; }
.hs-bonus-gets {
    font-family: var(--hs-font-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bonus);
}
.hs-bonus-flag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--hs-green);
    color: #04140A;
    font-family: var(--hs-font-display);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.hs-bonus-tier.is-current {
    background: var(--bonus);
    border-color: var(--bonus);
    color: #04121C;
    transform: translateY(-2px);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}
.hs-bonus-tier.is-current .hs-bonus-gets { color: #04121C; }
/* A lower tier the order has already passed: not given on top, the current one replaces it. */
.hs-bonus-tier.is-passed { opacity: 0.5; }
.hs-bonus-tier.is-passed .hs-bonus-spend { text-decoration: line-through; text-decoration-thickness: 2px; }

.hs-bonus-status { text-align: center; font-weight: 700; color: var(--hs-muted); }
.hs-bonus-status b { color: var(--hs-text); }

.hs-bonus--compact { padding: 16px; gap: 11px; margin-bottom: 16px; background: var(--hs-panel-2); border-color: var(--hs-line-2); }
.hs-bonus--compact .hs-h3 { font-size: 17px; }
.hs-bonus--compact .hs-bonus-icon { width: 32px; height: 32px; font-size: 14px; }
.hs-bonus--compact .hs-bonus-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hs-bonus--compact .hs-bonus-tier { padding: 12px 4px 10px; background: var(--hs-panel); }
.hs-bonus--compact .hs-bonus-tier.is-current { background: var(--bonus); }
.hs-bonus--compact .hs-bonus-spend { font-size: 16px; }
.hs-bonus--compact .hs-bonus-gets { font-size: 10px; letter-spacing: 0.06em; }
.hs-bonus--compact .hs-bonus-flag { font-size: 9px; padding: 1px 7px; top: -9px; }
.hs-bonus--compact .hs-bonus-status { font-size: 13px; }

.hs-line.is-bonus, .hs-cart-line.is-bonus { border: 2px dashed var(--hs-accent-bolts, var(--hs-sky)); }
.hs-cart-line.is-bonus .hs-cart-art { color: var(--hs-accent-bolts, var(--hs-sky)); }
.hs-line-price.hs-line-price--free { color: var(--hs-green); }

/* ---------------------------------------------------------------- tabs + heading */

.hs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hs-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--hs-panel);
    border: 2px solid var(--hs-line);
    color: var(--hs-muted);
    font-family: var(--hs-font-display);
    font-weight: 800;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.hs-tab i { color: var(--accent); }
.hs-tab:hover { color: var(--hs-text); border-color: var(--accent); }
.hs-tab.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}
.hs-tab.is-active i { color: inherit; }

.hs-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}
.hs-heading .hs-tile { width: 64px; height: 64px; font-size: 26px; border-radius: 18px; }
.hs-heading > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* ---------------------------------------------------------------- products */

.hs-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hs-prod {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--hs-panel);
    border: 2px solid var(--hs-line);
    border-radius: var(--hs-radius);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.hs-prod { cursor: pointer; }
.hs-prod:hover { transform: translateY(-3px); border-color: var(--accent); }
.hs-prod.is-out { opacity: 0.6; }

.hs-prod-art {
    flex: none;
    width: 124px;
    height: 124px;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 0;
    border-radius: 14px;
    background: var(--hs-panel-2);
    cursor: pointer;
    overflow: hidden;
}
.hs-prod-art img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s ease; }
.hs-prod:hover .hs-prod-art img { transform: scale(1.07) rotate(-2deg); }
.hs-prod-art i { font-size: 52px; color: var(--accent); filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28)); }

.hs-prod-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.hs-prod-name { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.hs-prod-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 12px;
    font-family: var(--hs-font-display);
    font-size: 19px;
    font-weight: 800;
    color: var(--accent);
}
.hs-prod-price small { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.hs-prod-price s { font-size: 14px; color: var(--hs-dim); font-weight: 700; }
.hs-prod-price--lg { font-size: 30px; margin: 4px 0 0; }
.hs-prod-price--lg small { font-size: 15px; }

/* Corner ribbon: sits on the top-right corner and overhangs it slightly. */
.hs-ribbon {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: -10px;
    max-width: 60%;
    padding: 7px 12px;
    border-radius: 9px;
    background: var(--hs-blue);
    color: #FFFFFF;
    font-family: var(--hs-font-display);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 6px 14px rgba(0, 0, 0, 0.3);
}
.hs-ribbon--sale { background: var(--hs-red); }

.hs-product-page {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}
.hs-product-art {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 20px;
    border-radius: var(--hs-radius);
    background: var(--hs-panel-2);
}
.hs-product-art img { width: 100%; height: 100%; object-fit: contain; }
.hs-product-art i { font-size: 120px; color: var(--accent); filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.28)); }
.hs-product-main { display: flex; flex-direction: column; gap: 6px; }
.hs-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------------------------------------------------------------- crate keys */

/* One card per key (partials/key_card.html): art on the left, the amount picker
   and buttons beside it. It is an ordinary product card underneath. */
.hs-key .hs-prod-art { width: 152px; height: 152px; }
.hs-key-body { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hs-key-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hs-key .hs-prod-price { align-items: center; margin: 2px 0 0; }
.hs-key-actions { display: flex; gap: 10px; }
.hs-key-info { flex: none; width: 48px; padding: 0; font-size: 18px; }

.hs-save {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--hs-green);
    font-family: var(--hs-font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Segmented amount picker. The picked amount is styled from aria-pressed, so the
   server-rendered first choice and every later pick share one rule. */
.hs-amounts {
    display: grid;
    grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 13px;
    background: var(--hs-bg-2);
    border: 2px solid var(--hs-line-2);
}
.hs-amount {
    min-height: 40px;
    padding: 0 6px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--hs-muted);
    font-family: var(--hs-font-display);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.hs-amount:hover { color: var(--hs-text); background: var(--hs-panel-2); }
.hs-amount[aria-pressed="true"] {
    color: var(--ink);
    background: var(--accent);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}
.hs-amount:focus-visible { outline: 3px solid var(--hs-text); outline-offset: 1px; }

.hs-modal-head .hs-amounts { width: 100%; max-width: 340px; margin-top: 10px; }

/* ---------------------------------------------------------------- empty states */

.hs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 56px 28px;
    text-align: center;
}
.hs-empty > p { max-width: 460px; }
.hs-empty .hs-btn { margin-top: 14px; }
.hs-empty-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 8px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 36px;
    color: var(--ink, #FFFFFF);
    background: var(--accent);
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.22);
    transform: rotate(-6deg);
}

/* ---------------------------------------------------------------- forms */

.hs-label { display: block; font-family: var(--hs-font-display); font-weight: 800; font-size: 15px; margin: 0; }
.hs-label i { color: var(--accent); margin-right: 4px; }
.hs-label--sub { font-size: 13px; color: var(--hs-muted); margin-bottom: 6px; }

.hs-input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border-radius: var(--hs-radius-sm);
    border: 2px solid var(--hs-line-2);
    background: var(--hs-bg-2);
    color: var(--hs-text);
    font: inherit;
    font-weight: 700;
    outline: none;
    transition: border-color 0.15s ease;
}
.hs-input::placeholder { color: var(--hs-dim); }
.hs-input:focus { border-color: var(--accent); }
select.hs-input { appearance: auto; }
.hs-input--qty { width: 76px; min-height: 42px; text-align: center; padding: 0 8px; }

.hs-input-wrap { position: relative; }
.hs-input-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--hs-dim); }
.hs-input-wrap .hs-input { padding-left: 44px; }

.hs-auth { display: flex; justify-content: center; }
.hs-auth-card { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hs-auth-card form { width: 100%; margin-top: 16px; text-align: left; }
.hs-auth-card a { color: var(--accent); }
.hs-auth-error { color: #FF8A8D; font-size: 14px; font-weight: 700; }

/* ---------------------------------------------------------------- cart page + account */

.hs-cart-line {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
}
.hs-cart-art, .hs-acct-art {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--hs-panel-2);
    color: var(--hs-gold);
    font-size: 24px;
    overflow: hidden;
}
.hs-cart-art img, .hs-acct-art img { width: 100%; height: 100%; object-fit: contain; }
.hs-cart-info { flex: 1; min-width: 0; }
.hs-cart-qty { display: flex; align-items: center; gap: 8px; }
.hs-line-name { display: block; margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
.hs-line-price { font-family: var(--hs-font-display); font-weight: 900; font-size: 20px; color: var(--hs-gold); white-space: nowrap; }
.hs-line-price small { font-size: 12px; }

.hs-cart-total { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hs-cart-sum { font-family: var(--hs-font-display); font-weight: 900; font-size: 36px; color: var(--hs-gold); }
.hs-cart-sum small { font-size: 16px; }

.hs-acct-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
}
.hs-acct-lines { display: flex; flex-direction: column; gap: 10px; }
.hs-acct-line { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hs-acct-line em, .hs-acct-row em { display: block; font-style: normal; }

/* ---------------------------------------------------------------- overlays */

.hs-overlay { position: fixed; inset: 0; z-index: 60; }
.hs-overlay-bg { position: absolute; inset: 0; background: rgba(4, 6, 14, 0.82); backdrop-filter: blur(3px); }
.hs-overlay-center { position: relative; min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; height: 100%; }

.hs-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    background: var(--hs-panel);
    border: 2px solid var(--hs-line-2);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.hs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 0;
    background: var(--hs-panel-2);
    color: var(--hs-muted);
    cursor: pointer;
}
.hs-modal-close:hover { color: var(--hs-text); }
.hs-modal-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-bottom: 22px; }
.hs-modal-head .hs-prod-price { justify-content: center; margin: 0; color: var(--hs-gold); font-size: 24px; }
.hs-modal-art {
    position: relative;
    width: 116px;
    height: 116px;
    margin-bottom: 8px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    padding: 10px;
    background: var(--hs-panel-2);
    color: var(--hs-gold);
    font-size: 44px;
}
.hs-modal-art img { width: 100%; height: 100%; object-fit: contain; }
.hs-modal-gift {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--hs-panel);
    background: var(--hs-pink);
    color: #240A14;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.hs-modal-gift:hover, .hs-modal-gift.is-on { transform: scale(1.1) rotate(-8deg); }
.hs-modal-section { display: flex; flex-direction: column; gap: 14px; }
.hs-modal-desc {
    max-height: 280px;
    overflow-y: auto;
    padding: 18px;
    border-radius: 14px;
    background: var(--hs-bg-2);
    border: 2px solid var(--hs-line);
    font-size: 15px;
}

.hs-drawer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 410px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--hs-panel);
    border-left: 2px solid var(--hs-line-2);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.45);
}
.hs-drawer-loading { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(8, 11, 23, 0.8); }
.hs-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 0; }
.hs-drawer-head .hs-h3 i { color: var(--hs-gold); margin-right: 6px; }
.hs-drawer-user { padding: 16px 22px 18px; border-bottom: 2px solid var(--hs-line); }
.hs-drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.hs-drawer-foot { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 22px; border-top: 2px solid var(--hs-line); }
.hs-drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--hs-font-display); font-weight: 800; }
.hs-drawer-total strong { font-size: 28px; font-weight: 900; color: var(--hs-gold); }
.hs-drawer-total small { font-size: 13px; }
.hs-drawer-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 50px 10px; text-align: center; }

.hs-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--hs-panel-2);
    text-decoration: none;
}
.hs-user-card.is-link:hover { background: var(--hs-panel-3); }
.hs-user-card > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hs-user-card strong { font-family: var(--hs-font-display); font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.hs-user-card em { font-style: normal; font-size: 13px; color: var(--hs-muted); }
.hs-user-avatar {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--hs-gold);
    color: #1A1400;
    overflow: hidden;
}
.hs-user-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hs-user-go { color: var(--hs-muted); }
.hs-user-out { font-size: 13px; font-weight: 700; color: var(--hs-muted); text-decoration: none; }
.hs-user-out:hover { color: #FF8A8D; }

.hs-line {
    padding: 14px;
    border-radius: 14px;
    background: var(--hs-panel-2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hs-line-top { display: flex; justify-content: space-between; gap: 10px; }
.hs-line-info { min-width: 0; }
.hs-line-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hs-line-opts { font-size: 13px; padding: 9px 11px; border-radius: 10px; background: var(--hs-bg-2); display: flex; flex-direction: column; gap: 3px; }
.hs-line-opts span { color: var(--hs-muted); }
.hs-line-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hs-line .hs-line-price { font-size: 18px; }

.hs-qty { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* Quantity dropdown: a native <select> (keyboard, screen readers and the
   phone picker all work) dressed as a pill with its own chevron. */
.hs-select-wrap { position: relative; display: inline-flex; align-items: center; }
.hs-select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 78px;
    height: 44px;
    padding: 0 38px 0 16px;
    border-radius: var(--hs-radius-sm);
    border: 2px solid var(--hs-line-2);
    background: var(--hs-bg-2);
    color: var(--hs-text);
    font-family: var(--hs-font-display);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.hs-select:hover { border-color: var(--hs-gold); }
.hs-select:focus-visible { border-color: var(--hs-gold); box-shadow: 0 0 0 3px rgba(255, 232, 31, 0.25); }
.hs-select:disabled { opacity: 0.5; cursor: not-allowed; }
.hs-select option { background: var(--hs-panel); color: var(--hs-text); font-weight: 700; }
.hs-select-wrap > i {
    position: absolute;
    right: 14px;
    font-size: 11px;
    color: var(--hs-gold);
    pointer-events: none;
    transition: transform 0.15s ease;
}
.hs-select-wrap:hover > i { transform: translateY(1px); }
.hs-select--sm { height: 36px; min-width: 66px; padding: 0 32px 0 12px; font-size: 14px; border-radius: 9px; }
.hs-select--sm + i { right: 11px; font-size: 10px; }

.hs-spinner {
    width: 44px;
    height: 44px;
    border: 5px solid var(--hs-gold);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: hs-spin 0.9s linear infinite;
}
@keyframes hs-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- toasts */

.hs-toast, #cart-notification {
    position: fixed;
    z-index: 80;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(380px, calc(100vw - 36px));
    padding: 13px 16px;
    border-radius: 13px;
    background: var(--hs-panel-2);
    border: 2px solid var(--hs-line-2);
    border-left: 6px solid var(--hs-blue);
    color: var(--hs-text);
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    transform: translateX(calc(100% + 40px));
    transition: transform 0.3s ease;
}
.hs-toast.is-shown, #cart-notification.is-shown { transform: none; }
.hs-toast.is-success, #cart-notification.is-success { border-left-color: var(--hs-green); }
.hs-toast.is-error, #cart-notification.is-error { border-left-color: var(--hs-red); }
.hs-toast.is-warning, #cart-notification.is-warning { border-left-color: var(--hs-gold); }
.hs-toast p { flex: 1; }
.hs-toast i { color: var(--hs-red); }
.hs-toast button { border: 0; background: none; color: var(--hs-muted); cursor: pointer; }

/* ---------------------------------------------------------------- footer */

.hs-footer {
    margin-top: auto;
    background: var(--hs-bg-2);
    border-top: 2px solid var(--hs-line);
}
.hs-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 44px;
}
.hs-footer-brand { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.hs-footer-copy { font-size: 15px; color: var(--hs-muted); }
.hs-footer-copy strong { color: var(--hs-text); font-family: var(--hs-font-display); }
.hs-footer a { color: var(--hs-muted); }
.hs-footer a:hover { color: var(--hs-text); }
.hs-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-weight: 700; }
.hs-footer-links a { text-decoration: none; }

.hs-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.hs-social {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--social);
    color: #FFFFFF !important;
    font-size: 20px;
    text-decoration: none;
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.28);
    transition: transform 0.15s ease;
}
.hs-social:hover { transform: translateY(-3px); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 980px) {
    /* Two columns get too narrow for a long title beside the art. */
    .hs-cats { grid-template-columns: 1fr; }

    /* Key cards: too narrow for the picker beside the art, so the art sits next
       to the name and price, and the picker and buttons run full width below. */
    .hs-key {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-areas: "art head" "amounts amounts" "actions actions";
        gap: 14px 16px;
        align-items: center;
    }
    .hs-key-body { display: contents; }
    .hs-key .hs-prod-art { grid-area: art; width: 96px; height: 96px; }
    .hs-key-head { grid-area: head; }
    .hs-key .hs-amounts { grid-area: amounts; }
    .hs-key-actions { grid-area: actions; }
}

@media (max-width: 900px) {
    .hs-product-page { grid-template-columns: 1fr; }
    .hs-product-art { max-width: 300px; margin: 0 auto; width: 100%; }
    .hs-acct-row { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 760px) {
    .hs-main { padding-top: 44px; gap: 18px; }
    .hs-cats, .hs-info, .hs-products { grid-template-columns: 1fr; gap: 16px; }
    .hs-logo { margin-bottom: -36px; }
    .hs-logo img { height: min(var(--hs-logo-h, 170px), 132px); }

    .hs-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 46px 16px 44px;
    }
    .hs-bar-context { justify-content: center; text-align: left; }
    .hs-bar-actions { justify-content: center; }
    .hs-bar-actions .hs-btn { flex: 1; }

    .hs-cat { min-height: 168px; padding: 24px 24px 26px 40px; }
    .hs-cat-art { font-size: 78px; right: 22px; }
    .hs-cat::before { width: 240px; height: 240px; right: -60px; top: -80px; }

    .hs-bonus { padding: 20px 16px; }
    .hs-bonus-tiers { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
    .hs-bonus-tier { padding: 13px 4px 11px; }
    .hs-bonus-spend { font-size: 16px; }
    .hs-bonus-gets { font-size: 10px; letter-spacing: 0.05em; }
    .hs-bonus-flag { font-size: 9px; padding: 1px 7px; top: -9px; }

    .hs-prod { gap: 16px; padding: 18px; }
    .hs-prod-art { width: 96px; height: 96px; }
    .hs-prod-name { font-size: 19px; }

    .hs-panel { padding: 22px; }
    .hs-cart-line { flex-wrap: wrap; }
    .hs-cart-info { flex-basis: calc(100% - 82px); }

    .hs-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
