/* Kit Creator / Community / Recent — matches main randomizer page aesthetic */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #4ecdc4;
    --teal-glow: rgba(78, 205, 196, 0.35);
    --bg-dark: #1a1a2e;
    --bg-mid: #16213e;
    --bg-deep: #0f3460;
    --surface: rgba(0, 0, 0, 0.35);
    --surface-hover: rgba(0, 0, 0, 0.45);
    --border: rgba(78, 205, 196, 0.15);
    --border-hi: rgba(78, 205, 196, 0.35);
    --text: #fff;
    --text-muted: #b0b0b0;
    --text-dim: #888;
    --yellow: #eab308;
    --purple: #8b5cf6;
    --orange: #f97316;
    --green: #10b981;
    --red: #f43f5e;
    --r: 12px;
    --r-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
    min-height: 100vh;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 196, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 205, 196, 0.5);
}

/* ── Nav bar (matches kit-creator-link bar on main page) ── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.97) 0%, rgba(22, 33, 62, 0.97) 50%, rgba(15, 52, 96, 0.97) 100%);
    border-bottom: 2px solid var(--border-hi);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand,
a.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

a.brand {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}

a.brand:hover {
    opacity: 0.9;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border: 2px solid var(--border-hi);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.brand-txt b {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    color: var(--teal);
    text-shadow: 0 0 8px rgba(78, 205, 196, 0.3), 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.brand-txt span {
    font-size: 11px;
    color: var(--text-dim);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Shared button / link styles — same as .kit-creator-link & .share-button on main page */
.btn-ghost,
.kit-creator-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border: 2px solid rgba(77, 141, 255, 0.35);
    color: #8fb6ff;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.btn-ghost:hover,
.kit-creator-link:hover {
    background: linear-gradient(145deg, #3a3a4e, #2a2a2e);
    border-color: #4d8dff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 141, 255, 0.35);
    color: #b9d3ff;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, #4d8dff, #2f6bff);
    border: 2px solid transparent;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px -6px rgba(77, 141, 255, 0.7);
    text-decoration: none;
}

.btn-primary:hover {
    filter: brightness(1.08);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -8px rgba(77, 141, 255, 0.85);
}

.btn-primary:disabled,
.btn-ghost:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.discord-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--border);
}

.discord-user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.discord-user span {
    font-size: 12px;
    font-weight: 500;
    color: var(--teal);
}

/* ── Page layout ── */
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px;
}

.wrap.narrow {
    max-width: 860px;
}

.wrap.creator {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 22px;
    align-items: start;
}

.hero {
    margin-bottom: 18px;
}

.hero.creator-hero {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--teal);
    text-shadow: 0 0 12px rgba(78, 205, 196, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.7),
        0 1px 0 rgba(255, 255, 255, 0.1);
    transform: rotate(-0.3deg);
}

.hero p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
    max-width: 640px;
}

.hero p a {
    color: var(--teal);
}

.hero p a:hover {
    text-decoration: underline;
}

/* ── Cards (settings-item / share-modal aesthetic) ── */
.card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 50%, rgba(15, 52, 96, 0.9) 100%);
    border: 3px solid #3a3a4e;
    border-top: 2px solid #4a4a5e;
    border-radius: var(--r);
    padding: 18px;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 20% 30%, rgba(78, 205, 196, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
    padding-bottom: 8px;
}

/* ── Kit Creator slots ── */
.slots {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 14px 2px 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slot {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(78, 205, 196, 0.3);
    border-radius: var(--r-sm);
    padding: 13px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot:hover {
    background: var(--surface-hover);
    border-color: var(--border-hi);
    transform: translateX(3px);
    box-shadow: -2px 0 8px rgba(78, 205, 196, 0.15);
}

.slot.filled {
    border-color: rgba(78, 205, 196, 0.4);
    border-left-color: var(--teal);
}

.slot.disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.5);
}

.slot-thumb {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: rgba(30, 30, 50, 0.8);
    border: 2px solid #4a4a5e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 22px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.slot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.slot-body {
    flex: 1;
    min-width: 0;
}

.slot-cat {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.slot-name {
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-name.empty {
    color: var(--text-dim);
    font-weight: 500;
}

.slot-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-act {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.slot-clear {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(78, 205, 196, 0.4);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: none;
}

.slot.filled .slot-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slot-clear:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(244, 63, 94, 0.1);
}

.slot-arrow {
    color: var(--text-dim);
    font-size: 18px;
}

.req-dot {
    color: var(--teal);
    font-weight: 900;
}

.mag-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.mag-qty button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(78, 205, 196, 0.4);
    background: rgba(0, 0, 0, 0.3);
    color: var(--teal);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s;
}

.mag-qty button:hover {
    border-color: var(--teal);
    background: rgba(78, 205, 196, 0.15);
}

.mag-qty span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 52px;
    text-align: center;
}

.qty-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
}

.qty-row .qty-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
    font-weight: 500;
}

.qty-row .mag-qty {
    margin-top: 0;
    flex-shrink: 0;
}

.qty-row .mag-qty span {
    min-width: 36px;
    font-size: 11px;
}

/* ── Sidebar ── */
.side {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow: auto;
}

.pv-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pv-thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid #4a4a5e;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.pv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.pv-row .nm {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-row .ct {
    font-size: 10.5px;
    color: var(--text-dim);
}

.pv-empty,
.craft-empty {
    color: var(--text-dim);
    font-size: 12.5px;
    text-align: center;
    padding: 18px 0;
}

.summary {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(78, 205, 196, 0.2);
    margin-top: 12px;
}

.summary div b {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--yellow);
    text-shadow: 0 0 12px rgba(234, 179, 8, 0.35);
    letter-spacing: -0.3px;
}

.summary div span {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.craft-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
}

.craft-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(78, 205, 196, 0.1);
}

.craft-row:last-child {
    border-bottom: none;
}

.craft-row span {
    color: var(--text-muted);
}

.craft-row b {
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

.craft-note {
    font-size: 10.5px;
    color: var(--text-dim);
    margin-top: 8px;
    line-height: 1.4;
}

.card .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
}

.btn-publish {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    margin-top: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-publish:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--purple);
    transform: translateY(-2px);
}

.btn-publish:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
}

.stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px;
}

.stat-box span {
    display: block;
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
}

.stat-box b {
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
}

.tier-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 8px;
}

.tier-budget {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.tier-standard {
    background: rgba(78, 205, 196, 0.12);
    color: var(--teal);
    border: 1px solid var(--border-hi);
}

.tier-chad {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.tier-giga {
    background: rgba(234, 179, 8, 0.12);
    color: var(--yellow);
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.mini-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--orange);
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.field-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    display: block;
}

.field-input,
.field-text {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.15s;
}

.field-input:focus,
.field-text:focus {
    border-color: var(--teal);
}

.field-text {
    min-height: 72px;
    resize: vertical;
}

.publish-note {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.4;
    margin-top: 8px;
}

.publish-note a {
    color: var(--teal);
}

.tag-picker {
    margin-top: 10px;
}

.tag-picker-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.tag-picker .chip {
    margin-bottom: 6px;
}

.tag-hint {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
}

.recent-item:hover {
    border-color: var(--border-hi);
    transform: translateX(3px);
    box-shadow: -2px 0 8px rgba(78, 205, 196, 0.12);
}

.recent-main {
    min-width: 0;
}

.recent-main b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-main span {
    font-size: 11px;
    color: var(--text-dim);
}

.recent-cost {
    font-size: 11px;
    font-weight: 800;
    color: var(--yellow);
    flex-shrink: 0;
}

.recent-empty {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.45;
}

.recent-foot {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-url {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.share-url input {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    color: var(--text);
    font-size: 12.5px;
    font-family: inherit;
}

.share-row {
    display: flex;
    gap: 8px;
}

.share-row .btn-ghost {
    flex: 1;
    justify-content: center;
}

.share-img {
    width: 100%;
    border-radius: var(--r-sm);
    border: 2px solid #3a3a4e;
    margin-top: 12px;
    display: block;
}

/* ── Picker modal (share-modal style) ── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
    border: 3px solid #3a3a4e;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0.6;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (min-width: 720px) {
    .modal {
        align-items: center;
        padding: 16px;
    }

    .modal-panel {
        border-radius: 12px;
    }
}

.modal-hd {
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 2;
}

.modal-hd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.modal-hd-top h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--teal);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(78, 205, 196, 0.4);
    background: rgba(0, 0, 0, 0.3);
    color: var(--teal);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    border-color: var(--red);
    color: var(--red);
    transform: rotate(45deg);
}

.search {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.search:focus {
    border-color: var(--teal);
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    align-items: flex-end;
}

.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 4px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
    flex: 1;
}

.filter-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.filter-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 8px 10px;
    color: var(--text);
    font-size: 12.5px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--teal);
}

.chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.filter-row .filter-group {
    min-width: 140px;
}

.chip {
    font-size: 11.5px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-dim);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.chip:hover {
    color: var(--teal);
    border-color: var(--border-hi);
}

.chip.active {
    background: rgba(78, 205, 196, 0.15);
    border-color: rgba(78, 205, 196, 0.5);
    color: var(--teal);
}

.grid {
    padding: 14px 18px 22px;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 11px;
}

.cell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
    transition: all 0.15s;
}

.cell:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    background: var(--surface-hover);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.15);
}

.cell.sel {
    border-color: var(--teal);
    background: rgba(78, 205, 196, 0.1);
}

.cell-img {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(30, 30, 50, 0.6);
    border-radius: 8px;
}

.cell-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 4px;
}

.cell-nm {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
}

.cell-meta {
    font-size: 10.5px;
    color: var(--text-dim);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.cell-tag {
    font-size: 9px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.15);
    color: var(--orange);
}

.none-cell {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-dim);
    padding: 30px 0;
    font-size: 13px;
}

/* ── Community / browse grid ── */
.toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    position: relative;
}

.toolbar .search {
    width: 100%;
}

.filter-bar-wrap,
.picker-filter-wrap {
    position: relative;
}

.picker-filter-wrap {
    margin-top: 10px;
}

.picker-filter-wrap .filter-bar {
    width: 100%;
}

.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px 8px;
    position: relative;
}

.bar-item {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s;
}

.bar-item:hover {
    color: var(--teal);
}

.bar-item.active {
    color: var(--teal);
}

.bar-item.has-value {
    color: var(--text);
}

.bar-item.bar-action {
    color: var(--teal);
    font-weight: 600;
}

.bar-item.bar-action:hover {
    color: #fff;
}

.bar-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 13px;
    padding: 0 2px;
    user-select: none;
    line-height: 1;
}

.filter-menus {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 40;
}

.filter-menu {
    position: absolute;
    z-index: 50;
    display: flex;
    flex-direction: column;
    min-width: 160px;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(18, 18, 32, 0.98);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.filter-menu[hidden] {
    display: none !important;
}

.menu-opt {
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    padding: 9px 12px;
    text-align: left;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}

.menu-opt:hover {
    background: rgba(78, 205, 196, 0.12);
    color: var(--teal);
}

@media (max-width: 640px) {
    .filter-bar {
        justify-content: flex-start;
    }

    .bar-item {
        padding: 8px 10px;
        font-size: 12px;
    }
}

.grid.kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    padding: 0;
}

.grid.kit-grid .card {
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s, transform 0.12s;
}

.grid.kit-grid .card:hover {
    border-color: rgba(78, 205, 196, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.15);
}

.card-img {
    height: 150px;
    background: rgba(30, 30, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 14px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-gun {
    font-size: 12px;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 8px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.kit-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(78, 205, 196, 0.12);
    border: 1px solid rgba(78, 205, 196, 0.25);
    color: var(--teal);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-dim);
}

.author {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vote-pill {
    font-weight: 800;
    color: var(--yellow);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
}

.empty-state b {
    display: block;
    color: var(--teal);
    font-size: 16px;
    margin-bottom: 6px;
}

.load-more-wrap {
    text-align: center;
    margin-top: 20px;
}

/* Detail modal */
.modal.detail-modal {
    align-items: center;
    padding: 16px;
}

.modal.detail-modal .modal-panel {
    max-width: 720px;
    max-height: 90vh;
    overflow: auto;
    border-radius: 12px;
    padding: 20px;
}

.modal.detail-modal .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.modal.detail-modal .modal-hd h2 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.modal.detail-modal .modal-hd p {
    color: var(--text-muted);
    font-size: 13px;
}

.modal-img {
    margin: 16px 0;
    border-radius: 10px;
    border: 2px solid #3a3a4e;
    overflow: hidden;
    background: rgba(30, 30, 50, 0.8);
}

.modal-img img {
    width: 100%;
    display: block;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.modal-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.stat-pill {
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.vote-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.vote-btn.up.active {
    border-color: rgba(16, 185, 129, 0.5);
    color: var(--green);
    background: rgba(16, 185, 129, 0.1);
}

.vote-btn.down.active {
    border-color: rgba(244, 63, 94, 0.5);
    color: var(--red);
    background: rgba(244, 63, 94, 0.1);
}

.vote-score {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--yellow);
    min-width: 48px;
    text-align: center;
    text-shadow: 0 0 12px rgba(234, 179, 8, 0.35);
}

.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* ── Recent kits list ── */
.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(78, 205, 196, 0.3);
    border-radius: var(--r-sm);
    transition: all 0.15s;
}

.list .item:hover {
    border-color: var(--border-hi);
    border-left-color: var(--teal);
    transform: translateX(3px);
    box-shadow: -2px 0 8px rgba(78, 205, 196, 0.12);
}

.item-main {
    min-width: 0;
    flex: 1;
}

.item-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta {
    font-size: 12px;
    color: var(--text-dim);
}

.item-meta b {
    color: var(--teal);
    font-weight: 600;
}

.item-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.item-cost {
    font-size: 12px;
    font-weight: 800;
    color: var(--yellow);
}

.btn-open {
    padding: 8px 12px;
    border-radius: var(--r-sm);
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border: 2px solid var(--border-hi);
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s;
}

.btn-open:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

/* ── Loading & toast ── */
#loading {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 999;
    color: var(--text-dim);
}

.spin {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(78, 205, 196, 0.15);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: rot 0.7s linear infinite;
}

@keyframes rot {
    to {
        transform: rotate(360deg);
    }
}

#toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
    border: 2px solid var(--border-hi);
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    z-index: 500;
    opacity: 0;
    transition: all 0.25s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.share-panel {
    margin-top: 14px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    flex: 1;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.vote-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin-left: auto;
}

@media (max-width: 880px) {
    .wrap.creator {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .side {
        position: static;
    }
}

@media (max-width: 600px) {
    .filter-row .filter-group {
        min-width: calc(50% - 4px);
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}

/* ── Item database explorer ── */
.item-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.item-stat {
    flex: 1;
    min-width: 120px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 16px;
    text-align: center;
}

.item-stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1.1;
}

.item-stat-lbl {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.item-result-meta {
    padding: 0 4px 10px;
    font-size: 12px;
    color: var(--text-dim);
}

.grid.item-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 14px;
    padding: 0 0 24px;
}

.item-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    color: inherit;
    font: inherit;
}

.item-card:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.item-card-img {
    height: 120px;
    background: rgba(20, 20, 36, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.item-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

.item-card-fallback {
    font-size: 2rem;
    color: var(--text-dim);
    font-weight: 700;
}

.item-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.item-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.item-card-cat {
    font-size: 11px;
    color: var(--text-dim);
}

.item-card-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.price-buy,
.price-sell,
.price-none {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.price-buy {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.price-sell {
    background: rgba(234, 179, 8, 0.12);
    color: var(--yellow);
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.price-none {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.item-detail-modal .item-detail-panel {
    max-width: 920px;
    width: 100%;
}

.item-detail-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
}

.item-detail-img {
    background: rgba(20, 20, 36, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--r);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-detail-img img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    padding: 12px;
}

.item-detail-fallback {
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal);
    opacity: 0.5;
}

.item-detail-prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.item-price-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface);
}

.item-price-block.has .val {
    font-weight: 700;
}

.item-price-block.has:first-child .val { color: var(--green); }
.item-price-block.has:last-child .val { color: var(--yellow); }

.item-price-block .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.item-price-block.empty .val {
    color: var(--text-dim);
}

.item-detail-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.item-cat-chip {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(78, 205, 196, 0.12);
    border: 1px solid var(--border-hi);
    color: var(--teal);
}

.item-detail-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin: 14px 0 18px;
}

.item-fact {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
}

.item-fact-lbl {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    margin-bottom: 3px;
}

.item-fact-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.item-facts-empty {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--text-dim);
    padding: 8px 0;
}

.item-spawns-section {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 4px;
}

.item-spawns-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.item-spawns-hd h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.item-spawns-credit {
    font-size: 11px;
    color: var(--text-dim);
}

.item-spawns-credit a {
    color: var(--teal);
}

.item-spawns-loading {
    font-size: 13px;
    color: var(--text-dim);
    padding: 8px 0;
}

.item-spawns-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.spawn-card {
    display: block;
    padding: 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
}

.spawn-card:hover {
    border-color: #3a7bd5;
    background: rgba(58, 123, 213, 0.08);
    transform: translateY(-1px);
}

.spawn-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.spawn-map-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(58, 123, 213, 0.15);
    color: #7eb8ff;
    border: 1px solid rgba(58, 123, 213, 0.35);
}

.spawn-cat {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--spawn-color) 18%, transparent);
    color: var(--spawn-color);
    border: 1px solid color-mix(in srgb, var(--spawn-color) 35%, transparent);
}

.spawn-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
}

.spawn-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spawn-link {
    font-size: 11px;
    font-weight: 600;
    color: #7eb8ff;
}

.item-spawns-empty {
    font-size: 13px;
    color: var(--text-dim);
    padding: 10px 0;
    line-height: 1.5;
}

.item-spawns-empty a {
    color: var(--teal);
}

.item-detail-actions {
    margin-top: 16px;
    flex-wrap: wrap;
}

.item-card-foot {
    margin-top: auto;
    padding-top: 6px;
}

.item-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.item-card-top .item-card-name {
    flex: 1;
    min-width: 0;
}

.item-wiki-link,
.item-fact-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
}

.item-wiki-link:hover,
.item-fact-link:hover {
    text-decoration: underline;
}

.item-card-wiki {
    opacity: 0.92;
    border-style: dashed;
}

.entry-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 3px 6px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.entry-item {
    background: rgba(16, 185, 129, 0.12);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.entry-wiki {
    background: rgba(139, 92, 246, 0.12);
    color: var(--purple);
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.item-detail-cats .entry-badge {
    margin-left: 2px;
}

@media (max-width: 760px) {
    .item-detail-layout {
        grid-template-columns: 1fr;
    }

    .item-detail-side {
        display: grid;
        grid-template-columns: 140px 1fr;
        gap: 12px;
        align-items: start;
    }

    .item-detail-img {
        min-height: 140px;
    }

    .item-detail-prices {
        margin-top: 0;
    }
}

/* ============================================================================
   MODERN REFRESH — flatter surfaces, hairline borders, blue accent, no glows.
   Appended last so it cascades over the older "casino" styling. Applies to
   kits / items / kitcreator / recent (and the marketplace base; the marketplace
   has its own higher-specificity .mp-page overrides on top).
   ============================================================================ */
:root {
  --teal: #4d8dff;
  --teal-glow: rgba(77, 141, 255, 0.28);
  --bg-dark: #0e1422;
  --bg-mid: #0c1322;
  --bg-deep: #0a1020;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(77, 141, 255, 0.4);
  --text-muted: #9aa7b2;
  --text-dim: #6b7886;
  --r: 14px;
  --r-sm: 10px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 640px at 50% -12%, #15203a 0%, #0b1020 58%) fixed, #0b1020;
}

::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* topbar */
.topbar {
  background: rgba(11, 16, 28, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: none;
}
.brand-mark {
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); box-shadow: none; border-radius: 11px;
}
.brand-txt b { color: var(--text); text-shadow: none; letter-spacing: -0.2px; font-weight: 700; }

/* cards — kill the 3px border + inset glow */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
  box-shadow: 0 12px 34px -22px rgba(0, 0, 0, 0.9);
  border-radius: var(--r);
}
.card::before { display: none; }
.card h3 { color: var(--text); text-shadow: none; border-bottom: 1px solid var(--border); font-weight: 700; letter-spacing: -0.2px; }

/* item cards (items explorer) */
.item-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-sm); }
.item-card:hover { border-color: var(--border-hi); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.85); }

/* modals */
.modal-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 26, 40, 0.98), rgba(12, 17, 28, 0.98));
  box-shadow: 0 40px 90px -34px rgba(0, 0, 0, 0.92);
}
.modal-close { border-radius: 50%; }

/* inputs */
.search, input[type="text"], input[type="number"], input[type="search"], select, textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
}
.search:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--border-hi); box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.14);
}

/* strip neon text-shadows from headings */
.hero h1, .hero h2, h1, h2 { text-shadow: none; letter-spacing: -0.4px; }
.hero h1 { font-weight: 800; }

/* filter / tab chips: flatten */
.filter-bar button, .filter-chip, .chip, .tag, .kit-tag {
  border-radius: 999px;
}
