/* ==================== CSS Variables ==================== */

:root {
    /* Backgrounds */
    --nc-bg-primary:    #0f172a;
    --nc-bg-secondary:  #1e293b;
    --nc-bg-tertiary:   #334155;
    --nc-bg-card:       rgba(30, 41, 59, 0.93);
    --nc-bg-card-hover: rgba(51, 65, 85, 0.96);

    /* Text */
    --nc-text-primary:   #f1f5f9;
    --nc-text-secondary: #94a3b8;
    --nc-text-muted:     #64748b;

    /* Accents */
    --nc-accent:                #995dff;
    --nc-accent-hover:          #a182d3;
    --nc-accent-soft:           rgba(124, 58, 237, 0.15);
    --nc-accent-secondary:      #60a5fa;
    --nc-accent-secondary-soft: rgba(96, 165, 250, 0.15);

    /* Brand */
    --nc-brand-purple:  #995dff;
    --nc-brand-magenta: #c33b94;
    --nc-brand-gold:    #e8d4a0;

    /* Status */
    --nc-success: #34d399;
    --nc-warning: #fbbf24;
    --nc-danger:  #f87171;

    /* Borders */
    --nc-border:       rgba(255, 255, 255, 0.08);
    --nc-border-hover: rgba(255, 255, 255, 0.15);

    /* Radius */
    --nc-radius-sm:   8px;
    --nc-radius-md:   12px;
    --nc-radius-lg:   16px;
    --nc-radius-full: 9999px;

    /* Shadows */
    --nc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --nc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --nc-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Animation */
    --nc-transition: 0.2s ease;

    /* Night sky: how hard the wash scrims the store background image */
    --nc-scrim: 0.55;
    --nc-bgimg: none;

    /* Top bar height */
    --nc-topbar-height: 40px;

    /* Font */
    --nc-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --nc-module-text:    1.7rem;
    --nc-module-subtext: 1.2rem;
    --nc-module-title:   1.5rem;
}

/* ==================== Base Reset ==================== */

html {
    height: 100%;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--nc-accent) rgba(15, 23, 42, 0.88);
}

body {
    font-family: var(--nc-font);
    background-color: var(--nc-bg-primary);
    color: var(--nc-text-secondary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.84);
    border-radius: var(--nc-radius-full);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--nc-accent-secondary), var(--nc-accent));
    border-radius: var(--nc-radius-full);
    border: 2px solid rgba(15, 23, 42, 0.9);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7bc2ff, var(--nc-brand-magenta));
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
b, strong,
.panel-title,
.modal-title {
    color: var(--nc-text-primary);
}

a {
    color: var(--nc-accent-secondary);
    transition: color var(--nc-transition);
}

a:hover,
a:focus {
    color: var(--nc-text-primary);
    text-decoration: none;
}

.nc-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==================== Night Sky Background ==================== */
/* Two star fields painted once as repeating SVG tiles, drifting at different
   speeds for parallax. No filters and no canvas: the only thing that changes
   per frame is a translate on a cached layer, which the compositor handles on
   its own thread. Cost is effectively flat regardless of hardware.          */

.nc-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.nc-sky__layer { position: absolute; inset: 0; }

/* The store background image lives here rather than on <body>, so it is
   composited instead of repainted on every scroll frame. */
.nc-sky__image {
    background-image: var(--nc-bgimg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nc-sky__wash {
    background:
        radial-gradient(ellipse 65% 45% at 50% 112%, rgba(99, 102, 241, 0.22), transparent 66%),
        radial-gradient(ellipse 55% 40% at 8% 6%, rgba(153, 93, 255, 0.13), transparent 68%),
        linear-gradient(180deg, #060a18 0%, #0b1226 48%, #141d38 100%);
}

/* With a store background image set, the wash becomes a translucent scrim so
   the image still reads through it: lighter at the top, heavier at the bottom.
   Mirrors the old theme's backgroundGradient (topOpacity -> bottomOpacity). */
.has-bgimg .nc-sky__wash {
    background:
        radial-gradient(ellipse 65% 45% at 50% 112%, rgba(99, 102, 241, 0.20), transparent 66%),
        radial-gradient(ellipse 55% 40% at 8% 6%, rgba(153, 93, 255, 0.12), transparent 68%),
        linear-gradient(180deg,
            rgba(6, 10, 24, calc(var(--nc-scrim) * 0.55)) 0%,
            rgba(11, 18, 38, calc(var(--nc-scrim) * 0.85)) 48%,
            rgba(20, 29, 56, var(--nc-scrim)) 100%);
}

.nc-sky__stars-far,
.nc-sky__stars-near {
    inset: -640px;
    background-repeat: repeat;
}

.nc-sky__stars-far {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Ccircle cx='144.8' cy='179.1' r='1.0' fill='rgb%28226%2C232%2C240%29' opacity='0.45'/%3E%3Ccircle cx='188.0' cy='59.1' r='0.76' fill='rgb%28186%2C200%2C255%29' opacity='0.53'/%3E%3Ccircle cx='30.1' cy='97.1' r='0.5' fill='rgb%28226%2C232%2C240%29' opacity='0.62'/%3E%3Ccircle cx='13.4' cy='314.3' r='1.03' fill='rgb%28226%2C232%2C240%29' opacity='0.55'/%3E%3Ccircle cx='50.4' cy='4.8' r='0.77' fill='rgb%28226%2C232%2C240%29' opacity='0.25'/%3E%3Ccircle cx='77.4' cy='9.6' r='0.73' fill='rgb%28186%2C200%2C255%29' opacity='0.44'/%3E%3Ccircle cx='166.1' cy='204.9' r='0.75' fill='rgb%28226%2C232%2C240%29' opacity='0.55'/%3E%3Ccircle cx='89.0' cy='319.2' r='1.05' fill='rgb%28226%2C232%2C240%29' opacity='0.64'/%3E%3Ccircle cx='100.9' cy='73.5' r='0.62' fill='rgb%28186%2C200%2C255%29' opacity='0.26'/%3E%3Ccircle cx='128.1' cy='270.9' r='0.68' fill='rgb%28186%2C200%2C255%29' opacity='0.7'/%3E%3Ccircle cx='0.2' cy='67.1' r='1.0' fill='rgb%28232%2C212%2C160%29' opacity='0.45'/%3E%3Ccircle cx='127.2' cy='23.4' r='0.83' fill='rgb%28226%2C232%2C240%29' opacity='0.61'/%3E%3Ccircle cx='27.9' cy='106.4' r='1.03' fill='rgb%28226%2C232%2C240%29' opacity='0.6'/%3E%3Ccircle cx='78.8' cy='32.3' r='0.49' fill='rgb%28226%2C232%2C240%29' opacity='0.62'/%3E%3Ccircle cx='179.0' cy='143.2' r='0.56' fill='rgb%28226%2C232%2C240%29' opacity='0.59'/%3E%3Ccircle cx='206.0' cy='37.3' r='0.7' fill='rgb%28226%2C232%2C240%29' opacity='0.33'/%3E%3Ccircle cx='310.7' cy='257.1' r='0.63' fill='rgb%28226%2C232%2C240%29' opacity='0.66'/%3E%3Ccircle cx='126.2' cy='273.4' r='0.84' fill='rgb%28232%2C212%2C160%29' opacity='0.27'/%3E%3Ccircle cx='68.2' cy='82.6' r='0.91' fill='rgb%28226%2C232%2C240%29' opacity='0.38'/%3E%3Ccircle cx='23.5' cy='28.8' r='0.8' fill='rgb%28226%2C232%2C240%29' opacity='0.34'/%3E%3Ccircle cx='118.9' cy='145.0' r='1.03' fill='rgb%28226%2C232%2C240%29' opacity='0.46'/%3E%3Ccircle cx='277.3' cy='58.5' r='0.54' fill='rgb%28186%2C200%2C255%29' opacity='0.67'/%3E%3Ccircle cx='79.8' cy='60.7' r='0.89' fill='rgb%28226%2C232%2C240%29' opacity='0.69'/%3E%3Ccircle cx='304.0' cy='282.3' r='0.81' fill='rgb%28226%2C232%2C240%29' opacity='0.43'/%3E%3Ccircle cx='12.4' cy='308.1' r='0.59' fill='rgb%28226%2C232%2C240%29' opacity='0.57'/%3E%3Ccircle cx='263.6' cy='190.9' r='0.63' fill='rgb%28226%2C232%2C240%29' opacity='0.31'/%3E%3Ccircle cx='22.0' cy='73.1' r='0.79' fill='rgb%28226%2C232%2C240%29' opacity='0.65'/%3E%3Ccircle cx='89.7' cy='293.6' r='0.57' fill='rgb%28226%2C232%2C240%29' opacity='0.23'/%3E%3Ccircle cx='142.6' cy='19.3' r='0.56' fill='rgb%28226%2C232%2C240%29' opacity='0.4'/%3E%3Ccircle cx='42.1' cy='115.9' r='0.98' fill='rgb%28226%2C232%2C240%29' opacity='0.71'/%3E%3Ccircle cx='221.2' cy='187.0' r='0.53' fill='rgb%28226%2C232%2C240%29' opacity='0.24'/%3E%3Ccircle cx='291.3' cy='224.3' r='1.03' fill='rgb%28226%2C232%2C240%29' opacity='0.23'/%3E%3Ccircle cx='154.3' cy='233.8' r='0.64' fill='rgb%28226%2C232%2C240%29' opacity='0.72'/%3E%3Ccircle cx='174.8' cy='235.8' r='0.99' fill='rgb%28226%2C232%2C240%29' opacity='0.59'/%3E%3Ccircle cx='253.8' cy='292.8' r='0.66' fill='rgb%28232%2C212%2C160%29' opacity='0.56'/%3E%3Ccircle cx='278.8' cy='133.5' r='0.92' fill='rgb%28226%2C232%2C240%29' opacity='0.65'/%3E%3Ccircle cx='200.0' cy='122.3' r='0.8' fill='rgb%28226%2C232%2C240%29' opacity='0.52'/%3E%3Ccircle cx='204.6' cy='317.9' r='0.98' fill='rgb%28226%2C232%2C240%29' opacity='0.58'/%3E%3Ccircle cx='235.2' cy='185.9' r='0.71' fill='rgb%28226%2C232%2C240%29' opacity='0.64'/%3E%3Ccircle cx='240.1' cy='9.5' r='0.81' fill='rgb%28226%2C232%2C240%29' opacity='0.46'/%3E%3Ccircle cx='223.5' cy='159.1' r='0.82' fill='rgb%28226%2C232%2C240%29' opacity='0.68'/%3E%3Ccircle cx='3.6' cy='96.3' r='0.86' fill='rgb%28226%2C232%2C240%29' opacity='0.32'/%3E%3Ccircle cx='289.8' cy='211.2' r='0.72' fill='rgb%28226%2C232%2C240%29' opacity='0.67'/%3E%3Ccircle cx='213.1' cy='63.5' r='0.71' fill='rgb%28232%2C212%2C160%29' opacity='0.62'/%3E%3Ccircle cx='281.7' cy='123.0' r='0.8' fill='rgb%28226%2C232%2C240%29' opacity='0.38'/%3E%3Ccircle cx='158.9' cy='267.9' r='0.96' fill='rgb%28232%2C212%2C160%29' opacity='0.58'/%3E%3Ccircle cx='88.6' cy='54.1' r='0.72' fill='rgb%28226%2C232%2C240%29' opacity='0.36'/%3E%3Ccircle cx='132.5' cy='200.2' r='0.75' fill='rgb%28186%2C200%2C255%29' opacity='0.38'/%3E%3Ccircle cx='314.3' cy='144.8' r='0.49' fill='rgb%28186%2C200%2C255%29' opacity='0.24'/%3E%3Ccircle cx='13.3' cy='226.8' r='0.79' fill='rgb%28186%2C200%2C255%29' opacity='0.37'/%3E%3Ccircle cx='6.1' cy='43.5' r='0.72' fill='rgb%28186%2C200%2C255%29' opacity='0.23'/%3E%3Ccircle cx='76.0' cy='45.1' r='0.48' fill='rgb%28226%2C232%2C240%29' opacity='0.53'/%3E%3Ccircle cx='201.6' cy='209.6' r='0.93' fill='rgb%28226%2C232%2C240%29' opacity='0.7'/%3E%3Ccircle cx='63.8' cy='152.0' r='0.56' fill='rgb%28226%2C232%2C240%29' opacity='0.23'/%3E%3Ccircle cx='228.5' cy='57.3' r='0.61' fill='rgb%28226%2C232%2C240%29' opacity='0.39'/%3E%3Ccircle cx='166.5' cy='196.6' r='0.9' fill='rgb%28186%2C200%2C255%29' opacity='0.42'/%3E%3Ccircle cx='290.0' cy='27.9' r='1.01' fill='rgb%28226%2C232%2C240%29' opacity='0.58'/%3E%3Ccircle cx='145.1' cy='200.2' r='1.0' fill='rgb%28226%2C232%2C240%29' opacity='0.41'/%3E%3C/svg%3E");
    background-size: 320px 320px;
    animation: nc-sky-far 260s linear infinite;
}

.nc-sky__stars-near {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Ccircle cx='285.0' cy='179.8' r='6.36' fill='rgb%28226%2C232%2C240%29' opacity='0.095'/%3E%3Ccircle cx='285.0' cy='179.8' r='1.87' fill='rgb%28226%2C232%2C240%29' opacity='0.68'/%3E%3Ccircle cx='178.8' cy='216.1' r='1.98' fill='rgb%28226%2C232%2C240%29' opacity='0.6'/%3E%3Ccircle cx='116.9' cy='181.8' r='2.0' fill='rgb%28226%2C232%2C240%29' opacity='0.7'/%3E%3Ccircle cx='218.2' cy='379.8' r='5.2' fill='rgb%28226%2C232%2C240%29' opacity='0.088'/%3E%3Ccircle cx='218.2' cy='379.8' r='1.53' fill='rgb%28226%2C232%2C240%29' opacity='0.63'/%3E%3Ccircle cx='212.2' cy='412.2' r='1.63' fill='rgb%28226%2C232%2C240%29' opacity='0.64'/%3E%3Ccircle cx='155.2' cy='266.2' r='1.34' fill='rgb%28186%2C200%2C255%29' opacity='0.73'/%3E%3Ccircle cx='268.2' cy='391.2' r='6.09' fill='rgb%28226%2C232%2C240%29' opacity='0.113'/%3E%3Ccircle cx='268.2' cy='391.2' r='1.79' fill='rgb%28226%2C232%2C240%29' opacity='0.81'/%3E%3Ccircle cx='206.6' cy='321.3' r='1.81' fill='rgb%28232%2C212%2C160%29' opacity='0.59'/%3E%3Ccircle cx='191.0' cy='72.3' r='1.28' fill='rgb%28226%2C232%2C240%29' opacity='0.7'/%3E%3Ccircle cx='206.9' cy='215.8' r='5.81' fill='rgb%28232%2C212%2C160%29' opacity='0.106'/%3E%3Ccircle cx='206.9' cy='215.8' r='1.71' fill='rgb%28232%2C212%2C160%29' opacity='0.76'/%3E%3Ccircle cx='342.9' cy='166.9' r='1.89' fill='rgb%28232%2C212%2C160%29' opacity='0.86'/%3E%3Ccircle cx='381.9' cy='502.1' r='1.32' fill='rgb%28232%2C212%2C160%29' opacity='0.68'/%3E%3Ccircle cx='11.4' cy='480.4' r='6.53' fill='rgb%28226%2C232%2C240%29' opacity='0.085'/%3E%3Ccircle cx='11.4' cy='480.4' r='1.92' fill='rgb%28226%2C232%2C240%29' opacity='0.61'/%3E%3Ccircle cx='476.3' cy='499.1' r='1.89' fill='rgb%28226%2C232%2C240%29' opacity='0.88'/%3E%3Ccircle cx='160.1' cy='3.8' r='1.68' fill='rgb%28232%2C212%2C160%29' opacity='0.95'/%3E%3Ccircle cx='267.7' cy='4.3' r='4.42' fill='rgb%28226%2C232%2C240%29' opacity='0.105'/%3E%3Ccircle cx='267.7' cy='4.3' r='1.3' fill='rgb%28226%2C232%2C240%29' opacity='0.75'/%3E%3Ccircle cx='14.4' cy='100.2' r='1.57' fill='rgb%28226%2C232%2C240%29' opacity='0.61'/%3E%3Ccircle cx='86.0' cy='17.5' r='1.82' fill='rgb%28226%2C232%2C240%29' opacity='0.94'/%3E%3Ccircle cx='329.7' cy='455.7' r='4.62' fill='rgb%28232%2C212%2C160%29' opacity='0.098'/%3E%3Ccircle cx='329.7' cy='455.7' r='1.36' fill='rgb%28232%2C212%2C160%29' opacity='0.7'/%3E%3Ccircle cx='396.2' cy='323.0' r='1.82' fill='rgb%28226%2C232%2C240%29' opacity='0.81'/%3E%3C/svg%3E");
    background-size: 520px 520px;
    animation: nc-sky-near 150s linear infinite;
}

/* Each layer travels exactly one tile, so the loop is seamless. Translate
   only, no scale and no filter, so the texture is never re-rasterized. */
@keyframes nc-sky-far  { to { transform: translate3d(-320px, 0, 0); } }
@keyframes nc-sky-near { to { transform: translate3d(-520px, 0, 0); } }

@media (prefers-reduced-motion: reduce) {
    .nc-sky__stars-far,
    .nc-sky__stars-near { animation: none; }
}

/* ==================== Slim Top Bar ==================== */

.nc-topbar {
    position: relative;
    z-index: 30;
    height: var(--nc-topbar-height);
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid var(--nc-border);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.nc-topbar__back {
    color: var(--nc-text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color var(--nc-transition);
}

.nc-topbar__back:hover { color: var(--nc-accent) !important; text-decoration: none !important; }

.nc-topbar__spacer { flex: 1; }

.nc-topbar__brand {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--nc-text-muted);
    letter-spacing: 0.03em;
}

/* ==================== Header ==================== */

.nc-header {
    padding: 1.5rem 0 0.5rem;
    margin-top: 0;
}

.nc-header__inner {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.nc-header__logo {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    order: 2;
}

.nc-header__logo img {
    width: min(100%, 420px);
    max-height: 96px;
    object-fit: contain;
    display: block;
}

.nc-stat-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    background: var(--nc-bg-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    transition: all var(--nc-transition);
    cursor: pointer;
    text-decoration: none !important;
    color: var(--nc-text-primary) !important;
    width: 240px !important;
    min-width: 240px !important;
    background-color: transparent;
    outline: none;
    font-family: var(--nc-font);
    justify-content: flex-start;
}

.nc-stat-card:hover {
    background: var(--nc-bg-card-hover);
    border-color: var(--nc-border-hover);
    box-shadow: var(--nc-shadow-md);
}

.nc-stat-card--ip {
    order: 1;
}

.nc-stat-card--discord {
    order: 3;
}

.nc-stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--nc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nc-stat-card--ip .nc-stat-card__icon { background: var(--nc-accent-soft); color: var(--nc-accent); }
.nc-stat-card--discord .nc-stat-card__icon { background: var(--nc-accent-secondary-soft); color: var(--nc-accent-secondary); }

.nc-stat-card__body { display: flex; flex-direction: column; gap: 0.125rem; text-align: left; }
.nc-stat-card__label { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--nc-text-secondary); font-weight: 500; }
.nc-stat-card__value { font-size: 1.5rem; font-weight: 700; color: var(--nc-text-primary); }

/* ==================== Navbar ==================== */

.nc-navbar {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.nc-navbar > .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.nc-navbar__inner {
    background: var(--nc-bg-card) !important;
    border: 1px solid var(--nc-border) !important;
    border-radius: var(--nc-radius-md);
    box-shadow: var(--nc-shadow-sm);
    min-height: 52px;
}

.nc-navbar .navbar-header, 
.nc-navbar .navbar-collapse {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: none !important;
}

.nc-navbar .navbar-nav { margin: 0 !important; }

.nc-navbar .navbar-nav > li > a {
    color: var(--nc-text-secondary) !important;
    font-weight: 500;
    transition: color var(--nc-transition);
    padding-top: 15px;
    padding-bottom: 15px;
}

.nc-navbar .navbar-nav > li > a:hover,
.nc-navbar .navbar-nav > li.active > a {
    color: var(--nc-text-primary) !important;
    background: transparent !important;
}

.nc-navbar .dropdown-menu {
    background: var(--nc-bg-secondary) !important;
    border: 1px solid var(--nc-border) !important;
    border-radius: var(--nc-radius-md) !important;
    box-shadow: var(--nc-shadow-md) !important;
}

.nc-navbar .dropdown-menu > li > a { color: var(--nc-text-secondary) !important; padding: 0.5rem 1rem !important; }
.nc-navbar .dropdown-menu > li > a:hover { background: var(--nc-bg-tertiary) !important; color: var(--nc-text-primary) !important; }

.nc-basket-link {
    color: var(--nc-text-secondary) !important;
    font-weight: 500;
    display: flex !important;
    align-items: center;
    gap: 0.375rem;
    height: 50px;
}

.nc-basket-link:hover { color: var(--nc-accent) !important; }

.nc-basket-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nc-accent);
    color: #fff;
    border-radius: var(--nc-radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
}

.nc-navbar .navbar-toggle {
    border-color: var(--nc-border) !important;
    margin-right: 0;
    float: none !important;
}

.nc-navbar .navbar-toggle .icon-bar { background-color: var(--nc-text-secondary); }

.nc-navbar-toggle {
    display: none !important;
    align-items: center;
    gap: 0.55rem;
    margin: 7px 0 7px 10px !important;
    padding: 0.55rem 0.75rem !important;
    border-radius: var(--nc-radius-sm) !important;
    background: rgba(15, 23, 42, 0.48) !important;
}

.nc-navbar-toggle__bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.nc-navbar .nc-navbar-toggle .icon-bar {
    width: 16px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background-color: var(--nc-text-primary);
}

.nc-navbar-toggle__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nc-text-primary);
}

.nc-mobile-basket {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-right: 10px;
    padding: 0.55rem 0.75rem;
    border-radius: var(--nc-radius-sm);
    border: 1px solid var(--nc-border);
    color: var(--nc-text-primary) !important;
    background: rgba(15, 23, 42, 0.44);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
}

.nc-mobile-basket:hover {
    border-color: var(--nc-border-hover);
    background: rgba(51, 65, 85, 0.6);
}

/* Mobile topbar brand (hidden on desktop) */
.nc-topbar__mobile-brand {
    display: none;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
    color: var(--nc-text-primary) !important;
}

.nc-topbar__logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.nc-topbar__mobile-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--nc-text-primary);
}

/* Mobile topbar controls (hidden on desktop) */
.nc-topbar__mobile-controls {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.nc-topbar__menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--nc-radius-sm);
    border: 1px solid var(--nc-border);
    background: rgba(15, 23, 42, 0.5);
    color: var(--nc-text-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all var(--nc-transition);
    font-family: var(--nc-font);
}

.nc-topbar__menu-btn:hover {
    border-color: var(--nc-border-hover);
    background: rgba(51, 65, 85, 0.6);
}

.nc-topbar__menu-bars {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nc-topbar__menu-bars span {
    display: block;
    width: 14px;
    height: 2px;
    background: var(--nc-text-primary);
    border-radius: 999px;
}

.nc-topbar__basket-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--nc-radius-sm);
    border: 1px solid rgba(153, 93, 255, 0.4);
    background: rgba(153, 93, 255, 0.12);
    color: var(--nc-text-primary) !important;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all var(--nc-transition);
}

.nc-topbar__basket-btn:hover {
    border-color: rgba(153, 93, 255, 0.6);
    background: rgba(153, 93, 255, 0.2);
}

/* Mobile nav drawer */
.nc-mobile-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nc-bg-card);
    border-top: 1px solid var(--nc-border);
    border-bottom: 1px solid var(--nc-border);
    z-index: 99;
}

.nc-mobile-drawer__inner {
    padding: 0.5rem 1rem 0.75rem;
    display: flex;
    flex-direction: column;
}

.nc-mobile-drawer__link {
    display: block;
    padding: 0.75rem;
    border-radius: var(--nc-radius-sm);
    color: var(--nc-text-secondary) !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: color var(--nc-transition), background var(--nc-transition);
}

.nc-mobile-drawer__link:hover,
.nc-mobile-drawer__link:focus {
    color: var(--nc-text-primary) !important;
    background: var(--nc-bg-tertiary);
}

.nc-mobile-drawer__link--sub {
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.nc-mobile-drawer__group-label {
    display: block;
    padding: 0.6rem 0.75rem 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nc-text-muted);
}

.nc-mobile-drawer__footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--nc-border);
}

.nc-mobile-drawer__back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--nc-radius-sm);
    color: var(--nc-text-secondary) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: color var(--nc-transition), background var(--nc-transition);
}

.nc-mobile-drawer__back:hover {
    color: var(--nc-text-primary) !important;
    background: var(--nc-bg-tertiary);
}

/* ==================== Main Container & Cards ==================== */

.nc-main-container { padding-top: 1rem; padding-bottom: 2rem; flex: 1; }

.nc-card {
    background: var(--nc-bg-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-lg);
    box-shadow: var(--nc-shadow-sm);
    overflow: hidden;
    margin-bottom: 1rem;
}

.nc-card__body { padding: 1.5rem; }
.nc-card--page .nc-card__body { line-height: 1.7; }
.nc-card--page .nc-card__body img { max-width: 100%; height: auto; display: block; }
.nc-card--page .nc-card__body iframe,
.nc-card--page .nc-card__body video { max-width: 100%; }

.nc-module {
    transition: none;
}

/* Sidebar */
.nc-main-col,
.nc-sidebar {
    padding-left: 15px;
    padding-right: 15px;
}

.nc-sidebar > * + * { margin-top: 1rem; }

/* ==================== Bootstrap Bridge ==================== */

.panel {
    background: var(--nc-bg-card) !important;
    border: 1px solid var(--nc-border) !important;
    border-radius: var(--nc-radius-lg) !important;
    box-shadow: var(--nc-shadow-sm);
    overflow: hidden;
}

.panel-heading {
    position: relative;
    background: rgba(21, 34, 54, 0.92) !important;
    color: var(--nc-text-primary) !important;
    padding: 0.95rem 1.1rem 0.9rem !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.panel-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nc-accent), var(--nc-accent-secondary));
}

.panel-heading .nc-heading-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.panel-heading .nc-heading-icon {
    display: none;
}

.panel-heading .nc-heading-title {
    margin: 0;
    color: var(--nc-text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.panel-heading .nc-heading-meta {
    color: var(--nc-text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
}

.panel-heading .nc-heading-meta p {
    margin: 0;
}

.panel-heading .nc-heading-meta--status {
    padding: 0.2rem 0.6rem;
    border-radius: var(--nc-radius-full);
    background: rgba(15, 23, 42, 0.5);
    color: #dbeafe;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nc-category-desc {
    padding: 0.7rem 1.1rem;
    border-bottom: 1px solid var(--nc-border);
    color: var(--nc-text-secondary);
    font-size: 1.3rem;
    line-height: 1.55;
}

.nc-category-desc p {
    margin: 0;
}

.panel-body { padding: 1.5rem !important; color: var(--nc-text-secondary); }

.nc-module .panel-body {
    font-size: var(--nc-module-text);
    line-height: 1.55;
}

.nc-module-title {
    font-size: var(--nc-module-title);
    font-weight: 700;
    line-height: 1.35;
}

.nc-module-subtext {
    font-size: var(--nc-module-subtext);
    color: var(--nc-text-secondary);
    line-height: 1.45;
}

.panel-heading h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.table {
    color: var(--nc-text-secondary);
    border-color: var(--nc-border) !important;
}

.table > thead > tr > th {
    color: var(--nc-text-primary);
    border-bottom: 1px solid rgba(148, 163, 184, 0.28) !important;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.45) !important;
}

.table > tbody > tr > td {
    color: var(--nc-text-secondary);
    border-top: 1px solid rgba(148, 163, 184, 0.2) !important;
    background: rgba(15, 23, 42, 0.32) !important;
    vertical-align: middle !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(15, 23, 42, 0.4) !important;
}

.table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: rgba(20, 30, 47, 0.34) !important;
}

.table-hover > tbody > tr:hover > td {
    background-color: rgba(74, 92, 122, 0.42) !important;
}

.nc-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.nc-cart-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--nc-text-primary);
}

.nc-cart-header p {
    color: var(--nc-text-secondary);
    margin: 0;
}

.nc-cart-header b {
    color: var(--nc-text-primary);
}

.nc-order-table-wrap {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--nc-radius-md);
    overflow: auto;
    margin-top: 1rem;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.06);
}

.order-table {
    margin-top: 0 !important;
    margin-bottom: 0;
}

.order-table > thead > tr > th {
    background: linear-gradient(180deg, rgba(18, 26, 42, 0.9), rgba(23, 33, 53, 0.9)) !important;
}

.order-table.table-striped > tbody > tr > td {
    background: rgba(21, 31, 49, 0.72) !important;
}

.order-table.table-striped > tbody > tr:nth-of-type(odd) > td {
    background: rgba(24, 36, 58, 0.76) !important;
}

.order-table.table-striped > tbody > tr:hover > td {
    background: rgba(73, 92, 126, 0.42) !important;
}

.order-table > tbody > tr > td {
    color: #f1f5f9 !important;
}

.order-table del {
    color: rgba(241, 245, 249, 0.66);
}

.order-table .text-right {
    white-space: nowrap;
}

.order-table .quantity .input-group-prepend {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.order-table input[type="number"] {
    width: 74px;
    height: 36px;
    padding: 0.35rem 0.45rem;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--nc-radius-sm);
    background: rgba(10, 18, 32, 0.82);
    color: var(--nc-text-primary);
}

.order-table .btn-default,
.order-table .btn-quantity,
.order-table .btn-danger,
.order-table .btn-remove-item {
    height: auto;
    padding: 0.45rem 0.9rem !important;
    border-radius: var(--nc-radius-sm) !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
}

.order-table .btn-default,
.order-table .btn-quantity {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(153, 93, 255, 0.3)) !important;
    border: 1px solid rgba(124, 58, 237, 0.4) !important;
    color: #e2e8f0 !important;
}

.order-table .btn-default:hover,
.order-table .btn-quantity:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.35), rgba(153, 93, 255, 0.5)) !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
}

.order-table .btn-danger,
.order-table .btn-remove-item {
    background: rgba(248, 113, 113, 0.15) !important;
    border: 1px solid rgba(248, 113, 113, 0.44) !important;
    color: #fecaca !important;
}

.order-table .btn-danger:hover,
.order-table .btn-remove-item:hover {
    background: rgba(248, 113, 113, 0.24) !important;
    border-color: rgba(248, 113, 113, 0.65) !important;
    color: #fee2e2 !important;
}

/* Buttons */
/* Sizes here are px, not rem: Bootstrap sets html { font-size: 10px }, so a rem
   in this file is 10px and button text ends up unreadably small. */
.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 40px;
    padding: 10px 20px !important;
    font-weight: 700;
    font-size: 15px !important;
    line-height: 1.35;
    letter-spacing: 0.01em;
    border-radius: var(--nc-radius-md) !important;
    transition: all var(--nc-transition) !important;
}
.btn-primary { background: var(--nc-accent) !important; color: #fff !important; border: none !important; }
.btn-primary:hover { background: var(--nc-accent-hover) !important; box-shadow: 0 4px 12px rgba(153, 93, 255, 0.4) !important; }
.btn-secondary {
    background: rgba(148, 163, 184, 0.2) !important;
    border: 1px solid var(--nc-border) !important;
    color: var(--nc-text-primary) !important;
}
.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.32) !important;
    border-color: var(--nc-border-hover) !important;
    color: var(--nc-text-primary) !important;
}
.btn-sm { font-size: 14px !important; }
.btn-xs {
    min-height: 36px;
    padding: 8px 16px !important;
    font-size: 14px !important;
}
.btn-block { display: flex !important; width: 100%; }

/* Forms */
.form-control {
    background: var(--nc-bg-secondary) !important;
    color: var(--nc-text-primary) !important;
    border: 1px solid var(--nc-border) !important;
    border-radius: var(--nc-radius-sm) !important;
}

/* Modals */
.modal-backdrop {
    z-index: 1200 !important;
    background-color: rgba(15, 23, 42, 0.78) !important;
}

.modal {
    z-index: 1210 !important;
}

.nc-modal-dialog {
    width: min(94vw, 960px) !important;
    margin: 1.25rem auto 1.5rem !important;
}

.modal-content {
    background: var(--nc-bg-secondary) !important;
    border: 1px solid var(--nc-border) !important;
    border-radius: var(--nc-radius-md) !important;
    box-shadow: var(--nc-shadow-lg);
    overflow: hidden;
}

.modal-header,
.modal-footer {
    background: rgba(15, 23, 42, 0.65);
    border-color: var(--nc-border) !important;
}

.modal-header .close {
    color: var(--nc-text-secondary) !important;
    opacity: 0.9 !important;
    text-shadow: none;
}

.modal-header .close:hover,
.modal-header .close:focus {
    color: var(--nc-text-primary) !important;
    opacity: 1 !important;
}

.modal-body {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    color: var(--nc-text-secondary);
    line-height: 1.65;
}

.nc-package-description {
    color: var(--nc-text-secondary);
}

.text-primary { color: var(--nc-text-primary) !important; }
.text-muted   { color: var(--nc-text-muted) !important; }
.text-info    { color: var(--nc-accent-secondary) !important; }
.text-success { color: var(--nc-success) !important; }
.text-warning { color: var(--nc-warning) !important; }
.text-danger  { color: var(--nc-danger) !important; }

hr {
    border-top: 1px solid var(--nc-border);
    opacity: 1;
}

/* ==================== Footer ==================== */

.nc-footer { margin-top: 2rem; padding: 1.25rem 0; border-top: 1px solid var(--nc-border); }
.nc-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.nc-footer__copy, .nc-footer span, .nc-footer a { color: var(--nc-text-muted); font-size: 0.875rem; }
.nc-footer a:hover { color: var(--nc-accent) !important; }

/* ==================== Responsive ==================== */

@media (max-width: 991px) {
    .nc-header__inner {
        flex-direction: column;
        gap: 0.85rem;
        align-items: center;
    }

    .nc-header__logo {
        order: 1;
    }

    .nc-stat-card {
        width: 100%;
        max-width: 460px;
        min-width: 0 !important;
        min-height: 74px;
    }

    .nc-stat-card--ip {
        order: 2;
    }

    .nc-stat-card--discord {
        order: 3;
    }
}

@media (max-width: 768px) {
    /* Sticky topbar on mobile, switched to brand+controls layout */
    .nc-topbar {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 100;
        height: auto;
        padding: 0.85rem 1rem;
        margin-bottom: 0;
    }

    /* Hide desktop topbar elements */
    .nc-topbar__back,
    .nc-topbar__spacer,
    .nc-topbar__brand {
        display: none;
    }

    /* Show mobile topbar elements */
    .nc-topbar__mobile-brand {
        display: flex;
    }

    .nc-topbar__mobile-controls {
        display: flex;
    }

    /* Larger tap targets */
    .nc-topbar__menu-btn,
    .nc-topbar__basket-btn {
        padding: 0.65rem 1rem;
        font-size: 0.875rem;
    }

    .nc-topbar__menu-bars span {
        width: 18px;
    }

    .nc-topbar__logo {
        width: 32px;
        height: 32px;
    }

    /* Hide Bootstrap navbar entirely on mobile */
    .nc-navbar {
        display: none !important;
    }

    .nc-header .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .nc-navbar {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .nc-navbar > .container {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .nc-navbar__inner {
        padding: 0.45rem 0.55rem 0.6rem;
    }

    .nc-navbar .navbar-header {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
    }

    .nc-navbar-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 0.7rem;
        min-height: 48px;
        margin: 0 !important;
        padding: 0.72rem 1.05rem !important;
        border-radius: 10px !important;
        border: 1px solid rgba(96, 165, 250, 0.32) !important;
        background: linear-gradient(135deg, rgba(26, 40, 62, 0.92), rgba(47, 68, 101, 0.88)) !important;
        box-shadow: 0 4px 14px rgba(7, 12, 20, 0.32);
    }

    .nc-navbar .nc-navbar-toggle .icon-bar {
        width: 18px;
        height: 2px;
        border-radius: 999px;
    }

    .nc-navbar-toggle__label {
        font-size: 0.86rem;
        letter-spacing: 0.06em;
    }

    .nc-mobile-basket {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 48px;
        margin-right: 0;
        padding: 0.72rem 1.05rem;
        border-radius: 10px;
        border: 1px solid rgba(153, 93, 255, 0.34);
        background: linear-gradient(135deg, rgba(36, 40, 67, 0.92), rgba(53, 44, 89, 0.88));
        color: #f8fafc !important;
        font-size: 0.86rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .nc-mobile-basket .nc-basket-badge {
        margin-left: 0.2rem;
        min-width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .nc-navbar .navbar-collapse {
        margin-top: 0.6rem;
        border-top: 1px solid var(--nc-border) !important;
        padding-top: 0.5rem;
    }

    .nc-navbar .navbar-nav {
        float: none !important;
    }

    .nc-navbar .navbar-nav > li {
        float: none !important;
    }

    .nc-navbar .navbar-nav > li > a {
        margin: 0.12rem 0;
        padding: 0.85rem 0.95rem;
        font-size: 0.95rem;
        border-radius: var(--nc-radius-sm);
    }

    .nc-navbar .navbar-nav.navbar-right {
        display: none;
    }

    .nc-navbar .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin: 0.25rem 0 0.45rem;
        box-shadow: none !important;
    }

    .nc-main-col,
    .nc-sidebar {
        padding-left: 8px;
        padding-right: 8px;
    }

    .nc-sidebar { margin-top: 1rem; }

    .package-container {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 1rem;
    }

    .package-container .item-wrapper,
    .nc-sidebar .nc-module {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .nc-cart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-table > thead > tr > th,
    .order-table > tbody > tr > td {
        white-space: nowrap;
    }

    .order-table .quantity .input-group-prepend {
        min-width: 140px;
    }

    .nc-modal-dialog {
        width: calc(100vw - 1.25rem) !important;
        margin: 0.75rem auto !important;
    }

    .modal-body {
        max-height: calc(100vh - 240px);
    }
}

@media (max-width: 560px) {
    .nc-topbar {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        gap: 0.4rem;
    }

    .nc-topbar__brand {
        display: none;
    }

    .nc-header__inner {
        gap: 0.6rem;
    }

    .nc-stat-card {
        padding: 0.7rem;
        gap: 0.55rem;
    }

    .nc-stat-card__icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .nc-stat-card__label {
        font-size: 0.82rem;
        color: var(--nc-text-primary);
    }

    .nc-stat-card__value {
        font-size: 1.15rem;
    }

    .nc-category-heading__title {
        font-size: 1.26rem;
    }

    .nc-category-heading__desc {
        margin-left: 0;
        font-size: 0.92rem;
    }
}

/* Ensure mobile drawer is never visible on desktop */
@media (min-width: 769px) {
    #nc-mobile-drawer {
        display: none !important;
    }
}

