:root {
    font-family: "Segoe UI", system-ui, sans-serif;
    background-color: #0f1217;
    color: #f7f8fb;
    line-height: 1.5;
}

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

body {
    margin: 0;
    min-height: 100vh;
}

.page {
    padding: 2rem clamp(1rem, 4vw, 3rem);
    max-width: 960px;
    margin: 0 auto 3rem;
}

.hero h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero .lead {
    margin: 0;
    color: rgba(247, 248, 251, 0.84);
}

.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: #68f;
    margin-bottom: 0.3rem;
}

.guide {
    margin-top: 1.5rem;
    background: rgba(15, 18, 23, 0.75);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(177, 118, 255, 0.6);
}

.guide-note {
    margin: 0.75rem 0;
    color: rgba(247, 247, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.4;
}

.guide-streamlined {
    text-align: center;
}

.discord-guide {
    margin-top: 1rem;
}

.discord-callout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    padding: 0.35rem;
    border-radius: 0.9rem;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    background: transparent;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-callout:focus,
.discord-callout:focus-visible {
    outline: none;
}

.discord-callout:hover,
.discord-callout:focus-visible {
    transform: translateY(-2px);
    box-shadow: none;
}

.discord-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: rgba(193, 143, 255, 0.12);
    border: 1px solid #c18fff;
    color: #c18fff;
    display: grid;
    place-items: center;
}

.discord-icon svg {
    width: 34px;
    height: 34px;
    display: block;
    transform: translate(0px, 3px) scaleY(1.2);
}

.low-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem auto;
}

.low-inline-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.coin-note {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coin-showcase {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.coin-inline-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 10, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-card {
    background: rgba(9, 11, 18, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(193, 143, 255, 0.6);
    width: min(420px, 90vw);
    position: relative;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.modal-image {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.modal-title {
    margin: 0;
    font-size: 1.15rem;
}

.modal-price {
    margin: 0;
    font-weight: 600;
}

.modal-chart-wrapper {
    width: 100%;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem;
}

.modal-chart {
    width: 100%;
    height: 140px;
    display: block;
}

.modal-timeframes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.modal-timeframes .timeframe {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: inherit;
    padding: 0.35rem 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.modal-timeframes .timeframe:hover,
.modal-timeframes .timeframe:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(193, 143, 255, 0.75);
    background: rgba(193, 143, 255, 0.12);
}

.modal-timeframes .timeframe.active {
    border-color: #c18fff;
    background: rgba(193, 143, 255, 0.12);
}

.guide ol {
    margin: 0;
    padding-left: 1.25rem;
}

.filters {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-buttons a {
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-buttons a:hover,
.filter-buttons a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(10, 12, 18, 0.28);
    border-color: rgba(193, 143, 255, 0.65);
    background: rgba(193, 143, 255, 0.12);
}

.filter-buttons a.active {
    border-color: #c18fff;
    background: rgba(193, 143, 255, 0.12);
}

.sort-buttons {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    max-width: 520px;
}

.pill-button {
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 140px;
    text-align: center;
}

.pill-button:hover,
.pill-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(10, 12, 18, 0.28);
    border-color: #c18fff;
    background: rgba(193, 143, 255, 0.12);
}
.pill-button.active {
    border-color: #c18fff;
    background: rgba(193, 143, 255, 0.12);
}

.items h2 {
    margin-bottom: 0.25rem;
}

.items .subtext {
    margin-top: 0;
    margin-bottom: 1rem;
    color: rgba(247, 248, 251, 0.7);
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.item-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-preview {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.item-grid.animating .item-card {
    opacity: 0;
    transform: translateY(8px);
}

.item-card {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(15, 18, 23, 0.9);
    border: 1px solid rgba(247, 248, 251, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.item-card.hidden {
    display: none;
}

.item-card:hover,
.item-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(8, 10, 14, 0.35), 0 0 18px rgba(193, 143, 255, 0.35);
    border-color: rgba(193, 143, 255, 0.45);
}

.item-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0;
}

.item-card .item-name {
    margin: 0;
}

.item-price {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.price-label-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fefefe;
}

.price-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 0.35rem;
    vertical-align: middle;
}
.price-badges {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.price-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
}

.price-badge-label {
    margin-top: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    width: 100%;
    text-align: left;
}

.empty-state {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    background: rgba(148, 46, 117, 0.12);
    border: 1px solid rgba(248, 101, 193, 0.2);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
    .filter-buttons a {
        flex: 1 1 100%;
    }
}
