/* ==========================================================================
   Aezelle's Shop — midnight neon theme
   Deep navy surfaces, a cyan accent, soft glows and floating cards.
   ========================================================================== */

:root {
    --bg: #070b12;
    --card: #101823;
    --surface: #0d141e;
    --surface-2: #121c28;
    --text: #edf4fb;
    --muted: #8b9cb0;
    --line: #1d2a3a;
    --line-strong: #2b3e53;
    --accent: #38bdf8;
    --accent-ink: #7dd3fc;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --ink-on-accent: #041018;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 28px 60px -30px rgba(0, 0, 0, 0.95);
    --glow-cyan: 0 0 0 1px rgba(56, 189, 248, 0.16), 0 24px 60px -28px rgba(56, 189, 248, 0.45);
    --page-x: 6%;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: rgba(56, 189, 248, 0.3);
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* Hide scrollbars everywhere (scrolling still works) */
html,
body,
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(1100px 620px at 50% -10%, rgba(56, 189, 248, 0.10), transparent 62%),
        radial-gradient(900px 620px at 88% 8%, rgba(124, 58, 237, 0.06), transparent 62%),
        var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Soft ambient backdrop: gradient wash, hairline rings, dot grid */
body::before,
body::after {
    content: none;
}

.backdrop {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Dot texture lives in the hero only, so it never sits under section copy */
.hero-dots {
    position: absolute;
    top: 8%;
    left: 0;
    width: 132px;
    height: 104px;
    background-image: radial-gradient(circle, rgba(148, 210, 255, 0.42) 1.1px, transparent 1.3px);
    background-size: 12px 12px;
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(135deg, #000 30%, transparent 92%);
    mask-image: linear-gradient(135deg, #000 30%, transparent 92%);
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(92px);
    will-change: transform;
}

.blob-a {
    top: -14vw;
    left: -12vw;
    width: 46vw;
    height: 44vw;
    background: radial-gradient(circle at 35% 35%, rgba(34, 211, 238, 0.55) 0%, rgba(14, 116, 144, 0.22) 45%, rgba(14, 116, 144, 0) 72%);
    opacity: 0.3;
    animation: blobDrift 28s ease-in-out infinite;
}

.blob-b {
    top: -16vw;
    right: -14vw;
    width: 50vw;
    height: 48vw;
    background: radial-gradient(circle at 55% 45%, rgba(99, 102, 241, 0.42) 0%, rgba(124, 58, 237, 0.18) 48%, rgba(124, 58, 237, 0) 76%);
    opacity: 0.24;
    animation: blobDrift 34s ease-in-out infinite reverse;
}

.blob-c {
    left: 28%;
    bottom: -26vw;
    width: 64vw;
    height: 42vw;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.28) 0%, rgba(14, 165, 233, 0.10) 42%, rgba(14, 165, 233, 0) 72%);
    opacity: 0.28;
    animation: blobDrift 40s ease-in-out infinite;
}

.ring {
    position: absolute;
    border: 1px solid rgba(125, 211, 252, 0.09);
    border-radius: 50%;
}

.ring-a {
    top: 46vh;
    left: -22vw;
    width: 44vw;
    height: 44vw;
}

.ring-b {
    top: 38vh;
    right: -18vw;
    width: 42vw;
    height: 42vw;
}

@keyframes blobDrift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(2.2vw, 2vw, 0) scale(1.06);
    }
}

body > * {
    position: relative;
    z-index: 1;
}

body > .backdrop {
    position: fixed;
    z-index: 0;
}

button,
input {
    font: inherit;
}

h1,
h2,
h3 {
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.navbar {
    position: sticky;
    top: 14px;
    z-index: 10;
    width: min(1240px, calc(100% - 2 * var(--page-x)));
    height: 66px;
    margin: 14px auto;
    padding: 0 14px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(9, 14, 22, 0.82);
    box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo {
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

.currency-picker {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.currency-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 30px 8px 14px;
    border-radius: 999px;
    /* Glassmorphism: translucent, blurred, softly lit pill */
    border: 1px solid rgba(255, 255, 255, 0.22);
    background-color: rgba(255, 255, 255, 0.06);
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23edf4fb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"),
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
    background-repeat: no-repeat, no-repeat;
    background-position: right 10px center, center;
    background-size: 12px 12px, cover;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06),
        0 8px 22px -14px rgba(0, 0, 0, 0.85);
    color: var(--text);
    color-scheme: dark;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    transition: border-color 500ms ease, background-color 500ms ease, box-shadow 500ms ease;
}

.currency-select:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background-color: rgba(255, 255, 255, 0.10);
}

.currency-select:focus {
    border-color: var(--accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06),
        0 8px 22px -14px rgba(0, 0, 0, 0.85),
        0 0 0 3px rgba(56, 189, 248, 0.35);
}

.currency-select option {
    background: rgba(16, 24, 35, 0.96);
    color: var(--text);
}

@media (max-width: 720px) {
    .currency-select {
        font-size: 10px;
        padding: 7px 26px 7px 10px;
    }
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Expanding icon pill: compact by default, opens into a gradient label on
   hover / keyboard focus, and stays open on the active page. */
.nav-link {
    --open: 100px;
    --i: #7dd3fc;
    --j: #38bdf8;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    transition: width 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms ease,
        border-color 500ms ease, box-shadow 500ms ease;
}

.nav-link[data-page="home"] {
    --open: 96px;
    --i: #5eead4;
    --j: #22d3ee;
}

.nav-link[data-page="items"] {
    --open: 98px;
    --i: #7dd3fc;
    --j: #0ea5e9;
}

.nav-link[data-page="robux"] {
    --open: 102px;
    --i: #fde68a;
    --j: #f59e0b;
}

.nav-link[data-page="contacts"] {
    --open: 118px;
    --i: #fbcfe8;
    --j: #ec4899;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--i), var(--j));
    opacity: 0;
    transition: opacity 500ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    width: var(--open);
    border-color: transparent;
    color: var(--ink-on-accent);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
    box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--j) 70%, transparent);
}

.nav-link:hover::before,
.nav-link:focus-visible::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 500ms ease, opacity 500ms ease;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
}

.nav-title {
    position: absolute;
    left: 0;
    right: 0;
    padding: 0 18px;
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.65);
    transition: opacity 500ms ease, transform 500ms ease;
}

.nav-link:hover .nav-icon,
.nav-link:focus-visible .nav-icon,
.nav-link.active .nav-icon {
    opacity: 0;
    transform: scale(0);
}

.nav-link:hover .nav-title,
.nav-link:focus-visible .nav-title,
.nav-link.active .nav-title {
    opacity: 1;
    transform: scale(1);
    transition-delay: 250ms;
}

/* --------------------------------------------------------------------------
   Pages
   -------------------------------------------------------------------------- */

.page {
    display: none;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) var(--page-x);
}

.page.active {
    display: block;
}

.page.walk-in {
    animation: pageWalkIn 0.45s ease-out both;
}

.page.is-leaving {
    pointer-events: none;
    animation: pageWalkOut 0.2s ease-in both;
}

@keyframes pageWalkIn {
    from {
        opacity: 0;
        transform: translateX(calc(var(--dir, 1) * 20px));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pageWalkOut {
    to {
        opacity: 0;
        transform: translateX(calc(var(--dir, 1) * -16px));
    }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-tag {
    padding: 8px 18px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 0 24px -8px rgba(56, 189, 248, 0.45);
}

.hero h1 {
    max-width: 24ch;
    margin: 26px 0 20px;
    font-size: clamp(38px, 7vw, 84px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.hero h1 span {
    background: linear-gradient(100deg, #a5f3fc 0%, #38bdf8 48%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 42px rgba(56, 189, 248, 0.28);
}

.hero p {
    max-width: 560px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.primary-btn,
.ghost-btn {
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 500ms ease, color 500ms ease, border-color 500ms ease,
        transform 500ms ease, box-shadow 500ms ease;
}

.primary-btn {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #7dd3fc, #22d3ee);
    color: var(--ink-on-accent);
    box-shadow: 0 10px 28px -12px rgba(56, 189, 248, 0.7);
}

.primary-btn:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #a5f3fc, #38bdf8);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px rgba(56, 189, 248, 0.8);
}

.ghost-btn {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.ghost-btn:hover {
    border-color: rgba(56, 189, 248, 0.55);
    color: var(--accent-ink);
    transform: translateY(-2px);
}

.primary-btn:active,
.ghost-btn:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section-heading {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    color: var(--accent-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h1 {
    margin: 12px 0 10px;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
}

.section-heading p {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Catalog controls
   -------------------------------------------------------------------------- */

.catalog-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 24px;
}

/* Same expanding-pill language as the navbar, one accent per category. */
.catalog-tab {
    --open: 96px;
    --i: #7dd3fc;
    --j: #38bdf8;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    overflow: hidden;
    transition: width 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms ease,
        border-color 500ms ease, box-shadow 500ms ease;
}

.catalog-tab[data-gallery="all"] {
    --open: 84px;
    --i: #7dd3fc;
    --j: #38bdf8;
}

.catalog-tab[data-gallery="fighting"] {
    --open: 144px;
    --i: #fdba74;
    --j: #fb923c;
}

.catalog-tab[data-gallery="materials"] {
    --open: 108px;
    --i: #86efac;
    --j: #4ade80;
}

.catalog-tab[data-gallery="races"] {
    --open: 162px;
    --i: #c4b5fd;
    --j: #a78bfa;
}

.catalog-tab[data-gallery="swords"] {
    --open: 92px;
    --i: #93c5fd;
    --j: #60a5fa;
}

.catalog-tab[data-gallery="gun"] {
    --open: 84px;
    --i: #fca5a5;
    --j: #f87171;
}

.catalog-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--i), var(--j));
    opacity: 0;
    transition: opacity 500ms ease;
}

.catalog-tab:hover,
.catalog-tab:focus-visible,
.catalog-tab.active {
    width: var(--open);
    border-color: transparent;
    color: var(--ink-on-accent);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
    box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--j) 70%, transparent);
}

.catalog-tab:hover::before,
.catalog-tab:focus-visible::before,
.catalog-tab.active::before {
    opacity: 1;
}

.catalog-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: transform 500ms ease, opacity 500ms ease;
}

.tab-icon svg {
    width: 100%;
    height: 100%;
}

.tab-title {
    position: absolute;
    left: 0;
    right: 0;
    padding: 0 16px;
    color: inherit;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.65);
    transition: opacity 500ms ease, transform 500ms ease;
}

.catalog-tab:hover .tab-icon,
.catalog-tab:focus-visible .tab-icon,
.catalog-tab.active .tab-icon {
    opacity: 0;
    transform: scale(0);
}

.catalog-tab:hover .tab-title,
.catalog-tab:focus-visible .tab-title,
.catalog-tab.active .tab-title {
    opacity: 1;
    transform: scale(1);
    transition-delay: 250ms;
}

.search-wrap {
    max-width: 420px;
    margin: 0 auto 24px;
}

.catalog-search {
    margin-top: 4px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    transition: border-color 500ms ease, box-shadow 500ms ease;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.catalog-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 8px 0 20px;
}

.catalog-info h2 {
    font-size: 18px;
    font-weight: 600;
}

.catalog-info span {
    color: var(--muted);
    font-size: 13px;
}

.catalog-info b {
    color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   Item grid — same tile size as the Robux rates
   -------------------------------------------------------------------------- */

.gallery-view {
    display: none;
}

.gallery-view.active {
    display: block;
    animation: appear 0.22s ease;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-grid,
.rate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.catalog-group {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.catalog-group:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.catalog-group span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.catalog-group[hidden] {
    display: none;
}

.catalog-card {
    --lift: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 24%),
        radial-gradient(140% 100% at 50% 0%, rgba(56, 189, 248, 0.07), transparent 55%),
        linear-gradient(180deg, rgba(18, 28, 40, 0.45), rgba(12, 20, 30, 0.45));
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0px 0px rgba(255, 255, 255, 0);
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    translate: 0 0;
    transform: translateY(var(--lift));
    transition: transform 500ms ease, translate 500ms ease, border-color 500ms ease,
        box-shadow 500ms ease;
}

.catalog-card:hover {
    --lift: -4px;
    border-color: rgba(56, 189, 248, 0.42);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 24%),
        radial-gradient(140% 100% at 50% 0%, rgba(56, 189, 248, 0.07), transparent 55%),
        linear-gradient(180deg, rgba(18, 28, 40, 0.45), rgba(12, 20, 30, 0.45)),
        linear-gradient(45deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.04));
    box-shadow: var(--shadow-md), 0 0 36px -12px rgba(56, 189, 248, 0.45);
}

/* Hover float: a slow bob, delayed 0.25s so it starts after the glow. */
@keyframes cardFloat {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -7px;
    }
}

@media (hover: hover) {
    /* Cards with their own entrance keyframes keep them in the list so the
       entrance never replays when the pointer leaves. */
    .catalog-card:not(.is-entering):hover,
    .contact-card:hover {
        animation: cardFloat 3.4s ease-in-out 0.25s infinite;
    }

    .rate-card:hover {
        animation:
            rateIn 0.5s ease-out calc(var(--i, 0) * 40ms + 60ms) backwards,
            cardFloat 3.4s ease-in-out 0.25s infinite;
    }
}

.catalog-card.is-leaving {
    pointer-events: none;
    opacity: 0;
    transform: translateX(calc(var(--dir, 1) * -16px));
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.catalog-card.is-entering {
    animation: cardWalkIn 0.4s ease-out backwards;
    animation-delay: calc(var(--i, 0) * 30ms);
}

@keyframes cardWalkIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-image {
    position: relative;
    width: calc(100% - 20px);
    height: clamp(168px, 14.5vw, 208px);
    margin: 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: transparent;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: normal;
    transition: transform 500ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.catalog-card:hover .card-image img {
    transform: scale(1.06);
}

.card-image.no-image {
    background: var(--surface-2);
}

.card-image.no-image::after {
    content: attr(data-fallback);
    padding: 0 16px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 17px;
}

.card-content h3 {
    font-size: 15px;
    font-weight: 600;
    transition: color 500ms ease;
}

.catalog-card:hover .card-content h3 {
    color: var(--accent-ink);
}

.value-label {
    display: inline-block;
    color: var(--muted);
    font-size: 12px;
}

.price-label {
    display: block;
    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 700;
}

.price-note {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
}

.price-amount + .price-note {
    margin-left: 4px;
}

.empty-state {
    padding: 64px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-state p {
    color: var(--muted);
    font-size: 14px;
}

.catalog-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.catalog-action {
    padding: 12px 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 500ms ease, color 500ms ease, background 500ms ease;
}

.catalog-action:hover {
    border-color: rgba(56, 189, 248, 0.55);
    color: var(--accent-ink);
}

.catalog-action.primary {
    border-color: transparent;
    background: linear-gradient(135deg, #7dd3fc, #22d3ee);
    color: var(--ink-on-accent);
    box-shadow: 0 10px 28px -12px rgba(56, 189, 248, 0.7);
}

.catalog-action.primary:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #a5f3fc, #38bdf8);
    color: var(--ink-on-accent);
    box-shadow: 0 16px 36px -12px rgba(56, 189, 248, 0.8);
}

/* --------------------------------------------------------------------------
   Detail view
   -------------------------------------------------------------------------- */

.detail-view[hidden] {
    display: none !important;
}

.detail-view:not([hidden]) {
    display: block;
    animation: detail-slide-in 0.28s ease-out both;
}

.detail-view.is-closing {
    animation: detail-slide-out 0.2s ease-in both;
}

.detail-view h2 {
    margin-bottom: 16px;
}

.detail-back {
    margin-bottom: 12px;
}

@keyframes detail-slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes detail-slide-out {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* --------------------------------------------------------------------------
   Robux page
   -------------------------------------------------------------------------- */

.robux-heading h1 {
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.robux-heading h1 span {
    color: var(--accent);
}

.rate-card {
    --lift: 0px;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 24%),
        radial-gradient(140% 100% at 50% 0%, rgba(56, 189, 248, 0.07), transparent 55%),
        linear-gradient(180deg, rgba(18, 28, 40, 0.45), rgba(12, 20, 30, 0.45));
    color: var(--text);
    text-align: center;
    cursor: pointer;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0px 0px rgba(255, 255, 255, 0);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateY(var(--lift));
    animation: rateIn 0.5s ease-out calc(var(--i, 0) * 40ms + 60ms) backwards;
    transition: transform 500ms ease, border-color 500ms ease, box-shadow 500ms ease;
}

.rate-card:hover {
    --lift: -4px;
    border-color: rgba(56, 189, 248, 0.42);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 24%),
        radial-gradient(140% 100% at 50% 0%, rgba(56, 189, 248, 0.07), transparent 55%),
        linear-gradient(180deg, rgba(18, 28, 40, 0.45), rgba(12, 20, 30, 0.45)),
        linear-gradient(45deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.04));
    box-shadow: var(--shadow-md), 0 0 36px -12px rgba(56, 189, 248, 0.45);
}

.rate-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.rate-gem {
    width: 42px;
    height: 42px;
    color: var(--accent);
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.5));
    transition: transform 500ms ease;
}

.rate-gem svg {
    display: block;
    width: 100%;
    height: 100%;
}

.rate-gem-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rate-card:hover .rate-gem {
    transform: scale(1.08);
}

.rate-card-amount {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    transition: color 500ms ease;
}

.rate-card:hover .rate-card-amount {
    color: var(--accent-ink);
}

.rate-card-price {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}

@keyframes rateIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.robux-note {
    margin: 36px auto 0;
    max-width: 640px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.rate-marquee {
    margin: 0;
    padding: 11px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.rate-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 26s linear infinite;
}

.rate-marquee-group {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1;
    white-space: nowrap;
}

.rate-dot {
    color: var(--accent);
}

.rate-marquee:hover .rate-marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    to {
        transform: translateX(-50%);
    }
}

/* --------------------------------------------------------------------------
   Contacts
   -------------------------------------------------------------------------- */

.contact-heading {
    margin-top: 8px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.contact-card {
    --lift: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: none;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 24%),
        radial-gradient(140% 100% at 50% 0%, rgba(56, 189, 248, 0.07), transparent 55%),
        linear-gradient(180deg, rgba(18, 28, 40, 0.45), rgba(12, 20, 30, 0.45));
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0px 0px rgba(255, 255, 255, 0);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateY(var(--lift));
    overflow: hidden;
    transition: transform 500ms ease, border-color 500ms ease, box-shadow 500ms ease;
}

.contact-card:hover {
    --lift: -4px;
    border-color: rgba(56, 189, 248, 0.42);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 24%),
        radial-gradient(140% 100% at 50% 0%, rgba(56, 189, 248, 0.07), transparent 55%),
        linear-gradient(180deg, rgba(18, 28, 40, 0.45), rgba(12, 20, 30, 0.45)),
        linear-gradient(45deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.04));
    box-shadow: var(--shadow-md), 0 0 36px -12px rgba(56, 189, 248, 0.45);
}

/* Glossy glass hairline details (top sheen line + left edge light) */
.catalog-card::before,
.rate-card::before,
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
}

.catalog-card::after,
.rate-card::after,
.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
    pointer-events: none;
}

.contact-card h2 {
    font-size: 20px;
    font-weight: 700;
}

.contact-card p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.contact-list {
    margin-top: 18px;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.contact-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.contact-label {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-value {
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
}

a.contact-value:hover {
    color: var(--accent-ink);
}

.profile-platform {
    display: inline-block;
    color: var(--accent-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.profile-card h2 {
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .gallery-grid,
    .rate-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --page-x: 5%;
    }

    /* Let the bar grow and wrap instead of letting the pills spill past its
       right edge: when logo + currency + nav no longer fit on one line, the
       nav drops to a second, right-aligned row. */
    .navbar {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        row-gap: 8px;
        padding: 10px 14px 10px 22px;
    }

    .navbar nav {
        margin-left: auto;
    }

    .logo {
        font-size: 15px;
    }

    .gallery-grid,
    .rate-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card-image {
        height: 140px;
    }

    .hero-dots {
        display: none;
    }

    .card-content {
        padding: 12px 14px 14px;
    }

    .rate-card {
        gap: 8px;
        padding: 14px;
    }

    .rate-gem {
        width: 32px;
        height: 32px;
    }

    .rate-card-amount {
        font-size: 20px;
    }

    .rate-card-price {
        font-size: 12px;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 460px) {
    .navbar {
        gap: 6px;
        flex-wrap: wrap;
        height: auto;
        padding: 10px 12px;
    }

    .logo {
        font-size: 13px;
    }

    .currency-picker {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .currency-select {
        width: 100%;
        max-width: 220px;
    }

    .hero h1 {
        font-size: clamp(34px, 11vw, 46px);
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 12px;
    }

    .navbar nav {
        gap: 2px;
    }

    .currency-select {
        font-size: 9px;
        padding: 6px 22px 6px 8px;
    }
}

@media (max-width: 360px) {
    .gallery-grid,
    .rate-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Labeled pills: touch screens and narrow windows show icon + label instead
   of relying on hover to reveal the name.
   -------------------------------------------------------------------------- */

@media (hover: none), (max-width: 720px) {
    .navbar nav {
        gap: 4px;
    }

    .nav-link,
    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link.active,
    .catalog-tab,
    .catalog-tab:hover,
    .catalog-tab:focus-visible,
    .catalog-tab.active {
        width: auto;
        height: 36px;
        gap: 6px;
        padding: 0 12px;
    }

    .nav-link .nav-icon,
    .nav-link:hover .nav-icon,
    .nav-link:focus-visible .nav-icon,
    .nav-link.active .nav-icon,
    .catalog-tab .tab-icon,
    .catalog-tab:hover .tab-icon,
    .catalog-tab:focus-visible .tab-icon,
    .catalog-tab.active .tab-icon {
        width: 16px;
        height: 16px;
        opacity: 1;
        transform: none;
    }

    .nav-link .nav-title,
    .nav-link:hover .nav-title,
    .nav-link:focus-visible .nav-title,
    .nav-link.active .nav-title,
    .catalog-tab .tab-title,
    .catalog-tab:hover .tab-title,
    .catalog-tab:focus-visible .tab-title,
    .catalog-tab.active .tab-title {
        position: static;
        padding: 0;
        font-size: 10.5px;
        letter-spacing: 0.06em;
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }

    .catalog-switcher {
        gap: 6px;
    }
}

@media (max-width: 460px) {
    .nav-link .nav-icon,
    .catalog-tab .tab-icon {
        display: none;
    }

    .nav-link,
    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link.active {
        padding: 0 9px;
    }

    .catalog-tab,
    .catalog-tab:hover,
    .catalog-tab:focus-visible,
    .catalog-tab.active {
        padding: 0 11px;
    }

    .nav-link .nav-title,
    .nav-link.active .nav-title,
    .catalog-tab .tab-title,
    .catalog-tab.active .tab-title {
        font-size: 9.5px;
    }
}

/* Very narrow phones: trim the wordmark and tighten the labels so the four
   nav pills still fit on one row. */
@media (max-width: 350px) {
    .logo span {
        display: none;
    }

    .nav-link,
    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link.active {
        padding: 0 7px;
    }

    .nav-link .nav-title,
    .nav-link.active .nav-title {
        font-size: 9px;
        letter-spacing: 0.03em;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* The delivery ticker is a slow, linear, non-flashing loop, so it keeps
       drifting even when OS motion effects are reduced. */
    .rate-marquee-track {
        animation-duration: 40s !important;
        animation-iteration-count: infinite !important;
    }

    /* Expanding pills are short, hover-triggered feedback, so they keep a
       (calmer) transition instead of snapping between the two states. */
    .nav-link,
    .nav-link::before,
    .nav-icon,
    .nav-title,
    .catalog-tab,
    .catalog-tab::before,
    .tab-icon,
    .tab-title {
        transition-duration: 500ms !important;
        transition-delay: 0s !important;
    }

    /* Card float is a gentle, hover-only bob requested for the theme, so it
       survives the reduced-motion snap as a slow 3.4s loop. Durations are
       listed per animation to keep the rate-card entrance instant. */
    .catalog-card:not(.is-entering):hover,
    .contact-card:hover {
        animation-duration: 3.4s !important;
        animation-iteration-count: infinite !important;
    }

    .rate-card:hover {
        animation-duration: 0.01ms, 3.4s !important;
        animation-iteration-count: 1, infinite !important;
    }
}
