/* RadiantSMP store. Written phone-first: the base rules are for a phone, wider screens add to them. */
@font-face {
    font-family: "Lilita One";
    src: url("../fonts/LilitaOne-Regular.ttf") format("truetype");
    font-display: swap;
}

:root,
[data-bs-theme="dark"] {
    --rs-bg: #0e0a22;
    --rs-panel: #1a1438;
    --rs-panel-2: #241c4a;
    --rs-line: #3a2f6b;
    --rs-gold: #ffc81f;
    --rs-orange: #ff8a00;
    --rs-blue: #27b6ff;
    --rs-text: #f4f1ff;
    --rs-muted: #b9b2d9;
    --bs-body-bg: var(--rs-bg);
    --bs-secondary-bg: var(--rs-bg);
    --bs-tertiary-bg: var(--rs-panel);
    --bs-body-color: var(--rs-text);
    --bs-secondary-color: var(--rs-muted);
    --bs-border-color: var(--rs-line);
    --bs-link-color-rgb: 39, 182, 255;
    --bs-link-hover-color-rgb: 120, 210, 255;
    --bs-card-bg: var(--rs-panel);
    --bs-primary: var(--rs-gold);
    --bs-primary-rgb: 255, 200, 31;
}

html { scroll-behavior: smooth; }

body {
    background: var(--rs-bg) !important;
    background-image: radial-gradient(ellipse 900px 520px at 50% -80px, rgba(255, 170, 30, 0.2), transparent 70%) !important;
    background-repeat: no-repeat !important;
    color: var(--rs-text);
}

h1, h2, h3, .rs-title, .navbar-brand { font-family: "Lilita One", system-ui, sans-serif; font-weight: 400; letter-spacing: 0.3px; }

/* Header */
.navbar { background: rgba(14, 10, 34, 0.94) !important; border-bottom: 1px solid var(--rs-line); padding-block: 8px !important; }
.navbar-brand { display: flex; align-items: center; gap: 8px; color: var(--rs-gold) !important; font-size: 1.15rem; }
.navbar-brand img { width: 38px; height: 38px; }
.navbar-toggler { border-color: var(--rs-line); padding: 8px 10px; }
.nav-link { min-height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 600; }

/* Landing */
.rs-hero { text-align: center; padding: 18px 16px 8px; }
.rs-hero-logo { width: 170px; height: auto; filter: drop-shadow(0 6px 26px rgba(255, 170, 30, 0.45)); }
.rs-hero h1 { font-size: 1.75rem; line-height: 1.1; margin: 8px 0; color: #fff; }
.rs-hero p { color: var(--rs-muted); font-size: 1rem; margin: 0 auto 14px; max-width: 34em; }
.rs-hero-button {
    display: block; width: 100%; max-width: 340px; margin: 0 auto 12px; padding: 14px;
    font-family: "Lilita One", system-ui, sans-serif; font-size: 1.25rem; color: #2a1500;
    background: linear-gradient(180deg, #ffe066, var(--rs-gold) 45%, var(--rs-orange)); border-radius: 12px;
    box-shadow: 0 6px 0 #a85600, 0 10px 24px rgba(255, 138, 0, 0.35);
}
.rs-hero-button:active { transform: translateY(3px); box-shadow: 0 3px 0 #a85600; }
.rs-rest-button {
    display: block; width: 100%; max-width: 340px; margin: 0 auto 16px; padding: 12px;
    font-family: "Lilita One", system-ui, sans-serif; font-size: 1.1rem; text-align: center; color: var(--rs-gold);
    background: var(--rs-panel); border: 2px solid var(--rs-gold); border-radius: 12px;
}
.rs-ip { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--rs-panel); border: 1px solid var(--rs-line); margin: 6px 0 0 !important; color: var(--rs-blue) !important; font-weight: 700; font-size: 0.95rem !important; }

/* Page furniture */
main.content, .rs-home { padding-inline: 12px; margin-block: 16px 32px !important; }
.rs-page-title { font-size: 1.9rem; text-align: center; margin: 6px 0 12px; color: #fff; }
.rs-section { margin-top: 26px; scroll-margin-top: 12px; }
.rs-title { font-size: 1.55rem; text-align: center; color: var(--rs-gold); margin-bottom: 12px; }
.rs-intro { color: var(--rs-muted); text-align: center; font-size: 0.92rem; }
/* Recent purchases */
.rs-recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rs-recent-list li {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
    background: var(--rs-panel); border: 1px solid var(--rs-line);
}
.rs-recent-list img { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; background: var(--rs-panel-2); }
.rs-recent-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rs-recent-text b { overflow-wrap: anywhere; }
.rs-recent-text span { color: var(--rs-muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.rs-recent-text em { font-style: normal; color: var(--rs-gold); }
.rs-recent-ago { flex: 0 0 auto; color: var(--rs-muted); font-size: 0.8rem; text-align: right; max-width: 7.5em; }
@media (min-width: 768px) { .rs-recent-list { grid-template-columns: 1fr 1fr; } }

.rs-more { text-align: center; margin-top: 18px; font-weight: 700; }

/* Category tabs: they wrap, so every category shows on a phone without swiping */
.rs-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 8px; margin-inline: -4px; }
.rs-tabs a { flex: 0 0 auto; padding: 11px 16px; border-radius: 999px; background: var(--rs-panel); border: 1px solid var(--rs-line); color: var(--rs-text); font-weight: 700; font-size: 0.95rem; }
.rs-tabs a.active { background: var(--rs-gold); border-color: var(--rs-gold); color: #2a1500; }
.rs-tabs .rs-tab-cart { margin-left: auto; color: var(--rs-blue); }
.rs-tabs .rs-tab-name + .rs-tab-cart { margin-left: 0; }

/* The name form and the check before payment */
.rs-name-card { margin-top: 16px; }
.rs-name-big {
    margin: 0 0 16px; padding: 12px; border-radius: 10px; background: var(--rs-panel);
    font-size: 1.5rem; font-weight: 700; text-align: center; overflow-wrap: anywhere;
}
.rs-buying-for a { margin-left: 8px; }

/* Rank cards: two across on a phone */
.rs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rs-card {
    --rank: var(--rs-gold);
    display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--rs-panel);
    border: 2px solid color-mix(in srgb, var(--rank) 60%, transparent);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--rank) 20%, transparent);
}
.rs-card-art { position: relative; display: block; line-height: 0; }
.rs-card-art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.rs-flag { position: absolute; top: 8px; left: 8px; padding: 5px 9px; border-radius: 8px; background: rgba(10, 6, 26, 0.86); color: var(--rank); font-size: 0.75rem; line-height: 1.1; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; }
.rs-card-body { display: flex; flex: 1; flex-direction: column; padding: 10px; }
.rs-card-name { font-size: 1.25rem; margin: 0; color: var(--rank); }
.rs-price { font-family: "Lilita One", system-ui, sans-serif; font-size: 1.7rem; line-height: 1.15; margin: 2px 0 8px; color: #fff; }
.rs-price del { font-size: 0.95rem; color: var(--rs-muted); }
.rs-permanent { display: block; margin: -4px 0 8px; padding: 4px 0; font-size: 0.78rem; color: var(--rs-muted); text-decoration: underline; text-underline-offset: 2px; }
.rs-permanent b { color: #fff; }
.rs-compare-permanent { display: inline-block; padding: 8px 4px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.rs-stats { list-style: none; padding: 0; margin: 0 0 8px; font-size: 0.86rem; color: var(--rs-muted); }
.rs-stats b { color: #fff; font-size: 1rem; }
.rs-price small { font-family: system-ui, sans-serif; font-size: 0.72rem; font-weight: 600; color: var(--rs-muted); }
.rs-kit { margin: 0 0 10px; font-size: 0.84rem; font-weight: 700; color: #fff; }
.rs-kit span { display: block; font-weight: 400; color: var(--rs-muted); font-size: 0.75rem; }
.rs-card-popular { border-color: var(--rank); box-shadow: 0 0 0 1px var(--rank), 0 10px 28px color-mix(in srgb, var(--rank) 35%, transparent); }
.rs-buy {
    display: block; margin-top: auto; padding: 12px 8px; min-height: 46px; text-align: center; border-radius: 10px;
    font-family: "Lilita One", system-ui, sans-serif; font-size: 1.15rem; line-height: 1.1; color: #190f00;
    background: var(--rank, var(--rs-gold));
}
.rs-buy:hover { color: #190f00; filter: brightness(1.1); }
.rs-buy.disabled { background: var(--rs-panel-2); color: var(--rs-muted); }

/* Comparison: first column stays put while the ranks swipe */
.rs-hint { text-align: center; color: var(--rs-muted); font-size: 0.86rem; margin-bottom: 8px; }
.rs-compare { overflow-x: auto; border: 1px solid var(--rs-line); border-radius: 14px; background: var(--rs-panel); -webkit-overflow-scrolling: touch; }
.rs-compare table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; text-align: center; }
.rs-compare th, .rs-compare td { padding: 9px 6px; border-bottom: 1px solid var(--rs-line); }
.rs-compare tbody tr:last-child th, .rs-compare tbody tr:last-child td { border-bottom: 0; }
.rs-compare thead th { font-weight: 400; vertical-align: top; }
.rs-compare thead img { display: block; width: 56px; height: 56px; margin: 0 auto 5px; border-radius: 10px; }
.rs-compare-name { display: block; font-family: "Lilita One", system-ui, sans-serif; color: var(--rank); font-size: 1rem; }
.rs-compare-price { display: block; color: #fff; font-weight: 800; font-size: 0.95rem; }
.rs-compare td b { font-size: 1.05rem; }
.rs-sticky { position: sticky; left: 0; z-index: 1; min-width: 118px; max-width: 118px; text-align: left; font-size: 0.88rem; background: var(--rs-panel); border-right: 1px solid var(--rs-line); }
.rs-yes { color: #4ce06f; font-size: 1.25rem; }
.rs-no { color: #6f678f; }
.rs-compare-buy .rs-buy { padding: 9px 4px; min-height: 42px; font-size: 1rem; }
.rs-compare td { font-size: 0.82rem; line-height: 1.2; }
.rs-compare td b { font-size: 1rem; }
.rs-free-col { color: var(--rs-muted); background: rgba(255, 255, 255, 0.025); }
.rs-free-col .rs-compare-name { color: var(--rs-muted); }
.rs-col-popular { background: rgba(52, 224, 90, 0.07); }

/* How buying works */
.rs-steps { list-style: none; counter-reset: rs; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.rs-steps li { counter-increment: rs; position: relative; padding: 12px 12px 12px 54px; border-radius: 14px; background: var(--rs-panel); border: 1px solid var(--rs-line); }
.rs-steps li::before { content: counter(rs); position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--rs-gold); color: #2a1500; font-family: "Lilita One", system-ui, sans-serif; font-size: 1.1rem; }
.rs-steps b { display: block; line-height: 1.25; }
.rs-steps span { color: var(--rs-muted); font-size: 0.88rem; }
.rs-good { padding: 12px 14px; border-radius: 14px; background: var(--rs-panel); border: 1px solid var(--rs-line); }
.rs-good h3 { color: var(--rs-gold); font-size: 1.15rem; margin-bottom: 6px; }
.rs-good ul { margin: 0; padding-left: 18px; color: var(--rs-muted); font-size: 0.9rem; }
.rs-good li + li { margin-top: 6px; }

/* Coins, the pass and anything else */
.rs-name-hint { margin: 0 0 8px; color: var(--rs-gold); font-size: 0.88rem; font-weight: 700; }
.rs-items-intro { margin: 10px 0 0; }
.rs-items { display: grid; gap: 10px; margin-top: 12px; }
.rs-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--rs-panel); border: 1px solid var(--rs-line); }
.rs-item img { width: 64px; height: 64px; border-radius: 10px; flex: 0 0 auto; object-fit: cover; }
.rs-item-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 10px; flex: 0 0 auto; font-size: 1.9rem; color: var(--rs-gold); background: color-mix(in srgb, var(--rs-gold) 12%, transparent); }
.rs-item-text { flex: 1; min-width: 0; }
.rs-item h3 { font-size: 1.15rem; margin: 0; color: #fff; }
.rs-item p { margin: 0; color: var(--rs-muted); font-size: 0.84rem; }
.rs-item .rs-price { font-size: 1.3rem; color: var(--rs-gold); margin: 0; }
.rs-item .rs-buy { flex: 0 0 auto; margin: 0; min-width: 76px; }

/* Shared Bootstrap pieces: the buy popup, cart, login and profile pages */
.card, .modal-content, .list-group-item, .dropdown-menu { background-color: var(--rs-panel); border-color: var(--rs-line); color: var(--rs-text); }
.btn-primary { --bs-btn-bg: var(--rs-gold); --bs-btn-border-color: var(--rs-gold); --bs-btn-color: #190f00; --bs-btn-hover-bg: #ffd95a; --bs-btn-hover-border-color: #ffd95a; --bs-btn-hover-color: #190f00; --bs-btn-active-bg: var(--rs-orange); --bs-btn-active-border-color: var(--rs-orange); --bs-btn-active-color: #190f00; --bs-btn-disabled-bg: var(--rs-panel-2); --bs-btn-disabled-border-color: var(--rs-panel-2); font-weight: 800; }
.btn { min-height: 44px; }
.form-control, .form-select { min-height: 46px; font-size: 16px; background-color: var(--rs-panel-2); border-color: var(--rs-line); color: var(--rs-text); }
.modal-title { font-family: "Lilita One", system-ui, sans-serif; color: var(--rs-gold); }
.modal-footer { font-size: 1.15rem; font-weight: 800; }

/* Footer */
footer { background: #090616 !important; border-top: 1px solid var(--rs-line); }
footer .rs-footer-ip { color: var(--rs-blue); font-weight: 700; margin-bottom: 4px; }

/* Larger phones and small tablets */
@media (min-width: 560px) {
    .rs-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rs-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Desktop */
@media (min-width: 992px) {
    .rs-hero { padding-top: 34px; }
    .rs-hero-logo { width: 230px; }
    .rs-hero h1 { font-size: 2.7rem; max-width: 22em; margin-inline: auto; }
    .rs-hero p { font-size: 1.15rem; }
    .rs-cards { gap: 18px; }
    .rs-card { transition: transform 0.15s; }
    .rs-card:hover { transform: translateY(-4px); }
    .rs-card-body { padding: 16px; }
    .rs-card-name { font-size: 1.6rem; }
    .rs-price { font-size: 2.2rem; }
    .rs-stats { font-size: 0.95rem; }
    .rs-compare th, .rs-compare td { padding: 12px 8px; }
    .rs-sticky { min-width: 190px; max-width: 190px; font-size: 1rem; }
    .rs-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    main.content, .rs-home { max-width: 1040px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rs-card { transition: none; }
}
