html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background: radial-gradient(circle at 0% 0%, #26263a 0, #05060a 55%), radial-gradient(circle at 100% 100%, #221622 0, #05060a 60%);
    color: #f5f5f7;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Color palette ---------- */
/* Inspired by ARC Raiders key art, dusty off white, bold stripes, cyan tech glow */

:root {
    --rt-bg: #05060a;
    --rt-surface: #10121b;
    --rt-surface-soft: #171925;
    --rt-border-subtle: rgba(255, 255, 255, 0.06);
    --rt-text-main: #f5f5f7;
    --rt-text-muted: #a5a7b6;
    --rt-accent-gold: #f9c94e; /* matches the ARC yellow stripe */
    --rt-accent-red: #ff4b4b; /* warning / danger */
    --rt-accent-cyan: #4be4ff; /* sci fi neon */
}

/* ---------- Global elements ---------- */

a {
    color: var(--rt-accent-cyan);
    text-decoration: none;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

    a:hover {
        color: #a0f2ff;
        text-shadow: 0 0 8px rgba(75, 228, 255, 0.6);
    }

.text-muted {
    color: var(--rt-text-muted) !important;
}

/* Subtle neon focus ring */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(5, 5, 10, 0.9), 0 0 0 0.18rem rgba(75, 228, 255, 0.7);
    outline: none;
}

/* ---------- Layout containers ---------- */


main > .container,
main > .container-fluid {
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.6) );
    border-radius: 18px;
    border: 1px solid var(--rt-border-subtle);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.9);
    padding-block: 2.5rem;
    margin-top: 2.5rem;
}

/* ---------- Top brand bar ---------- */

.rt-brand {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.8rem;
}

.rt-brand-badge {
    background: linear-gradient(to right, var(--rt-accent-gold), var(--rt-accent-red));
    border-radius: 999px;
    padding: 0.25rem 0.85rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: none;
}

/* ---------- Hero section ---------- */

.rt-hero-title {
    font-size: clamp(2.4rem, 3.4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

    .rt-hero-title span {
        display: block;
    }

.rt-hero-subtitle {
    max-width: 40rem;
}

/* ---------- Cards ---------- */

.card {
    background: radial-gradient(circle at top left, #26283b 0, #0c0d14 55%);
    border-radius: 18px;
    border: 1px solid var(--rt-border-subtle);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.85);
    color: var(--rt-text-main);
}

.card-title {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.card h5.card-title::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 2px;
    margin-right: 8px;
    background: linear-gradient( to right, var(--rt-accent-red), var(--rt-accent-gold), var(--rt-accent-cyan) );
    vertical-align: middle;
}

/* ---------- Buttons ---------- */

.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Neon gold primary button */
.btn-primary {
    color: #111217;
    background: linear-gradient(135deg, var(--rt-accent-gold), #ffe28f);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(249, 201, 78, 0.7), 0 12px 24px rgba(0, 0, 0, 0.8);
}

    .btn-primary:hover {
        color: #05060a;
        background: linear-gradient(135deg, #ffe28f, var(--rt-accent-gold));
        box-shadow: 0 0 22px rgba(249, 201, 78, 0.9), 0 14px 28px rgba(0, 0, 0, 0.9);
    }

/* Outline button, cyan glow */
.btn-outline-secondary {
    color: var(--rt-text-main);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(17, 19, 27, 0.7);
}

    .btn-outline-secondary:hover {
        border-color: var(--rt-accent-cyan);
        color: #e9f9ff;
        box-shadow: 0 0 18px rgba(75, 228, 255, 0.7);
    }

/* ---------- Forms ---------- */

.form-control,
.form-select {
    background-color: rgba(4, 6, 14, 0.85);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--rt-text-main);
}

    .form-control::placeholder {
        color: rgba(165, 167, 182, 0.7);
    }

/* ---------- Badges, pills ---------- */

.badge.bg-primary {
    background: linear-gradient(to right, var(--rt-accent-gold), var(--rt-accent-red));
    color: #111217;
}

/* ---------- Footer ---------- */

footer.footer {
    border-top: 1px solid var(--rt-border-subtle);
    background: radial-gradient(circle at top, #151623 0, #05060a 55%);
    color: var(--rt-text-muted);
}
/* --------- Nav --------- */

.rt-manage-nav .nav-link {
    border-radius: 999px;
    padding: 0.55rem 1rem;
    color: #b9c2ff;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

    .rt-manage-nav .nav-link:hover {
        color: #ffffff;
        background: rgba(0, 132, 255, 0.14);
    }

    .rt-manage-nav .nav-link.active {
        color: #ffffff;
        background: linear-gradient(90deg, #0053ff, #18c3ff);
        box-shadow: 0 0 18px rgba(0, 140, 255, 0.6);
    }

.rt-page-title {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.rt-card .form-control:disabled,
.rt-card .form-control[readonly] {
    background-color: #13141c;
    color: #f7f7ff;
    border-color: #35384a;
    opacity: 1; 
}

/* Dark readonly inputs to match normal fields */
.rt-readonly-input[readonly] {
    background-color: var(--rt-input-bg, #11141f);
    color: var(--rt-input-fg, #f5f5f5);
    opacity: 1;
    cursor: default;
}


/* Item Icon Wrapper*/
.item-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 0.35rem;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%), linear-gradient(135deg, #111827, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .item-icon-wrapper img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Create Listing customizations */
    .rt-item-results {
        z-index: 1060;
        max-height: 260px;
        overflow-y: auto;
        display: none;
        background-color: #16161a;
        border-radius: 0.5rem;
    }

        .rt-item-results .list-group-item {
            background-color: transparent;
            color: #f8f9fa;
            border-color: rgba(255, 255, 255, 0.08);
        }

            .rt-item-results .list-group-item:hover {
                background-color: rgba(255, 255, 255, 0.06);
            }

  /* Listing Card Modal*/
.rt-card {
    background: radial-gradient(circle at top left, #26283b 0, #0c0d14 55%);
    border-radius: 18px;
    border: 1px solid var(--rt-border-subtle);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.85);
    color: var(--rt-text-main);
}

.rt-item-preview-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.35rem;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%), linear-gradient(135deg, #111827, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .rt-item-preview-icon img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.rt-item-preview-name {
    font-weight: 600;
}

/* soft striping */
.rt-list.rt-list-striped .list-group-item:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.rt-list.rt-list-striped .list-group-item:nth-child(even) {
    background-color: transparent;
}

/* row layout tweaks */
.rt-listing-row {
    border: 0;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

/* tiny icon */
.rt-listing-thumb img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 0.5rem;
    display: block;
}

/* title behaves nicely on narrow widths */
.rt-listing-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--rt-text-main);
    opacity: 0.95;
    font-weight: 500;
}

/* metadata wraps nicely but stays subtle */
.rt-listing-meta span {
    display: inline-block;
}

/* tighten the right side */
.rt-listing-right .btn {
    padding-inline: 0.75rem;
}

/* header labels */
.rt-listing-header-row {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    opacity: 0.8;
}

/* column sizing so header and rows line up */
.rt-col-item {
    width: 52px;
}

.rt-col-id {
    width: 90px;
}

.rt-col-side {
    width: 70px;
}

.rt-col-name {
    flex: 1;
    min-width: 0;
    color: var(--rt-text-main);
}

.rt-col-expires {
    width: 150px;
}

/* fine-tune header label alignment, leave Expires alone */
.rt-listing-header-row .rt-col-item {
    padding-left: 15px; /* lines up with icon block */
}

.rt-listing-header-row .rt-col-id {
    padding-left: 18px;
}

.rt-listing-header-row .rt-col-side {
    padding-left: 12px;
}

.rt-listing-header-row .rt-col-name {
    padding-left: 45px;
}

.rt-listing-header-row .rt-col-expires-title {
    padding-right: 205px;
}
.rt-sortable {
    cursor: pointer;
    user-select: none;
}

.rt-sortable-active {
    color: var(--rt-accent-cyan);
}

/* Trades table: force solid, readable text */
.rt-table-trades thead th,
.rt-table-trades tbody td {
    color: #f8f9fa; /* bright text on dark bg */
    opacity: 1; /* kill any faded look */
    background-image: none; /* no text gradients */
    -webkit-text-fill-color: currentColor; /* override fancy text effects */
    text-shadow: none;
}